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 426CACA0ED3 for ; Mon, 2 Sep 2024 07:14:56 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sl1GZ-0008No-4v; Mon, 02 Sep 2024 03:14:23 -0400 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 1sl1GV-0008Ag-GX for qemu-riscv@nongnu.org; Mon, 02 Sep 2024 03:14:19 -0400 Received: from mail-io1-xd29.google.com ([2607:f8b0:4864:20::d29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sl1GT-0003hj-8S for qemu-riscv@nongnu.org; Mon, 02 Sep 2024 03:14:18 -0400 Received: by mail-io1-xd29.google.com with SMTP id ca18e2360f4ac-82a1741aa31so228702939f.1 for ; Mon, 02 Sep 2024 00:14:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1725261255; x=1725866055; 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=CdpxHGAujFiCeLIq9jDNKBjdMMvfgjRI0rVz+c1fYDY=; b=AEcoJz6qTfnzN1LisVaShOlKxTkO+3Yimqi24G3ftebmMyNakNugOVCBzKuP2qeRBy 1tPJuWNZXodbYeUU6hQ7iaMi5WNk57M5hCwRPRTh7o+E38bSY7GZ2M77oFOGkxydxEVe sIRAxUdhJl5NAITkzF0a25QsnFnS1Zn+E17z6A7CbB0lebIf/8BziMi+DtTJy47Tfoce nRXOvBVas8GyRJDmnr29l7imQimFJlkxJb4v1+iSTKa7Ghc1G0MtnpEFUdeYju5XquhV 1XNbZ6sQ6lN6ZhpjfgPlJUv9LrZkDoOdeTac5AWXui41azghv8PXXrrEF6+IhzPhs7Jd J/WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725261255; x=1725866055; 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=CdpxHGAujFiCeLIq9jDNKBjdMMvfgjRI0rVz+c1fYDY=; b=edQXwVDtrfd32s5Q8NMdjkEFYXlG0XzfHjaULkAJsEleo8ZDFGNT2YkahOj4PBWy3J 3vfTEVicG3YgUEp5bGIKe2ia78m7o8eXRnrgIu6ZOFdY5CV4Bh8gIyLYt9whAbxdWQEC 9uv2oIhoY3GVAdxWMVpO8J677Ksw6wdPGtffZ96JfGlAT+1tFvc8hrKGvlkO7FqUU+/m jILRsD4wQa/VLAhglrydEiuwN2ddKq5JwNDoKBRgTBQ96IE2xpXdBKdqGprewfau+Skh celfLsIfSzM7DLqdJkm8G/CCT7CAF5ueaSIOozc81tTNXthO5xvPGSp4LW/zinPCz/HV KUPg== X-Forwarded-Encrypted: i=1; AJvYcCWT75FrUf/xNqlTXUWI581AJYWi6pdMab4xPnee1owJwyuNnL3Osj77qCMfxOedYZk1+HY69xyIkQB/@nongnu.org X-Gm-Message-State: AOJu0YyDLtDmYgQKtEKHYAhC6qBYr5HgXIHa0wUgAlY6crYMDVP4YMbT u+H6lzBPNBCRoMZfrLiPv+QT1K6Io/+jv+mnhw1mwe6SoeHLS2uM7XTKy8JPKU4wjUqUKeemGd7 9Ctk= X-Google-Smtp-Source: AGHT+IEIVFy3tOcTRngNnmHu/lk63dW1PlYnAmjR9tHhfs6muJKuhhw4a2rH12Ma47kEY518P9IcUg== X-Received: by 2002:a05:6e02:1d17:b0:39f:5521:2cd4 with SMTP id e9e14a558f8ab-39f55213075mr46579255ab.26.1725261254939; Mon, 02 Sep 2024 00:14:14 -0700 (PDT) Received: from sw07.internal.sifive.com ([4.53.31.132]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7d22e743252sm6793331a12.15.2024.09.02.00.14.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 00:14:14 -0700 (PDT) From: Tommy Wu To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org Cc: frank.chang@sifive.com, palmer@dabbelt.com, alistair.francis@wdc.com, alistair23@gmail.com, bin.meng@windriver.com, liweiwei@iscas.ac.cn, dbarboza@ventanamicro.com, ajones@ventanamicro.com, Tommy Wu Subject: [PATCH v6 1/5] target/riscv: Add `ext_smrnmi` in the RISCVCPUConfig. Date: Mon, 2 Sep 2024 00:13:54 -0700 Message-Id: <20240902071358.1061693-2-tommy.wu@sifive.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240902071358.1061693-1-tommy.wu@sifive.com> References: <20240902071358.1061693-1-tommy.wu@sifive.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::d29; envelope-from=tommy.wu@sifive.com; helo=mail-io1-xd29.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@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-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org The boolean variable `ext_smrnmi` is used to determine whether the Smrnmi extension exists. Signed-off-by: Frank Chang Signed-off-by: Tommy Wu Reviewed-by: Alistair Francis --- target/riscv/cpu_cfg.h | 1 + 1 file changed, 1 insertion(+) diff --git a/target/riscv/cpu_cfg.h b/target/riscv/cpu_cfg.h index 8b272fb826..ae2a945b5f 100644 --- a/target/riscv/cpu_cfg.h +++ b/target/riscv/cpu_cfg.h @@ -125,6 +125,7 @@ struct RISCVCPUConfig { bool ext_ssaia; bool ext_sscofpmf; bool ext_smepmp; + bool ext_smrnmi; bool rvv_ta_all_1s; bool rvv_ma_all_1s; -- 2.39.3