]> git.proxmox.com Git - mirror_qemu.git/commit
target/arm: Implement NSACR gating of floating point
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 10 May 2019 11:03:57 +0000 (12:03 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 13 Jun 2019 14:14:03 +0000 (15:14 +0100)
commitfc1120a7f5f2d4b601003205c598077d3eb11ad2
tree4cbb5d4aea2f30badefb40b4ecb2ee16312bb433
parent3a7a2b4e5cf0d49cd8b14e8225af0310068b7d20
target/arm: Implement NSACR gating of floating point

The NSACR register allows secure code to configure the FPU
to be inaccessible to non-secure code. If the NSACR.CP10
bit is set then:
 * NS accesses to the FPU trap as UNDEF (ie to NS EL1 or EL2)
 * CPACR.{CP10,CP11} behave as if RAZ/WI
 * HCPTR.{TCP11,TCP10} behave as if RAO/WI

Note that we do not implement the NSACR.NSASEDIS bit which
gates only access to Advanced SIMD, in the same way that
we don't implement the equivalent CPACR.ASEDIS and HCPTR.TASE.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20190510110357.18825-1-peter.maydell@linaro.org
target/arm/helper.c