mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 23:25:48 +00:00
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>
This commit is contained in:
committed by
Laurent Vivier
parent
6b20875503
commit
ddc3e74d9c
@ -685,7 +685,7 @@ static int do_sigframe_return_v2(CPUARMState *env,
|
||||
}
|
||||
}
|
||||
|
||||
target_restore_altstack(&uc->tuc_stack, get_sp_from_cpustate(env));
|
||||
target_restore_altstack(&uc->tuc_stack, env);
|
||||
|
||||
#if 0
|
||||
/* Send SIGTRAP if we're single-stepping */
|
||||
@ -769,7 +769,7 @@ static long do_rt_sigreturn_v1(CPUARMState *env)
|
||||
goto badframe;
|
||||
}
|
||||
|
||||
target_restore_altstack(&frame->uc.tuc_stack, get_sp_from_cpustate(env));
|
||||
target_restore_altstack(&frame->uc.tuc_stack, env);
|
||||
|
||||
#if 0
|
||||
/* Send SIGTRAP if we're single-stepping */
|
||||
|
Reference in New Issue
Block a user