| 927 | } |
| 928 | |
| 929 | static __fi void rcntWtarget(int index, u32 value) |
| 930 | { |
| 931 | EECNT_LOG("EE Counter[%d] writeTarget = %x", index, value); |
| 932 | |
| 933 | counters[index].target = value & 0xffff; |
| 934 | |
| 935 | // guard against premature (instant) targeting. |
| 936 | // If the target is behind the current count, set it up so that the counter must |
| 937 | // overflow first before the target fires: |
| 938 | |
| 939 | rcntSyncCounter(index); |
| 940 | |
| 941 | if (counters[index].target <= counters[index].count) |
| 942 | counters[index].target |= EECNT_FUTURE_TARGET; |
| 943 | |
| 944 | _rcntSet(index); |
| 945 | } |
| 946 | |
| 947 | static __fi void rcntWhold(int index, u32 value) |
| 948 | { |
no test coverage detected