]> 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:51:02 +0000 (01:51 +0300)
commit724cc2b608d60f4bb8f03421fb27271fb27fb297
tree1b2b24e172657b895e0e62f15dccb6e369751b83
parentf19312d014633e9ae942b75ead53333a4b2ec0c2
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/insn_trans/trans_vec.c.inc