summaryrefslogtreecommitdiffstats
path: root/linux-user
diff options
context:
space:
mode:
authorRichard Henderson2022-05-02 03:04:27 +0200
committerRichard Henderson2022-06-28 01:11:20 +0200
commit2d010c2719da360d44a5c44d279d49eca21c5de8 (patch)
treed0d4ad63a529c24917ada5f116fe5631ed96717b /linux-user
parentsemihosting: Use console_out_gf for SYS_WRITE0 (diff)
downloadqemu-2d010c2719da360d44a5c44d279d49eca21c5de8.tar.gz
qemu-2d010c2719da360d44a5c44d279d49eca21c5de8.tar.xz
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')
-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