mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-03-17 16:25:34 -06:00
target/arm/helper: use vaddr instead of target_ulong for exception_pc_alignment
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-id: 20250512180502.2395029-14-pierrick.bouvier@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
21a75f792f
commit
a0307ea3dd
4 changed files with 4 additions and 4 deletions
|
|
@ -49,7 +49,7 @@ DEF_HELPER_3(exception_with_syndrome, noreturn, env, i32, i32)
|
|||
DEF_HELPER_4(exception_with_syndrome_el, noreturn, env, i32, i32, i32)
|
||||
DEF_HELPER_2(exception_bkpt_insn, noreturn, env, i32)
|
||||
DEF_HELPER_2(exception_swstep, noreturn, env, i32)
|
||||
DEF_HELPER_2(exception_pc_alignment, noreturn, env, tl)
|
||||
DEF_HELPER_2(exception_pc_alignment, noreturn, env, vaddr)
|
||||
DEF_HELPER_1(setend, void, env)
|
||||
DEF_HELPER_2(wfi, void, env, i32)
|
||||
DEF_HELPER_1(wfe, void, env)
|
||||
|
|
|
|||
|
|
@ -276,7 +276,7 @@ void arm_cpu_do_unaligned_access(CPUState *cs, vaddr vaddr,
|
|||
arm_deliver_fault(cpu, vaddr, access_type, mmu_idx, &fi);
|
||||
}
|
||||
|
||||
void helper_exception_pc_alignment(CPUARMState *env, target_ulong pc)
|
||||
void helper_exception_pc_alignment(CPUARMState *env, vaddr pc)
|
||||
{
|
||||
ARMMMUFaultInfo fi = { .type = ARMFault_Alignment };
|
||||
int target_el = exception_target_el(env);
|
||||
|
|
|
|||
|
|
@ -10242,7 +10242,7 @@ static void aarch64_tr_translate_insn(DisasContextBase *dcbase, CPUState *cpu)
|
|||
* start of the TB.
|
||||
*/
|
||||
assert(s->base.num_insns == 1);
|
||||
gen_helper_exception_pc_alignment(tcg_env, tcg_constant_tl(pc));
|
||||
gen_helper_exception_pc_alignment(tcg_env, tcg_constant_vaddr(pc));
|
||||
s->base.is_jmp = DISAS_NORETURN;
|
||||
s->base.pc_next = QEMU_ALIGN_UP(pc, 4);
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -7791,7 +7791,7 @@ static void arm_tr_translate_insn(DisasContextBase *dcbase, CPUState *cpu)
|
|||
* be possible after an indirect branch, at the start of the TB.
|
||||
*/
|
||||
assert(dc->base.num_insns == 1);
|
||||
gen_helper_exception_pc_alignment(tcg_env, tcg_constant_tl(pc));
|
||||
gen_helper_exception_pc_alignment(tcg_env, tcg_constant_vaddr(pc));
|
||||
dc->base.is_jmp = DISAS_NORETURN;
|
||||
dc->base.pc_next = QEMU_ALIGN_UP(pc, 4);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue