diff --git a/target/mips/cpu.h b/target/mips/cpu.h index ed662135cb0..3517d2d42cf 100644 --- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -5,6 +5,7 @@ #include "exec/cpu-common.h" #include "exec/cpu-defs.h" #include "exec/cpu-interrupt.h" +#include "exec/target_long.h" #ifndef CONFIG_USER_ONLY #include "system/memory.h" #endif
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/mips/cpu.h:462:5: error: unknown type name 'target_ulong' 462 | target_ulong gpr[32]; | ^ Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-Id: <20260313062055.2188-12-philmd@linaro.org> --- target/mips/cpu.h | 1 + 1 file changed, 1 insertion(+)