diff options
| author | Richard Henderson | 2021-04-26 04:53:13 +0200 |
|---|---|---|
| committer | Laurent Vivier | 2021-05-15 21:43:23 +0200 |
| commit | ddc3e74d9c5ac76562ce8abe9e5908c4ff7cb8f0 (patch) | |
| tree | 1863b89cf1a489e5d35f8674a3077d75d90fc60c /linux-user/nios2 | |
| parent | linux-user: Pass CPUArchState to do_sigaltstack (diff) | |
| download | qemu-ddc3e74d9c5ac76562ce8abe9e5908c4ff7cb8f0.tar.gz qemu-ddc3e74d9c5ac76562ce8abe9e5908c4ff7cb8f0.tar.xz qemu-ddc3e74d9c5ac76562ce8abe9e5908c4ff7cb8f0.zip | |
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/nios2')
| -rw-r--r-- | linux-user/nios2/signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/nios2/signal.c b/linux-user/nios2/signal.c index 751ea88811..cc3872f11d 100644 --- a/linux-user/nios2/signal.c +++ b/linux-user/nios2/signal.c @@ -128,7 +128,7 @@ static int rt_restore_ucontext(CPUNios2State *env, struct target_ucontext *uc, __get_user(env->regs[R_RA], &gregs[23]); __get_user(env->regs[R_SP], &gregs[28]); - target_restore_altstack(&uc->tuc_stack, get_sp_from_cpustate(env)); + target_restore_altstack(&uc->tuc_stack, env); *pr2 = env->regs[2]; return 0; |
