aboutsummaryrefslogtreecommitdiff
path: root/linux-user/signal-common.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2021-04-25 19:53:13 -0700
committerLaurent Vivier <laurent@vivier.eu>2021-05-15 21:43:23 +0200
commitddc3e74d9c5ac76562ce8abe9e5908c4ff7cb8f0 (patch)
tree1863b89cf1a489e5d35f8674a3077d75d90fc60c /linux-user/signal-common.h
parent6b2087550345e87320f777c4db8254323d0d4123 (diff)
downloadqemu-ddc3e74d9c5ac76562ce8abe9e5908c4ff7cb8f0.zip
qemu-ddc3e74d9c5ac76562ce8abe9e5908c4ff7cb8f0.tar.gz
qemu-ddc3e74d9c5ac76562ce8abe9e5908c4ff7cb8f0.tar.bz2
linux-user: Pass CPUArchState to target_restore_altstack
In most cases we were already passing get_sp_from_cpustate directly to the function. In other cases, we were passing a local variable which already contained the same value. In the rest of the cases, we were passing the stack pointer out of env directly. Reviewed by: Warner Losh <imp@bsdimp.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210426025334.1168495-5-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/signal-common.h')
-rw-r--r--linux-user/signal-common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/signal-common.h b/linux-user/signal-common.h
index 34b963a..ea86328 100644
--- a/linux-user/signal-common.h
+++ b/linux-user/signal-common.h
@@ -24,7 +24,7 @@ int on_sig_stack(unsigned long sp);
int sas_ss_flags(unsigned long sp);
abi_ulong target_sigsp(abi_ulong sp, struct target_sigaction *ka);
void target_save_altstack(target_stack_t *uss, CPUArchState *env);
-abi_long target_restore_altstack(target_stack_t *uss, abi_ulong sp);
+abi_long target_restore_altstack(target_stack_t *uss, CPUArchState *env);
static inline void target_sigemptyset(target_sigset_t *set)
{