fix(SME): add a missing ISB
On PEs that delay the effects of writes to system registers, enabling
SME will not take effect before it is used, causing an unhandled trap.
This patch adds the isb to prevent this.
Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
Change-Id: Iad934d3e3c4b52d09c4b8058f71ffe107bcbac1d
diff --git a/tftf/tests/extensions/sme/test_sme.c b/tftf/tests/extensions/sme/test_sme.c
index 4bf6e59..9652b45 100644
--- a/tftf/tests/extensions/sme/test_sme.c
+++ b/tftf/tests/extensions/sme/test_sme.c
@@ -36,6 +36,7 @@
ERROR("Could not enable SME.\n");
return TEST_RESULT_FAIL;
}
+ isb();
/* Make sure TPIDR2_EL0 is accessible. */
write_tpidr2_el0(0);