mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-08 07:27:43 -07:00
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:df97f33807("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 commitd41989e754) Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
f19312d014
commit
724cc2b608
1 changed files with 1 additions and 1 deletions
|
|
@ -5126,7 +5126,7 @@ static bool do_vbsrl_v(DisasContext *ctx, arg_vv_i *a, uint32_t oprsz)
|
|||
{
|
||||
int i, ofs;
|
||||
|
||||
if (!check_vec(ctx, 32)) {
|
||||
if (!check_vec(ctx, oprsz)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue