]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcg/loongarch64: Set vector registers call clobbered
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 1 Feb 2024 23:34:14 +0000 (09:34 +1000)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 9 Feb 2024 07:44:49 +0000 (10:44 +0300)
commit8b7750c66f191ec830c2985dcc1382703b48a117
tree177669a9c53d90d69e21d1bda5bb6e599aaa2c36
parent5f5e30229eea3971135ddc6dc70635866e605b63
tcg/loongarch64: Set vector registers call clobbered

Because there are more call clobbered registers than
call saved registers, we begin with all registers as
call clobbered and then reset those that are saved.

This was missed when we introduced the LSX support.

Cc: qemu-stable@nongnu.org
Fixes: 16288ded944 ("tcg/loongarch64: Lower basic tcg vec ops to LSX")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2136
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20240201233414.500588-1-richard.henderson@linaro.org>
(cherry picked from commit 45bf0e7aa648369cf8ab2333bd20144806fc1be3)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
tcg/loongarch64/tcg-target.c.inc