mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 23:25:48 +00:00
cpu: Move jmp_env field from CPU_COMMON to CPUState
Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
@ -52,6 +52,7 @@ static void exception_action(CPUArchState *env1)
|
||||
*/
|
||||
void cpu_resume_from_signal(CPUArchState *env1, void *puc)
|
||||
{
|
||||
CPUState *cpu = ENV_GET_CPU(env1);
|
||||
#ifdef __linux__
|
||||
struct ucontext *uc = puc;
|
||||
#elif defined(__OpenBSD__)
|
||||
@ -71,7 +72,7 @@ void cpu_resume_from_signal(CPUArchState *env1, void *puc)
|
||||
#endif
|
||||
}
|
||||
env1->exception_index = -1;
|
||||
siglongjmp(env1->jmp_env, 1);
|
||||
siglongjmp(cpu->jmp_env, 1);
|
||||
}
|
||||
|
||||
/* 'pc' is the host PC at which the exception was raised. 'address' is
|
||||
|
Reference in New Issue
Block a user