]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: Fix nregs computation in do_{ld,st}_zpa
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 15 Feb 2024 11:30:44 +0000 (11:30 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 16 Feb 2024 11:00:48 +0000 (14:00 +0300)
commit5e6e09baa516fd7c768cc1050a6ed638574e8047
tree28eac675b2b58a83f6436f18677f35ad1a4e55df
parent7950913ece574bc12089cca421e1a51d891b963e
target/arm: Fix nregs computation in do_{ld,st}_zpa

The field is encoded as [0-3], which is convenient for
indexing our array of function pointers, but the true
value is [1-4].  Adjust before calling do_mem_zpa.

Add an assert, and move the comment re passing ZT to
the helper back next to the relevant code.

Cc: qemu-stable@nongnu.org
Fixes: 206adacfb8d ("target/arm: Add mte helpers for sve scalar + int loads")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Gustavo Romero <gustavo.romero@linaro.org>
Message-id: 20240207025210.8837-3-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
(cherry picked from commit 64c6e7444dff64b42d11b836b9aec9acfbe8ecc2)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/arm/tcg/translate-sve.c