aboutsummaryrefslogtreecommitdiff
path: root/include/semihosting
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2022-04-29 13:57:19 -0700
committerRichard Henderson <richard.henderson@linaro.org>2022-06-28 04:35:52 +0530
commit90d8e0b09c4a0085bb12e9659eb33ea3773d7ccc (patch)
tree31fe8963c4d28feb021df6aef435e84ede09d0fe /include/semihosting
parent25a95da0beeb854570f974028b77cd35826433b7 (diff)
downloadqemu-90d8e0b09c4a0085bb12e9659eb33ea3773d7ccc.zip
qemu-90d8e0b09c4a0085bb12e9659eb33ea3773d7ccc.tar.gz
qemu-90d8e0b09c4a0085bb12e9659eb33ea3773d7ccc.tar.bz2
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')
-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 21430aa..c9f9e66 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 */