This reverts commit fd2ddce5. The SBI took a different approach (explicit SBI call) to support writing the counters, rather than using traps.
mentioned in commit 3ed18cfb