]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm/helper: Fix tlbmask and tlbbits for TLBI VAE2*
authorJean-Philippe Brucker <jean-philippe@linaro.org>
Tue, 22 Aug 2023 16:31:11 +0000 (17:31 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 22 Aug 2023 16:31:11 +0000 (17:31 +0100)
commitceaa97465f58cf2b3b4fc07a3b1067eb6f48d2e3
tree3559a31425ed4aeb648aae6fe5e2ecf23ae5087e
parentda64251e9317b3937cad54f71f606f5f9b837c8e
target/arm/helper: Fix tlbmask and tlbbits for TLBI VAE2*

When HCR_EL2.E2H is enabled, TLB entries are formed using the EL2&0
translation regime, instead of the EL2 translation regime. The TLB VAE2*
instructions invalidate the regime that corresponds to the current value
of HCR_EL2.E2H.

At the moment we only invalidate the EL2 translation regime. This causes
problems with RMM, which issues TLBI VAE2IS instructions with
HCR_EL2.E2H enabled. Update vae2_tlbmask() to take HCR_EL2.E2H into
account.

Add vae2_tlbbits() as well, since the top-byte-ignore configuration is
different between the EL2&0 and EL2 regime.

Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20230809123706.1842548-3-jean-philippe@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c