aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2022-04-29 09:05:36 -0700
committerRichard Henderson <richard.henderson@linaro.org>2022-06-28 04:35:52 +0530
commita6300ed6b7ecd19eb5ae0fd8a3eb876681cb8e6e (patch)
tree6be1931b6ed81ecf06d1409f986e9313960019c2 /include
parenta2212474301bc354bea46e3bdc6c21e33e0b5b2b (diff)
downloadqemu-a6300ed6b7ecd19eb5ae0fd8a3eb876681cb8e6e.zip
qemu-a6300ed6b7ecd19eb5ae0fd8a3eb876681cb8e6e.tar.gz
qemu-a6300ed6b7ecd19eb5ae0fd8a3eb876681cb8e6e.tar.bz2
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')
-rw-r--r--include/semihosting/syscalls.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/semihosting/syscalls.h b/include/semihosting/syscalls.h
index c60ebaf..1ae5ba6 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 */