mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
semihosting: Remove qemu_semihosting_console_outc
This function has been replaced by *_write. Reviewed-by: Luc Michel <lmichel@kalray.eu> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
5d77289dac
commit
004d2abe3f
3 changed files with 0 additions and 47 deletions
|
@ -96,24 +96,6 @@ int qemu_semihosting_console_outs(CPUArchState *env, target_ulong addr)
|
|||
return out;
|
||||
}
|
||||
|
||||
void qemu_semihosting_console_outc(CPUArchState *env, target_ulong addr)
|
||||
{
|
||||
CPUState *cpu = env_cpu(env);
|
||||
uint8_t c;
|
||||
|
||||
if (cpu_memory_rw_debug(cpu, addr, &c, 1, 0) == 0) {
|
||||
if (use_gdb_syscalls()) {
|
||||
gdb_do_syscall(semihosting_cb, "write,2,%x,%x", addr, 1);
|
||||
} else {
|
||||
qemu_semihosting_log_out((const char *) &c, 1);
|
||||
}
|
||||
} else {
|
||||
qemu_log_mask(LOG_GUEST_ERROR,
|
||||
"%s: passed inaccessible address " TARGET_FMT_lx,
|
||||
__func__, addr);
|
||||
}
|
||||
}
|
||||
|
||||
#define FIFO_SIZE 1024
|
||||
|
||||
static int console_can_read(void *opaque)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue