From cd66f20f614bb492e4e5be11e4b65d58b4a046ca Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sun, 1 May 2022 12:42:37 -0700 Subject: semihosting: Create qemu_semihosting_console_write Will replace qemu_semihosting_console_{outs,outc}, but we need more plumbing first. Reviewed-by: Luc Michel Signed-off-by: Richard Henderson --- linux-user/semihost.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'linux-user') diff --git a/linux-user/semihost.c b/linux-user/semihost.c index 2029fb674c..871edf993a 100644 --- a/linux-user/semihost.c +++ b/linux-user/semihost.c @@ -76,3 +76,8 @@ int qemu_semihosting_console_read(CPUState *cs, void *buf, int len) return ret; } + +int qemu_semihosting_console_write(void *buf, int len) +{ + return fwrite(buf, 1, len, stderr); +} -- cgit v1.2.3-55-g7522