mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-11 05:05:38 +00: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