diff options
author | Richard Henderson | 2022-04-30 00:45:25 +0200 |
---|---|---|
committer | Richard Henderson | 2022-06-28 01:05:52 +0200 |
commit | dffeb7756674af4577e77b4510f1cea5ac585ca0 (patch) | |
tree | 2d041abea3b2dbfbe1b1e19e4ba0b7fbea40b807 /include/semihosting | |
parent | semihosting: Split out semihost_sys_system (diff) | |
download | qemu-dffeb7756674af4577e77b4510f1cea5ac585ca0.tar.gz qemu-dffeb7756674af4577e77b4510f1cea5ac585ca0.tar.xz qemu-dffeb7756674af4577e77b4510f1cea5ac585ca0.zip |
semihosting: Create semihost_sys_{stat,fstat}
These syscalls will be used by m68k and nios2 semihosting.
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 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/semihosting/syscalls.h b/include/semihosting/syscalls.h index c9f9e66be1..ecc97751a9 100644 --- a/include/semihosting/syscalls.h +++ b/include/semihosting/syscalls.h @@ -49,6 +49,13 @@ void semihost_sys_flen(CPUState *cs, gdb_syscall_complete_cb fstat_cb, gdb_syscall_complete_cb flen_cb, int fd, target_ulong fstat_addr); +void semihost_sys_fstat(CPUState *cs, gdb_syscall_complete_cb complete, + int fd, target_ulong addr); + +void semihost_sys_stat(CPUState *cs, gdb_syscall_complete_cb complete, + target_ulong fname, target_ulong fname_len, + target_ulong addr); + void semihost_sys_remove(CPUState *cs, gdb_syscall_complete_cb complete, target_ulong fname, target_ulong fname_len); |