OSDN Git Service

target/arm: Define new TB flag for ATA0
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 12 Sep 2023 14:04:30 +0000 (15:04 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 21 Sep 2023 15:07:14 +0000 (16:07 +0100)
commit179e9a3baccc3918846c9fc3de2fd534a9a2f901
treeeee711a687ac4e0d0a92eb5bf574c125e03a3759
parent0e92818887deef2300255300af57bb58a6af1ad4
target/arm: Define new TB flag for ATA0

Currently the only tag-setting instructions always do so in the
context of the current EL, and so we only need one ATA bit in the TB
flags.  The FEAT_MOPS SETG instructions include ones which set tags
for a non-privileged access, so we now also need the equivalent "are
tags enabled?" information for EL0.

Add the new TB flag, and convert the existing 'bool ata' field in
DisasContext to a 'bool ata[2]' that can be indexed by the is_unpriv
bit in an instruction, similarly to mte[2].

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20230912140434.1333369-9-peter.maydell@linaro.org
target/arm/cpu.h
target/arm/tcg/hflags.c
target/arm/tcg/translate-a64.c
target/arm/tcg/translate.h