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/tcg/tcg-internal.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/tcg/tcg-internal.h')
-rw-r--r-- | target/mips/tcg/tcg-internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/mips/tcg/tcg-internal.h b/target/mips/tcg/tcg-internal.h index 993720b00c..1d27fa2ff9 100644 --- a/target/mips/tcg/tcg-internal.h +++ b/target/mips/tcg/tcg-internal.h @@ -62,6 +62,8 @@ bool mips_cpu_tlb_fill(CPUState *cs, vaddr address, int size, MMUAccessType access_type, int mmu_idx, bool probe, uintptr_t retaddr); +void mips_semihosting(CPUMIPSState *env); + #endif /* !CONFIG_USER_ONLY */ #endif |