summaryrefslogtreecommitdiff
path: root/src/core/arm/interpreter
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/arm/interpreter')
-rw-r--r--src/core/arm/interpreter/arm_interpreter.cpp5
-rw-r--r--src/core/arm/interpreter/arm_interpreter.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/src/core/arm/interpreter/arm_interpreter.cpp b/src/core/arm/interpreter/arm_interpreter.cpp
index 17f787b86..2aa100e86 100644
--- a/src/core/arm/interpreter/arm_interpreter.cpp
+++ b/src/core/arm/interpreter/arm_interpreter.cpp
@@ -140,3 +140,8 @@ void ARM_Interpreter::LoadContext(const ThreadContext& ctx) {
140 state->Reg[15] = ctx.pc; 140 state->Reg[15] = ctx.pc;
141 state->NextInstr = RESUME; 141 state->NextInstr = RESUME;
142} 142}
143
144/// Prepare core for thread reschedule (if needed to correctly handle state)
145void ARM_Interpreter::PrepareReschedule() {
146 state->NumInstrsToExecute = 0;
147}
diff --git a/src/core/arm/interpreter/arm_interpreter.h b/src/core/arm/interpreter/arm_interpreter.h
index 6a531e497..1e82883a2 100644
--- a/src/core/arm/interpreter/arm_interpreter.h
+++ b/src/core/arm/interpreter/arm_interpreter.h
@@ -72,6 +72,9 @@ public:
72 */ 72 */
73 void LoadContext(const ThreadContext& ctx); 73 void LoadContext(const ThreadContext& ctx);
74 74
75 /// Prepare core for thread reschedule (if needed to correctly handle state)
76 void PrepareReschedule();
77
75protected: 78protected:
76 79
77 /** 80 /**