summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar bunnei2014-06-05 00:25:32 -0400
committerGravatar bunnei2014-06-05 00:25:32 -0400
commit6cdad8390c20aed5c526916816388831d71213a2 (patch)
tree99db88c8052631a048a9593ecead774b4357c90d /src/core
parentkernel: changed current default thread priority back to 0x30 - I think this i... (diff)
downloadyuzu-6cdad8390c20aed5c526916816388831d71213a2.tar.gz
yuzu-6cdad8390c20aed5c526916816388831d71213a2.tar.xz
yuzu-6cdad8390c20aed5c526916816388831d71213a2.zip
arm: fixed a bug where ARM_Interpreter::ExecuteInstructions was actually executing one more instruction than expected
Diffstat (limited to 'src/core')
-rw-r--r--src/core/arm/interpreter/arm_interpreter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/arm/interpreter/arm_interpreter.cpp b/src/core/arm/interpreter/arm_interpreter.cpp
index 8030ec56a..0e893f182 100644
--- a/src/core/arm/interpreter/arm_interpreter.cpp
+++ b/src/core/arm/interpreter/arm_interpreter.cpp
@@ -98,7 +98,7 @@ u64 ARM_Interpreter::GetTicks() const {
98 * @param num_instructions Number of instructions to executes 98 * @param num_instructions Number of instructions to executes
99 */ 99 */
100void ARM_Interpreter::ExecuteInstructions(int num_instructions) { 100void ARM_Interpreter::ExecuteInstructions(int num_instructions) {
101 state->NumInstrsToExecute = num_instructions; 101 state->NumInstrsToExecute = num_instructions - 1;
102 ARMul_Emulate32(state); 102 ARMul_Emulate32(state);
103} 103}
104 104