AArch64 EL3: don't assume SCR_EL3's only nonzero bit is NS

Make sure we initialize SCR_EL3 on startup and preserve bits
in it across world switches. This is important for AArch64
because SCR_EL3 contains the register-width bit for EL1,
and if the implementation is correctly honouring that bit then
attempting to do an exception-return with it incorrectly set
will result in an illegal exception return.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2 files changed