PMU: Fix PMC5/6 behaviour when MMCR0[PMCC] = 11
authorPaul Mackerras <paulus@ozlabs.org>
Wed, 11 Aug 2021 07:17:25 +0000 (17:17 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Fri, 13 Aug 2021 09:50:59 +0000 (19:50 +1000)
commite33fb26e7a6c668a0e742a127cf79adce8fa4c60
tree1e5b9b360c44f56f56ea7ab70e44d7d8d649f8ee
parent2bd00f5119aad9fc02c90790b179312a4281ea62
PMU: Fix PMC5/6 behaviour when MMCR0[PMCC] = 11

The architecture states that when MMCR0[PMCC] = 0b11, PMC5 and PMC6
are not part of the Performance Monitor, meaning that they are not
controlled by bits in MMCRs, and counter negative conditions in PMCs 5
and 6 don't generate Performance Monitor alerts, exceptions or
interrupts.  It doesn't say that PMC5 and PMC6 are frozen in this
case, so presumably they should continue to count run instructions and
run cycles.

This implements that behaviour.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
pmu.vhdl