diff options
author | Richard Henderson | 2022-04-29 18:05:36 +0200 |
---|---|---|
committer | Richard Henderson | 2022-06-28 01:05:52 +0200 |
commit | a6300ed6b7ecd19eb5ae0fd8a3eb876681cb8e6e (patch) | |
tree | 6be1931b6ed81ecf06d1409f986e9313960019c2 /include/semihosting | |
parent | semihosting: Split out semihost_sys_isatty (diff) | |
download | qemu-a6300ed6b7ecd19eb5ae0fd8a3eb876681cb8e6e.tar.gz qemu-a6300ed6b7ecd19eb5ae0fd8a3eb876681cb8e6e.tar.xz qemu-a6300ed6b7ecd19eb5ae0fd8a3eb876681cb8e6e.zip |
semihosting: Split out semihost_sys_flen
The ARM-specific SYS_FLEN isn't really something that can be
reused by other semihosting apis, but there are parts that can
reused for the implementation of semihost_sys_fstat.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/semihosting')
-rw-r--r-- | include/semihosting/syscalls.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/semihosting/syscalls.h b/include/semihosting/syscalls.h index c60ebafb85..1ae5ba6716 100644 --- a/include/semihosting/syscalls.h +++ b/include/semihosting/syscalls.h @@ -45,4 +45,8 @@ void semihost_sys_lseek(CPUState *cs, gdb_syscall_complete_cb complete, void semihost_sys_isatty(CPUState *cs, gdb_syscall_complete_cb complete, int fd); +void semihost_sys_flen(CPUState *cs, gdb_syscall_complete_cb fstat_cb, + gdb_syscall_complete_cb flen_cb, + int fd, target_ulong fstat_addr); + #endif /* SEMIHOSTING_SYSCALLS_H */ |