target/arm: change arch timer registers access permission
authorDongjiu Geng <gengdongjiu@huawei.com>
Fri, 15 Mar 2019 11:12:29 +0000 (11:12 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 15 Mar 2019 11:12:29 +0000 (11:12 +0000)
commitdaf1dc5f82cefe2a57f184d5053e8b274ad2ba9a
tree3b2a078fbe2a69e89e16e76646c6ca6eca2431e7
parent41c4fb94aa8a6a16bd107687cd3b5204c68a4042
target/arm: change arch timer registers access permission

Some generic arch timer registers are Config-RW in the EL0,
which means the EL0 exception level can have write permission
if it is appropriately configured.

When VM access registers, QEMU firstly checks whether they have RW
permission, then check whether it is appropriately configured.
If they are defined to read only in EL0, even though they have been
appropriately configured, they still do not have write permission.
So need to add the write permission according to ARMV8 spec when
define it.

Signed-off-by: Dongjiu Geng <gengdongjiu@huawei.com>
Message-id: 1552395177-12608-1-git-send-email-gengdongjiu@huawei.com
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c