target-arm: correctly UNDEF writes to FPINST/FPINST2 from EL0
commit23adb8618caf24ab7cbb41fb2f27bad1c429cbda
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 24 Oct 2014 11:19:14 +0000 (24 12:19 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 24 Oct 2014 11:19:14 +0000 (24 12:19 +0100)
treef4cac950e22e7d629ec7c7b07ff93dfa41777fd2
parent0e7b176ae01d5a664d4cbf619a7315819494e6cb
target-arm: correctly UNDEF writes to FPINST/FPINST2 from EL0

The ARM ARM requires that the FPINST and FPINST2 VFP control
registers are not accessible to code at EL0. We were already
correctly implementing this for reads of these registers; add
the missing check for the write code path.

Reported-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Message-id: 1412967447-20931-1-git-send-email-peter.maydell@linaro.org
target-arm/translate.c