diff --git a/qemu/target/arm/translate.c b/qemu/target/arm/translate.c index 5a27b244..a2c9456d 100644 --- a/qemu/target/arm/translate.c +++ b/qemu/target/arm/translate.c @@ -10800,7 +10800,7 @@ static void disas_arm_insn(DisasContext *s, unsigned int insn) } else if (i == rn) { loaded_var = tmp; loaded_base = 1; - } else if (rn == 15 && exc_return) { + } else if (i == 15 && exc_return) { store_pc_exc_ret(s, tmp); } else { store_reg_from_load(s, i, tmp);