target/arm: relax permission checks for HWCAP_CPUID registers
commitb5bd7440422bb66deaceb812bb9287a6a3cdf10c
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 15 Feb 2019 09:56:38 +0000 (15 09:56 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 15 Feb 2019 09:56:38 +0000 (15 09:56 +0000)
tree91210051e97d3019452d27365229de29dd73195a
parentabd5abc58c5d4c9bd23427b0998a44eb87ed47a2
target/arm: relax permission checks for HWCAP_CPUID registers

Although technically not visible to userspace the kernel does make
them visible via a trap and emulate ABI. We provide a new permission
mask (PL0U_R) which maps to PL0_R for CONFIG_USER builds and adjust
the minimum permission check accordingly.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 20190205190224.2198-2-alex.bennee@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/cpu.h
target/arm/helper.c