diff options
author | bunnei <bunneidev@gmail.com> | 2014-11-09 01:26:03 -0500 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-11-11 19:53:19 -0500 |
commit | 34097906684a80f1e131653ebb13659090c5233c (patch) | |
tree | 762b0ba25ee315d43d3b1463b7cde2b0d5d25dde /src/core/arm/dyncom/arm_dyncom.cpp | |
parent | ac8b38e54d2a22754b146944dfa27c240a2b6921 (diff) |
ARM: Fixed several dyncom bugs.
- Fixed NZCVT flags to properly save state when function returns.
- Fixed counter to keep track of the actual number of instructions executed.
- Fixed single-step mode to only execute one instruction at a time.
- DefaultIni: Removed comment that no longer applied to dyncom.
Diffstat (limited to 'src/core/arm/dyncom/arm_dyncom.cpp')
-rw-r--r-- | src/core/arm/dyncom/arm_dyncom.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/arm/dyncom/arm_dyncom.cpp b/src/core/arm/dyncom/arm_dyncom.cpp index 669b612f..0b5dcccb 100644 --- a/src/core/arm/dyncom/arm_dyncom.cpp +++ b/src/core/arm/dyncom/arm_dyncom.cpp @@ -110,9 +110,12 @@ u64 ARM_DynCom::GetTicks() const { * @param num_instructions Number of instructions to executes */ void ARM_DynCom::ExecuteInstructions(int num_instructions) { - ticks += num_instructions; state->NumInstrsToExecute = num_instructions; - InterpreterMainLoop(state.get()); + + // Dyncom only breaks on instruction dispatch. This only happens on every instruction when + // executing one instruction at a time. Otherwise, if a block is being executed, more + // instructions may actually be executed than specified. + ticks += InterpreterMainLoop(state.get()); } /** |