]> xenbits.xensource.com Git - qemu-xen.git/commit
target/arm: Enable trapping of ERET for FEAT_NV
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 9 Jan 2024 14:43:45 +0000 (14:43 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 9 Jan 2024 14:43:45 +0000 (14:43 +0000)
commite37e98b7f9f69240f73ed7050cd182466ddf3629
tree03bfde95f4f12bcfe08df4d2d0d25b37fc0adf55
parent572597791555c544169e49b9a5c3a4043ea4949b
target/arm: Enable trapping of ERET for FEAT_NV

When FEAT_NV is turned on via the HCR_EL2.NV bit, ERET instructions
are trapped, with the same syndrome information as for the existing
FEAT_FGT fine-grained trap (in the pseudocode this is handled in
AArch64.CheckForEretTrap()).

Rename the DisasContext and tbflag bits to reflect that they are
no longer exclusively for FGT traps, and set the tbflag bit when
FEAT_NV is enabled as well as when the FGT is enabled.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Miguel Luis <miguel.luis@oracle.com>
target/arm/cpu.h
target/arm/tcg/hflags.c
target/arm/tcg/translate-a64.c
target/arm/tcg/translate.h