mirror of
https://github.com/yuzu-mirror/unicorn.git
synced 2026-01-03 15:20:24 +01:00
target/arm: Check PMCNTEN for whether PMCCNTR is enabled
Backports commit ccbc0e338486b21cb0eb52e52cd309bbbe6a7507 from qemu
This commit is contained in:
parent
43e7478d3f
commit
e1bffbf7df
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue