diff options
author | Stefan Weil <weil@mail.berlios.de> | 2009-09-06 19:55:12 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-09-11 10:19:34 -0500 |
commit | aeec26d348363d6b03d3f2679d86d53017cf6dd4 (patch) | |
tree | 84afc9d771cdb963b9989d47c4a9b3e2205a40ee /cpu-all.h | |
parent | 91553dcc9ea95ac0b92b57a4f33bfcbe8378e965 (diff) | |
download | qemu-aeec26d348363d6b03d3f2679d86d53017cf6dd4.tar.gz qemu-aeec26d348363d6b03d3f2679d86d53017cf6dd4.tar.bz2 qemu-aeec26d348363d6b03d3f2679d86d53017cf6dd4.zip |
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>
Diffstat (limited to 'cpu-all.h')
-rw-r--r-- | cpu-all.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |