]> git.proxmox.com Git - mirror_qemu.git/commit
target/arm/helper: Propagate MDCR_EL2.HPMN into PMCR_EL0.N
authorJean-Philippe Brucker <jean-philippe@linaro.org>
Tue, 19 Dec 2023 17:57:50 +0000 (17:57 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 19 Dec 2023 18:03:32 +0000 (18:03 +0000)
commit6980c31dec42b6daebf7fec13b2d39ed87bb4766
treedbfdf02c08ac122563872341018cbf1a52098e0d
parent47eac5d4237f217a09313a807b5ebb2ab784e0f7
target/arm/helper: Propagate MDCR_EL2.HPMN into PMCR_EL0.N

MDCR_EL2.HPMN allows an hypervisor to limit the number of PMU counters
available to EL1 and EL0 (to keep the others to itself). QEMU already
implements this split correctly, except for PMCR_EL0.N reads: the number
of counters read by EL1 or EL0 should be the one configured in
MDCR_EL2.HPMN.

Cc: qemu-stable@nongnu.org
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Message-id: 20231215144652.4193815-2-jean-philippe@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c