target/mips: Use an exception for semihosting
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 2 May 2022 07:11:25 +0000 (00:11 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 28 Jun 2022 04:43:42 +0000 (10:13 +0530)
commit8ec7e3c53d48c61e31dd251b84a2b8190a14542d
treeec68ebf0e3cc334babb1d5c6b3d23efdf520108e
parenta638af09b6c6b1259803a377a53ef242c5af6af5
target/mips: Use an exception for semihosting

Within do_interrupt, we hold the iothread lock, which
is required for Chardev access for the console, and for
the round trip for use_gdb_syscalls().

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/mips/cpu.h
target/mips/tcg/exception.c
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/mips-semi.c
target/mips/tcg/sysemu/tlb_helper.c
target/mips/tcg/sysemu_helper.h.inc
target/mips/tcg/tcg-internal.h
target/mips/tcg/translate.c