From 004d2abe3f2f856bd6f70fa3d8933d5f6d620142 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sun, 1 May 2022 17:57:22 -0700 Subject: semihosting: Remove qemu_semihosting_console_outc This function has been replaced by *_write. Reviewed-by: Luc Michel Signed-off-by: Richard Henderson --- linux-user/semihost.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'linux-user') diff --git a/linux-user/semihost.c b/linux-user/semihost.c index 871edf993a..f8bc8889f3 100644 --- a/linux-user/semihost.c +++ b/linux-user/semihost.c @@ -33,22 +33,6 @@ int qemu_semihosting_console_outs(CPUArchState *env, target_ulong addr) return len; } -void qemu_semihosting_console_outc(CPUArchState *env, target_ulong addr) -{ - char c; - - if (get_user_u8(c, addr)) { - qemu_log_mask(LOG_GUEST_ERROR, - "%s: passed inaccessible address " TARGET_FMT_lx, - __func__, addr); - } else { - if (write(STDERR_FILENO, &c, 1) != 1) { - qemu_log_mask(LOG_UNIMP, "%s: unexpected write to stdout failure", - __func__); - } - } -} - /* * For linux-user we can safely block. However as we want to return as * soon as a character is read we need to tweak the termio to disable -- cgit v1.2.3-55-g7522