From: Richard Henderson <richard.hender...@linaro.org> A typo, noted in the bug report, resulting in an incorrect write offset.
Cc: qemu-sta...@nongnu.org Fixes: 7390e0e9ab8 ("target/arm: Implement SME LD1, ST1") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1833 Signed-off-by: Richard Henderson <richard.hender...@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org> Message-id: 20230818214255.146905-1-richard.hender...@linaro.org Signed-off-by: Peter Maydell <peter.mayd...@linaro.org> (cherry picked from commit 4b3520fd93cd49cc56dfcab45d90735cc2e35af7) Signed-off-by: Michael Tokarev <m...@tls.msk.ru> diff --git a/target/arm/sme_helper.c b/target/arm/sme_helper.c index f891306bb9..73dd838330 100644 --- a/target/arm/sme_helper.c +++ b/target/arm/sme_helper.c @@ -412,7 +412,7 @@ static inline void HNAME##_host(void *za, intptr_t off, void *host) \ { \ uint64_t *ptr = za + off; \ HOST(host, ptr[BE]); \ - HOST(host + 1, ptr[!BE]); \ + HOST(host + 8, ptr[!BE]); \ } \ static inline void VNAME##_v_host(void *za, intptr_t off, void *host) \ { \ -- 2.39.2