qemu-e2k/semihosting
Richard Henderson 9a89470449 semihosting: Split out semihost_sys_lseek
Split out the non-ARM specific portions of SYS_SEEK to a
reusable function.  This handles all GuestFD.  Isolate the
curious ARM-specific return value processing to a new
callback, common_semi_seek_cb.

Expand the internal type of the offset to int64_t, and
provide the whence argument, which will be required by
m68k and nios2 semihosting.

Note that gdb_do_syscall %x reads target_ulong, not int.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2022-06-28 04:35:52 +05:30
..
arm-compat-semi.c semihosting: Split out semihost_sys_lseek 2022-06-28 04:35:52 +05:30
config.c
console.c
guestfd.c semihosting: Split out semihost_sys_close 2022-06-28 04:35:52 +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_lseek 2022-06-28 04:35:52 +05:30
uaccess.c semihosting: Simplify softmmu_lock_user_string 2022-06-28 04:35:06 +05:30