commit | 76993739cd6f5b42e881fe3332b9f8eb98cd6907 | [log] [tgz] |
---|---|---|
author | Shannon Zhao <shannon.zhao@linaro.org> | Wed Oct 28 12:10:30 2015 +0800 |
committer | Marc Zyngier <marc.zyngier@arm.com> | Mon Feb 29 18:34:21 2016 +0000 |
tree | c2a3e47cacfff585748d69b685c6c8a2e5a390e4 | |
parent | 7a0adc7064b88609e2917446af8789fac1d4fdd1 [diff] |
arm64: KVM: Add helper to handle PMCR register bits According to ARMv8 spec, when writing 1 to PMCR.E, all counters are enabled by PMCNTENSET, while writing 0 to PMCR.E, all counters are disabled. When writing 1 to PMCR.P, reset all event counters, not including PMCCNTR, to zero. When writing 1 to PMCR.C, reset PMCCNTR to zero. Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org> Reviewed-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>