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

Function EI

pcsx2/COP0.cpp:677–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

675 }
676
677 void EI()
678 {
679 if (cpuRegs.CP0.n.Status.b._EDI || cpuRegs.CP0.n.Status.b.EXL ||
680 cpuRegs.CP0.n.Status.b.ERL || (cpuRegs.CP0.n.Status.b.KSU == 0))
681 {
682 cpuRegs.CP0.n.Status.b.EIE = 1;
683 // schedule an event test, which will check for and raise pending IRQs.
684 cpuSetNextEventDelta(4);
685 }
686 }
687
688} // namespace COP0
689} // namespace OpcodeImpl

Callers

nothing calls this directly

Calls 1

cpuSetNextEventDeltaFunction · 0.85

Tested by

no test coverage detected