mirror of https://github.com/xemu-project/xemu.git
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
|
@ -1021,7 +1021,7 @@ static inline int64_t cpu_get_real_ticks (void)
|
||||||
|
|
||||||
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;
|
uint32_t count;
|
||||||
static uint32_t cyc_per_count = 0;
|
static uint32_t cyc_per_count = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue