target/arm: Fix reported EL for mte_check_fail
commit50244cc76abcac3296cff3d84826f5ff71808c80
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 8 Oct 2020 16:21:54 +0000 (8 11:21 -0500)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 20 Oct 2020 15:12:00 +0000 (20 16:12 +0100)
tree405be2f634aa69ace7537ca6ef67cf1f94c526b7
parent4aedfc0f633fd06dd2a5dc8ffa93f4c56117e37f
target/arm: Fix reported EL for mte_check_fail

The reporting in AArch64.TagCheckFail only depends on PSTATE.EL,
and not the AccType of the operation.  There are two guest
visible problems that affect LDTR and STTR because of this:

(1) Selecting TCF0 vs TCF1 to decide on reporting,
(2) Report "data abort same el" not "data abort lower el".

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-3-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/mte_helper.c