target/arm: Implement HCR_EL2.TTLBOS traps
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 14 Dec 2022 14:27:09 +0000 (14:27 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 15 Dec 2022 11:18:20 +0000 (11:18 +0000)
commitfe3ca86c465428f738520de304e7a7a59bd0a6c2
tree4d1564d11babdb2fea6329566b94147c2e1c07c4
parent0f66d223e3b688a93ae02dc114d2891bbb0e09cc
target/arm: Implement HCR_EL2.TTLBOS traps

For FEAT_EVT, the HCR_EL2.TTLBOS bit allows trapping on EL1
use of TLB maintenance instructions that operate on the
outer shareable domain:

TLBI VMALLE1OS, TLBI VAE1OS, TLBI ASIDE1OS,TLBI VAAE1OS,
TLBI VALE1OS, TLBI VAALE1OS, TLBI RVAE1OS, TLBI RVAAE1OS,
TLBI RVALE1OS, and TLBI RVAALE1OS.

(There are no AArch32 outer-shareable TLB maintenance ops.)

Implement the trapping.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
target/arm/helper.c