From nobody Wed Nov 27 14:38:29 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=1698885451; cv=none; d=zohomail.com; s=zohoarc; b=foTHug3R5hiQ5W4wrYLoq2Vt8NNnVo1g7qQRGMBUJ5xlwWTZZLl+dx0HYv60SqEM9O9hS+WAfPtnk77Z66A2ezKdyin+DNxtdcS3kt2hGHmIvzG2VC8R/1H4v819W5MMq43Y7g4kfn9kFowQdWnYPnSQKTxGWYPXr5AYChiBcn0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1698885451; 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=FTV7NcDk/hTWIHMNPWQ0O6MvWNLhredSstTSD9wYGNw=; b=ftfK+5IQwoKihQwjo9j5Nj65Ux4RuKZL42deIg6JMzg+6AOjnr7BsF08HQEOHK/Ekx/aLQJfja+6etoOTIRfHUH6E5B3ydtPhyl0ik2Lp+e4TbVGzpvjW3uwtmcdAH0HmAUaSKmPmiGmxniJG3LGuyE6vwgPPLMbQDyYsdEPf/Y= 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 169888545116541.37915558040777; Wed, 1 Nov 2023 17:37:31 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qyLfj-00049a-DZ; Wed, 01 Nov 2023 20:34:55 -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 1qyLfh-0003uc-KL; Wed, 01 Nov 2023 20:34:53 -0400 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qyLfc-00044A-9z; Wed, 01 Nov 2023 20:34:53 -0400 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-6b5e6301a19so490780b3a.0; Wed, 01 Nov 2023 17:34:46 -0700 (PDT) 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 k187-20020a633dc4000000b0057c29fec795sm411783pga.37.2023.11.01.17.34.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 17:34:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698885285; x=1699490085; 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=FTV7NcDk/hTWIHMNPWQ0O6MvWNLhredSstTSD9wYGNw=; b=bOJSFLNKk6w9BoyEpf4zuCtKzt2x4MfD9twt91xKRaRDF24wLKpmrPPmuelSS//gQs veDczrQYZKJ9vQ1xzqkUnYbseVd7fJwCr9vDxsKbmYgyV9ZN7H45Y9zu6M2cxxO0wRcN VzLmwZUPa+GMIT6fUVlMXxtpTDotDCluwpvBMp3llMe2dyyC/QjNOOYWqrpsD3GDCwdI laPy/5fjfAS3VFVroqzis4nE4RWgSmE9rHtGjnPKzfj5w6aM/PnyQ7KxbKHYJDR/x1cL inou5Ce5UW3HVyn465n0cxwDxtPRrOCr/8w88HRJUfCGhM7BsUHzrECt51kGPHk5yOzO CxiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698885285; x=1699490085; 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=FTV7NcDk/hTWIHMNPWQ0O6MvWNLhredSstTSD9wYGNw=; b=HbVeteLU9kNTzpbXPn8l44HQS0PAimHfQ/67XzrIr4Avy/B9R2DIz7tksvSKUiYHl7 DVYYUuWLNIToAF4o/xAWhtkbGy/IOJbqGjMR67JS8vDeLFeqzN1nK88IsADQMf7IvP+x +uiObbsb0VgqK/n+agZoqnluHiKTTk65Dfudjc+3CLoNzzZDIScfD1rXu7x8/AurNoCL tLVd8gpiPiwIWDrJEt5vqPH+6cXlEpk2ZuzcuJfjq2vE1K5YbN0ofcnuH2HKkyyn9yIE SRyghiWPQMxckcQKSayn/ZH2wZ1lLWqgEUz6az0DLZH/ZJMSN8efYYhRGtg9fC6/5+e6 Neyg== X-Gm-Message-State: AOJu0YwsvQ3pCdCD1GyDSMAomhrKdzURk324pJTOaEwcz5v4vn+sGhTX SjJjSYvtGBixhFkDX0Dm6uK6By0tcfj1OA== X-Google-Smtp-Source: AGHT+IFXCA/xCcpDqIq7ITkQokcXOG51qsIS87l9PUrnuEC8ZrOJBcOYhaZyFPGrlASYamY4iif/cQ== X-Received: by 2002:a05:6a00:3a96:b0:6c1:6695:a6e0 with SMTP id fk22-20020a056a003a9600b006c16695a6e0mr5950487pfb.23.1698885284931; Wed, 01 Nov 2023 17:34:44 -0700 (PDT) From: Alistair Francis X-Google-Original-From: Alistair Francis To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org Cc: liweiwei@iscas.ac.cn, Alistair Francis , Alistair Francis , Palmer Dabbelt , alistair23@gmail.com, Bin Meng , Liu Zhiwei , Daniel Henrique Barboza , bmeng.cn@gmail.com Subject: [PATCH 2/2] target/riscv: cpu: Set the OpenTitan priv to 1.12.0 Date: Thu, 2 Nov 2023 10:34:24 +1000 Message-ID: <20231102003424.2003428-3-alistair.francis@wdc.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231102003424.2003428-1-alistair.francis@wdc.com> References: <20231102003424.2003428-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::42b; envelope-from=alistair23@gmail.com; helo=mail-pf1-x42b.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: 1698885452721100009 Content-Type: text/plain; charset="utf-8" Set the Ibex CPU priv to 1.12.0 to ensure that smepmp/epmp is correctly enabled. Signed-off-by: Alistair Francis Reviewed-by: Daniel Henrique Barboza --- target/riscv/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index ac4a6c7eec..b37b9107cd 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -595,7 +595,7 @@ static void rv32_ibex_cpu_init(Object *obj) RISCVCPU *cpu =3D RISCV_CPU(obj); =20 riscv_cpu_set_misa(env, MXL_RV32, RVI | RVM | RVC | RVU); - env->priv_ver =3D PRIV_VERSION_1_11_0; + env->priv_ver =3D PRIV_VERSION_1_12_0; #ifndef CONFIG_USER_ONLY set_satp_mode_max_supported(cpu, VM_1_10_MBARE); #endif --=20 2.41.0