semihosting: Create qemu_semihosting_guestfd_init
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 2 May 2022 00:21:00 +0000 (17:21 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 27 Jun 2022 23:06:50 +0000 (04:36 +0530)
commite4a4aaa51b4c71914a6f30ca504ab78e8f695aee
treeb36e1de06b9d0165a59f06d284808ef546e725eb
parent008e147572863a7a54c54403e626aaed3e50574f
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>
include/semihosting/guestfd.h
include/semihosting/semihost.h
linux-user/main.c
semihosting/console.c
semihosting/guestfd.c