From: Pierrick Bouvier Date: Tue, 25 Mar 2025 04:58:57 +0000 (-0700) Subject: accel/tcg: fix missing includes for TARGET_HAS_PRECISE_SMC X-Git-Tag: v10.1.0-rc0~117^2~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4fadca8d649a2aeef8070b973b2a1d5da75dfefb;p=thirdparty%2Fqemu.git accel/tcg: fix missing includes for TARGET_HAS_PRECISE_SMC We prepare to remove cpu.h from cpu-all.h, which will transitively remove it from accel/tcg/tb-internal.h, and thus from most of tcg compilation units. Note: this was caught by a test regression for s390x-softmmu. Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier Signed-off-by: Richard Henderson Message-ID: <20250325045915.994760-13-pierrick.bouvier@linaro.org> --- diff --git a/accel/tcg/tb-maint.c b/accel/tcg/tb-maint.c index df3438e1902..d479f53ae02 100644 --- a/accel/tcg/tb-maint.c +++ b/accel/tcg/tb-maint.c @@ -20,6 +20,7 @@ #include "qemu/osdep.h" #include "qemu/interval-tree.h" #include "qemu/qtree.h" +#include "cpu.h" #include "exec/cputlb.h" #include "exec/log.h" #include "exec/exec-all.h" diff --git a/accel/tcg/user-exec.c b/accel/tcg/user-exec.c index 72a9809c2d5..7f57d8f1aff 100644 --- a/accel/tcg/user-exec.c +++ b/accel/tcg/user-exec.c @@ -19,6 +19,7 @@ #include "qemu/osdep.h" #include "accel/tcg/cpu-ops.h" #include "disas/disas.h" +#include "cpu.h" #include "exec/vaddr.h" #include "exec/exec-all.h" #include "exec/tlb-flags.h" diff --git a/include/exec/poison.h b/include/exec/poison.h index 8ec02b40e84..f267da60838 100644 --- a/include/exec/poison.h +++ b/include/exec/poison.h @@ -38,6 +38,7 @@ #pragma GCC poison TARGET_SUPPORTS_MTTCG #pragma GCC poison TARGET_BIG_ENDIAN #pragma GCC poison TCG_GUEST_DEFAULT_MO +#pragma GCC poison TARGET_HAS_PRECISE_SMC #pragma GCC poison TARGET_LONG_BITS #pragma GCC poison TARGET_FMT_lx