aboutsummaryrefslogtreecommitdiff
path: root/cpu-all.h
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:18:57 +0100
commit9706c06d9c93b6d94785b6b14565b61ddae95a04 (patch)
treef49dc4b96b4b6eb95f87606bfc49eb3450274c49 /cpu-all.h
parent935effc2bbd2c441b755a8d280811a9763fdb98c (diff)
cpu-all.h: fix cpu_get_real_ticks() #ifdef
Reported-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
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 e21437499e..57b69f8865 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