mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-07-20 06:18:35 +00:00
target/arm: Count PMU events when MDCR.SPME is set
This check was backwards when introduced in commit 033614c47de78409ad3fb39bb7bd1483b71c6789: target/arm: Filter cycle counter based on PMCCFILTR_EL0 Backports commit db1f3afb17269cf2bd86c222e1bced748487ef71
This commit is contained in:
parent
16ad0d93d9
commit
97702da7ad
|
@ -1191,7 +1191,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) {
|
||||||
|
|
Loading…
Reference in a new issue