accel/tcg: Include missing 'hw/core/cpu.h' header
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 1 Dec 2023 15:15:27 +0000 (16:15 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 26 Apr 2024 13:31:37 +0000 (15:31 +0200)
tcg_cpu_init_cflags() accesses CPUState fields, so requires
"hw/core/cpu.h" to get its structure definition.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Anton Johansson <anjo@rev.ng>
Message-Id: <20231212123401.37493-12-philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/tcg-accel-ops.c

index 9c957f421c7c9e1c85fd179f9ac8a3fa05e16ea5..2c7b0cc09e7815c80a6bf9e4768fb28462d864d7 100644 (file)
@@ -37,6 +37,8 @@
 #include "exec/tb-flush.h"
 #include "exec/gdbstub.h"
 
+#include "hw/core/cpu.h"
+
 #include "tcg-accel-ops.h"
 #include "tcg-accel-ops-mttcg.h"
 #include "tcg-accel-ops-rr.h"