feat: test if errata 2938996 and 2726228 workaround is applied
This patch confirms if access to trbe el1 register generates an undef
injection in affected cores. If a core is affected by errata 2938996/
2726228 and it generates an undef injection on access to trbe el1 register then
the test passes. If it is an unaffected core then the test passes , but
when undef injection doesn't happen in affected core, the test fails.
Change-Id: I515a9aa4613c6d99ee73e579206089ebf89ffae8
Signed-off-by: Arvind Ram Prakash <arvind.ramprakash@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 3caca39..d6a7ade 100644
--- a/include/common/test_helpers.h
+++ b/include/common/test_helpers.h
@@ -420,4 +420,9 @@
/* Generate 64-bit random number */
unsigned long long rand64(void);
+/* TRBE Errata */
+#define CORTEX_A520_MIDR U(0x410FD800)
+#define CORTEX_X4_MIDR U(0x410FD821)
+#define RXPX_RANGE(x, y, z) (((x >= y) && (x <= z)) ? true : false)
+bool is_trbe_errata_affected_core(void);
#endif /* __TEST_HELPERS_H__ */