aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2009-09-06 19:55:12 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-09-11 10:19:34 -0500
commitaeec26d348363d6b03d3f2679d86d53017cf6dd4 (patch)
tree84afc9d771cdb963b9989d47c4a9b3e2205a40ee
parent91553dcc9ea95ac0b92b57a4f33bfcbe8378e965 (diff)
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>
-rw-r--r--cpu-all.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu-all.h b/cpu-all.h
index 1a6a812259..ebe8bfbadb 100644
--- 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;