test: test the save restore logic for brbcr_el1

This patch tests the save/restore logic by enabling
branch recording at NS-EL2. Additionally this
patch also tests the trap logic when FEAT_FGT is enabled
and a Realm tries to access any FEAT_BRBE related registers.

Signed-off-by: Sona Mathew <sonarebecca.mathew@arm.com>
Change-Id: I176ea6feaf01d42cfd6231dc65a9470da8d1e37c
diff --git a/realm/realm_payload_main.c b/realm/realm_payload_main.c
index d364aa0..4052ba3 100644
--- a/realm/realm_payload_main.c
+++ b/realm/realm_payload_main.c
@@ -494,6 +494,9 @@
 		case REALM_ATTESTATION_FAULT:
 			test_succeed = test_realm_attestation_fault();
 			break;
+		case REALM_WRITE_BRBCR_EL1:
+			test_succeed = test_realm_write_brbcr_el1_reg();
+			break;
 		default:
 			realm_printf("%s() invalid cmd %u\n", __func__, cmd);
 			break;