Unverified Commit dc59ff34 authored by Dimitris Papastamos's avatar Dimitris Papastamos Committed by GitHub
Browse files

Merge pull request #1383 from sandrine-bailleux-arm/topics/sb/sp-access-fpregs

SPM: Do not trap S-EL0 access to SVE/SIMD/FP regs
parents f859a5dd 39848945
...@@ -236,12 +236,14 @@ void secure_partition_setup(void) ...@@ -236,12 +236,14 @@ void secure_partition_setup(void)
SPM_SHIM_EXCEPTIONS_PTR); SPM_SHIM_EXCEPTIONS_PTR);
/* /*
* FPEN: Forbid the Secure Partition to access FP/SIMD registers. * FPEN: Allow the Secure Partition to access FP/SIMD registers.
* Note that SPM will not do any saving/restoring of these registers on
* behalf of the SP. This falls under the SP's responsibility.
* TTA: Enable access to trace registers. * TTA: Enable access to trace registers.
* ZEN (v8.2): Trap SVE instructions and access to SVE registers. * ZEN (v8.2): Trap SVE instructions and access to SVE registers.
*/ */
write_ctx_reg(get_sysregs_ctx(ctx), CTX_CPACR_EL1, write_ctx_reg(get_sysregs_ctx(ctx), CTX_CPACR_EL1,
CPACR_EL1_FPEN(CPACR_EL1_FP_TRAP_ALL)); CPACR_EL1_FPEN(CPACR_EL1_FP_TRAP_NONE));
/* /*
* Prepare information in buffer shared between EL3 and S-EL0 * Prepare information in buffer shared between EL3 and S-EL0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment