target/arm: Fix A64 LDRA immediate decode
commit5722fc471296d5f042df4b005a851cc8008df0c9
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 6 Nov 2023 15:00:29 +0000 (6 15:00 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 6 Nov 2023 15:00:29 +0000 (6 15:00 +0000)
treea96ea743ebf269b5dde2220a09eb990b96bf7273
parent13edcf591e74fd8a0e69f01b8b09f53397562103
target/arm: Fix A64 LDRA immediate decode

In commit be23a049 in the conversion to decodetree we broke the
decoding of the immediate value in the LDRA instruction.  This should
be a 10 bit signed value that is scaled by 8, but in the conversion
we incorrectly ended up scaling it only by 2.  Fix the scaling
factor.

Cc: qemu-stable@nongnu.org
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1970
Fixes: be23a049 ("target/arm: Convert load (pointer auth) insns to decodetree")
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20231106113445.1163063-1-peter.maydell@linaro.org
target/arm/tcg/a64.decode
target/arm/tcg/translate.h