mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-11-01 12:57:52 +00:00
arm_interpreter: fixed load context to currently resume a thread
This commit is contained in:
parent
6a78be5930
commit
481d936d34
1 changed files with 4 additions and 1 deletions
|
@ -115,7 +115,7 @@ void ARM_Interpreter::SaveContext(ThreadContext& ctx) {
|
||||||
ctx.lr = state->Reg[14];
|
ctx.lr = state->Reg[14];
|
||||||
ctx.pc = state->pc;
|
ctx.pc = state->pc;
|
||||||
ctx.cpsr = state->Cpsr;
|
ctx.cpsr = state->Cpsr;
|
||||||
|
|
||||||
ctx.fpscr = state->VFP[1];
|
ctx.fpscr = state->VFP[1];
|
||||||
ctx.fpexc = state->VFP[2];
|
ctx.fpexc = state->VFP[2];
|
||||||
}
|
}
|
||||||
|
@ -136,4 +136,7 @@ void ARM_Interpreter::LoadContext(const ThreadContext& ctx) {
|
||||||
|
|
||||||
state->VFP[1] = ctx.fpscr;
|
state->VFP[1] = ctx.fpscr;
|
||||||
state->VFP[2] = ctx.fpexc;
|
state->VFP[2] = ctx.fpexc;
|
||||||
|
|
||||||
|
state->Reg[15] = ctx.pc;
|
||||||
|
state->NextInstr = RESUME;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue