mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 23:25:48 +00:00
target/arm: Count PMU events when MDCR.SPME is set
This check was backwards when introduced in commit
033614c47d
:
target/arm: Filter cycle counter based on PMCCFILTR_EL0
Cc: qemu-stable@nongnu.org
Signed-off-by: Aaron Lindsay <aaron@os.amperecomputing.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
committed by
Peter Maydell
parent
d849800512
commit
db1f3afb17
@ -1452,7 +1452,7 @@ static bool pmu_counter_enabled(CPUARMState *env, uint8_t counter)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
prohibited = arm_feature(env, ARM_FEATURE_EL3) &&
|
prohibited = arm_feature(env, ARM_FEATURE_EL3) &&
|
||||||
(env->cp15.mdcr_el3 & MDCR_SPME);
|
!(env->cp15.mdcr_el3 & MDCR_SPME);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prohibited && counter == 31) {
|
if (prohibited && counter == 31) {
|
||||||
|
Reference in New Issue
Block a user