target/arm: Check PMCNTEN for whether PMCCNTR is enabled
Signed-off-by: Aaron Lindsay <alindsay@codeaurora.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 1523997485-1905-2-git-send-email-alindsay@codeaurora.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
4818bad98c
commit
ccbc0e3384
@ -994,7 +994,7 @@ static inline bool arm_ccnt_enabled(CPUARMState *env)
|
|||||||
{
|
{
|
||||||
/* This does not support checking PMCCFILTR_EL0 register */
|
/* 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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user