try some stupid shit

This commit is contained in:
Arisotura 2021-12-06 17:26:37 +01:00
parent 151610eb6c
commit bc227e80ac
3 changed files with 8 additions and 0 deletions

View File

@ -642,6 +642,7 @@ void ARMv5::Execute()
if (IRQ) TriggerIRQ();
NDS::ARM9Timestamp += Cycles;
NDS::ARM9InstrCount++;
Cycles = 0;
}
@ -787,6 +788,7 @@ void ARMv4::Execute()
if (IRQ) TriggerIRQ();
NDS::ARM7Timestamp += Cycles;
NDS::ARM7InstrCount++;
Cycles = 0;
}

View File

@ -101,6 +101,9 @@ u64 ARM9Timestamp, ARM9Target;
u64 ARM7Timestamp, ARM7Target;
u64 SysTimestamp;
u32 ARM9InstrCount, ARM9MainRAMCount;
u32 ARM7InstrCount, ARM7MainRAMCount;
SchedEvent SchedList[Event_MAX];
u32 SchedListMask;

View File

@ -181,6 +181,9 @@ extern u64 ARM9Timestamp, ARM9Target;
extern u64 ARM7Timestamp, ARM7Target;
extern u32 ARM9ClockShift;
extern u32 ARM9InstrCount, ARM9MainRAMCount;
extern u32 ARM7InstrCount, ARM7MainRAMCount;
extern u32 IME[2];
extern u32 IE[2];
extern u32 IF[2];