From nobody Tue Nov 26 18:18:52 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=1706008319; cv=none; d=zohomail.com; s=zohoarc; b=E8PhzzzuSzRfO35Pfy0VwrJe1Z6F9eHAKpHpcXsSTcYUWCTj17W9ddkqF2Evg423pK/5Ovhmtxzfx1sa7CZpSmdys4NzGDwAjQTUkuBW9beBoVeZ65Upto/C+D4qbmmU4/DXesJ428L/l11fr+wkeS2F1uNIcutN9nAjSZuiXyg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1706008319; 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=a6UoAAKm1BSVru2djWDEvJDwpv7xKurDJDJjWffjIbA=; b=GwfJbFdswLaMT26uaZlfkZgXTCmDoNW8XbUks7mEbqGaiF8DIGLgMi/Zp6uPn4hAv9ieSCzweo7RWQY7IuYTUqb+rRQVeZN1S/+D0mFbDrfD2e4c0j35FDcUrEImefuTOGh/VL8OgknhPUFc5xmjD82pxuOXKkCpbHQHPUD6RXM= 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 1706008319641931.7121857010378; Tue, 23 Jan 2024 03:11:59 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rSEgC-00036l-UP; Tue, 23 Jan 2024 06:10:56 -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 1rSEfz-0002qt-Jh for qemu-devel@nongnu.org; Tue, 23 Jan 2024 06:10:45 -0500 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rSEfw-0004Nm-50 for qemu-devel@nongnu.org; Tue, 23 Jan 2024 06:10:42 -0500 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-338aca547d9so3308876f8f.0 for ; Tue, 23 Jan 2024 03:10:36 -0800 (PST) Received: from rockhopper.. (214.11.169.217.in-addr.arpa. [217.169.11.214]) by smtp.gmail.com with ESMTPSA id n15-20020a5d4c4f000000b00337d6f0013esm12288013wrt.107.2024.01.23.03.10.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 03:10:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1706008235; x=1706613035; 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=a6UoAAKm1BSVru2djWDEvJDwpv7xKurDJDJjWffjIbA=; b=DcAkNhnYQUEA1KZukWTKB3AmzF7Zj8nqeFywO0L5/Fa3MSZtmpCVIdVVVIZnUvyVlO 7J3z43vT4LfsMhBcLsNRxSzY0woANDtoMeFwmxsmWKa3lvni7RB+sIPD8x3j6ZNo/3Va m65rQtr9lV61Hb4WYViMlK5fppuOIkoLHSB5or2oqAK2IIqkVLZHvwVrmX51P4epQuuY E9he1lYJPuL9uKrT5J/KodpIshmfwvAfkYdFdjBN3ZQnu1hfm0cKSRE83t4hEJCwB7fV Sy6gey1JsVzF3aZf+XrLG//Jl7v6Hxf+GcxLhbC6FZMPQ5P3/P5eHTE8AVp7Z6z/Ia14 +sHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706008235; x=1706613035; 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=a6UoAAKm1BSVru2djWDEvJDwpv7xKurDJDJjWffjIbA=; b=qhDYxzQi9Ixu7HViqq1fSYBneZHySwde8ZNQ0yx5Yatwpp+ti08RrF6cHyOGRGgpod Qlz3fxLGuUHUQuyQySDlr20Yk+I9x+f3+yyIvFTnTu2hy3DA7if3v1n8eMVi7kiqEuUf Bka2I9GVmYLI6sq6LL6+xN+MxaoFvSMUIV6uL2b1ACuxR9FdT66QTqh8h3Km1i62jt6b o4+ObB5+ZlIGQ/iPbiH4vjr0Tmq8mYJ++qbIhi69F5cLaLzSgid35ExA5wg3PUug52I8 IKdk8G9x2NG9TrolBXmyjgUAX+WN8jNpaNYy0rjre0aUlw+u9f9owjInvbKAtA0diLar JoRA== X-Gm-Message-State: AOJu0Yxtb/qXuGG0xPygTZvctpO98lzNVNq+frvI9kpWbv6IP7R1FciJ z5bswv3RQJMSVV0CIUOM/ZJLRzRqkTyMMipw5h5ay8ZL3uVF+bRJIJbij843ezziuvrAiQnDFTM yEjk= X-Google-Smtp-Source: AGHT+IGXQ9R9gZGixdo57qdApxgwlFBEkkow5z3BRcUSXlogUwHnrwj53SC89qJ6MRyFXrZrKKC5ow== X-Received: by 2002:a05:6000:108a:b0:337:bfd9:bd48 with SMTP id y10-20020a056000108a00b00337bfd9bd48mr1568534wrw.62.1706008235559; Tue, 23 Jan 2024 03:10:35 -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 Subject: [PATCH v3 3/3] target/riscv: Expose Zaamo and Zalrsc extensions Date: Tue, 23 Jan 2024 11:10:30 +0000 Message-ID: <20240123111030.15074-4-rbradford@rivosinc.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240123111030.15074-1-rbradford@rivosinc.com> References: <20240123111030.15074-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::434; envelope-from=rbradford@rivosinc.com; helo=mail-wr1-x434.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: 1706008321389100005 Content-Type: text/plain; charset="utf-8" Expose the newly added extensions to the guest and allow their control through the CPU properties. Signed-off-by: Rob Bradford Reviewed-by: Daniel Henrique Barboza --- target/riscv/cpu.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 8d3ec74a1c..604baf53c8 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -103,7 +103,9 @@ const RISCVIsaExtData isa_edata_arr[] =3D { ISA_EXT_DATA_ENTRY(zihintpause, PRIV_VERSION_1_10_0, ext_zihintpause), ISA_EXT_DATA_ENTRY(zihpm, PRIV_VERSION_1_12_0, ext_zihpm), ISA_EXT_DATA_ENTRY(zmmul, PRIV_VERSION_1_12_0, ext_zmmul), + ISA_EXT_DATA_ENTRY(zaamo, PRIV_VERSION_1_12_0, ext_zaamo), ISA_EXT_DATA_ENTRY(zacas, PRIV_VERSION_1_12_0, ext_zacas), + ISA_EXT_DATA_ENTRY(zalrsc, PRIV_VERSION_1_12_0, ext_zalrsc), ISA_EXT_DATA_ENTRY(zawrs, PRIV_VERSION_1_12_0, ext_zawrs), ISA_EXT_DATA_ENTRY(zfa, PRIV_VERSION_1_12_0, ext_zfa), ISA_EXT_DATA_ENTRY(zfbfmin, PRIV_VERSION_1_12_0, ext_zfbfmin), @@ -1491,6 +1493,9 @@ const RISCVCPUMultiExtConfig riscv_cpu_experimental_e= xts[] =3D { MULTI_EXT_CFG_BOOL("x-smaia", ext_smaia, false), MULTI_EXT_CFG_BOOL("x-ssaia", ext_ssaia, false), =20 + MULTI_EXT_CFG_BOOL("x-zaamo", ext_zaamo, false), + MULTI_EXT_CFG_BOOL("x-zalrsc", ext_zalrsc, false), + MULTI_EXT_CFG_BOOL("x-zvfh", ext_zvfh, false), MULTI_EXT_CFG_BOOL("x-zvfhmin", ext_zvfhmin, false), =20 --=20 2.43.0