From: 郭鸿宇 <guohongyu24@mails.ucas.ac.cn>
To: qemu-devel@nongnu.org
Cc: gaosong@loongson.cn
Subject: 0001-target-loongarch-fix-vldi-inst.patch
Date: Tue, 3 Dec 2024 23:38:11 +0800 (GMT+08:00) [thread overview]
Message-ID: <3a7d9342.9e3d1.1938d2c0078.Coremail.guohongyu24@mails.ucas.ac.cn> (raw)
[-- 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
next reply other threads:[~2024-12-03 16:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-03 15:38 郭鸿宇 [this message]
2024-12-13 3:40 ` 0001-target-loongarch-fix-vldi-inst.patch lixianglai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3a7d9342.9e3d1.1938d2c0078.Coremail.guohongyu24@mails.ucas.ac.cn \
--to=guohongyu24@mails.ucas.ac.cn \
--cc=gaosong@loongson.cn \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).