target-arm: Restrict check_ap() use of S and R bits to v6 and earlier
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 20 Feb 2014 10:35:51 +0000 (10:35 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 20 Feb 2014 10:35:51 +0000 (10:35 +0000)
commit99f678a679857d83b9709127b0f047551d7e3c45
treee80ef7fbb30cb547be519ce7e03240af44c6c6ac
parent76e3e1bcaefe0da394f328854cb72f9449f23732
target-arm: Restrict check_ap() use of S and R bits to v6 and earlier

The SCTLR bits S and R (8 and 9) only exist in ARMv6 and earlier.
In ARMv7 these bits RAZ, and in ARMv8 they are reassigned. Guard
the use of them in check_ap() so that we don't get incorrect results
for ARMv8 CPUs.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
target-arm/helper.c