From 2d010c2719da360d44a5c44d279d49eca21c5de8 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sun, 1 May 2022 18:04:27 -0700 Subject: semihosting: Remove qemu_semihosting_console_outs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This function has been replaced by *_write. Reviewed-by: Luc Michel Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- linux-user/semihost.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'linux-user') diff --git a/linux-user/semihost.c b/linux-user/semihost.c index f8bc888..cee62a3 100644 --- a/linux-user/semihost.c +++ b/linux-user/semihost.c @@ -16,23 +16,6 @@ #include "user-internals.h" #include -int qemu_semihosting_console_outs(CPUArchState *env, target_ulong addr) -{ - int len = target_strlen(addr); - void *s; - if (len < 0){ - qemu_log_mask(LOG_GUEST_ERROR, - "%s: passed inaccessible address " TARGET_FMT_lx, - __func__, addr); - return 0; - } - s = lock_user(VERIFY_READ, addr, (long)(len + 1), 1); - g_assert(s); /* target_strlen has already verified this will work */ - len = write(STDERR_FILENO, s, len); - unlock_user(s, addr, 0); - return len; -} - /* * 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.1