mirror of https://github.com/xemu-project/xemu.git
target/arm: Enforce alignment for RFE
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20210419202257.161730-19-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
2e1f39e29b
commit
c0c7f66087
|
@ -8357,10 +8357,10 @@ static bool trans_RFE(DisasContext *s, arg_RFE *a)
|
|||
|
||||
/* Load PC into tmp and CPSR into tmp2. */
|
||||
t1 = tcg_temp_new_i32();
|
||||
gen_aa32_ld32u(s, t1, addr, get_mem_index(s));
|
||||
gen_aa32_ld_i32(s, t1, addr, get_mem_index(s), MO_UL | MO_ALIGN);
|
||||
tcg_gen_addi_i32(addr, addr, 4);
|
||||
t2 = tcg_temp_new_i32();
|
||||
gen_aa32_ld32u(s, t2, addr, get_mem_index(s));
|
||||
gen_aa32_ld_i32(s, t2, addr, get_mem_index(s), MO_UL | MO_ALIGN);
|
||||
|
||||
if (a->w) {
|
||||
/* Base writeback. */
|
||||
|
|
Loading…
Reference in New Issue