diff --git a/qemu/target/arm/helper.c b/qemu/target/arm/helper.c index 28bded4d..bdde85f9 100644 --- a/qemu/target/arm/helper.c +++ b/qemu/target/arm/helper.c @@ -889,7 +889,7 @@ static inline bool arm_ccnt_enabled(CPUARMState *env) { /* This does not support checking PMCCFILTR_EL0 register */ - if (!(env->cp15.c9_pmcr & PMCRE)) { + if (!(env->cp15.c9_pmcr & PMCRE) || !(env->cp15.c9_pmcnten & (1 << 31))) { return false; }