summaryrefslogtreecommitdiffstats
path: root/linux-user/syscall.c
diff options
context:
space:
mode:
authorRichard Henderson2021-04-26 04:53:12 +0200
committerLaurent Vivier2021-05-15 21:43:23 +0200
commit6b2087550345e87320f777c4db8254323d0d4123 (patch)
treed729b4f4c0dbe3d25a0e96680a473c6600d37cea /linux-user/syscall.c
parentlinux-user: Use target_restore_altstack in all sigreturn (diff)
downloadqemu-6b2087550345e87320f777c4db8254323d0d4123.tar.gz
qemu-6b2087550345e87320f777c4db8254323d0d4123.tar.xz
qemu-6b2087550345e87320f777c4db8254323d0d4123.zip
linux-user: Pass CPUArchState to do_sigaltstack
Now that we have exactly one call, it's easy to pass in env instead of passing in the sp value. Use target_save_altstack, which required env. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210426025334.1168495-4-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r--linux-user/syscall.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 95d79ddc43..4d52b2cfe3 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -11195,8 +11195,7 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1,
return ret;
}
case TARGET_NR_sigaltstack:
- return do_sigaltstack(arg1, arg2,
- get_sp_from_cpustate((CPUArchState *)cpu_env));
+ return do_sigaltstack(arg1, arg2, cpu_env);
#ifdef CONFIG_SENDFILE
#ifdef TARGET_NR_sendfile