From nobody Mon Feb 9 20:32:07 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail header.i=@wdc.com; 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=fail(p=none dis=none) header.from=wdc.com ARC-Seal: i=1; a=rsa-sha256; t=1617367897; cv=none; d=zohomail.com; s=zohoarc; b=er8iSl2UVU275XsyD1Wg8GyJO6C09BVl+QK7zqqMqDPTyfc2XReZn81aR+/RQJ/e219Y1NRmO1/mau1Qf7MZAxnFUkVW6bgUGRg2Q1U3lKSo2aANew7zFJxT1YQmH3sYdDQiVUiKF1rLEW2EAZA/ODGo061jDvlI0a7zWkmjS2I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1617367897; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=GYkPLEswBCNv7wMcjwYCShIiWP+88clOJHXIcRibmXk=; b=Y5H6VCrR35WB5iU5wZCbUNMD8KuO8S0SYXYWPvA2RjZf4TI5SYG1yhN60DQiW29VSGLq4dHaOuQZJugy6IKardT0lcojanXKqPl+f8zEscIJNY4eJtQ4LNErwrHHsNlIbsxtixeDUlb4klFVXMnO9cnV9cGK9js9tX8VGTUQIuA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail header.i=@wdc.com; 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=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1617367897114385.2295342553199; Fri, 2 Apr 2021 05:51:37 -0700 (PDT) Received: from localhost ([::1]:40578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSJGy-0002Ne-2e for importer@patchew.org; Fri, 02 Apr 2021 08:51:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSJF0-0001E1-UW; Fri, 02 Apr 2021 08:49:34 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:50879) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSJEz-0004o8-8t; Fri, 02 Apr 2021 08:49:34 -0400 Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 02 Apr 2021 20:49:31 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Apr 2021 05:29:37 -0700 Received: from unknown (HELO alistair-risc6-laptop.wdc.com) ([10.225.167.78]) by uls-op-cesaip02.wdc.com with ESMTP; 02 Apr 2021 05:49:30 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1617367772; x=1648903772; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=eCjdyiPAUhjBSzt373ttYpvN5BRMF04/VE5UxbyuPKc=; b=Ue4ph3oJlgjWr1eSPE2kPSqwGg4WJCv+b9g8nascCsv3oiOdbjjCDBUW dgw2A7rbvBbnTrDG+LFR8v2i4JSfN9sySSj2fiOhbUg8lx2UY0WYMwDcY 5WBEQ9vycy432giKyy7bcWSLvMCXD3O7JGcyFmKHAEIh2g5TU5tLTvBMh Zw1NQ33OqKyfs5DQrN4LRqqSwklgbepTXEdFGu0PIoLCjgJgPBzzWfhnH RJSdFhL9QFHPRottf3F293nqtkCO6nN4BorhG0PncPjeK6fWMk7NXIAVa Ai5amuAFkM74JIj+M/iVPwRfeaiKsRw1hBQPQVwKGVhqtrq7B/plL6H8R A==; IronPort-SDR: GHzlkI7UkI0Xe88BuB2VSO8RPLnjIGwLZ3VASS0RUCP0Mqz7kJGwOdRHSZOTddQzm5y+0LDc2m ERVIzsrl84OV36Mh7K+0JngGbv1+GvXcn66E2aSHUhsi+15R4tO0nYJETJU6A6tkdLtucbkoJQ 1Nte0I/a9hKamDX4dJ+icu+6fF4CKF4p40xRkJE3TUn8p/qjCJAmdYKeDq6cEItCMnjtE8ER+o pSf0eibGGQsK4dBRH3lyw1JZ3cF8qzffofilA9zoCBrdJXkmBTtSyuyN3/0eK4W0SuJtEoiywW Vnc= X-IronPort-AV: E=Sophos;i="5.81,299,1610380800"; d="scan'208";a="163663482" IronPort-SDR: c6Iq/LkIE6rbaq0sQoJvgQNrKEny9JhbSPhaHtZhxgJOgrxcUlrXx8pjwfMSHqp39fd7QUGhLV lZ/SfNaOCKfYysSATg9iotL1ALHk4FWG9o8vxjmv08jVgu5ldT08kGY1klGEhjGx0Bmz4AjRSv zIQOG79eqX19xa96Lt3LOTNAtsZA4ShOw4bUZZQ7+5SPLk3koDIAxJHJk+jL3X6aknA37F0A4q Ft/DwWjTr2o2OFcmnqDQbFjW4C9mUniowgGBOmonBIC88usVR4msQDjxt1bF2OQtd+2swwcDSN m7MLDjwUIn7u69uYscSczyW8 IronPort-SDR: aO7GtY22+jhAz1J80PpMYJaS3rqMYT66HNnEidVqyd3HT/2Il6+qsvwQ6x1BTf8yvBMOhHDdgH derZlQTbsb4ucEGDp/I53ZvamPxbISfBpEfj96DMsInTb1hyZCJj4+XaGGz5KY+jYWVo4bPmYy tdzwXP6R8CoPsvhMmbsDIKdpSTCn38JBb7OJub5dxtIZm6NAUxltXivrvtuk7GRzcsXTfP62KJ 1MpeHXUli2BvnwLEiJdg7LfMTTN4zv0+eARmp1CuvmSUX4EQaA+86yxr8nGhk/J6cH4AoGiGh7 3BA= WDCIronportException: Internal From: Alistair Francis To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org Subject: [PATCH v1 2/8] target/riscv: Define ePMP mseccfg Date: Fri, 2 Apr 2021 08:47:35 -0400 Message-Id: <5bf4e802b52fc4f8e57c8c03346cec716ea3ce32.1617367533.git.alistair.francis@wdc.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: References: 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=216.71.153.144; envelope-from=prvs=7197bd837=alistair.francis@wdc.com; helo=esa5.hgst.iphmx.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_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: weiying_hou@outlook.com, Ethan.Lee.QNL@gmail.com, alistair.francis@wdc.com, alistair23@gmail.com, palmer@dabbelt.com, bmeng.cn@gmail.com, camiyoru@gmail.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: Hou Weiying Use address 0x390 and 0x391 for the ePMP CSRs. Signed-off-by: Hongzheng-Li Signed-off-by: Hou Weiying Signed-off-by: Myriad-Dreamin Reviewed-by: Alistair Francis Message-Id: [ Changes by AF: - Tidy up commit message ] Signed-off-by: Alistair Francis Reviewed-by: Bin Meng --- target/riscv/cpu_bits.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/riscv/cpu_bits.h b/target/riscv/cpu_bits.h index caf4599207..32e1ee92dc 100644 --- a/target/riscv/cpu_bits.h +++ b/target/riscv/cpu_bits.h @@ -232,6 +232,9 @@ #define CSR_MTINST 0x34a #define CSR_MTVAL2 0x34b =20 +/* Enhanced PMP */ +#define CSR_MSECCFG 0x390 +#define CSR_MSECCFGH 0x391 /* Physical Memory Protection */ #define CSR_PMPCFG0 0x3a0 #define CSR_PMPCFG1 0x3a1 --=20 2.31.0