From nobody Sat Nov 23 18:30:40 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=reject dis=none) header.from=sifive.com ARC-Seal: i=1; a=rsa-sha256; t=1732245848; cv=none; d=zohomail.com; s=zohoarc; b=I+aU237+j5QJmtnq753+iksZgCR0Mg8j6LKy+lnSuuV9dVrfawHdtlTMCXAgaWfhj9DEu7FTSSgcAKPp8xs7M3WGyf38fSoCO5WMvEBFFyvf9OZoeMbJzXC8CEMmPVKkD21xWJpYyNyl6ipSjQXrNnu4QD04REv6mET+veule6c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1732245848; 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=ac5vpUHfFOddVJFriYu+6Qi8+wWX9FL8DoIUJSWkCVQ=; b=WtSWLoY0OXjEIzFQNe0h+sq6FnlOhl98ea1AhJTFV4wn8UJzvrjHAm+8eBZoIJEnTPFsT3PH8RdhfSIzfupgbXR4rfF0KaKjl+yIW6iUaQVFNcPv8FApFa7bqZP7liG8SpJCLfGmiQ4NxuGUyJga9cXaioUJyy1e7jto2bgTA+I= 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=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1732245848405470.86449854927423; Thu, 21 Nov 2024 19:24:08 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tEKFo-0005Yj-PJ; Thu, 21 Nov 2024 22:22:46 -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 1tEKFk-0005XX-6Q for qemu-devel@nongnu.org; Thu, 21 Nov 2024 22:22:40 -0500 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tEKFi-0003y3-Na for qemu-devel@nongnu.org; Thu, 21 Nov 2024 22:22:39 -0500 Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-21145812538so12799195ad.0 for ; Thu, 21 Nov 2024 19:22:38 -0800 (PST) Received: from fchang-1826.internal.sifive.com ([136.226.240.187]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2129dc157f3sm5506905ad.203.2024.11.21.19.22.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Nov 2024 19:22:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1732245757; x=1732850557; 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=ac5vpUHfFOddVJFriYu+6Qi8+wWX9FL8DoIUJSWkCVQ=; b=ImnPNExe34RLm4SjPbAiHqykZp/ON8aABTXWBv2qb9kLySrGNFbEDKX4WEYlTGCXgq wsuuc31P6gia8QyECvrlOjqje3gygDbeAnBfHr+QDjsD7cK0VldTLsW0U3TQ7SWkpH+9 8E+QMcujElBy861m48z0GnZqy4PXFvL4RuQf5W0MFSVWqinCSApbSUd575yBeMuUb75X cHBigOPhZ1erchYmtLFWGhpNaWkEYqecMFmL/k4fqjftkH860sVMCVXD7KDb6+krFZES UcnJk/w4YN7RM9FkwWuamclW5IAEBZ63o7kSCAwNetfaUreZOZXGxJqAsgJ/8qlEnbZz hiLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732245757; x=1732850557; 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=ac5vpUHfFOddVJFriYu+6Qi8+wWX9FL8DoIUJSWkCVQ=; b=Y+1/9EyR3p+aP8fOAU6gFJNNd0XDtDRf0Ajo0BZV13Lq5ePUMwlWJdtMxAdL9Rxmyx YuMa7umVBYAyPj3gH2J0GAMR898ly2PpvRqzqKqfq0A97XPeSCBdsYTt4QiSqOr47iVp P/4+7rlafA+qUUdIICOQhiOFUNWb8er/w6Vp+t0NJBjJm2+awCsi61spMVjJIFtbndlO 1fJRFCbG3+9FuE2ukxXU8BQHBIMAnfVrXFzjIP8Wy8tHur6nvfwICNQo5T9R2FSJFoRu mQmEtLMHYohKZqVZhsmKSoRVpr1hhfBMxlARmaSEcblJZxFc5OgujdTD67DicTYx2Ps4 5y8w== X-Gm-Message-State: AOJu0YzWAjgzP69N9+vQ2yKW1ZVknEww91i8WK2XTC1OReBhOOJLKLMB EuaWW8j50wK0XTG+VRPk/F4UIqM3kK+eQDtHHAB4a48HpFlQaQCSOWcS/4nIAvbaUYFnobBIwkP mjAesIZllOjKRicI47pgS5+wzQ5YgzQU0O2/AifLSUQjjSA+7mKpB19PRGU3474MVbWDTnH/wpz uonIDxyz5JA91iCTTz7AmpKY9HFtr9GNjLBT63N5I1Xh7F X-Gm-Gg: ASbGncusj6WrLntjO6ApJPcp+42b8uLWsDiReAT8rzZEHeF7rfdXvbBAM4v1iGBv9Y2 U8fP0xCk0ZpuxrRdNQrAf/fF+5QCptdBJ4/lo6ZpVD4JDYYnIALNZen82dYgS9pigzyS/g74r4s Wma3QKWCZp5YbULz3pdYuLVtCcfMYiWgaPm4EJLU4rSXaxvLg6Sbhnbstw8SEZVMHsRhGw7CPPZ Up/COHoUmBz28zi52Hzo0TIIi2BkeOqedRX9ywUGD+5liAlfvfJCdrQzlEMt/hIIJdiieUtrCXT 5HmzmQ== X-Google-Smtp-Source: AGHT+IGkQEQhtzFsufICB4DTLKiak+NF6QYZWdUlZIyTO2pwITRNoyLVMwo05qfQ7LnD6bOPsPTjQw== X-Received: by 2002:a17:902:f64c:b0:212:6981:7587 with SMTP id d9443c01a7336-2129fd0fc42mr19001305ad.24.1732245756994; Thu, 21 Nov 2024 19:22:36 -0800 (PST) From: frank.chang@sifive.com To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org Cc: Tommy Wu , Frank Chang Subject: [PATCH v9 5/6] target/riscv: Add Smrnmi cpu extension Date: Fri, 22 Nov 2024 11:22:16 +0800 Message-Id: <20241122032217.3816540-6-frank.chang@sifive.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241122032217.3816540-1-frank.chang@sifive.com> References: <20241122032217.3816540-1-frank.chang@sifive.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::62c; envelope-from=frank.chang@sifive.com; helo=mail-pl1-x62c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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 @sifive.com) X-ZM-MESSAGEID: 1732245850414116600 Content-Type: text/plain; charset="utf-8" From: Tommy Wu This adds the properties for ISA extension Smrnmi. Signed-off-by: Frank Chang Signed-off-by: Tommy Wu --- target/riscv/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index b402d8545b..6c91464a00 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -186,6 +186,7 @@ const RISCVIsaExtData isa_edata_arr[] =3D { ISA_EXT_DATA_ENTRY(smaia, PRIV_VERSION_1_12_0, ext_smaia), ISA_EXT_DATA_ENTRY(smcntrpmf, PRIV_VERSION_1_12_0, ext_smcntrpmf), ISA_EXT_DATA_ENTRY(smepmp, PRIV_VERSION_1_12_0, ext_smepmp), + ISA_EXT_DATA_ENTRY(smrnmi, PRIV_VERSION_1_12_0, ext_smrnmi), ISA_EXT_DATA_ENTRY(smstateen, PRIV_VERSION_1_12_0, ext_smstateen), ISA_EXT_DATA_ENTRY(ssaia, PRIV_VERSION_1_12_0, ext_ssaia), ISA_EXT_DATA_ENTRY(ssccptr, PRIV_VERSION_1_11_0, has_priv_1_11), @@ -1516,6 +1517,7 @@ const RISCVCPUMultiExtConfig riscv_cpu_extensions[] = =3D { =20 MULTI_EXT_CFG_BOOL("smaia", ext_smaia, false), MULTI_EXT_CFG_BOOL("smepmp", ext_smepmp, false), + MULTI_EXT_CFG_BOOL("smrnmi", ext_smrnmi, false), MULTI_EXT_CFG_BOOL("smstateen", ext_smstateen, false), MULTI_EXT_CFG_BOOL("ssaia", ext_ssaia, false), MULTI_EXT_CFG_BOOL("svade", ext_svade, false), --=20 2.34.1