]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/loongarch: Use actual operand size with vbsrl check
authorBibo Mao <maobibo@loongson.cn>
Thu, 12 Dec 2024 08:22:34 +0000 (16:22 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 28 Dec 2024 22:50:59 +0000 (01:50 +0300)
commit4610a7d0a5f1ce7ba69658296000c0226c1e8c74
treed4d800ce8819b8758006fda922ab094edc0a4451
parent97983a9cc222ff73e7ab1e9bc656700b937f4b4d
target/loongarch: Use actual operand size with vbsrl check

Hardcoded 32 bytes is used for vbsrl emulation check, there is
problem when options lsx=on,lasx=off is used for vbsrl.v instruction
in TCG mode. It injects LASX exception rather LSX exception.

Here actual operand size is used.

Cc: qemu-stable@nongnu.org
Fixes: df97f338076 ("target/loongarch: Implement xvreplve xvinsve0 xvpickve")
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
(cherry picked from commit d41989e7548397b469ec9c7be4cee699321a317e)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/loongarch/tcg/insn_trans/trans_vec.c.inc