diff options
| author | 2014-06-01 21:40:10 -0400 | |
|---|---|---|
| committer | 2014-06-01 21:40:10 -0400 | |
| commit | e8a17ee6fdf7ab653be32f52afb10f0dafdf61c1 (patch) | |
| tree | c8396f428819e31dbf2ae568538140e44d2bc27c /src/core/arm/interpreter | |
| parent | svc: cleaned up function_wrappers, updated various SVCs to make use of pointe... (diff) | |
| download | yuzu-e8a17ee6fdf7ab653be32f52afb10f0dafdf61c1.tar.gz yuzu-e8a17ee6fdf7ab653be32f52afb10f0dafdf61c1.tar.xz yuzu-e8a17ee6fdf7ab653be32f52afb10f0dafdf61c1.zip | |
arm: added option to prepare CPU core (while mid-instruction) for thread reschedule
Diffstat (limited to 'src/core/arm/interpreter')
| -rw-r--r-- | src/core/arm/interpreter/arm_interpreter.cpp | 5 | ||||
| -rw-r--r-- | src/core/arm/interpreter/arm_interpreter.h | 3 |
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) | ||
| 145 | void 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 | |||
| 75 | protected: | 78 | protected: |
| 76 | 79 | ||
| 77 | /** | 80 | /** |