提交 aeec26d3 编写于 作者: S Stefan Weil 提交者: Anthony Liguori

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: NStefan Weil <weil@mail.berlios.de>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 91553dcc
...@@ -1021,7 +1021,7 @@ static inline int64_t cpu_get_real_ticks (void) ...@@ -1021,7 +1021,7 @@ static inline int64_t cpu_get_real_ticks (void)
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; uint32_t count;
static uint32_t cyc_per_count = 0; static uint32_t cyc_per_count = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册