Просмотр исходного кода

arm: fixed a bug where ARM_Interpreter::ExecuteInstructions was actually executing one more instruction than expected

bunnei 12 лет назад
Родитель
Сommit
6cdad8390c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/core/arm/interpreter/arm_interpreter.cpp

+ 1 - 1
src/core/arm/interpreter/arm_interpreter.cpp

@@ -98,7 +98,7 @@ u64 ARM_Interpreter::GetTicks() const {
  * @param num_instructions Number of instructions to executes
  */
 void ARM_Interpreter::ExecuteInstructions(int num_instructions) {
-    state->NumInstrsToExecute = num_instructions;
+    state->NumInstrsToExecute = num_instructions - 1;
     ARMul_Emulate32(state);
 }