target/mips: Advance pc after semihosting exception
commitd44971e725c02e0656d2f53d4fb564f92e06aef7
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 30 Jul 2022 02:17:02 +0000 (29 19:17 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 2 Aug 2022 19:34:00 +0000 (2 12:34 -0700)
treebd997d6fd75f68109c166243284c14ad074e2034
parent430a388ef4a6e02e762a9c5f86c539f886a6a61a
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: 8ec7e3c53d4 ("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>
target/mips/tcg/micromips_translate.c.inc
target/mips/tcg/mips16e_translate.c.inc
target/mips/tcg/nanomips_translate.c.inc
target/mips/tcg/sysemu/tlb_helper.c
target/mips/tcg/translate.c
target/mips/tcg/translate.h