summaryrefslogtreecommitdiffstats
path: root/semihosting/console.c
diff options
context:
space:
mode:
authorRichard Henderson2022-05-02 02:21:00 +0200
committerRichard Henderson2022-06-28 01:06:50 +0200
commite4a4aaa51b4c71914a6f30ca504ab78e8f695aee (patch)
treeb36e1de06b9d0165a59f06d284808ef546e725eb /semihosting/console.c
parentsemihosting: Add GuestFDConsole (diff)
downloadqemu-e4a4aaa51b4c71914a6f30ca504ab78e8f695aee.tar.gz
qemu-e4a4aaa51b4c71914a6f30ca504ab78e8f695aee.tar.xz
qemu-e4a4aaa51b4c71914a6f30ca504ab78e8f695aee.zip
semihosting: Create qemu_semihosting_guestfd_init
For arm-compat, initialize console_{in,out}_gf; otherwise, initialize stdio file descriptors. This will go some way to cleaning up arm-compat, and will allow other semihosting to use normal stdio. 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 'semihosting/console.c')
-rw-r--r--semihosting/console.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/semihosting/console.c b/semihosting/console.c
index 540aa0cd4b..955880514e 100644
--- a/semihosting/console.c
+++ b/semihosting/console.c
@@ -190,4 +190,6 @@ void qemu_semihosting_console_init(Chardev *chr)
NULL, NULL, &console,
NULL, true);
}
+
+ qemu_semihosting_guestfd_init();
}