mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 11:05:46 +00: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:
parent
ac8b38e54d
commit
3409790668
4 changed files with 26 additions and 18 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue