@samitouri / QOSamiQemu / commits / 7ffe6b81f0

target/arm: Restrict TCG specific headers

Avoid including TCG-specific headers in non-TCG builds. Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20260617171438.75914-2-philmd@oss.qualcomm.com>

Philippe Mathieu-Daudé committed Jun 16, 2026 at 12:22 UTC 7ffe6b81f0f32fac73b41824ee942af7316fe3f2
2 files changed +5 -2
target/arm/cpu-irq.c
+2 -1
@@ -8,10 +8,11 @@
8
9 #include "qemu/osdep.h"
10 #include "cpu.h"
11 -#include "accel/tcg/cpu-ops.h"
11 #include "internals.h"
12
13 #ifdef CONFIG_TCG
14 +#include "accel/tcg/cpu-ops.h"
15 +
16 static inline bool arm_excp_unmasked(CPUState *cs, unsigned int excp_idx,
17 unsigned int target_el,
18 unsigned int cur_el, bool secure,
target/arm/internals.h
+3 -1
@@ -29,9 +29,11 @@
29 #include "exec/vaddr.h"
30 #include "exec/breakpoint.h"
31 #include "exec/memop.h"
32 +#ifdef CONFIG_TCG
33 #include "accel/tcg/tb-cpu-state.h"
33 -#include "hw/core/registerfields.h"
34 #include "tcg/tcg-gvec-desc.h"
35 +#endif
36 +#include "hw/core/registerfields.h"
37 #include "system/memory.h"
38 #include "syndrome.h"
39 #include "cpu-features.h"