From nobody Thu Nov 14 07:05:44 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; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1704877519; cv=none; d=zohomail.com; s=zohoarc; b=eiZwFGlqM0OXVQjrWA0t2CMp/pBxQVbtgKmdbAz7i3Ewz96pQqO0GxSzRxAEXxsLmpFabyf8K/40LMhQZ9G4YtLnqWh+piS2szersHrys338814xfHWRnGXjAKIWc64iEO4784d9snZUH5UCxbk9CIw3xdBC0BJXbvQdTDeeiAg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1704877519; 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=skrIjpTonLy9YNzwgam7TCIyIKFDcGU+qkrH3ZhJDXg=; b=PT8tyz6CfxGL4iB18+RpFk6dIk5gG1P0m0GBin61XsFNF6zt0eI5lLIiWOwAE4rLpfU9UwwKL5JerVEsnuXS2Y7hGVN1lv4BZD7KxMklNx82drU9+RJZ2uxbDeD7BhZhtZjbdEIVsDhljA71YOKYhWnKL1qZg+PFH/hBRORIpqo= 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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1704877519335447.3749953578448; Wed, 10 Jan 2024 01:05:19 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNURO-0005Rq-K7; Wed, 10 Jan 2024 04:00:03 -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 1rNUQu-0004aP-8p for qemu-devel@nongnu.org; Wed, 10 Jan 2024 03:59:34 -0500 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rNUQr-00047S-Le for qemu-devel@nongnu.org; Wed, 10 Jan 2024 03:59:31 -0500 Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-6d9bee259c5so2355621b3a.1 for ; Wed, 10 Jan 2024 00:59:29 -0800 (PST) Received: from toolbox.alistair23.me (2403-580b-97e8-0-321-6fb2-58f1-a1b1.ip6.aussiebb.net. [2403:580b:97e8:0:321:6fb2:58f1:a1b1]) by smtp.gmail.com with ESMTPSA id t65-20020a628144000000b006d9879ba6besm3223814pfd.170.2024.01.10.00.59.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 00:59:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704877168; x=1705481968; 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=skrIjpTonLy9YNzwgam7TCIyIKFDcGU+qkrH3ZhJDXg=; b=Xvd/zM0aXl2x7prj6fQK9VQMdvgkZPW7aSdrlTfGXADkmK27hS4/1sutyfUSnavL7r 9wEMaPqPKHQQ73pR0UgzUDoTcNxjoeCnhPEtzPvsssNjV31Sp0y8vwr5cJaE8bm2xFb+ oDFoWk2t2tiy17F48uXK34zGOj89mC7joA0MTcANHdvfPUu9ktkW85C01JIWJCkeFdIZ +GdocGRD5L9ZC4KtM/no5lO01qdSIyczADRQCtjnLdMv+9RsLb7B7uwldN6yJmaftmRy 4xoUBC+yxvQUeQMzm0/l02y14W4FfoqticUnfaEGex80YDiDEHlEZwQiiGxQdkLANllj j+jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704877168; x=1705481968; 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=skrIjpTonLy9YNzwgam7TCIyIKFDcGU+qkrH3ZhJDXg=; b=kzoCMd0USb0/z3Df47WBpyLts+gHVcAmwetD3d1RK+t0SYLQRs0nXDbu0N2/olaN3w dWMZC7B+EYl7QhkUz3MHtSh0cNkXsk/lWKflzVMc+V13T6o7RH7RnI5NrzJ8cZ0IIuBY DJus20owkjB9X6LVxVp+XWI9j9O6XBUtFKep8YBUJFXXRdNbhiioRbt0T5CI4FzlAdp1 Z5QQTCLhrYuXple0qFAvkpmR0JqM50+uaoAZsIbCnhQxjrs+6Pne6iq9L9S+6c2MR51c rShutjBz3miMv2KEcT3z5dk1suZ+BlGXWSehgPWCV21aqYbo6pP+sTKMskanZ1R79C+g ESqg== X-Gm-Message-State: AOJu0YwAMhYy1vMXoi3xFNf18puuW+iTbtc7CfKNTV48hqPBmLG1ploD AW8tQDG4BFjGQdWQmCWgazXEhd+58K6ncnAi X-Google-Smtp-Source: AGHT+IFdZdk66ABcEg+g6SWlQbeTWR/OnCVeZFXUzUwWw/JsaDCE2T0hVtvVH/vNmYfMUqGuCdnfFw== X-Received: by 2002:a05:6a00:4f59:b0:6d9:a908:2659 with SMTP id lc25-20020a056a004f5900b006d9a9082659mr533963pfb.62.1704877167840; Wed, 10 Jan 2024 00:59:27 -0800 (PST) From: Alistair Francis X-Google-Original-From: Alistair Francis To: qemu-devel@nongnu.org Cc: alistair23@gmail.com, Rob Bradford , Alistair Francis , Daniel Henrique Barboza Subject: [PULL 27/65] disas/riscv: Add amocas.[w,d,q] instructions Date: Wed, 10 Jan 2024 18:56:55 +1000 Message-ID: <20240110085733.1607526-28-alistair.francis@wdc.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240110085733.1607526-1-alistair.francis@wdc.com> References: <20240110085733.1607526-1-alistair.francis@wdc.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=2607:f8b0:4864:20::432; envelope-from=alistair23@gmail.com; helo=mail-pf1-x432.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, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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 @gmail.com) X-ZM-MESSAGEID: 1704877520160100006 Content-Type: text/plain; charset="utf-8" From: Rob Bradford Signed-off-by: Rob Bradford Reviewed-by: Alistair Francis Reviewed-by: Daniel Henrique Barboza Message-ID: <20231207153842.32401-3-rbradford@rivosinc.com> Signed-off-by: Alistair Francis --- 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