mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
Fix conditional compilation (MIPS host)
Compilation for MIPS host (not part of official QEMU) checks __mips_isa_rev which is not always defined. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
91553dcc9e
commit
aeec26d348
1 changed files with 1 additions and 1 deletions
|
@ -1021,7 +1021,7 @@ static inline int64_t cpu_get_real_ticks (void)
|
|||
|
||||
static inline int64_t cpu_get_real_ticks(void)
|
||||
{
|
||||
#if __mips_isa_rev >= 2
|
||||
#if defined(__mips_isa_rev) && __mips_isa_rev >= 2
|
||||
uint32_t count;
|
||||
static uint32_t cyc_per_count = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue