From nobody Fri May 17 10:13:18 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1553610025581218.96595421327288; Tue, 26 Mar 2019 07:20:25 -0700 (PDT) Received: from localhost ([127.0.0.1]:60824 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8mw7-00027a-B4 for importer@patchew.org; Tue, 26 Mar 2019 10:20:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8ixS-00048v-Hp for qemu-devel@nongnu.org; Tue, 26 Mar 2019 06:05:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h8ipT-0008GR-Vv for qemu-devel@nongnu.org; Tue, 26 Mar 2019 05:57:12 -0400 Received: from 59-120-53-16.hinet-ip.hinet.net ([59.120.53.16]:12638 helo=ATCSQR.andestech.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h8ipQ-0008AT-KE; Tue, 26 Mar 2019 05:57:10 -0400 Received: from ATCSQR.andestech.com (localhost [127.0.0.2] (may be forged)) by ATCSQR.andestech.com with ESMTP id x2Q9Q7gA073351; Tue, 26 Mar 2019 17:26:07 +0800 (GMT-8) (envelope-from kito@andestech.com) Received: from mail.andestech.com (atcpcs16.andestech.com [10.0.1.222]) by ATCSQR.andestech.com with ESMTP id x2Q9Pt2v073318; Tue, 26 Mar 2019 17:25:55 +0800 (GMT-8) (envelope-from kito@andestech.com) Received: from atccpl07.andestech.com (10.0.15.80) by ATCPCS16.andestech.com (10.0.1.222) with Microsoft SMTP Server id 14.3.123.3; Tue, 26 Mar 2019 17:26:26 +0800 From: Kito Cheng To: , , Date: Tue, 26 Mar 2019 17:27:17 +0800 Message-ID: <1553592437-109191-1-git-send-email-kito@andestech.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Originating-IP: [10.0.15.80] X-DNSRBL: X-MAIL: ATCSQR.andestech.com x2Q9Pt2v073318 X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-Received-From: 59.120.53.16 X-Mailman-Approved-At: Tue, 26 Mar 2019 10:13:41 -0400 Subject: [Qemu-devel] [PATCH] target/riscv: Fix wrong expanding for c.fswsp X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kito Cheng Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Kito Cheng base register is no rs1 not rs2 for fsw. Signed-off-by: Kito Cheng --- target/riscv/insn_trans/trans_rvc.inc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/riscv/insn_trans/trans_rvc.inc.c b/target/riscv/insn_tr= ans/trans_rvc.inc.c index 5819f53..ebcd977 100644 --- a/target/riscv/insn_trans/trans_rvc.inc.c +++ b/target/riscv/insn_trans/trans_rvc.inc.c @@ -337,7 +337,7 @@ static bool trans_c_fswsp_sdsp(DisasContext *ctx, arg_c= _fswsp_sdsp *a) { #ifdef TARGET_RISCV32 /* C.FSWSP */ - arg_fsw a_fsw =3D { .rs1 =3D a->rs2, .rs2 =3D 2, .imm =3D a->uimm_fsws= p }; + arg_fsw a_fsw =3D { .rs1 =3D 2, .rs2 =3D a->rs2, .imm =3D a->uimm_fsws= p }; return trans_fsw(ctx, &a_fsw); #else /* C.SDSP */ --=20 1.8.3.1