From nobody Wed Nov 27 02:40:51 2024 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=1701963586; cv=none; d=zohomail.com; s=zohoarc; b=ni1VeLYoZ+86AvpiD7Lfv4pEIJmHRWgP5rZSpMrj4myAwEJagSOuwbGInNCZ/PDeSlJTnYT7ECkv9PtELvs8q3MDuPL+58/7KL9K2nV7pwwJwmn0pmGSnT/tOSnGQa94TwphMe/CaSaq95BRyjXdkxQxcaUsmylU7A+wY/WSY7A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1701963586; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=fZw+JUiGsn+h8Ah0eCoapNTG4nn0tiSq/PIPn2r1QhI=; b=dgnrP/KRoiJeyNmvcmui6v6WrDkOL8lk/ic2h23nc9a6Dh+i/e1UdzKu/+YPO/rIQaDMoGEWRInCcfWVU9Emrn8k2AtLnnejmrPUEDeCMcjPvc6BAnFLA4xTSzVppAWiH8a6QYDey8kb3zxyQ1mJuy9S8WPKyGnXbKF2H9O8gc4= 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 1701963586654995.9162051956247; Thu, 7 Dec 2023 07:39:46 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBGSp-0005zX-JS; Thu, 07 Dec 2023 10:38:59 -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 1rBGSn-0005yu-UJ for qemu-devel@nongnu.org; Thu, 07 Dec 2023 10:38:58 -0500 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rBGSi-00087y-17 for qemu-devel@nongnu.org; Thu, 07 Dec 2023 10:38:57 -0500 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-333536432e0so989567f8f.3 for ; Thu, 07 Dec 2023 07:38:51 -0800 (PST) Received: from rockhopper.ba.rivosinc.com (214.11.169.217.in-addr.arpa. [217.169.11.214]) by smtp.gmail.com with ESMTPSA id b16-20020a5d4b90000000b0033339e03a60sm1711399wrt.59.2023.12.07.07.38.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 07:38:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1701963530; x=1702568330; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fZw+JUiGsn+h8Ah0eCoapNTG4nn0tiSq/PIPn2r1QhI=; b=eNxKexhAaD61RhpV5iX/XKY3+lvwnjsJefRzXZT3QQOD9piw5NcWbuwum5TCP7xT0b AMOkKYU8yQcB+cJw+OAvyrwy5+KIBFQyWybqWo613L7+eD7nSmctpxti+FV3QGfXWplC 6svxbeURx4KT9i4bo475d/xTRUavRxG+qFRxhbq4ZIPiRgeimvTMeFp1Iu5hT/9YJXQJ Al7dvQ1QVsCK6apecbzRzUYAJUEJY0xeLP7gQ6KFTowH0pRUUMPWWhr0LdFTeGHqOrsi OWOhSrpkNBfaHgOR38chXq1FB6X0hXVmDXmW/zlUcQg4nPiYvbSthbu7I0ZuUJbmHdTg df5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701963530; x=1702568330; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fZw+JUiGsn+h8Ah0eCoapNTG4nn0tiSq/PIPn2r1QhI=; b=PX7sjOAjsYUCE8opBDuQRIXsiNWAMgQqxtsCjBK1vxn4805Nbi81S85MIXsz26jR98 YCcY8i+baGJluKGsiQdQhuOQZW2ga7gjzCFRlzeuyiqAqLX1phBkaQWE8ZMNEzkoG82p JQOk6Efsp9NKkWshL8lNzRod3cM5YyDgHDdPGGldLZjKPwJTnVtkWB0SWtRiCn3Pu4gc IUV9Hwi9bWXYqnblwUoBl2qvDvsVBmglJ7LjQZDlYeUJ0Pjg7GThc0LQW317gTvB1ZGq 035BoZcSzMTxlGmLP53IUbuqJNGqRwxMwMaYFnYhlLnwUPoqUXdcfRcbBbcpeSy2Y5yN 0MbQ== X-Gm-Message-State: AOJu0YyEVxQo7N2VF2ycAjsscnSmQVgNjTTfp5BE2/CfvBW1dF1yT6AQ qJlF3D2JlNepaZUZVrYas2fVG7jIqNQeYS3vrbfDMg== X-Google-Smtp-Source: AGHT+IEcWRDde5CeNOytCjA1B141772By2Dy/wAdEiAkT1pYlQr+PtIHoswvHU96QQc/kZI8LqT1ag== X-Received: by 2002:adf:f10f:0:b0:333:2fd2:6f74 with SMTP id r15-20020adff10f000000b003332fd26f74mr1549114wro.126.1701963530345; Thu, 07 Dec 2023 07:38:50 -0800 (PST) From: Rob Bradford To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, atishp@rivosinc.com, palmer@dabbelt.com, alistair.francis@wdc.com, bin.meng@windriver.com, liwei1518@gmail.com, dbarboza@ventanamicro.com, zhiwei_liu@linux.alibaba.com, Rob Bradford , Alistair Francis Subject: [PATCH 2/2] disas/riscv: Add amocas.[w,d,q] instructions Date: Thu, 7 Dec 2023 15:32:31 +0000 Message-ID: <20231207153842.32401-3-rbradford@rivosinc.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231207153842.32401-1-rbradford@rivosinc.com> References: <20231207153842.32401-1-rbradford@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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=2a00:1450:4864:20::42e; envelope-from=rbradford@rivosinc.com; helo=mail-wr1-x42e.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, T_SCC_BODY_TEXT_LINE=-0.01 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.20230601.gappssmtp.com) X-ZM-MESSAGEID: 1701963587088100002 Content-Type: text/plain; charset="utf-8" Signed-off-by: Rob Bradford Reviewed-by: Alistair Francis Reviewed-by: Daniel Henrique Barboza --- disas/riscv.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/disas/riscv.c b/disas/riscv.c index e9458e574b..8a546d5ea5 100644 --- a/disas/riscv.c +++ b/disas/riscv.c @@ -903,6 +903,9 @@ typedef enum { rv_op_vwsll_vv =3D 872, rv_op_vwsll_vx =3D 873, rv_op_vwsll_vi =3D 874, + rv_op_amocas_w =3D 875, + rv_op_amocas_d =3D 876, + rv_op_amocas_q =3D 877, } rv_op; =20 /* register names */ @@ -2090,6 +2093,9 @@ const rv_opcode_data rvi_opcode_data[] =3D { { "vwsll.vv", rv_codec_v_r, rv_fmt_vd_vs2_vs1_vm, NULL, 0, 0, 0 }, { "vwsll.vx", rv_codec_v_r, rv_fmt_vd_vs2_rs1_vm, NULL, 0, 0, 0 }, { "vwsll.vi", rv_codec_v_i, rv_fmt_vd_vs2_uimm_vm, NULL, 0, 0, 0 }, + { "amocas.w", rv_codec_r_a, rv_fmt_aqrl_rd_rs2_rs1, NULL, 0, 0, 0 }, + { "amocas.d", rv_codec_r_a, rv_fmt_aqrl_rd_rs2_rs1, NULL, 0, 0, 0 }, + { "amocas.q", rv_codec_r_a, rv_fmt_aqrl_rd_rs2_rs1, NULL, 0, 0, 0 }, }; =20 /* CSR names */ @@ -2841,6 +2847,9 @@ static void decode_inst_opcode(rv_decode *dec, rv_isa= isa) case 34: op =3D rv_op_amoxor_w; break; case 35: op =3D rv_op_amoxor_d; break; case 36: op =3D rv_op_amoxor_q; break; + case 42: op =3D rv_op_amocas_w; break; + case 43: op =3D rv_op_amocas_d; break; + case 44: op =3D rv_op_amocas_q; break; case 66: op =3D rv_op_amoor_w; break; case 67: op =3D rv_op_amoor_d; break; case 68: op =3D rv_op_amoor_q; break; --=20 2.43.0