0001-target-loongarch-fix-vldi-inst.patch

郭鸿宇 posted 1 patch 5 months ago
target/loongarch/tcg/insn_trans/trans_vec.c.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
0001-target-loongarch-fix-vldi-inst.patch
Posted by 郭鸿宇 5 months ago
From 2e820f4ce3a5790fd1d199745f37173f0e31061f Mon Sep 17 00:00:00 2001
From: ghy <2247883756@qq.com>
Date: Tue, 3 Dec 2024 23:30:13 +0800
Subject: [PATCH] target/loongarch: fix vldi inst

Signed-off-by: Guo Hongyu <guohongyu24@mails.ucas.ac.cn>
---
 target/loongarch/tcg/insn_trans/trans_vec.c.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/loongarch/tcg/insn_trans/trans_vec.c.inc b/target/loongarch/tcg/insn_trans/trans_vec.c.inc
index 92b1d22e28..d317dfcc1c 100644
--- a/target/loongarch/tcg/insn_trans/trans_vec.c.inc
+++ b/target/loongarch/tcg/insn_trans/trans_vec.c.inc
@@ -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}} */
-- 
2.34.1

Re: 0001-target-loongarch-fix-vldi-inst.patch
Posted by lixianglai 4 months, 3 weeks ago
Hi hongyu:

Thank you very much for submitting patch for loongarch,
but can you submit patch according to qemu code contribution specification?
You can refer to this document:
https://www.qemu.org/docs/master/devel/submitting-a-patch.html

It should also be pointed out that you need to use the git send-email 
command to send patch.

Thanks,
Xianglai