@samitouri / QOSamiQemu / commits / fec261633c

hw/cpu: Include missing 'qemu/accel.h' header

cpu_common_realize() calls accel_cpu_common_realize(), itself declared in "qemu/accel.h". Include the latter, otherwise we get when refactoring unrelated headers: hw/core/cpu-common.c:233:10: error: implicit declaration of function ‘accel_cpu_common_realize’ 233 | if (!accel_cpu_common_realize(cpu, errp)) { | ^~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20260811183410.22428-3-philmd@oss.qualcomm.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>

Philippe Mathieu-Daudé committed Aug 10, 2026 at 16:46 UTC fec261633c55d6ee50d812da7c84fb2de7eb60d8
1 file changed +1
hw/core/cpu-common.c
+1
@@ -23,6 +23,7 @@
23 #include "qapi/error.h"
24 #include "hw/core/cpu.h"
25 #include "system/hw_accel.h"
26 +#include "qemu/accel.h"
27 #include "qemu/log.h"
28 #include "qemu/main-loop.h"
29 #include "qemu/lockcnt.h"