From 90d8e0b09c4a0085bb12e9659eb33ea3773d7ccc Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Fri, 29 Apr 2022 13:57:19 -0700 Subject: semihosting: Split out semihost_sys_system Split out the non-ARM specific portions of SYS_SYSTEM to a reusable function. Reviewed-by: Luc Michel Signed-off-by: Richard Henderson --- include/semihosting/syscalls.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/semihosting') 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 */ -- cgit v1.1