Perf: Enable CP10 and CP11 access in CPACR
VFP extension uses CP10 and CP11 and if more than one coprocessor
is used to provide a set of functionality then having different
values for the CPACR (Coprocessor Access Control Register) fields
for those coprocessors can lead to unpredictable behavior.
Make sure that both CP10 and CP11 coprocessors have their access
bits set before a VFP instruction is executed. The access
permissions have to be explicitly set here because the perf event
initialization happens way before the VFP module is initialized.
Change-Id: I8cc451a41e0d50dcd03f2b596eabf0cf4aa9e628
Signed-off-by:
Sathish Ambley <sambley@codeaurora.org>
Loading
Please sign in to comment