OSDN Git Service

target/arm: Update SDCR_VALID_MASK to include SCCD
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 23 Sep 2022 12:34:12 +0000 (13:34 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 29 Sep 2022 16:31:52 +0000 (17:31 +0100)
commitf190bd1da1c291bb1dac9a715e02ef2521698d16
treeb746450a40deccef538ea23f59da3ecda6e25be2
parent80d2b43b2ff367f38ae4c9616b1ed261ecf801b6
target/arm: Update SDCR_VALID_MASK to include SCCD

Our SDCR_VALID_MASK doesn't include all of the bits which are defined
by the current architecture.  In particular in commit 0b42f4fab9d3 we
forgot to add SCCD, which meant that an AArch32 guest couldn't
actually use the SCCD bit to disable counting in Secure state.

Add all the currently defined bits; we don't implement all of them,
but this makes them be reads-as-written, which is architecturally
valid and matches how we currently handle most of the others in the
mask.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220923123412.1214041-4-peter.maydell@linaro.org
target/arm/cpu.h