@samitouri / QOSamiQemu / commits / e86f851429

hw/misc/cpc: Include missing 'hw/core/cpu.h' header

The "hw/core/cpu.h" header is indirectly included. Include it explicitly otherwise we get when refactoring unrelated headers: ../hw/misc/mips_cpc.c:36:53: error: unknown type name 'run_on_cpu_data' 36 | static void mips_cpu_reset_async_work(CPUState *cs, run_on_cpu_data data) | ^ ../hw/misc/mips_cpc.c:40:5: error: call to undeclared function 'cpu_reset' 40 | cpu_reset(cs); | ^ ../hw/misc/riscv_cpc.c:34:54: error: unknown type name 'run_on_cpu_data' 34 | static void riscv_cpu_reset_async_work(CPUState *cs, run_on_cpu_data data) | ^ ../hw/misc/riscv_cpc.c:39:5: error: call to undeclared function 'cpu_reset' 39 | cpu_reset(cs); | ^ Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-Id: <20260313062055.2188-17-philmd@linaro.org>

Philippe Mathieu-Daudé committed Mar 13, 2026 at 05:42 UTC e86f85142943db8992796a26d51d66ee0889fff2
2 files changed +2
hw/misc/mips_cpc.c
+1
@@ -22,6 +22,7 @@
22 #include "cpu.h"
23 #include "qemu/log.h"
24 #include "qemu/module.h"
25 +#include "hw/core/cpu.h"
26 #include "hw/core/sysbus.h"
27 #include "migration/vmstate.h"
28
hw/misc/riscv_cpc.c
+1
@@ -18,6 +18,7 @@
18 #include "qemu/module.h"
19 #include "qemu/timer.h"
20 #include "qemu/bitops.h"
21 +#include "hw/core/cpu.h"
22 #include "hw/core/sysbus.h"
23 #include "migration/vmstate.h"
24