diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-05-01 12:42:37 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2022-06-28 04:35:52 +0530 |
commit | cd66f20f614bb492e4e5be11e4b65d58b4a046ca (patch) | |
tree | 52b91ede9cb6138a2629ee1d826af4a8ac2b3814 /linux-user | |
parent | fb08790b35174a98301ecbac4d5234d0cbfebea0 (diff) | |
download | qemu-cd66f20f614bb492e4e5be11e4b65d58b4a046ca.zip qemu-cd66f20f614bb492e4e5be11e4b65d58b4a046ca.tar.gz qemu-cd66f20f614bb492e4e5be11e4b65d58b4a046ca.tar.bz2 |
semihosting: Create qemu_semihosting_console_write
Will replace qemu_semihosting_console_{outs,outc},
but we need more plumbing first.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/semihost.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linux-user/semihost.c b/linux-user/semihost.c index 2029fb6..871edf9 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); +} |