From 92d96fb68dc0ba4ce6dacb4a0f2f6dd30e563a49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Date: Fri, 13 Mar 2026 05:17:32 +0100 Subject: [PATCH] target/ppc: Include missing 'exec/target_long.h' header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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é Reviewed-by: Pierrick Bouvier Message-Id: <20260313062055.2188-13-philmd@linaro.org> --- include/hw/ppc/spapr_ovec.h | 2 +- target/ppc/cpu.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/hw/ppc/spapr_ovec.h b/include/hw/ppc/spapr_ovec.h index c3e8b98e7e..8d67f492d0 100644 --- a/include/hw/ppc/spapr_ovec.h +++ b/include/hw/ppc/spapr_ovec.h @@ -37,7 +37,7 @@ #ifndef SPAPR_OVEC_H #define SPAPR_OVEC_H -#include "cpu.h" +#include "exec/target_long.h" typedef struct SpaprOptionVector SpaprOptionVector; diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h index d637a50798..a0df7a467e 100644 --- a/target/ppc/cpu.h +++ b/target/ppc/cpu.h @@ -25,6 +25,7 @@ #include "exec/cpu-common.h" #include "exec/cpu-defs.h" #include "exec/cpu-interrupt.h" +#include "exec/target_long.h" #include "cpu-qom.h" #include "qom/object.h" #include "hw/core/registerfields.h"