Re: [PATCH] target/arm: Correctly initialize MDCR_EL2.HPMN

2021-01-28 Thread Peter Maydell
On Mon, 25 Jan 2021 at 21:48, muellerd--- via wrote: > > 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. >

[PATCH] target/arm: Correctly initialize MDCR_EL2.HPMN

2021-01-25 Thread muellerd--- via
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 >