mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
target/arm: Add new_pc argument to helper_exception_return
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20190108223129.5570-12-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
ce02fd99e6
commit
d9f482a027
3 changed files with 12 additions and 7 deletions
|
@ -1981,6 +1981,7 @@ static void disas_exc(DisasContext *s, uint32_t insn)
|
|||
static void disas_uncond_b_reg(DisasContext *s, uint32_t insn)
|
||||
{
|
||||
unsigned int opc, op2, op3, rn, op4;
|
||||
TCGv_i64 dst;
|
||||
|
||||
opc = extract32(insn, 21, 4);
|
||||
op2 = extract32(insn, 16, 5);
|
||||
|
@ -2011,7 +2012,11 @@ static void disas_uncond_b_reg(DisasContext *s, uint32_t insn)
|
|||
if (tb_cflags(s->base.tb) & CF_USE_ICOUNT) {
|
||||
gen_io_start();
|
||||
}
|
||||
gen_helper_exception_return(cpu_env);
|
||||
dst = tcg_temp_new_i64();
|
||||
tcg_gen_ld_i64(dst, cpu_env,
|
||||
offsetof(CPUARMState, elr_el[s->current_el]));
|
||||
gen_helper_exception_return(cpu_env, dst);
|
||||
tcg_temp_free_i64(dst);
|
||||
if (tb_cflags(s->base.tb) & CF_USE_ICOUNT) {
|
||||
gen_io_end();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue