OSDN Git Service

target/arm: Implement FEAT_PAN3
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 20 Apr 2023 09:21:16 +0000 (10:21 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 20 Apr 2023 09:21:16 +0000 (10:21 +0100)
commitdd17143fcecdc2b8845de1b0c251fa4e49b0f572
treeef02cee59af046fd5c0d69126ba3918d7c9c2361
parenta3856808d9e687fce071ffca223daeb88c760854
target/arm: Implement FEAT_PAN3

FEAT_PAN3 adds an EPAN bit to SCTLR_EL1 and SCTLR_EL2, which allows
the PAN bit to make memory non-privileged-read/write if it is
user-executable as well as if it is user-read/write.

Implement this feature and enable it in the AArch64 'max' CPU.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20230331145045.2584941-4-peter.maydell@linaro.org
docs/system/arm/emulation.rst
target/arm/cpu.h
target/arm/cpu64.c
target/arm/ptw.c