fix(pmu): extend PMEVTYPER.evtCount width
FEAT_PMUv3p1 extends this field from 10 to 16 bits. The upper bits are
RES0 so backwards compatibility is preserved
Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
Change-Id: I98abb14bfe8e72f99318fe7d3e26420d91c1c55a
diff --git a/include/lib/aarch64/arch.h b/include/lib/aarch64/arch.h
index d0607f1..d0b7566 100644
--- a/include/lib/aarch64/arch.h
+++ b/include/lib/aarch64/arch.h
@@ -799,7 +799,7 @@
#define PMEVTYPER_EL0_M_BIT (U(1) << 26)
#define PMEVTYPER_EL0_MT_BIT (U(1) << 25)
#define PMEVTYPER_EL0_SH_BIT (U(1) << 24)
-#define PMEVTYPER_EL0_EVTCOUNT_BITS U(0x000003FF)
+#define PMEVTYPER_EL0_EVTCOUNT_BITS U(0x0000FFFF)
/* PMCCFILTR_EL0 definitions */
#define PMCCFILTR_EL0_P_BIT (U(1) << 31)