aboutsummaryrefslogtreecommitdiff
path: root/replication.h
diff options
context:
space:
mode:
authorDaniel Müller <muellerd@fb.com>2021-02-10 09:41:22 -0800
committerPeter Maydell <peter.maydell@linaro.org>2021-02-11 19:48:09 +0000
commitd3c1183ffeb71ca3a783eae3d7e1c51e71e8a621 (patch)
tree691981f17d285a37bc7b580db06d93a520e6b623 /replication.h
parent4565d826163d2e3a4ca3a5ebf3904e6b3b04a487 (diff)
target/arm: Correctly initialize MDCR_EL2.HPMNpull-target-arm-20210211-1
When working with performance monitoring counters, we look at MDCR_EL2.HPMN as part of the check whether a counter is enabled. This check fails, because MDCR_EL2.HPMN is reset to 0, meaning that no counters are "enabled" for < EL2. That's in violation of the Arm specification, which states that > On a Warm reset, this field [MDCR_EL2.HPMN] resets to the value in > PMCR_EL0.N That's also what a comment in the code acknowledges, but the necessary adjustment seems to have been forgotten when support for more counters was added. This change fixes the issue by setting the reset value to PMCR.N, which is four. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'replication.h')
0 files changed, 0 insertions, 0 deletions