target-arm: Fix regression that disabled VFP for ARMv5 CPUs
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 29 Aug 2014 14:00:28 +0000 (15:00 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 29 Aug 2014 14:00:28 +0000 (15:00 +0100)
commited1f13d607e2c64c66bea49d6f4edaf278d3d246
tree7ec15942514ee5975203a3e1e3c8dd3ba10cbe33
parent508280f5666a706a3681462b2a1d7de8107fd6fb
target-arm: Fix regression that disabled VFP for ARMv5 CPUs

Commit 2c7ffc414 added support for honouring the CPACR coprocessor
access control register bits which may disable access to VFP
and Neon instructions. However it failed to account for the
fact that the CPACR is only present starting from the ARMv6
architecture version, so it accidentally disabled VFP completely
for ARMv5 CPUs like the ARM926. Linux would detect this as
"no VFP present" and probably fall back to its own emulation,
but other guest OSes might crash or misbehave.

This fixes bug LP:1359930.

Reported-by: Jakub Jermar <jakub@jermar.eu>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1408714940-7192-1-git-send-email-peter.maydell@linaro.org
Cc: qemu-stable@nongnu.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/cpu.h