diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-05-02 00:11:25 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2022-06-28 10:13:42 +0530 |
commit | 8ec7e3c53d48c61e31dd251b84a2b8190a14542d (patch) | |
tree | ec68ebf0e3cc334babb1d5c6b3d23efdf520108e /target/mips/cpu.h | |
parent | a638af09b6c6b1259803a377a53ef242c5af6af5 (diff) |
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>
Diffstat (limited to 'target/mips/cpu.h')
-rw-r--r-- | target/mips/cpu.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target/mips/cpu.h b/target/mips/cpu.h index 42efa989e4..0a085643a3 100644 --- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -1252,8 +1252,9 @@ enum { EXCP_MSAFPE, EXCP_TLBXI, EXCP_TLBRI, + EXCP_SEMIHOST, - EXCP_LAST = EXCP_TLBRI, + EXCP_LAST = EXCP_SEMIHOST, }; /* |