feat(feat_sctlr2): enable FEAT_SCTLR2 for Realm world

Change-Id: I62e769ae796bbeb41741c2c421a5f129d875f5fb
Signed-off-by: Javier Almansa Sobrino <javier.almansasobrino@arm.com>
This commit is contained in:
Javier Almansa Sobrino 2024-10-28 19:27:49 +00:00 committed by Soby Mathew
parent 98e7a83e09
commit b17fecd6cf

View file

@ -182,6 +182,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 */