target-arm: Correct sense of the DCZID DZP bit
commit14e5f106073d67e5a00a8f29a017550b0436bde8
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 24 Oct 2014 11:19:13 +0000 (24 12:19 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 24 Oct 2014 11:19:13 +0000 (24 12:19 +0100)
tree6f811bade185b1d24ccd5668212304f12e67a551
parent211b016915210e2b860d495f2573cfe85ec2a5d1
target-arm: Correct sense of the DCZID DZP bit

The DZP bit in the DCZID system register should be set if
the control bits which prohibit use of the DC ZVA instruction
have been set (it stands for Data Zero Prohibited). However
we had the sense of the test inverted; fix this so that the
bit reads correctly.

To avoid this regressing the behaviour of the user-mode
emulator, we must set the DZE bit in the SCTLR for that
config so that userspace continues to see DZP as zero (it
was getting the correct result by accident previously).

Reported-by: Christopher Covington <cov@codeaurora.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Christopher Covington <cov@codeaurora.org>
Message-id: 1412959792-20708-1-git-send-email-peter.maydell@linaro.org
target-arm/cpu.c
target-arm/helper.c