diff --git a/target/sparc/cpu.h b/target/sparc/cpu.h index 0139732e4cc..155aa8ec637 100644 --- a/target/sparc/cpu.h +++ b/target/sparc/cpu.h @@ -5,6 +5,7 @@ #include "cpu-qom.h" #include "exec/cpu-defs.h" #include "exec/cpu-interrupt.h" +#include "exec/target_long.h" #include "qemu/cpu-float.h" #if !defined(TARGET_SPARC64)
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/sparc/cpu.h:615:1: error: unknown type name 'target_ulong' 615 | target_ulong cpu_get_fsr(CPUSPARCState *); | ^ Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-Id: <20260313062055.2188-15-philmd@linaro.org> --- target/sparc/cpu.h | 1 + 1 file changed, 1 insertion(+)