Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
dc59ff34
Unverified
Commit
dc59ff34
authored
May 16, 2018
by
Dimitris Papastamos
Committed by
GitHub
May 16, 2018
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
services/std_svc/spm/secure_partition_setup.c
View file @
dc59ff34
...
...
@@ -236,12 +236,14 @@ void secure_partition_setup(void)
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.
* ZEN (v8.2): Trap SVE instructions and access to SVE registers.
*/
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment