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

Function cpuTestDMACInts

pcsx2/R5900.cpp:478–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476}
477
478__fi void cpuTestDMACInts()
479{
480 // Check the COP0's Status register for general interrupt disables, and the 0x800
481 // bit (which is the DMAC master toggle).
482 if (!cpuIntsEnabled(0x800))
483 return;
484
485 if (((psHu16(0xe012) & psHu16(0xe010)) == 0) &&
486 ((psHu16(0xe010) & 0x8000) == 0))
487 return;
488
489 cpuSetNextEventDelta(4);
490 if (eeEventTestIsActive && (psxRegs.iopCycleEE > 0))
491 {
492 psxRegs.iopBreak += psxRegs.iopCycleEE; // record the number of cycles the IOP didn't run.
493 psxRegs.iopCycleEE = 0;
494 }
495}
496
497__fi void cpuTestTIMRInts()
498{

Callers 3

dmacWrite32Function · 0.85
hwDmacIrqFunction · 0.85
cpuTestHwIntsFunction · 0.85

Calls 2

cpuIntsEnabledFunction · 0.85
cpuSetNextEventDeltaFunction · 0.85

Tested by

no test coverage detected