]> Git Repo - qemu.git/commitdiff
cpu-all.h: fix cpu_get_real_ticks() #ifdef
authorAurelien Jarno <[email protected]>
Sun, 20 Dec 2009 20:18:57 +0000 (21:18 +0100)
committerAurelien Jarno <[email protected]>
Sun, 20 Dec 2009 20:18:57 +0000 (21:18 +0100)
Reported-by: HervĂ© Poussineau <[email protected]>
Signed-off-by: Aurelien Jarno <[email protected]>
cpu-all.h

index e21437499ef7c767d767aa8a740694b62713df56..57b69f8865a15173f027dd9333325d91d1aa1d45 100644 (file)
--- a/cpu-all.h
+++ b/cpu-all.h
@@ -1017,7 +1017,8 @@ static inline int64_t cpu_get_real_ticks (void)
 #endif
 }
 
-#elif (defined(__mips_isa_rev) && __mips_isa_rev >= 2) || defined(__linux__)
+#elif defined(__mips__) && \
+      ((defined(__mips_isa_rev) && __mips_isa_rev >= 2) || defined(__linux__))
 /*
  * binutils wants to use rdhwr only on mips32r2
  * but as linux kernel emulate it, it's fine
This page took 0.027737 seconds and 4 git commands to generate.