refactor(cpufeat): separate the EL2 and EL3 enablement codeCombining the EL2 and EL3 enablement code necessitates that it must becalled at el3_exit, which is the only place with enough context to
refactor(cpufeat): separate the EL2 and EL3 enablement codeCombining the EL2 and EL3 enablement code necessitates that it must becalled at el3_exit, which is the only place with enough context to makethe decision of what needs to be set.Decouple them to allow them to be called from elsewhere.Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>Change-Id: I147764c42771e7d4100699ec8fae98dac0a505c0
show more ...
refactor(cpufeat): enable SYS_REG_TRACE for FEAT_STATE_CHECKEDAt the moment we only support access to the trace unit by systemregisters (SYS_REG_TRACE) to be either unconditionally compiled in, or
refactor(cpufeat): enable SYS_REG_TRACE for FEAT_STATE_CHECKEDAt the moment we only support access to the trace unit by systemregisters (SYS_REG_TRACE) to be either unconditionally compiled in, orto be not supported at all.Add support for runtime detection (ENABLE_SYS_REG_TRACE_FOR_NS=2), byadding is_feat_sys_reg_trace_supported(). That function considers bothbuild time settings and runtime information (if needed), and is usedbefore we access SYS_REG_TRACE related registers.The FVP platform decided to compile in support unconditionally (=1),even though this is an optional feature, so it is not available with theFVP model's default command line.Change that to the now supported dynamic option (=2), so the rightdecision can be made by the code at runtime.Change-Id: I450a574a4f6bd9fc269887037049c94c906f54b2Signed-off-by: Andre Przywara <andre.przywara@arm.com>
feat(sys_reg_trace): enable trace system registers access from lower NS ELsIntroduced a build flag 'ENABLE_SYS_REG_TRACE_FOR_NS' to enable tracesystem registers access in NS-EL2, or NS-EL1 (when N
feat(sys_reg_trace): enable trace system registers access from lower NS ELsIntroduced a build flag 'ENABLE_SYS_REG_TRACE_FOR_NS' to enable tracesystem registers access in NS-EL2, or NS-EL1 (when NS-EL2 isimplemented but unused).Change-Id: Idc1acede4186e101758cbf7bed5af7b634d7d18dSigned-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>