diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2023-03-03 08:49:48 +0000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-03-05 13:44:07 -0800 |
commit | 533206f0520e2d46362e4e6d920c8b9fa7ec1bb4 (patch) | |
tree | 93b0900f54c0a4916bbed02ce7a633b0f47ab395 /accel/tcg/tcg-accel-ops.c | |
parent | 2946e1af2704bf6584f57d4e3aec49d1d5f3ecc0 (diff) | |
download | qemu-533206f0520e2d46362e4e6d920c8b9fa7ec1bb4.zip qemu-533206f0520e2d46362e4e6d920c8b9fa7ec1bb4.tar.gz qemu-533206f0520e2d46362e4e6d920c8b9fa7ec1bb4.tar.bz2 |
tcg: Include "qemu/timer.h" for profile_getclock
When CONFIG_PROFILER is set there are various undefined references to
profile_getclock. Include the header which defines this function.
For example:
../tcg/tcg.c: In function ‘tcg_gen_code’:
../tcg/tcg.c:4905:51: warning: implicit declaration of function ‘profile_getclock’ [-Wimplicit-function-declaration]
4905 | qatomic_set(&prof->opt_time, prof->opt_time - profile_getclock());
| ^~~~~~~~~~~~~~~~
Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230303084948.3351546-1-rjones@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'accel/tcg/tcg-accel-ops.c')
-rw-r--r-- | accel/tcg/tcg-accel-ops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/accel/tcg/tcg-accel-ops.c b/accel/tcg/tcg-accel-ops.c index aeb1cba..af35e0d 100644 --- a/accel/tcg/tcg-accel-ops.c +++ b/accel/tcg/tcg-accel-ops.c @@ -31,6 +31,7 @@ #include "sysemu/cpu-timers.h" #include "qemu/main-loop.h" #include "qemu/guest-random.h" +#include "qemu/timer.h" #include "exec/exec-all.h" #include "exec/hwaddr.h" #include "exec/gdbstub.h" |