@samitouri / QOSamiQemu / commits / 75aaafdc19

target-info: Include 'exec/cpu-defs.h' explicitly

The "exec/target_long.h" header is indirectly included, pulled via "cpu.h" -> "exec/cpu-defs.h". Include it explicitly otherwise we'd get when removing the latter: ../target-info-stub.c:39:23: error: use of undeclared identifier 'TARGET_PAGE_BITS' 39 | .page_bits_init = TARGET_PAGE_BITS, | ^ Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-Id: <20260313062055.2188-6-philmd@linaro.org>

Philippe Mathieu-Daudé committed Mar 13, 2026 at 05:17 UTC 75aaafdc195fd516281a0d1e0967ef60c0384d1b
1 file changed +1
target-info-stub.c
+1
@@ -11,6 +11,7 @@
11 #include "qemu/target-info-impl.h"
12 #include "hw/core/boards.h"
13 #include "cpu.h"
14 +#include "exec/cpu-defs.h"
15 #include "exec/page-vary.h"
16
17 /* Validate correct placement of CPUArchState. */