OSDN Git Service

target/mips: Avoid qemu_semihosting_log_out for UHI_plog
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 28 Jun 2022 11:16:57 +0000 (16:46 +0530)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 12 Jul 2022 20:32:04 +0000 (22:32 +0200)
commitea4210600db3c5721f90d46d9ad9ece120010041
tree868b87e5227b854b2b11ece9a5a65a02d0369920
parent18639a28bb313195308a97cacb6aa6a418fd73db
target/mips: Avoid qemu_semihosting_log_out for UHI_plog

Use semihost_sys_write and/or qemu_semihosting_console_write
for implementing plog.  When using gdbstub, copy the temp
string below the stack so that gdb has a guest address from
which to perform the log.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220628111701.677216-5-richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
target/mips/tcg/sysemu/mips-semi.c