diff options
| author | 2014-06-05 00:25:32 -0400 | |
|---|---|---|
| committer | 2014-06-05 00:25:32 -0400 | |
| commit | 6cdad8390c20aed5c526916816388831d71213a2 (patch) | |
| tree | 99db88c8052631a048a9593ecead774b4357c90d /src/core | |
| parent | kernel: changed current default thread priority back to 0x30 - I think this i... (diff) | |
| download | yuzu-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.cpp | 2 |
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 | */ |
| 100 | void ARM_Interpreter::ExecuteInstructions(int num_instructions) { | 100 | void 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 | ||