summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2009-12-20 21:18:57 +0100
committerAurelien Jarno <aurelien@aurel32.net>2009-12-20 21:47:03 +0100
commitda0266005ab8951186ce0a77e643f78472487f4a (patch)
treee8a93455630a4261f1327fd4437fdd3e421a450d /cpu-all.h
parentalpha: fix compile (diff)
downloadqemu-kvm-da0266005ab8951186ce0a77e643f78472487f4a.tar.gz
qemu-kvm-da0266005ab8951186ce0a77e643f78472487f4a.tar.bz2
qemu-kvm-da0266005ab8951186ce0a77e643f78472487f4a.zip
cpu-all.h: fix cpu_get_real_ticks() #ifdef
Reported-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> (cherry picked from commit 9706c06d9c93b6d94785b6b14565b61ddae95a04)
Diffstat (limited to 'cpu-all.h')
-rw-r--r--cpu-all.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpu-all.h b/cpu-all.h
index e21437499..57b69f886 100644
--- 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