summaryrefslogtreecommitdiffstats
path: root/include/semihosting/syscalls.h
diff options
context:
space:
mode:
authorRichard Henderson2022-04-29 19:11:31 +0200
committerRichard Henderson2022-06-28 01:05:52 +0200
commit25a95da0beeb854570f974028b77cd35826433b7 (patch)
tree8b12fa9cce66bea6f18bdf8c64c35720c4fd54fd /include/semihosting/syscalls.h
parentsemihosting: Split out semihost_sys_remove (diff)
downloadqemu-25a95da0beeb854570f974028b77cd35826433b7.tar.gz
qemu-25a95da0beeb854570f974028b77cd35826433b7.tar.xz
qemu-25a95da0beeb854570f974028b77cd35826433b7.zip
semihosting: Split out semihost_sys_rename
Split out the non-ARM specific portions of SYS_RENAME to a reusable function. Reviewed-by: Luc Michel <lmichel@kalray.eu> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/semihosting/syscalls.h')
-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 748a4b5e47..21430aa0ef 100644
--- a/include/semihosting/syscalls.h
+++ b/include/semihosting/syscalls.h
@@ -52,4 +52,8 @@ void semihost_sys_flen(CPUState *cs, gdb_syscall_complete_cb fstat_cb,
void semihost_sys_remove(CPUState *cs, gdb_syscall_complete_cb complete,
target_ulong fname, target_ulong fname_len);
+void semihost_sys_rename(CPUState *cs, gdb_syscall_complete_cb complete,
+ target_ulong oname, target_ulong oname_len,
+ target_ulong nname, target_ulong nname_len);
+
#endif /* SEMIHOSTING_SYSCALLS_H */