Merge "feat(feat_sctlr2): enable FEAT_SCTLR2 for Realm world" into integration

This commit is contained in:
Govindraj Raja 2024-11-05 18:29:38 +01:00 committed by TrustedFirmware Code Review
commit 830ed3927a

View file

@ -183,6 +183,13 @@ static void setup_realm_context(cpu_context_t *ctx, const struct entry_point_inf
scr_el3 |= SCR_EnSCXT_BIT;
}
if (is_feat_sctlr2_supported()) {
/* Set the SCTLR2En bit in SCR_EL3 to enable access to
* SCTLR2_ELx registers.
*/
scr_el3 |= SCR_SCTLR2En_BIT;
}
write_ctx_reg(state, CTX_SCR_EL3, scr_el3);
}
#endif /* ENABLE_RME */