mirror of https://github.com/proxmox/mirror_qemu
target-arm: A64: Trap ERET from EL0 at translation time
Suggested-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Message-id: 1400980132-25949-19-git-send-email-edgar.iglesias@gmail.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>master
parent
7ab6c10d00
commit
14c521d45e
|
@ -1507,6 +1507,10 @@ static void disas_uncond_b_reg(DisasContext *s, uint32_t insn)
|
||||||
tcg_gen_movi_i64(cpu_reg(s, 30), s->pc);
|
tcg_gen_movi_i64(cpu_reg(s, 30), s->pc);
|
||||||
break;
|
break;
|
||||||
case 4: /* ERET */
|
case 4: /* ERET */
|
||||||
|
if (s->current_pl == 0) {
|
||||||
|
unallocated_encoding(s);
|
||||||
|
return;
|
||||||
|
}
|
||||||
gen_helper_exception_return(cpu_env);
|
gen_helper_exception_return(cpu_env);
|
||||||
s->is_jmp = DISAS_JUMP;
|
s->is_jmp = DISAS_JUMP;
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue