MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / cpuTestINTCInts

Function cpuTestINTCInts

pcsx2/R5900.cpp:460–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458}
459
460__ri void cpuTestINTCInts()
461{
462 // Check the COP0's Status register for general interrupt disables, and the 0x400
463 // bit (which is INTC master toggle).
464 if (!cpuIntsEnabled(0x400))
465 return;
466
467 if ((psHu32(INTC_STAT) & psHu32(INTC_MASK)) == 0)
468 return;
469
470 cpuSetNextEventDelta(4);
471 if (eeEventTestIsActive && (psxRegs.iopCycleEE > 0))
472 {
473 psxRegs.iopBreak += psxRegs.iopCycleEE; // record the number of cycles the IOP didn't run.
474 psxRegs.iopCycleEE = 0;
475 }
476}
477
478__fi void cpuTestDMACInts()
479{

Callers 3

hwIntcIrqFunction · 0.85
cpuTestHwIntsFunction · 0.85
_hwWrite32Function · 0.85

Calls 2

cpuIntsEnabledFunction · 0.85
cpuSetNextEventDeltaFunction · 0.85

Tested by

no test coverage detected