diff options
author | Richard Henderson <rth@twiddle.net> | 2010-04-17 16:25:10 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-04-17 16:25:10 +0000 |
commit | 2d8ebcf94ee461dea9eb363be7becb769d9a962f (patch) | |
tree | 9208e57f9e950459b07462996f64f1f2ed442425 /qemu-timer.h | |
parent | 42a8aa8393b931c92662578bc6b0b82c54fe63f8 (diff) |
Fix --enable-profiler compilation.
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>
Diffstat (limited to 'qemu-timer.h')
-rw-r--r-- | qemu-timer.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/qemu-timer.h b/qemu-timer.h index d2e15f4caa..62da887584 100644 --- a/qemu-timer.h +++ b/qemu-timer.h @@ -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 |