mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
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>
This commit is contained in:
parent
a638af09b6
commit
8ec7e3c53d
10 changed files with 19 additions and 21 deletions
|
@ -952,7 +952,7 @@ static int decode_ase_mips16e(CPUMIPSState *env, DisasContext *ctx)
|
|||
break;
|
||||
case RR_SDBBP:
|
||||
if (is_uhi(extract32(ctx->opcode, 5, 6))) {
|
||||
gen_helper_do_semihosting(cpu_env);
|
||||
generate_exception_end(ctx, EXCP_SEMIHOST);
|
||||
} else {
|
||||
/*
|
||||
* XXX: not clear which exception should be raised
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue