feat(fgt): add support for FEAT_FGT2 testing

This patch adds testcase that validates FEAT_FGT2 support
by reading Fine-grained trap registers that are part of FEAT_FGT2.
These registers are only present when FEAT_FGT2 is implemented

Change-Id: Ifc1106d12dbe03b956310d364600368d3f035491
Signed-off-by: Arvind Ram Prakash <arvind.ramprakash@arm.com>
diff --git a/include/common/test_helpers.h b/include/common/test_helpers.h
index ced1745..33d2db6 100644
--- a/include/common/test_helpers.h
+++ b/include/common/test_helpers.h
@@ -125,6 +125,15 @@
 		}								\
 	} while (0)
 
+#define SKIP_TEST_IF_FGT2_NOT_SUPPORTED()					\
+	do {									\
+		if (!is_armv8_9_fgt2_present()) {				\
+			tftf_testcase_printf(					\
+				"Fine Grained Traps 2 not supported\n");	\
+			return TEST_RESULT_SKIPPED;				\
+		}								\
+	} while (0)
+
 #define SKIP_TEST_IF_SVE_NOT_SUPPORTED()					\
 	do {									\
 		if (!is_armv8_2_sve_present()) {				\