summary refs log tree commit diff stats
path: root/linux-user/semihost.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2022-05-01 18:04:27 -0700
committerRichard Henderson <richard.henderson@linaro.org>2022-06-28 04:41:20 +0530
commit2d010c2719da360d44a5c44d279d49eca21c5de8 (patch)
treed0d4ad63a529c24917ada5f116fe5631ed96717b /linux-user/semihost.c
parent7281550cfb30738f0d4bc5113e92780b8a38ec78 (diff)
downloadfocaccia-qemu-2d010c2719da360d44a5c44d279d49eca21c5de8.tar.gz
focaccia-qemu-2d010c2719da360d44a5c44d279d49eca21c5de8.zip
semihosting: Remove qemu_semihosting_console_outs
This function has been replaced by *_write.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user/semihost.c')
-rw-r--r--linux-user/semihost.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/linux-user/semihost.c b/linux-user/semihost.c
index f8bc8889f3..cee62a365c 100644
--- a/linux-user/semihost.c
+++ b/linux-user/semihost.c
@@ -16,23 +16,6 @@
 #include "user-internals.h"
 #include <termios.h>
 
-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