qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* 0001-target-loongarch-fix-vldi-inst.patch
@ 2024-12-03 15:38 郭鸿宇
  2024-12-13  3:40 ` 0001-target-loongarch-fix-vldi-inst.patch lixianglai
  0 siblings, 1 reply; 2+ messages in thread
From: 郭鸿宇 @ 2024-12-03 15:38 UTC (permalink / raw)
  To: qemu-devel; +Cc: gaosong


[-- Attachment #1.1: Type: text/plain, Size: 0 bytes --]



[-- Attachment #1.2: Type: text/html, Size: 0 bytes --]

[-- Attachment #2: 0001-target-loongarch-fix-vldi-inst.patch --]
[-- Type: application/octet-stream, Size: 932 bytes --]

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: 0001-target-loongarch-fix-vldi-inst.patch
  2024-12-03 15:38 0001-target-loongarch-fix-vldi-inst.patch 郭鸿宇
@ 2024-12-13  3:40 ` lixianglai
  0 siblings, 0 replies; 2+ messages in thread
From: lixianglai @ 2024-12-13  3:40 UTC (permalink / raw)
  To: 郭鸿宇, qemu-devel; +Cc: gaosong

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-12-13  3:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-03 15:38 0001-target-loongarch-fix-vldi-inst.patch 郭鸿宇
2024-12-13  3:40 ` 0001-target-loongarch-fix-vldi-inst.patch lixianglai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).