feat: add tests to check SCTLR2, THE and D128 sysregs
This patch adds test cases for verifying that the system registers of
FEAT_SCTLR2, FEAT_THE and FEAT_D128 (FEAT_SYSREG128) are working
correctly by performing a series of reads and writes to the registers.
Change-Id: I5c102daa358a7ec5d1801395bc875e9850e83939
Signed-off-by: Igor Podgainõi <igor.podgainoi@arm.com>
Signed-off-by: Manish Pandey <manish.pandey2@arm.com>
diff --git a/include/common/test_helpers.h b/include/common/test_helpers.h
index 8de7a86..fe29ee5 100644
--- a/include/common/test_helpers.h
+++ b/include/common/test_helpers.h
@@ -327,6 +327,30 @@
} \
} while (false)
+#define SKIP_TEST_IF_SCTLR2_NOT_SUPPORTED() \
+ do { \
+ if (!is_feat_sctlr2_supported()) { \
+ tftf_testcase_printf("FEAT_SCTLR2 not supported\n"); \
+ return TEST_RESULT_SKIPPED; \
+ } \
+ } while (false)
+
+#define SKIP_TEST_IF_THE_NOT_SUPPORTED() \
+ do { \
+ if (!is_feat_the_supported()) { \
+ tftf_testcase_printf("FEAT_THE not supported\n"); \
+ return TEST_RESULT_SKIPPED; \
+ } \
+ } while (false)
+
+#define SKIP_TEST_IF_D128_NOT_SUPPORTED() \
+ do { \
+ if (!is_feat_d128_supported()) { \
+ tftf_testcase_printf("FEAT_D128 not supported\n"); \
+ return TEST_RESULT_SKIPPED; \
+ } \
+ } while (false)
+
#define SKIP_TEST_IF_RME_NOT_SUPPORTED_OR_RMM_IS_TRP() \
do { \
u_register_t retrmm = 0U; \