qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] target/sh4: Use MO_ALIGN for system UNALIGN()
@ 2025-05-03 21:27 Richard Henderson
  2025-05-05  6:45 ` Philippe Mathieu-Daudé
  2025-10-05  0:14 ` Guenter Roeck
  0 siblings, 2 replies; 6+ messages in thread
From: Richard Henderson @ 2025-05-03 21:27 UTC (permalink / raw)
  To: qemu-devel; +Cc: ysato

This should have been done before removing TARGET_ALIGNED_ONLY,
as we did for hppa and alpha.

Fixes: 8244189419f9 ("target/sh4: Remove TARGET_ALIGNED_ONLY")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 target/sh4/translate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/sh4/translate.c b/target/sh4/translate.c
index bf8828fce8..70fd13aa3f 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.  */
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-10-12 18:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-03 21:27 [PATCH] target/sh4: Use MO_ALIGN for system UNALIGN() Richard Henderson
2025-05-05  6:45 ` Philippe Mathieu-Daudé
2025-10-05  0:14 ` Guenter Roeck
2025-10-05 15:43   ` Guenter Roeck
2025-10-05 18:30     ` Richard Henderson
2025-10-12 18:37       ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).