tcg: Always define TCG_GUEST_DEFAULT_MO

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>
This commit is contained in:
Philippe Mathieu-Daudé 2025-03-21 12:10:45 +01:00 committed by Richard Henderson
parent d864cbb65d
commit c2ba9fea42
6 changed files with 15 additions and 4 deletions

View 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);

View 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

View 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

View 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

View 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

View 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