summaryrefslogtreecommitdiffstats
path: root/include/semihosting/syscalls.h
diff options
context:
space:
mode:
authorRichard Henderson2022-04-29 22:57:19 +0200
committerRichard Henderson2022-06-28 01:05:52 +0200
commit90d8e0b09c4a0085bb12e9659eb33ea3773d7ccc (patch)
tree31fe8963c4d28feb021df6aef435e84ede09d0fe /include/semihosting/syscalls.h
parentsemihosting: Split out semihost_sys_rename (diff)
downloadqemu-90d8e0b09c4a0085bb12e9659eb33ea3773d7ccc.tar.gz
qemu-90d8e0b09c4a0085bb12e9659eb33ea3773d7ccc.tar.xz
qemu-90d8e0b09c4a0085bb12e9659eb33ea3773d7ccc.zip
semihosting: Split out semihost_sys_system
Split out the non-ARM specific portions of SYS_SYSTEM 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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/semihosting/syscalls.h b/include/semihosting/syscalls.h
index 21430aa0ef..c9f9e66be1 100644
--- a/include/semihosting/syscalls.h
+++ b/include/semihosting/syscalls.h
@@ -56,4 +56,7 @@ 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);
+void semihost_sys_system(CPUState *cs, gdb_syscall_complete_cb complete,
+ target_ulong cmd, target_ulong cmd_len);
+
#endif /* SEMIHOSTING_SYSCALLS_H */