semihosting: Split out guestfd.c
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 28 Apr 2022 04:38:02 +0000 (21:38 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 27 Jun 2022 23:05:07 +0000 (04:35 +0530)
commit1c6ff7205bff49870dc3511f237b3ad90da5f5f7
tree0819760edaf7d88f6c43b3a040a861cab40e6cdb
parent3d5e2b4f26e077e9a8fd94659a1ce2dd49c134b7
semihosting: Split out guestfd.c

In arm-compat-semi.c, we have more advanced treatment of
guest file descriptors than we do in other implementations.
Split out GuestFD and related functions to a new file so
that they can be shared.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
configs/targets/aarch64-linux-user.mak
configs/targets/aarch64_be-linux-user.mak
configs/targets/arm-linux-user.mak
configs/targets/armeb-linux-user.mak
configs/targets/riscv32-linux-user.mak
configs/targets/riscv64-linux-user.mak
include/semihosting/guestfd.h [new file with mode: 0644]
semihosting/arm-compat-semi.c
semihosting/guestfd.c [new file with mode: 0644]
semihosting/meson.build