| 349 | // level other than 0 are ignored here. |
| 350 | |
| 351 | static 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) |
no outgoing calls
no test coverage detected