target/arm: Make VMOV scalar <-> gpreg beatwise for MVE
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 17 Jun 2021 12:16:28 +0000 (13:16 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 24 Jun 2021 13:58:48 +0000 (14:58 +0100)
commit4f57ef959cf83cc780658c7e97ba5f737aa666f2
tree48173f5972bf99439921f4c9116a002b1691b601
parent6f060a636bf46869e43a28a0f426ddaea16314f9
target/arm: Make VMOV scalar <-> gpreg beatwise for MVE

In a CPU with MVE, the VMOV (vector lane to general-purpose register)
and VMOV (general-purpose register to vector lane) insns are not
predicated, but they are subject to beatwise execution if they
are not in an IT block.

Since our implementation always executes all 4 beats in one tick,
this means only that we need to handle PSR.ECI:
 * we must do the usual check for bad ECI state
 * we must advance ECI state if the insn succeeds
 * if ECI says we should not be executing the beat corresponding
   to the lane of the vector register being accessed then we
   should skip performing the move

Note that if PSR.ECI is non-zero then we cannot be in an IT block.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210617121628.20116-45-peter.maydell@linaro.org
target/arm/translate-a32.h
target/arm/translate-mve.c
target/arm/translate-vfp.c