[REVIEW,ONLY,v2,0/1] UNRATIFIED RISC-V: Add support for Core-Local Interrupt Controller (CLIC) extensions and their CSRs
Message ID | cover.1694482743.git.research_trasio@irq.a4lg.com |
---|---|
Headers |
Return-Path: <binutils-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B0CBE3857030 for <patchwork@sourceware.org>; Tue, 12 Sep 2023 01:39:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B0CBE3857030 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1694482796; bh=CMTO4vF2064Fe14XkDtIoQj7j+spbo5d8/6WezfOD2c=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=RHNsqCq33J0buYQyPMSz1+lXVtX1CyU4L6uZupFe+A2oqa88Vnq9v0avUlafFW+vI ahCMFY0GnRe1zwQr97FIpCC76i11l0Fqqxj0A0zm4Km2YkPj6+JlKxFBOwOi/UYWZj hOrFVAwwqiCC+1NNrQOB5049JH6yDHQGFtzHsRqk= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-sender-0.a4lg.com (mail-sender.a4lg.com [153.120.152.154]) by sourceware.org (Postfix) with ESMTPS id CF9103858D38 for <binutils@sourceware.org>; Tue, 12 Sep 2023 01:39:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CF9103858D38 Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id B2670300089; Tue, 12 Sep 2023 01:39:25 +0000 (UTC) To: Tsukasa OI <research_trasio@irq.a4lg.com> Cc: binutils@sourceware.org Subject: [REVIEW ONLY v2 0/1] UNRATIFIED RISC-V: Add support for Core-Local Interrupt Controller (CLIC) extensions and their CSRs Date: Tue, 12 Sep 2023 01:39:07 +0000 Message-ID: <cover.1694482743.git.research_trasio@irq.a4lg.com> In-Reply-To: <cover.1669684774.git.research_trasio@irq.a4lg.com> References: <cover.1669684774.git.research_trasio@irq.a4lg.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.0 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 X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> From: Tsukasa OI via Binutils <binutils@sourceware.org> Reply-To: Tsukasa OI <research_trasio@irq.a4lg.com> Errors-To: binutils-bounces+patchwork=sourceware.org@sourceware.org Sender: "Binutils" <binutils-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
UNRATIFIED RISC-V: Add support for Core-Local Interrupt Controller (CLIC) extensions and their CSRs
|
|
Message
Tsukasa OI
Sept. 12, 2023, 1:39 a.m. UTC
*** 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. It's long since I submitted the previous version and it's a good time to submit new REVIEW ONLY one, knowing if it's unratified. Changes: v1 -> v2 * Rebased against the latest master. * Added support for 'Smclicconfig', 'Smclicshv' and 'Ssclic' extensions (following the latest CLIC specification). * Added diagnostics-only support for the 'Suclic' extension (likewise). This patchset adds following unratified extensions to GNU Binutils from the Core-Local Interrupt Controller (CLIC) RISC-V Privileged Architecture Extensions: 1. 'Smclic' 2. 'Smclicconfig' 3. 'Smclicshv' 4. 'Ssclic' 5. 'Suclic' (because 'N' extension support is now dropped by GNU Binutils, this extension is only supported to generate correct diagnostics that's why this extension is *not* in riscv_supported_std_s_ext). that add 18 CSRs in total. These extensions are software side of Core-Local Interrupt Controller (CLIC) which provides lower latency local interrupts. This is based on the specification document, version 0.9-draft: <https://github.com/riscv/riscv-fast-interrupt/blob/894a16ce89dcf2c084dd951866448c2e756d3efa/clic.pdf> Although that 18 CSRs are assigned with actual numbers (this is why I'm not attaching "CSR instantiation" script in this patchset), it may be changed before ratification. Be careful. Thanks, Tsukasa Tsukasa OI (1): UNRATIFIED RISC-V: Add CLIC extensions with CSRs bfd/elfxx-riscv.c | 10 ++- gas/config/tc-riscv.c | 12 ++++ gas/testsuite/gas/riscv/csr-dw-regnums.d | 17 +++++ gas/testsuite/gas/riscv/csr-dw-regnums.s | 18 +++++ gas/testsuite/gas/riscv/csr-version-1p10.d | 34 ++++++++++ gas/testsuite/gas/riscv/csr-version-1p10.l | 74 +++++++++++++++++++++ gas/testsuite/gas/riscv/csr-version-1p11.d | 34 ++++++++++ gas/testsuite/gas/riscv/csr-version-1p11.l | 74 +++++++++++++++++++++ gas/testsuite/gas/riscv/csr-version-1p12.d | 34 ++++++++++ gas/testsuite/gas/riscv/csr-version-1p12.l | 74 +++++++++++++++++++++ gas/testsuite/gas/riscv/csr-version-1p9p1.d | 34 ++++++++++ gas/testsuite/gas/riscv/csr-version-1p9p1.l | 74 +++++++++++++++++++++ gas/testsuite/gas/riscv/csr.s | 19 ++++++ include/opcode/riscv-opc.h | 36 ++++++++++ 14 files changed, 543 insertions(+), 1 deletion(-) base-commit: 318d3bda5cad124bd11eebb0349d0f183ba625b1