]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: Fix A64 LDRA immediate decode
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 6 Nov 2023 15:00:29 +0000 (15:00 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 9 Nov 2023 13:39:13 +0000 (16:39 +0300)
commitfe8eb3187c35189a3bde8775696468c84a89e96f
treeac0167bc37328015918249bd1c49954670eee1df
parent1f560fa2761e023ae19f5c178e2ecfc0df74e54d
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
(cherry picked from commit 5722fc471296d5f042df4b005a851cc8008df0c9)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/arm/tcg/a64.decode
target/arm/tcg/translate.h