]> 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)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 15 Feb 2024 11:30:44 +0000 (11:30 +0000)
commit64c6e7444dff64b42d11b836b9aec9acfbe8ecc2
treed9355939701eabf4d86dfe68b4c14d033fbdc46e
parent681dfc0d552963d4d598350d26097a692900b408
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>
target/arm/tcg/translate-sve.c