summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/arm/interpreter/arm_interpreter.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/arm/interpreter/arm_interpreter.cpp b/src/core/arm/interpreter/arm_interpreter.cpp
index a9ec94820..17f787b86 100644
--- a/src/core/arm/interpreter/arm_interpreter.cpp
+++ b/src/core/arm/interpreter/arm_interpreter.cpp
@@ -115,7 +115,7 @@ void ARM_Interpreter::SaveContext(ThreadContext& ctx) {
115 ctx.lr = state->Reg[14]; 115 ctx.lr = state->Reg[14];
116 ctx.pc = state->pc; 116 ctx.pc = state->pc;
117 ctx.cpsr = state->Cpsr; 117 ctx.cpsr = state->Cpsr;
118 118
119 ctx.fpscr = state->VFP[1]; 119 ctx.fpscr = state->VFP[1];
120 ctx.fpexc = state->VFP[2]; 120 ctx.fpexc = state->VFP[2];
121} 121}
@@ -136,4 +136,7 @@ void ARM_Interpreter::LoadContext(const ThreadContext& ctx) {
136 136
137 state->VFP[1] = ctx.fpscr; 137 state->VFP[1] = ctx.fpscr;
138 state->VFP[2] = ctx.fpexc; 138 state->VFP[2] = ctx.fpexc;
139
140 state->Reg[15] = ctx.pc;
141 state->NextInstr = RESUME;
139} 142}