From patchwork Tue Dec 17 06:24:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Chang X-Patchwork-Id: 13911166 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 79C33E77184 for ; Tue, 17 Dec 2024 06:26:23 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNR1T-0003BH-9M; Tue, 17 Dec 2024 01:25:36 -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 1tNR1I-00031g-Jv for qemu-devel@nongnu.org; Tue, 17 Dec 2024 01:25:26 -0500 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNR1B-00054o-LI for qemu-devel@nongnu.org; Tue, 17 Dec 2024 01:25:24 -0500 Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-725ef0397aeso4336204b3a.2 for ; Mon, 16 Dec 2024 22:25:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1734416714; x=1735021514; 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=ao9h6MAmm6BUcuG9oLKvxKpzXvKNCgrPHPGGD/55dt0=; b=JzLFZN3TczODuAIAdCrucRzBGhIb5MuifucWHnYElqsAmUCrSsn98oeAJVmantQ0KW yvjKOR8hGQGKYS+tPgElLQ2scHvf5g8XZc49Yt2dPwmy4N/xG7YIt53EQ2t+//mWU6/i /5BpJoYycpjpVaPePP6rqtta1lMpUiWFT+FpNYES7jjgq+lh0zm88JYHEXX7tO/uwWIU 7WbKR8Vival65CrS8xQ6niAmZYCbbvmQSZ7pPoC0G0h6z4VJMWPAoWBzsM0S5Wc3tQVy TaIoWxtOFtKRnEI+eDoCoTapiZwb7yopHTYRmeg0YbaNFJT3XeeOouT+PhXFptFxRjLz uHNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734416714; x=1735021514; 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=ao9h6MAmm6BUcuG9oLKvxKpzXvKNCgrPHPGGD/55dt0=; b=jSHcJnvWoMGARnnBHRbPEqRBZVW1sfeYNI1jJdXk3dm86J6hOAY31PUGmK0JksHg/A mWMruZsQt6Cks7N1ujz6uXFzBLmS7O7WdYB9L2JQXx5xqYJXnEzFcbpDk+AaxVJAw93C NKrp0YjsyvQx3HDO0Rxn24d4rBrchUwMXJsDpXn6AM90XZOBDBVjSZU3miUsbwvD/hIG 1ehCa8bLjS/cgcLAs7I6axXkMELvald/9uBO+XLK/n0mwNvZPbXEFdMZq1Jmr4LAxgKS 5sfydahshS0jCgEnJfbODW7OPoRtOJmkMRfMXZUtDE+Iwvr/ojio7L7kODy02mJClQLU YXGA== X-Gm-Message-State: AOJu0YwD4PhpCcqO0P7NvU6ZUx5+t1FhqCdj8PNjI3tLEdIjrrAogY91 GLP/Q7UktmK7dQgJx7lRiNSyzJO8QGIgGJpbeUs2FiGyqZEi3K4iypt/BeOIlfBd5Hs50U03W0Z bmcj3/Y7k5T23dw7fEOSYE7d3fLHc+BXADVb1W8zliWBrE9mKvl5e4Ccdd/LA6P5c8prn5H63ON bLJ6cVqzuVUrBt5Gn9nIV6N+RvXevsPhG8VuKR7dSyiQ== X-Gm-Gg: ASbGnctym/cJYAci6icOtiRNWJdKzDNkorOL5YoSbUvMHvDDg8ejQ9bNOkJeXSuBOju F+J/rXXRQboGOM+154kDI1X2yW+dkH5dvLxZXdM5Meg0sGbHGrpHI7icYy3Caa5E7U+glub9yRR BEVCoYTL6s/vrsfSTiiPVallyUFoT//U5MUaV4NscRs6S3e0/4622EXlxvDuf5DYzZqjDYcEC0W su1RpGK9SdIAbl8ZwmYgmsvRHGLGJloMFU5cZRGnCicWym7JS1K6C5Y7EsxZFhOL0ZP9Q2VgIwg PeL4T7o7Vdk= X-Google-Smtp-Source: AGHT+IHceF+NCERcd30L/eEI3ORecwFOuuPdPpucKZl3xiJ8hixvPiajKtt/c0yVxFAG5NyKKbJ/Yw== X-Received: by 2002:a05:6a00:301a:b0:725:e015:9082 with SMTP id d2e1a72fcca58-7290c0e17dcmr22978385b3a.5.1734416714123; Mon, 16 Dec 2024 22:25:14 -0800 (PST) Received: from fchang-1826.internal.sifive.com ([210.176.154.33]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72925e6e8b1sm4354301b3a.139.2024.12.16.22.25.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Dec 2024 22:25:13 -0800 (PST) From: frank.chang@sifive.com To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Bin Meng , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei , Tommy Wu , Frank Chang Subject: [PATCH v10 5/7] target/riscv: Add Smrnmi cpu extension Date: Tue, 17 Dec 2024 14:24:38 +0800 Message-Id: <20241217062440.884261-6-frank.chang@sifive.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241217062440.884261-1-frank.chang@sifive.com> References: <20241217062440.884261-1-frank.chang@sifive.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42f; envelope-from=frank.chang@sifive.com; helo=mail-pf1-x42f.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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org From: Tommy Wu This adds the properties for ISA extension Smrnmi. Signed-off-by: Frank Chang Signed-off-by: Tommy Wu Reviewed-by: Daniel Henrique Barboza --- target/riscv/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index e6988f44c6..7a4aa235ce 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -193,6 +193,7 @@ const RISCVIsaExtData isa_edata_arr[] = { 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), @@ -1621,6 +1622,7 @@ const RISCVCPUMultiExtConfig riscv_cpu_extensions[] = { 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),