target/hppa: Use DisasContext::mo_align in system emulation
Rename 'unalign' as 'mo_align' and use it in system emulation too. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Helge Deller <deller@gmx.de> Message-Id: <20260513074323.10616-2-philmd@linaro.org>
Philippe Mathieu-Daudé committed
May 13, 2026 at 09:37 UTC
351c75828d92821b6798560cedf5d38a1b336863
1 file changed
+5
-6
target/hppa/translate.c
+5
-6
@@ -91,16 +91,14 @@ typedef struct DisasContext {
91
bool is_pa20;
92
bool insn_start_updated;
93
94
-#ifdef CONFIG_USER_ONLY
95
- MemOp unalign;
96
-#endif
94
+ MemOp mo_align;
95
} DisasContext;
96
97
#ifdef CONFIG_USER_ONLY
100
-#define UNALIGN(C) (C)->unalign
98
+#define UNALIGN(C) ((C)->mo_align)
99
#define MMU_DISABLED(C) false
100
#else
103
-#define UNALIGN(C) MO_ALIGN
101
+#define UNALIGN(C) ((C)->mo_align)
102
#define MMU_DISABLED(C) MMU_IDX_MMU_DISABLED((C)->mmu_idx)
103
#endif
104
@@ -4654,12 +4652,13 @@ static void hppa_tr_init_disas_context(DisasContextBase *dcbase, CPUState *cs)
4652
#ifdef CONFIG_USER_ONLY
4653
ctx->privilege = PRIV_USER;
4654
ctx->mmu_idx = MMU_USER_IDX;
4657
- ctx->unalign = (ctx->tb_flags & TB_FLAG_UNALIGN ? MO_UNALN : MO_ALIGN);
4655
+ ctx->mo_align = (ctx->tb_flags & TB_FLAG_UNALIGN) ? MO_UNALN : MO_ALIGN;
4656
#else
4657
ctx->privilege = (ctx->tb_flags >> TB_FLAG_PRIV_SHIFT) & 3;
4658
ctx->mmu_idx = (ctx->tb_flags & PSW_D
4659
? PRIV_P_TO_MMU_IDX(ctx->privilege, ctx->tb_flags & PSW_P)
4660
: ctx->tb_flags & PSW_W ? MMU_ABS_W_IDX : MMU_ABS_IDX);
4661
+ ctx->mo_align = MO_ALIGN;
4662
#endif
4663
4664
cs_base = ctx->base.tb->cs_base;