bootwrapper: SVE: Enable SVE for EL2 and below

By default, SVE will trap to EL3.  We also want to make sure that
lower ELs have access to the full SVE vector length before dropping

This patch programs CPTR_EL3 and ZCR_EL3 appropriately to enable
SVE for lower exception levels and make sure that they can use the
full vector length provided by the hardware.

Signed-off-by: Dave Martin <>
Cc: Alex Bennée <>
Signed-off-by: Mark Rutland <>
2 files changed