From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-sender-0.a4lg.com (mail-sender-0.a4lg.com [IPv6:2401:2500:203:30b:4000:6bfe:4757:0]) by sourceware.org (Postfix) with ESMTPS id D3754385802F for ; Tue, 29 Nov 2022 01:21:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D3754385802F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=irq.a4lg.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=irq.a4lg.com Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 3F25B300089; Tue, 29 Nov 2022 01:21:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irq.a4lg.com; s=2017s01; t=1669684866; bh=WyX5DcmL9iMZnzBr7+E7lu7bDa97tocuw4mWuWh1WGc=; h=From:To:Cc:Subject:Date:Message-Id:Mime-Version: Content-Transfer-Encoding; b=FtNUYrhAXngwp8UiE/9nXYP41JV/u/Jq3reS52Eye7n9QHx1NVpueYSUpnNzUUxMA jIknqykQl//THTyyK/pBNLPEQprNHvDk/r2GpC0VgKoJG84524eztgXA6IfZFiWidD nwvTQNA9yq0vSNMV0K1/ejSk1m6b4gHk4PT/n1Sk= From: Tsukasa OI To: Tsukasa OI Cc: binutils@sourceware.org Subject: [REVIEW ONLY 0/2] UNRATIFIED RISC-V: Add 'Sspmp' extension and its TENTATIVE CSRs Date: Tue, 29 Nov 2022 01:20:56 +0000 Message-Id: Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: *** WAIT FOR SPECIFICATION FREEZE *** This is an implementation for unratified and not frozen RISC-V extension and not intended to be merged for now. The only intent to submit this patchset is to test new instructions for your (possibly virtual) environment and early review for fast adoption after ratification. This patchset adds following unratified extension to GNU Binutils: - 'Sspmp' (S-mode Physical Memory Protection - SPMP) version 0.8 (may change on ratification) which adds 82 CSRs. This extension, like regular PMP in M-mode, provides SPMP feature when virtual memory system (paging) is not enabled. Because of different usecases than regular PMP, it comes with 2 CSRs to provide fast enabled SPMP entry switching. This is based on the commit c1e38ede20e4 of the specification document: Note that all (82) CSR values are not allocated yet. So, these CSRs are assigned with custom range values and this patchset comes with an instantiation script ("$(srcdir)/instantiate-sspmp.sh") to assign custom values (overwrites all related files and removes itself). Tsukasa OI (2): UNRATIFIED RISC-V: Add 'Sspmp' extension and its TENTATIVE CSRs TEST: Add instantiation script on CSR allocation bfd/elfxx-riscv.c | 2 + gas/config/tc-riscv.c | 7 + gas/testsuite/gas/riscv/csr-dw-regnums.d | 82 +++++++++ gas/testsuite/gas/riscv/csr-dw-regnums.s | 83 +++++++++ gas/testsuite/gas/riscv/csr-version-1p10.d | 164 ++++++++++++++++++ gas/testsuite/gas/riscv/csr-version-1p10.l | 182 ++++++++++++++++++++ gas/testsuite/gas/riscv/csr-version-1p11.d | 164 ++++++++++++++++++ gas/testsuite/gas/riscv/csr-version-1p11.l | 182 ++++++++++++++++++++ gas/testsuite/gas/riscv/csr-version-1p12.d | 164 ++++++++++++++++++ gas/testsuite/gas/riscv/csr-version-1p12.l | 182 ++++++++++++++++++++ gas/testsuite/gas/riscv/csr-version-1p9p1.d | 164 ++++++++++++++++++ gas/testsuite/gas/riscv/csr-version-1p9p1.l | 182 ++++++++++++++++++++ gas/testsuite/gas/riscv/csr.s | 84 +++++++++ include/opcode/riscv-opc.h | 166 ++++++++++++++++++ instantiate-sspmp.sh | 130 ++++++++++++++ 15 files changed, 1938 insertions(+) create mode 100755 instantiate-sspmp.sh base-commit: cb44f89ce977b1ab2d4063f2487950bddfb75bc7 -- 2.38.1