qemu/semihosting
Richard Henderson 5b3f39cb04 semihosting: Split out semihost_sys_open
Split out the non-ARM specific portions of SYS_OPEN to a
reusable function.  This handles gdb and host file i/o.

Add helpers to validate the length of the filename string.
Prepare for usage by other semihosting by allowing the
filename length parameter to be 0, and calling strlen.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2022-06-28 04:35:39 +05:30
..
arm-compat-semi.c semihosting: Split out semihost_sys_open 2022-06-28 04:35:39 +05:30
config.c
console.c
guestfd.c semihosting: Split out semihost_sys_open 2022-06-28 04:35:39 +05:30
Kconfig
meson.build semihosting: Split out semihost_sys_open 2022-06-28 04:35:39 +05:30
syscalls.c semihosting: Split out semihost_sys_open 2022-06-28 04:35:39 +05:30
uaccess.c