target/ppc/pmu: Include missing 'qemu/timer.h' header
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 28 Aug 2023 14:19:30 +0000 (16:19 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 31 Aug 2023 17:47:43 +0000 (19:47 +0200)
Since commit c2eff582a3 ("target/ppc: PMU basic cycle count for
pseries TCG") pmu_update_cycles() uses QEMU_CLOCK_VIRTUAL and
calls qemu_clock_get_ns(), both defined in "qemu/timer.h".

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230828221314.18435-2-philmd@linaro.org>

target/ppc/power8-pmu.c

index 7bb4bf81f7c64543e2bdd89fe8584fda7e8bbdc2..2537cded83b75a72fc76ad3f10631c2f21ae124e 100644 (file)
@@ -16,6 +16,7 @@
 #include "exec/exec-all.h"
 #include "exec/helper-proto.h"
 #include "qemu/error-report.h"
+#include "qemu/timer.h"
 #include "qemu/main-loop.h"
 #include "hw/ppc/ppc.h"
 #include "power8-pmu.h"