Part 15: SIMD, FP, SVE and SME
Prerequisites: 2.4 PSTATE, 2.6 The trap-control map, 3.2 Entry and return, 7.8 Context synchronization and ISB.
If you already know: how Neon/FP context switching and CPACR_EL1.FPEN work, skim 15.1 but read its Security note. If you know SVE as a programming model, skip to the ZCR_ELx and SME parts of 15.2. Read 15.3 in full whatever you know.
Why this matters for bring-up/validation: every vector feature is trapped by EL3 until it is enabled, and one register file is shared by all worlds, so a missing enable bit or a narrow save policy shows up as boot-time traps to EL3 or as silently corrupted state in another world.
The storyline runs from small state to large state. 15.1 covers the base case: 32 128-bit V registers, FPCR/FPSR, and the CPACR_EL1/CPTR_ELx traps that let an OS or hypervisor switch FP state lazily, together with the cross-world hazard that lazy switching creates. 15.2 widens the registers. SVE makes the vector length an implementation choice capped by ZCR_ELx. SME adds Streaming SVE mode with its own vector length, the ZA matrix array and SME2’s ZT0, and SVCR changes have side effects that zero registers. TPIDR2_EL0 supports a lazy ZA-save ABI, and FP8 adds the FPMR register. Each of these brings new state and a new enable bit.
15.3 is the firmware view. It covers what EL3 and an unused EL2 must program, in what order (CPTR_EL3.EZ/ESM before ZCR_EL3/SMCR_EL3; SCR_EL3.EnTP2/EnFPM per world), and how TF-A splits per-world state from per-CPU state. It also covers which build options decide who saves what, why PSTATE.SM and ZA cross a world switch unchanged, and what each missing bit looks like in a crash dump.