@samitouri / QOSamiQemu / commits / 92d96fb68d

target/ppc: Include missing 'exec/target_long.h' header

The "exec/target_long.h" header is indirectly included, pulled via "exec/cpu-defs.h". Include it explicitly otherwise we'd get when removing the latter: target/ppc/cpu.h:1281:5: error: unknown type name 'target_ulong' 1281 | target_ulong gpr[32]; /* general purpose registers */ | ^ hw/ppc/spapr_ovec.h:76:44: error: unknown type name 'target_ulong' 76 | SpaprOptionVector *spapr_ovec_parse_vector(target_ulong table_addr, int vector); | ^ Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-Id: <20260313062055.2188-13-philmd@linaro.org>

Philippe Mathieu-Daudé committed Mar 13, 2026 at 05:17 UTC 92d96fb68dc0ba4ce6dacb4a0f2f6dd30e563a49
2 files changed +2 -1
include/hw/ppc/spapr_ovec.h
+1 -1
@@ -37,7 +37,7 @@
37 #ifndef SPAPR_OVEC_H
38 #define SPAPR_OVEC_H
39
40 -#include "cpu.h"
40 +#include "exec/target_long.h"
41
42 typedef struct SpaprOptionVector SpaprOptionVector;
43
target/ppc/cpu.h
+1
@@ -25,6 +25,7 @@
25 #include "exec/cpu-common.h"
26 #include "exec/cpu-defs.h"
27 #include "exec/cpu-interrupt.h"
28 +#include "exec/target_long.h"
29 #include "cpu-qom.h"
30 #include "qom/object.h"
31 #include "hw/core/registerfields.h"