Trap PMCR_EL0 or PMCR accesses to EL2 when MDCR_EL2.TPMCR is set. Similar to MDCR_EL2.TPM, MDCR_EL2.TPMCR allows trapping EL0 and EL1 accesses to the PMCR register to EL2.
Changes from v2: - Squashed patches, no other changes. Changes from v1: - Some refactoring to simplify code. Smail AIDER (1): target/arm: Trap PMCR when MDCR_EL2.TPMCR is set target/arm/cpregs-pmu.c | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) -- 2.34.1