fix(realm): Fix the LPA2 flag setting for BRBE test
This patch fixes the LPA2 flag setting for BRBE test.
Signed-off-by: Sona Mathew <sonarebecca.mathew@arm.com>
Change-Id: Id7c53739cc92275a7018a44c2a3b8fdcf74ec25e
diff --git a/tftf/tests/runtime_services/realm_payload/host_realm_brbe_tests.c b/tftf/tests/runtime_services/realm_payload/host_realm_brbe_tests.c
index 9f6246b..3816422 100644
--- a/tftf/tests/runtime_services/realm_payload/host_realm_brbe_tests.c
+++ b/tftf/tests/runtime_services/realm_payload/host_realm_brbe_tests.c
@@ -30,6 +30,11 @@
SKIP_TEST_IF_RME_NOT_SUPPORTED_OR_RMM_IS_TRP();
SKIP_TEST_IF_BRBE_NOT_SUPPORTED();
+ if (is_feat_52b_on_4k_2_supported()) {
+ feature_flag = RMI_FEATURE_REGISTER_0_LPA2;
+ sl = RTT_MIN_LEVEL_LPA2;
+ }
+
if (!host_create_activate_realm_payload(&realm, (u_register_t)REALM_IMAGE_BASE,
feature_flag, feature_flag1, sl, rec_flag, 1U, 0U)) {
return TEST_RESULT_FAIL;