OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91553dc
)
Fix conditional compilation (MIPS host)
author
Stefan Weil
<weil@mail.berlios.de>
Sun, 6 Sep 2009 17:55:12 +0000
(19:55 +0200)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Fri, 11 Sep 2009 15:19:34 +0000
(10:19 -0500)
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>
cpu-all.h
patch
|
blob
|
history
diff --git
a/cpu-all.h
b/cpu-all.h
index
1a6a812
..
ebe8bfb
100644
(file)
--- 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;