In M and S modes, scountovf bit X is readable when mcounteren bit X is set, and otherwise reads as zero.
Should it be the case that the mcounteren bit only matters while reading scountovf from S mode ? And scountovf should always give the true value on reading in M mode irrespective of the corresponding mcounteren bits.
Asking this since mcounteren controls the availability of the hardware performance-monitoring counters to the next-lowest privileged mode.
Hi, The spec says,
Should it be the case that the mcounteren bit only matters while reading scountovf from S mode ? And scountovf should always give the true value on reading in M mode irrespective of the corresponding mcounteren bits. Asking this since mcounteren controls the availability of the hardware performance-monitoring counters to the next-lowest privileged mode.
Thanks