target/arm: Filter cycle counter based on PMCCFILTR_EL0
commit033614c47de78409ad3fb39bb7bd1483b71c6789
authorAaron Lindsay <aaron@os.amperecomputing.com>
Mon, 21 Jan 2019 10:23:14 +0000 (21 10:23 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 21 Jan 2019 10:38:55 +0000 (21 10:38 +0000)
tree12e5ac5417491920c162c921df145c041b7a0b07
parent980ebe87053792a5bdefaa87777c40914fd4f673
target/arm: Filter cycle counter based on PMCCFILTR_EL0

Rename arm_ccnt_enabled to pmu_counter_enabled, and add logic to only
return 'true' if the specified counter is enabled and neither prohibited
or filtered.

Signed-off-by: Aaron Lindsay <alindsay@codeaurora.org>
Signed-off-by: Aaron Lindsay <aclindsa@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20181211151945.29137-5-aaron@os.amperecomputing.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/cpu.c
target/arm/cpu.h
target/arm/helper.c