]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: Fix VPT advance when ECI is non-zero
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 13 Aug 2021 16:11:49 +0000 (17:11 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 25 Aug 2021 09:48:49 +0000 (10:48 +0100)
commite3152d02da21ac6e2169b1bf104a2d0478664a4a
tree4ea33d2df061423db635a6e41d967433d3f5926d
parente0d40070e1b3b6cf16ad2a51e85fb92261363d2a
target/arm: Fix VPT advance when ECI is non-zero

We were not paying attention to the ECI state when advancing the VPT
state.  Architecturally, VPT state advance happens for every beat
(see the pseudocode VPTAdvance()), so on every beat the 4 bits of
VPR.P0 corresponding to the current beat are inverted if required,
and at the end of beats 1 and 3 the VPR MASK fields are updated.
This means that if the ECI state says we should not be executing all
4 beats then we need to skip some of the updating of the VPR that we
currently do in mve_advance_vpt().

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
target/arm/mve_helper.c