[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT aeec26d] Fix conditional compilation (MIPS host)
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT aeec26d] Fix conditional compilation (MIPS host) |
Date: |
Fri, 11 Sep 2009 18:31:39 -0000 |
From: Stefan Weil <address@hidden>
Compilation for MIPS host (not part of official QEMU)
checks __mips_isa_rev which is not always defined.
Signed-off-by: Stefan Weil <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
diff --git a/cpu-all.h b/cpu-all.h
index 1a6a812..ebe8bfb 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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT aeec26d] Fix conditional compilation (MIPS host),
Anthony Liguori <=