mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-02 20:50:32 -07:00
target/loongarch: Fix vldi inst
Refer to the link below for a description of the vldi instructions:
https://jia.je/unofficial-loongarch-intrinsics-guide/lsx/misc/#synopsis_88
Fixed errors in vldi instruction implementation.
Signed-off-by: Guo Hongyu <guohongyu24@mails.ucas.ac.cn>
Tested-by: Xianglai Li <lixianglai@loongson.cn>
Signed-off-by: Xianglai Li <lixianglai@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
(cherry picked from commit 02ce6cea71)
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2865
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
d08e538de8
commit
bb50cc9e75
1 changed files with 1 additions and 1 deletions
|
|
@ -3480,7 +3480,7 @@ static uint64_t vldi_get_value(DisasContext *ctx, uint32_t imm)
|
|||
break;
|
||||
case 1:
|
||||
/* data: {2{16'0, imm[7:0], 8'0}} */
|
||||
data = (t << 24) | (t << 8);
|
||||
data = (t << 40) | (t << 8);
|
||||
break;
|
||||
case 2:
|
||||
/* data: {2{8'0, imm[7:0], 16'0}} */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue