diff --git a/target-info-stub.c b/target-info-stub.c index f5896a72621..07d8647ed8e 100644 --- a/target-info-stub.c +++ b/target-info-stub.c @@ -11,6 +11,7 @@ #include "qemu/target-info-impl.h" #include "hw/core/boards.h" #include "cpu.h" +#include "exec/cpu-defs.h" #include "exec/page-vary.h" /* Validate correct placement of CPUArchState. */
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> --- target-info-stub.c | 1 + 1 file changed, 1 insertion(+)