sim-card
/
qemu
Archived
10
0
Fork 0

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:
Stefan Weil 2009-09-06 19:55:12 +02:00 committed by Anthony Liguori
parent 91553dcc9e
commit aeec26d348
1 changed files with 1 additions and 1 deletions

View File

@ -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;