From nobody Fri Dec 19 07:48:40 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1677833067; cv=none; d=zohomail.com; s=zohoarc; b=nXWsZFw/8tOl7h0hEZT2JMU+dWiOzEZtsiN2oYM0v4MJ3S4OVDDFnO4a0dg+3VE2/ExvuHY3vpyGigRnkCupd01nM0oGeSMReMF/shiwfwr9UPh6BfKa7ChzWWlvDoeOfjm3gFCToYV7VrOP619DPFHp2B4JucHgWnbx+eZlELM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677833067; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=nhVcyaR+wUHNG6/4VyYZTf+bfbXlrY349GdOzrTycmU=; b=QaZyBcXiVh/zUD2Divy/sMXIxefaw0IQVs3JTz0pzxAVR6zAe1CvBKLw5Ngq5bSE7fb/Vrfcy5gTBkzhKi9gsS0OK6dqmzdA2KRewPPbzFD/kUQEz2THxzwf0ptu8m/lgYLIa83omH8klSugFy7EXIuzDLLPI5LGtiUcVUYUps0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.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 (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1677833067320829.7311002432957; Fri, 3 Mar 2023 00:44:27 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pY0zo-0000fy-Kn; Fri, 03 Mar 2023 03:42:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pY0zb-0008QF-7C for qemu-devel@nongnu.org; Fri, 03 Mar 2023 03:42:20 -0500 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pY0zZ-000858-P6 for qemu-devel@nongnu.org; Fri, 03 Mar 2023 03:42:18 -0500 Received: by mail-pj1-x102c.google.com with SMTP id h17-20020a17090aea9100b0023739b10792so1589567pjz.1 for ; Fri, 03 Mar 2023 00:42:17 -0800 (PST) Received: from localhost ([135.180.224.71]) by smtp.gmail.com with ESMTPSA id lj10-20020a17090b344a00b00233e937fef9sm1035279pjb.18.2023.03.03.00.42.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 00:42:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; t=1677832936; h=to:from:cc:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:from:to:cc:subject:date :message-id:reply-to; bh=nhVcyaR+wUHNG6/4VyYZTf+bfbXlrY349GdOzrTycmU=; b=dgk9U7kLWVlJ9PxwoGsoKY/S6CAm//dppwNf0gBPZcwvTkwRVLafmFrl0OX1yiTSv1 RDufYx3H2iyE3J5PbUWJLOjXMQ9X2IZ/M34pxbq/cF1o90gZs/LapXoRopE8CCIvLrpb NLci7//FwpH4VP7HhT2IhQKD3/L+gMlrFrlQgxI4xcOhfm9k9pNVV6L/WThjB26OjgwL 74zbFwqB0gJYNKpzJQskMe+GFLxYG0/bmOT6dUq2kfLqfwt3ewy1DZfBDSh1vFJdQ1v9 WHi08ow15G4hUgp3D0sIacskFBy31KLtQ+9Ntk41pFKSG6SHaq5jf85eDikAnLi2IiU6 P//g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677832936; h=to:from:cc:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nhVcyaR+wUHNG6/4VyYZTf+bfbXlrY349GdOzrTycmU=; b=uKx+Ii7b3UFu0++NFtZH0v7IH51GdIjV7zg5KHuQ5Cwyh8u5Q7LnlxRC1zJQAHvL/R 29Ur1TM02x3m5opLD/gIqUd7EGIL5LUr0EUS595WcdxdvmS4GOqFe3FJbnqsmDU/AO3g Z5Pfgvo2KMdhvPuWgP/TwDLPyR7e7qYLl9mb3SskO+fAFG3Jrf6sw5CT8WNU5b5tznJB UignGG9B8kSfLpKgCQTOpNyUz8IN4/i1JDjwO/p8PVAZzbE6vpgRqfsmP7F9wYV5XoOQ Ib7CzVdhWN2UozZy3UQ4ninJE6h3Udg+YUsslEKBW8Jnfh32h+qlKSXXzzQg21fREfst mW5Q== X-Gm-Message-State: AO0yUKUlszHEhB6C/ydwG1tkJQgrROocOT0XXjRgUtKhygOImY+DyqKG BLZ1PlfgoE/mUF5KkfVwTUjmaA== X-Google-Smtp-Source: AK7set+S1HNkb2BFMOesMBPEGQQepTlPKZbLQVOcRVUKIEhib1EqOiCqhXvXJOsYsvz7OTS6aRnz8A== X-Received: by 2002:a17:90a:194c:b0:237:ae98:a47f with SMTP id 12-20020a17090a194c00b00237ae98a47fmr5195634pjh.1.1677832936545; Fri, 03 Mar 2023 00:42:16 -0800 (PST) Subject: [PULL 44/59] RISC-V: XTheadMemPair: Remove register restrictions for store-pair Date: Fri, 3 Mar 2023 00:37:25 -0800 Message-Id: <20230303083740.12817-45-palmer@rivosinc.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230303083740.12817-1-palmer@rivosinc.com> References: <20230303083740.12817-1-palmer@rivosinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Cc: qemu-riscv@nongnu.org, qemu-devel@nongnu.org, ristoph=20M=C3=BCllner?= , LIU Zhiwei , Palmer Dabbelt From: Palmer Dabbelt To: Peter Maydell Received-SPF: pass (zohomail.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; Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=palmer@rivosinc.com; helo=mail-pj1-x102c.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @rivosinc-com.20210112.gappssmtp.com) X-ZM-MESSAGEID: 1677833069014100003 From: Christoph M=C3=BCllner The XTheadMemPair does not define any restrictions for store-pair instructions (th.sdd or th.swd). However, the current code enforces the restrictions that are required for load-pair instructions. Let's fix this by removing this code. Signed-off-by: Christoph M=C3=BCllner Reviewed-by: LIU Zhiwei Message-ID: <20230220095612.1529031-1-christoph.muellner@vrull.eu> Signed-off-by: Palmer Dabbelt --- target/riscv/insn_trans/trans_xthead.c.inc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/target/riscv/insn_trans/trans_xthead.c.inc b/target/riscv/insn= _trans/trans_xthead.c.inc index be87c34f56..cf1731b08d 100644 --- a/target/riscv/insn_trans/trans_xthead.c.inc +++ b/target/riscv/insn_trans/trans_xthead.c.inc @@ -980,10 +980,6 @@ static bool trans_th_lwud(DisasContext *ctx, arg_th_pa= ir *a) static bool gen_storepair_tl(DisasContext *ctx, arg_th_pair *a, MemOp memo= p, int shamt) { - if (a->rs =3D=3D a->rd1 || a->rs =3D=3D a->rd2 || a->rd1 =3D=3D a->rd2= ) { - return false; - } - TCGv data1 =3D get_gpr(ctx, a->rd1, EXT_NONE); TCGv data2 =3D get_gpr(ctx, a->rd2, EXT_NONE); TCGv addr1 =3D tcg_temp_new(); --=20 2.39.2