]> git.proxmox.com Git - qemu.git/commitdiff
Fix conditional compilation (MIPS host)
authorStefan Weil <weil@mail.berlios.de>
Sun, 6 Sep 2009 17:55:12 +0000 (19:55 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 11 Sep 2009 15:19:34 +0000 (10:19 -0500)
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>
cpu-all.h

index 1a6a81225946d83d957b4cd456758341541e0d63..ebe8bfbadb030b9d8c400b3137e24e0f5541b165 100644 (file)
--- a/cpu-all.h
+++ b/cpu-all.h
@@ -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;