summary refs log tree commit diff stats
path: root/include/semihosting/syscalls.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2022-04-29 10:11:31 -0700
committerRichard Henderson <richard.henderson@linaro.org>2022-06-28 04:35:52 +0530
commit25a95da0beeb854570f974028b77cd35826433b7 (patch)
tree8b12fa9cce66bea6f18bdf8c64c35720c4fd54fd /include/semihosting/syscalls.h
parentd49e79b8e276b56817509114a86b036358246af8 (diff)
downloadfocaccia-qemu-25a95da0beeb854570f974028b77cd35826433b7.tar.gz
focaccia-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 */