]> git.proxmox.com Git - mirror_qemu.git/commit - target/arm/internals.h
target/arm: Fix MTE access checks for disabled SEL2
authorIdan Horowitz <idan.horowitz@gmail.com>
Fri, 1 Apr 2022 14:35:48 +0000 (15:35 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 1 Apr 2022 14:35:48 +0000 (15:35 +0100)
commit0da067f2a83c61efc6f1688d4379269420838b28
tree93e22df606671fb5a41dfdfd52117023b09f1aea
parent9b617b1bb4056e60b39be4c33be20c10928a6a5c
target/arm: Fix MTE access checks for disabled SEL2

While not mentioned anywhere in the actual specification text, the
HCR_EL2.ATA bit is treated as '1' when EL2 is disabled at the current
security state. This can be observed in the psuedo-code implementation
of AArch64.AllocationTagAccessIsEnabled().

Signed-off-by: Idan Horowitz <idan.horowitz@gmail.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220328173107.311267-1-idan.horowitz@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c
target/arm/internals.h