summaryrefslogtreecommitdiffstats
path: root/semihosting
diff options
context:
space:
mode:
authorRichard Henderson2022-05-02 02:57:22 +0200
committerRichard Henderson2022-06-28 01:10:26 +0200
commit004d2abe3f2f856bd6f70fa3d8933d5f6d620142 (patch)
tree9a147380c52db3a8336d03abe090dcfe8a62c3eb /semihosting
parentsemihosting: Use console_out_gf for SYS_WRITEC (diff)
downloadqemu-004d2abe3f2f856bd6f70fa3d8933d5f6d620142.tar.gz
qemu-004d2abe3f2f856bd6f70fa3d8933d5f6d620142.tar.xz
qemu-004d2abe3f2f856bd6f70fa3d8933d5f6d620142.zip
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>
Diffstat (limited to 'semihosting')
-rw-r--r--semihosting/console.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/semihosting/console.c b/semihosting/console.c
index 955880514e..fe7ee85137 100644
--- a/semihosting/console.c
+++ b/semihosting/console.c
@@ -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)