From aeec26d348363d6b03d3f2679d86d53017cf6dd4 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 6 Sep 2009 19:55:12 +0200 Subject: [PATCH] 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 Signed-off-by: Anthony Liguori --- cpu-all.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu-all.h b/cpu-all.h index 1a6a81225..ebe8bfbad 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;