mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-13 18:47:59 -05:00
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.
This commit is contained in:
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user