From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-sender-0.a4lg.com (mail-sender.a4lg.com [153.120.152.154]) by sourceware.org (Postfix) with ESMTPS id CF9103858D38 for ; Tue, 12 Sep 2023 01:39:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CF9103858D38 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 B2670300089; Tue, 12 Sep 2023 01:39:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irq.a4lg.com; s=2017s01; t=1694482765; bh=CMTO4vF2064Fe14XkDtIoQj7j+spbo5d8/6WezfOD2c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Mime-Version:Content-Transfer-Encoding; b=d3TSYNzopXvbhTIWnNaaJuZewimyMUrJlKocW3Uy6ZkiHCBzG2nvKy5J8PRCEMe6I pRYXEOLJh8gipPm84A6KPnmuLL+r/61ewCA/gfaQfSxOhphC1EzbuAjyjkPxg4rNaC WACLIWVDv/YSxJjR1MgRp1N84m9fnwUoMx2kfDUI= From: Tsukasa OI To: Tsukasa OI 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: In-Reply-To: References: 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 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. 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: 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 -- 2.42.0