From: Philippe Mathieu-Daudé Date: Thu, 20 Nov 2025 15:07:37 +0000 (+0100) Subject: target/alpha: Inline cpu_ldl_code() call in do_unaligned_access() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=076bcbd7e24f3f324d8e6090556fa09bf48936c5;p=thirdparty%2Fqemu.git target/alpha: Inline cpu_ldl_code() call in do_unaligned_access() In preparation of removing the cpu_ldl_code wrapper, inline it. Use the return address argument. Since Alpha instructions are always stored in little-endian order, replace MO_TE -> MO_LE. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-ID: <20260106155755.53646-4-philmd@linaro.org> --- diff --git a/target/alpha/mem_helper.c b/target/alpha/mem_helper.c index 2113fe33ae..572ea9cb41 100644 --- a/target/alpha/mem_helper.c +++ b/target/alpha/mem_helper.c @@ -24,13 +24,15 @@ static void do_unaligned_access(CPUAlphaState *env, vaddr addr, uintptr_t retaddr) { + CPUState *cs = env_cpu(env); + MemOpIdx oi = make_memop_idx(MO_LEUL, cpu_mmu_index(cs, true)); uint64_t pc; uint32_t insn; cpu_restore_state(env_cpu(env), retaddr); pc = env->pc; - insn = cpu_ldl_code(env, pc); + insn = cpu_ldl_code_mmu(env, pc, oi, retaddr); env->trap_arg0 = addr; env->trap_arg1 = insn >> 26; /* opcode */