@samitouri / QOSamiQemu / commits / 252e6f36e3

target/hexagon: 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/hexagon/cpu.h:76:5: error: unknown type name ‘target_ulong’ 76 | target_ulong gpr[TOTAL_PER_THREAD_REGS]; | ^~~~~~~~~~~~ ../target/hexagon/mmvec/mmvec.h:69:5: error: unknown type name ‘target_ulong’ 69 | target_ulong va[MAX_VEC_SIZE_BYTES]; | ^~~~~~~~~~~~ Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Brian Cain <brian.cain@oss.qualcomm.com> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-Id: <20260313062055.2188-8-philmd@linaro.org>

Philippe Mathieu-Daudé committed Mar 13, 2026 at 06:26 UTC 252e6f36e33bab8b6059bd816de7f1d704b65344
2 files changed +5
target/hexagon/cpu.h
+2
@@ -23,9 +23,11 @@
23 #include "cpu-qom.h"
24 #include "exec/cpu-common.h"
25 #include "exec/cpu-defs.h"
26 +#include "exec/target_long.h"
27 #include "hex_regs.h"
28 #include "mmvec/mmvec.h"
29 #include "hw/core/registerfields.h"
30 +#include "qemu/bitmap.h"
31
32 #ifndef CONFIG_USER_ONLY
33 #error "Hexagon does not support system emulation"
target/hexagon/mmvec/mmvec.h
+3
@@ -18,6 +18,9 @@
18 #ifndef HEXAGON_MMVEC_H
19 #define HEXAGON_MMVEC_H
20
21 +#include "exec/target_long.h"
22 +#include "qemu/bitmap.h"
23 +
24 #define MAX_VEC_SIZE_LOGBYTES 7
25 #define MAX_VEC_SIZE_BYTES (1 << MAX_VEC_SIZE_LOGBYTES)
26