]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tcg: Always define TCG_GUEST_DEFAULT_MO
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 21 Mar 2025 11:10:45 +0000 (12:10 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 23 Apr 2025 22:07:32 +0000 (15:07 -0700)
We only require the TCG_GUEST_DEFAULT_MO for MTTCG-enabled
frontends, otherwise we use a default value of TCG_MO_ALL.

In order to simplify, require the definition for all targets,
defining it for hexagon, m68k, rx, sh4 and tricore.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Anton Johansson <anjo@rev.ng>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/translate-all.c
target/hexagon/cpu-param.h
target/m68k/cpu-param.h
target/rx/cpu-param.h
target/sh4/cpu-param.h
target/tricore/cpu-param.h

index c5590eb6955226dceeffb88bd2387e7e298053c1..7467255f6e4f51adba18ebfc582568c29dab2fec 100644 (file)
@@ -353,11 +353,7 @@ TranslationBlock *tb_gen_code(CPUState *cpu,
     tcg_ctx->tlb_dyn_max_bits = CPU_TLB_DYN_MAX_BITS;
 #endif
     tcg_ctx->insn_start_words = TARGET_INSN_START_WORDS;
-#ifdef TCG_GUEST_DEFAULT_MO
     tcg_ctx->guest_mo = TCG_GUEST_DEFAULT_MO;
-#else
-    tcg_ctx->guest_mo = TCG_MO_ALL;
-#endif
 
  restart_translate:
     trace_translate_block(tb, pc, tb->tc.ptr);
index 635d509e743633bc01ba625fd44a683ef3e750db..7cc63a01d4bf45c9337efa9e6c4c25a88d2ff26e 100644 (file)
@@ -25,4 +25,7 @@
 
 #define TARGET_INSN_START_EXTRA_WORDS 0
 
+/* MTTCG not yet supported: require strict ordering */
+#define TCG_GUEST_DEFAULT_MO        TCG_MO_ALL
+
 #endif
index 256a2b5f8b298b92d258a2a3f184430f545db537..10a8d74bfa91d2ba85cbf4ccf74ad2dc762c8543 100644 (file)
@@ -19,4 +19,7 @@
 
 #define TARGET_INSN_START_EXTRA_WORDS 1
 
+/* MTTCG not yet supported: require strict ordering */
+#define TCG_GUEST_DEFAULT_MO        TCG_MO_ALL
+
 #endif
index 84934f3bcaf0e775dc1ca9503e85255806e5b1b8..fe39a77ca3812feb4627b41a2709af4e6e682772 100644 (file)
@@ -26,4 +26,7 @@
 
 #define TARGET_INSN_START_EXTRA_WORDS 0
 
+/* MTTCG not yet supported: require strict ordering */
+#define TCG_GUEST_DEFAULT_MO        TCG_MO_ALL
+
 #endif
index f328715ee862f9e99663286e006ca23295f01d9d..acdf2397495472fbe0b5456d3597fbbff61c531a 100644 (file)
@@ -18,4 +18,7 @@
 
 #define TARGET_INSN_START_EXTRA_WORDS 1
 
+/* MTTCG not yet supported: require strict ordering */
+#define TCG_GUEST_DEFAULT_MO        TCG_MO_ALL
+
 #endif
index eb33a67c41943293969b651a40eb5c850d356f6f..45fde756b6a71880eb7335d6d02f27f699212a65 100644 (file)
@@ -14,4 +14,7 @@
 
 #define TARGET_INSN_START_EXTRA_WORDS 0
 
+/* MTTCG not yet supported: require strict ordering */
+#define TCG_GUEST_DEFAULT_MO        TCG_MO_ALL
+
 #endif