| 775 | } |
| 776 | |
| 777 | static __fi void _rcntSetGate(int index) |
| 778 | { |
| 779 | if (counters[index].mode.EnableGate) |
| 780 | { |
| 781 | // If the Gate Source is hblank and the clock selection is also hblank |
| 782 | // the timer completely turns off (HW Tested). |
| 783 | if (!(counters[index].mode.GateSource == 0 && counters[index].mode.ClockSource == 3)) |
| 784 | EECNT_LOG("EE Counter[%d] Using Gate! Source=%s, Mode=%d.", |
| 785 | index, counters[index].mode.GateSource ? "vblank" : "hblank", counters[index].mode.GateMode); |
| 786 | else |
| 787 | EECNT_LOG("EE Counter[%d] GATE DISABLED because of hblank source.", index); |
| 788 | } |
| 789 | } |
| 790 | |
| 791 | // mode - 0 means hblank source, 8 means vblank source. |
| 792 | static __fi void rcntStartGate(bool isVblank, u64 sCycle) |