diff options
author | Jean-Philippe Brucker <jean-philippe@linaro.org> | 2023-12-19 17:57:50 +0000 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2023-12-20 19:11:11 +0300 |
commit | fe0c88919cf28ab6f30986da07e87f59e4590a88 (patch) | |
tree | 7e9935cc98e101bc5648ad35d1ad1417e29e8ad8 /thunk.h | |
parent | 775bb790b9ea40cd82fa5c828b8b52b494b88742 (diff) |
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>
(cherry picked from commit 6980c31dec42b6daebf7fec13b2d39ed87bb4766)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'thunk.h')
0 files changed, 0 insertions, 0 deletions