]> git.proxmox.com Git - mirror_qemu.git/commit
target/arm: Ignore HCR_EL2.ATA when {E2H,TGE} != 11
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 8 Oct 2020 16:21:55 +0000 (11:21 -0500)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 20 Oct 2020 15:12:00 +0000 (16:12 +0100)
commit4301acd7d7d455792ea873ced75c0b5d653618b1
tree34054da1f3a0b8f5008cb672259026763b183952
parent50244cc76abcac3296cff3d84826f5ff71808c80
target/arm: Ignore HCR_EL2.ATA when {E2H,TGE} != 11

Unlike many other bits in HCR_EL2, the description for this
bit does not contain the phrase "if ... this field behaves
as 0 for all purposes other than", so do not squash the bit
in arm_hcr_el2_eff.

Instead, replicate the E2H+TGE test in the two places that
require it.

Reported-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Tested-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Message-id: 20201008162155.161886-4-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c
target/arm/internals.h