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

Function cpuIntsEnabled

pcsx2/R5900.cpp:351–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349// level other than 0 are ignored here.
350
351static bool cpuIntsEnabled(int Interrupt)
352{
353 bool IntType = !!(cpuRegs.CP0.n.Status.val & Interrupt); //Choose either INTC or DMAC, depending on what called it
354
355 return IntType && cpuRegs.CP0.n.Status.b.EIE && cpuRegs.CP0.n.Status.b.IE &&
356 !cpuRegs.CP0.n.Status.b.EXL && (cpuRegs.CP0.n.Status.b.ERL == 0);
357}
358
359// Shared portion of the branch test, called from both the Interpreter
360// and the recompiler. (moved here to help alleviate redundant code)

Callers 3

_cpuEventTest_SharedFunction · 0.85
cpuTestINTCIntsFunction · 0.85
cpuTestDMACIntsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected