From: Stefan Weil Date: Sun, 6 Sep 2009 17:55:12 +0000 (+0200) Subject: Fix conditional compilation (MIPS host) X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=aeec26d348363d6b03d3f2679d86d53017cf6dd4;p=qemu.git 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 --- 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;