summaryrefslogtreecommitdiffstats
path: root/target/cris/mmu.c
diff options
context:
space:
mode:
authorPeter Maydell2022-03-03 12:37:40 +0100
committerPeter Maydell2022-03-07 14:16:49 +0100
commitc64ee036ac215f970a76e8c51cb1cfaaef70feb5 (patch)
treeccbd97927981efa838f980d5e0b3724398d1d3d4 /target/cris/mmu.c
parentosdep: Move memalign-related functions to their own header (diff)
downloadqemu-c64ee036ac215f970a76e8c51cb1cfaaef70feb5.tar.gz
qemu-c64ee036ac215f970a76e8c51cb1cfaaef70feb5.tar.xz
qemu-c64ee036ac215f970a76e8c51cb1cfaaef70feb5.zip
target/arm/translate-neon: UNDEF if VLD1/VST1 stride bits are non-zero
For VLD1/VST1 (single element to one lane) we are only accessing one register, and so the 'stride' is meaningless. The bits that would specify stride (insn bit [4] for size=1, bit [6] for size=2) are specified to be zero in the encoding (which would correspond to a stride of 1 for VLD2/VLD3/VLD4 etc), and we must UNDEF if they are not. We failed to make this check, which meant that we would incorrectly handle some instruction patterns as loads or stores instead of UNDEFing them. Enforce that stride == 1 for the nregs == 1 case. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/890 Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Tested-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20220303113741.2156877-2-peter.maydell@linaro.org
Diffstat (limited to 'target/cris/mmu.c')
0 files changed, 0 insertions, 0 deletions