mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-05-09 02:51:21 +00:00
refactor(cm): make SVE and SME build dependencies logical
Currently, enabling SME forces SVE off. However, the SME enablement requires SVE to be enabled, which is reflected in code. This is the opposite of what the build flags require. Further, the few platforms that enable SME also explicitly enable SVE. Their platform.mk runs after the defaults.mk file so this override never materializes. As a result, the override is only present on the commandline. Change it to something sensible where if SME is on then code can rely on SVE being on too. Do this with a check in the Makefile as it is the more widely used pattern. This maintains all valid use cases but subtly changes corner cases no one uses at the moment to require a slightly different combination of flags. Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com> Change-Id: If7ca3972ebc3c321e554533d7bc81af49c2472be
This commit is contained in:
parent
c194aa0c6c
commit
0d1229473e
6 changed files with 42 additions and 47 deletions
|
@ -65,9 +65,6 @@ void sme_enable(cpu_context_t *context)
|
|||
/* Reset CPTR_EL3 value. */
|
||||
write_cptr_el3(cptr_el3);
|
||||
isb();
|
||||
|
||||
/* Enable SVE/FPU in addition to SME. */
|
||||
sve_enable(context);
|
||||
}
|
||||
|
||||
void sme_disable(cpu_context_t *context)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue