aboutsummaryrefslogtreecommitdiff
path: root/target/mips/tcg/tcg-internal.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2022-05-02 00:11:25 -0700
committerRichard Henderson <richard.henderson@linaro.org>2022-06-28 10:13:42 +0530
commit8ec7e3c53d48c61e31dd251b84a2b8190a14542d (patch)
treeec68ebf0e3cc334babb1d5c6b3d23efdf520108e /target/mips/tcg/tcg-internal.h
parenta638af09b6c6b1259803a377a53ef242c5af6af5 (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.h2
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