target/mips: Advance pc after semihosting exception
Delay generating the exception until after we know the insn length, and record that length in env->error_code. Fixes: 8ec7e3c5 ("target/mips: Use an exception for semihosting") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1126 Reviewed-by:Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by:
Richard Henderson <richard.henderson@linaro.org>
Showing
- target/mips/tcg/micromips_translate.c.inc 3 additions, 3 deletionstarget/mips/tcg/micromips_translate.c.inc
- target/mips/tcg/mips16e_translate.c.inc 1 addition, 1 deletiontarget/mips/tcg/mips16e_translate.c.inc
- target/mips/tcg/nanomips_translate.c.inc 2 additions, 2 deletionstarget/mips/tcg/nanomips_translate.c.inc
- target/mips/tcg/sysemu/tlb_helper.c 1 addition, 0 deletionstarget/mips/tcg/sysemu/tlb_helper.c
- target/mips/tcg/translate.c 5 additions, 5 deletionstarget/mips/tcg/translate.c
- target/mips/tcg/translate.h 4 additions, 0 deletionstarget/mips/tcg/translate.h
Loading
Please register or sign in to comment