]> git.proxmox.com Git - qemu.git/commitdiff
Fix --enable-profiler compilation.
authorRichard Henderson <rth@twiddle.net>
Sat, 17 Apr 2010 16:25:10 +0000 (16:25 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 17 Apr 2010 16:25:10 +0000 (16:25 +0000)
There's a header file inclusion ordering problem between cpu-all.h
and qemu-timer.h, such that cpu_get_real_ticks is not defined when
we attempt to use it in profile_getclock.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
cpu-all.h
qemu-timer.h
tcg/tcg.c

index 3004d0fd31674d59f262a868def556523c3a19e4..7b1594cdf83c747cf61bfffb8237608e5dffc1f7 100644 (file)
--- a/cpu-all.h
+++ b/cpu-all.h
@@ -943,18 +943,6 @@ void dump_exec_info(FILE *f,
 int cpu_memory_rw_debug(CPUState *env, target_ulong addr,
                         uint8_t *buf, int len, int is_write);
 
-/* profiling */
-#ifdef CONFIG_PROFILER
-static inline int64_t profile_getclock(void)
-{
-    return cpu_get_real_ticks();
-}
-
-extern int64_t qemu_time, qemu_time_start;
-extern int64_t tlb_flush_time;
-extern int64_t dev_time;
-#endif
-
 void cpu_inject_x86_mce(CPUState *cenv, int bank, uint64_t status,
                         uint64_t mcg_status, uint64_t addr, uint64_t misc);
 
index d2e15f4caa7bd61e8bac8d342f4ecd3e75fe04f8..62da887584a7b56eb80e0cd7072553cdee5cf5a8 100644 (file)
@@ -236,4 +236,15 @@ static inline int can_do_io(CPUState *env)
 }
 #endif
 
+#ifdef CONFIG_PROFILER
+static inline int64_t profile_getclock(void)
+{
+    return cpu_get_real_ticks();
+}
+
+extern int64_t qemu_time, qemu_time_start;
+extern int64_t tlb_flush_time;
+extern int64_t dev_time;
+#endif
+
 #endif
index 6db96d09bf4f11041f181b25a2ad8d1a43c9e6cd..54f7fa929623a125345627523c30cc37b1acd600 100644 (file)
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -47,6 +47,7 @@
 #include "qemu-common.h"
 #include "cache-utils.h"
 #include "host-utils.h"
+#include "qemu-timer.h"
 
 /* Note: the long term plan is to reduce the dependancies on the QEMU
    CPU definitions. Currently they are used for qemu_ld/st