feat(ls64): add a test for 64byte loads/stores instructions
This patch adds a test to verify the 64 byte load and store
instructions introduced by FEAT_LS64.
The test primarily executes instructions:
1. LD64B
2. ST64B
and ensures that the NS-EL2 has no dependency on EL3 while
running them.
Signed-off-by: Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com>
Signed-off-by: Juan Pablo Conde <juanpablo.conde@arm.com>
Change-Id: I7a4ca0ee4a2c18bf0de030c72e35eb218bc6364c
diff --git a/include/lib/aarch64/arch_features.h b/include/lib/aarch64/arch_features.h
index b6d0ce7..354710c 100644
--- a/include/lib/aarch64/arch_features.h
+++ b/include/lib/aarch64/arch_features.h
@@ -419,4 +419,10 @@
!= ID_AA64MMFR1_EL1_LOR_NOT_SUPPORTED;
}
+static inline unsigned int get_feat_ls64_support(void)
+{
+ return ((read_id_aa64isar1_el1() >> ID_AA64ISAR1_LS64_SHIFT) &
+ ID_AA64ISAR1_LS64_MASK);
+}
+
#endif /* ARCH_FEATURES_H */