aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2025-05-03 13:40:26 -0700
committerRichard Henderson <richard.henderson@linaro.org>2025-05-28 08:08:47 +0100
commiteb978e50e42f3439e7a7a104e76aafc81bc4a028 (patch)
treeac3bfe295a8f1d99fb50577b2ee546138152cf7b
parent11efde54f248c2da9e164910b8b1945e78a7168e (diff)
downloadqemu-eb978e50e42f3439e7a7a104e76aafc81bc4a028.zip
qemu-eb978e50e42f3439e7a7a104e76aafc81bc4a028.tar.gz
qemu-eb978e50e42f3439e7a7a104e76aafc81bc4a028.tar.bz2
target/sh4: Use MO_ALIGN for system UNALIGN()
This should have been done before removing TARGET_ALIGNED_ONLY, as we did for hppa and alpha. Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Fixes: 8244189419f9 ("target/sh4: Remove TARGET_ALIGNED_ONLY") Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r--target/sh4/translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/sh4/translate.c b/target/sh4/translate.c
index bf8828f..70fd13a 100644
--- a/target/sh4/translate.c
+++ b/target/sh4/translate.c
@@ -54,7 +54,7 @@ typedef struct DisasContext {
#define UNALIGN(C) (ctx->tbflags & TB_FLAG_UNALIGN ? MO_UNALN : MO_ALIGN)
#else
#define IS_USER(ctx) (!(ctx->tbflags & (1u << SR_MD)))
-#define UNALIGN(C) 0
+#define UNALIGN(C) MO_ALIGN
#endif
/* Target-specific values for ctx->base.is_jmp. */