feat: introduce asymmetric feature testing for feat_spe

Change-Id: Ide9bda1b5f1cabc63241f42b93a672d8e04b8119
Signed-off-by: Charlie Bareham <charlie.bareham@arm.com>
Signed-off-by: Manish Pandey <manish.pandey2@arm.com>
Signed-off-by: Arvind Ram Prakash <arvind.ramprakash@arm.com>
diff --git a/include/lib/aarch64/arch_features.h b/include/lib/aarch64/arch_features.h
index a2ed5be..f5dd294 100644
--- a/include/lib/aarch64/arch_features.h
+++ b/include/lib/aarch64/arch_features.h
@@ -251,6 +251,11 @@
 		ID_AA64DFR0_PMS_MASK);
 }
 
+static inline bool is_feat_spe_supported(void)
+{
+	return spe_get_version() >= ID_AA64DFR0_SPE;
+}
+
 static inline bool get_feat_pmuv3_supported(void)
 {
 	return (((read_id_aa64dfr0_el1() >> ID_AA64DFR0_PMUVER_SHIFT) &