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 B450A3858CD1 for ; Sun, 3 Sep 2023 02:42:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B450A3858CD1 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 6F45B300089; Sun, 3 Sep 2023 02:42:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irq.a4lg.com; s=2017s01; t=1693708933; bh=nyMHGuSqHFsEnOxRnKFJdww4DuXzqJXtAicTQl+pSV0=; h=From:To:Cc:Subject:Date:Message-ID:Mime-Version: Content-Transfer-Encoding; b=Wk6pI/IJfLjxeS35NqLV6nYhzmgd/XKRpQM+G2VLV+Q87PLOJUv9GHswTafoWftvp bWPIL5n2unilv0bKAgvhxzkJpfjVecGQ4QQVU4yCBoflZaoOK4kj+YPQf02E4ww0bK ZrfNOkHdIA6NaTMvzg/qPLn80MS3+QwGh9ckVRHY= From: Tsukasa OI To: Tsukasa OI , Palmer Dabbelt , Andrew Waterman , Jim Wilson , Nelson Chu , Kito Cheng , Jiawei Cc: binutils@sourceware.org Subject: [PATCH 0/1] RISC-V: Add 'Smcntrpmf' extension and its CSRs Date: Sun, 3 Sep 2023 02:42:00 +0000 Message-ID: Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,KAM_MANYTO,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hello, This patch set implements the 'Smcntrpmf' extension: This specification is frozen and now approved. Note that, despite that this patch set is indepdendently created, it resolved some issues of Jiawei's support patch for the same extension: My patch implements the extension without removing "mscounteren" and "mhcounteren" CSRs. 1. "mscounteren" and "mhcounteren" CSRs are moved and marked as aliases. 2. CSRs of the 'Smcntrpmf' extension is marked incompatible with the privileged specification version 1.9.1 (because it conflicts with "mscounteren" and "mhcounteren"). For 2., this is not normal for RISC-V extensions but considered necessary (because of direct conflicts of the CSR values). Thanks to them, "mscounteren" and "mhcounteren" are preferred when disassembling with the privileged specification 1.9.1 (that is more natural). Other than that, this is a quite normal extension support patch set. Thanks, Tsukasa Tsukasa OI (1): RISC-V: Add 'Smcntrpmf' extension and its CSRs bfd/elfxx-riscv.c | 2 ++ gas/config/tc-riscv.c | 9 +++++ gas/testsuite/gas/riscv/csr-dw-regnums.d | 8 +++-- gas/testsuite/gas/riscv/csr-dw-regnums.s | 9 +++-- gas/testsuite/gas/riscv/csr-version-1p10.d | 16 ++++++--- gas/testsuite/gas/riscv/csr-version-1p10.l | 40 ++++++++++++++++----- gas/testsuite/gas/riscv/csr-version-1p11.d | 16 ++++++--- gas/testsuite/gas/riscv/csr-version-1p11.l | 40 ++++++++++++++++----- gas/testsuite/gas/riscv/csr-version-1p12.d | 16 ++++++--- gas/testsuite/gas/riscv/csr-version-1p12.l | 40 ++++++++++++++++----- gas/testsuite/gas/riscv/csr-version-1p9p1.d | 16 ++++++--- gas/testsuite/gas/riscv/csr-version-1p9p1.l | 40 +++++++++++++++++++++ gas/testsuite/gas/riscv/csr.s | 10 ++++-- include/opcode/riscv-opc.h | 14 ++++++-- 14 files changed, 228 insertions(+), 48 deletions(-) base-commit: a496e1a71e1766d4bb02b241cb23e2e9874d2605 -- 2.42.0