Message ID | cover.1667478033.git.research_trasio@irq.a4lg.com |
---|---|
Headers |
Return-Path: <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp495572wru; Thu, 3 Nov 2022 05:26:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM50+YA+1yvgAYPoq7e0YMjyCtsVV39v87/vZw/Fa3Gl72tROVNQu8gJ/TZDFhq3Oh+eec41 X-Received: by 2002:a17:907:6d1c:b0:7ae:2036:a166 with SMTP id sa28-20020a1709076d1c00b007ae2036a166mr1787383ejc.430.1667478406145; Thu, 03 Nov 2022 05:26:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667478406; cv=none; d=google.com; s=arc-20160816; b=OpXnndQH4ejpGbMu897jU7rwsw2eGwOqZF9IeZkse9IIgIVDmlrdlZsz8SJ5R5KTFQ tIL/tYQHSx5s+UgdJz9yMobIkcpm09oLa5uxOMYMck3SCtvZeTbpYTjdNQuotOPNVc8t wqZWZCW0xb/7T4766sL70/HVPRoeShxL5BYK93FRt5PlSv9xZrOXu4r3xVlcY0NC4bzi 6wmiVV1JaB214zPK4j9K2Mbo17tOVzHwpXdYS8lNUJs2t4oGJlgnJAdgp9GN4ZfuGdCw n+0jg/5TLiIP2n/pw1mtqy2s6uR5l9n6OaEW0H6HoxaxsRl3X9TNDgFOUNAxZxxsJxjG h6Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:to :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=ulSmwCT0aJkd6fPz435rceIujau7opsKz8WwJ5V38R4=; b=byn5rAsC0bp7oi8yLF3KlkU4DGmFMuw2/+f494FIQItXuk7UBokLerjCgJLzTutJPu Dn6GPS+tuhGSi+2ddtys53GNB16/fPl2d5vu36TE+EQgYCRqVXWOoQ6Kp6Srw/RnnugP spR589cQEXpEpRK06e/CkTJwk20d92um4bx3xq3RtoYOfi2wU4tUbAl0O9nh5HM8mamd HJqPPZUSwppP81Nvb265fmN7yQ4FO7iZ7PMaOExfQtpsBMZC/0XWf21jTX6fPf/Q7+jJ AulsFKTnT4mxhRLserGH8T8QJx2IPkSrFFks41jU6/8myN7VXQMPwohi2qjXJy78EtGK gBIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=TlScPKuc; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id e17-20020a17090658d100b00791a67e4c00si1191381ejs.835.2022.11.03.05.26.45 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 05:26:46 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=TlScPKuc; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EAAA33858404 for <ouuuleilei@gmail.com>; Thu, 3 Nov 2022 12:26:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EAAA33858404 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1667478405; bh=ulSmwCT0aJkd6fPz435rceIujau7opsKz8WwJ5V38R4=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=TlScPKucychghwWamMtZ6DyTqgTF+7LQSrKLcO8BSNYfkK2/xkDEW0PccLQ5tvvRo 4vrX+S/ZdBPCmNCt02pYJ/StbpiyjBmAkCOWAx6Tl0dQRE7DvWOVqzib7WTefq4Gx0 uJ5HHFN9pfoHEF2gRI9cfUv5CYeWSwOSP3nMZf4o= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org 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 B82903858D32 for <binutils@sourceware.org>; Thu, 3 Nov 2022 12:26:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B82903858D32 Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 6933A300089; Thu, 3 Nov 2022 12:26:32 +0000 (UTC) To: Tsukasa OI <research_trasio@irq.a4lg.com>, Nelson Chu <nelson@rivosinc.com>, Kito Cheng <kito.cheng@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com> Subject: [REVIEW ONLY 0/2] NEAR RATIFICATION RISC-V: Extensions from the RISC-V Profiles Date: Thu, 3 Nov 2022 12:26:27 +0000 Message-Id: <cover.1667478033.git.research_trasio@irq.a4lg.com> 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 X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 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> Cc: binutils@sourceware.org Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748477837059876666?= X-GMAIL-MSGID: =?utf-8?q?1748477837059876666?= |
Series |
NEAR RATIFICATION RISC-V: Extensions from the RISC-V Profiles
|
|
Message
Tsukasa OI
Nov. 3, 2022, 12:26 p.m. UTC
Hello, This patchset implements all extensions from RISC-V Profiles (but not profile itself). I'm not sure whether this patchset helps someone implementing RISC-V Profiles but I hope so. Thanks, Tsukasa Tsukasa OI (2): NEAR-RATIFICATION RISC-V: Add 'Ssstateen' extension and its CSRs NEAR-RATIFICATION RISC-V: Add platform property/capability extensions bfd/elfxx-riscv.c | 38 +++++++++++++++- gas/config/tc-riscv.c | 20 +++++---- gas/testsuite/gas/riscv/csr-version-1p10.l | 48 ++++++++++----------- gas/testsuite/gas/riscv/csr-version-1p11.l | 48 ++++++++++----------- gas/testsuite/gas/riscv/csr-version-1p12.l | 48 ++++++++++----------- gas/testsuite/gas/riscv/csr-version-1p9p1.l | 48 ++++++++++----------- gas/testsuite/gas/riscv/csr.s | 2 +- gas/testsuite/gas/riscv/smstateen-csr-s.d | 22 ++++++++++ gas/testsuite/gas/riscv/ssstateen-csr.d | 22 ++++++++++ gas/testsuite/gas/riscv/ssstateen-csr.s | 13 ++++++ include/opcode/riscv-opc.h | 26 +++++------ 11 files changed, 215 insertions(+), 120 deletions(-) create mode 100644 gas/testsuite/gas/riscv/smstateen-csr-s.d create mode 100644 gas/testsuite/gas/riscv/ssstateen-csr.d create mode 100644 gas/testsuite/gas/riscv/ssstateen-csr.s base-commit: ae1c45ead6b60ef0fd338bbeb6a4c5e5808c6e6a
Comments
On Thu, Nov 3, 2022 at 8:26 PM Tsukasa OI <research_trasio@irq.a4lg.com> wrote: > > Hello, > > This patchset implements all extensions from RISC-V Profiles (but not > profile itself). I'm not sure whether this patchset helps someone > implementing RISC-V Profiles but I hope so. > > Thanks, > Tsukasa > > > > > Tsukasa OI (2): > NEAR-RATIFICATION RISC-V: Add 'Ssstateen' extension and its CSRs Looks good. > NEAR-RATIFICATION RISC-V: Add platform property/capability extensions If we just need to recognize them in assembler, then it looks good. Thanks for arranging these bunch of extensions before everything gets messy... Generally, since they are frozen, we have good reason to commit them to the mainline. But if you prefer to wait until they are ratified, then that's also work to me, I believe you know when will be the best time, so please commit at that time. Thanks Nelson Nelson > bfd/elfxx-riscv.c | 38 +++++++++++++++- > gas/config/tc-riscv.c | 20 +++++---- > gas/testsuite/gas/riscv/csr-version-1p10.l | 48 ++++++++++----------- > gas/testsuite/gas/riscv/csr-version-1p11.l | 48 ++++++++++----------- > gas/testsuite/gas/riscv/csr-version-1p12.l | 48 ++++++++++----------- > gas/testsuite/gas/riscv/csr-version-1p9p1.l | 48 ++++++++++----------- > gas/testsuite/gas/riscv/csr.s | 2 +- > gas/testsuite/gas/riscv/smstateen-csr-s.d | 22 ++++++++++ > gas/testsuite/gas/riscv/ssstateen-csr.d | 22 ++++++++++ > gas/testsuite/gas/riscv/ssstateen-csr.s | 13 ++++++ > include/opcode/riscv-opc.h | 26 +++++------ > 11 files changed, 215 insertions(+), 120 deletions(-) > create mode 100644 gas/testsuite/gas/riscv/smstateen-csr-s.d > create mode 100644 gas/testsuite/gas/riscv/ssstateen-csr.d > create mode 100644 gas/testsuite/gas/riscv/ssstateen-csr.s > > > base-commit: ae1c45ead6b60ef0fd338bbeb6a4c5e5808c6e6a > -- > 2.37.2 >
On 2022/11/03 22:11, Nelson Chu wrote: > On Thu, Nov 3, 2022 at 8:26 PM Tsukasa OI <research_trasio@irq.a4lg.com> wrote: >> >> Hello, >> >> This patchset implements all extensions from RISC-V Profiles (but not >> profile itself). I'm not sure whether this patchset helps someone >> implementing RISC-V Profiles but I hope so. >> >> Thanks, >> Tsukasa >> >> >> >> >> Tsukasa OI (2): >> NEAR-RATIFICATION RISC-V: Add 'Ssstateen' extension and its CSRs > > Looks good. > >> NEAR-RATIFICATION RISC-V: Add platform property/capability extensions > > If we just need to recognize them in assembler, then it looks good. > Thanks for arranging these bunch of extensions before everything gets > messy... Generally, since they are frozen, we have good reason to > commit them to the mainline. But if you prefer to wait until they are > ratified, then that's also work to me, I believe you know when will be > the best time, so please commit at that time. Thanks for the review! I want to clarify that whether those names are actually extensions and I just pushed a pull request for this (related to PATCH 2/2): <https://github.com/riscv/riscv-profiles/pull/76> I will push this depending on the resolution of this pull request. Thanks, Tsukasa > > Thanks > Nelson > > Nelson > >> bfd/elfxx-riscv.c | 38 +++++++++++++++- >> gas/config/tc-riscv.c | 20 +++++---- >> gas/testsuite/gas/riscv/csr-version-1p10.l | 48 ++++++++++----------- >> gas/testsuite/gas/riscv/csr-version-1p11.l | 48 ++++++++++----------- >> gas/testsuite/gas/riscv/csr-version-1p12.l | 48 ++++++++++----------- >> gas/testsuite/gas/riscv/csr-version-1p9p1.l | 48 ++++++++++----------- >> gas/testsuite/gas/riscv/csr.s | 2 +- >> gas/testsuite/gas/riscv/smstateen-csr-s.d | 22 ++++++++++ >> gas/testsuite/gas/riscv/ssstateen-csr.d | 22 ++++++++++ >> gas/testsuite/gas/riscv/ssstateen-csr.s | 13 ++++++ >> include/opcode/riscv-opc.h | 26 +++++------ >> 11 files changed, 215 insertions(+), 120 deletions(-) >> create mode 100644 gas/testsuite/gas/riscv/smstateen-csr-s.d >> create mode 100644 gas/testsuite/gas/riscv/ssstateen-csr.d >> create mode 100644 gas/testsuite/gas/riscv/ssstateen-csr.s >> >> >> base-commit: ae1c45ead6b60ef0fd338bbeb6a4c5e5808c6e6a >> -- >> 2.37.2 >> >
On 2022/11/03 22:11, Nelson Chu wrote: > On Thu, Nov 3, 2022 at 8:26 PM Tsukasa OI <research_trasio@irq.a4lg.com> wrote: >> >> Hello, >> >> This patchset implements all extensions from RISC-V Profiles (but not >> profile itself). I'm not sure whether this patchset helps someone >> implementing RISC-V Profiles but I hope so. >> >> Thanks, >> Tsukasa >> >> >> >> >> Tsukasa OI (2): >> NEAR-RATIFICATION RISC-V: Add 'Ssstateen' extension and its CSRs > > Looks good. I will commit this (PATCH 1/2) soon. > >> NEAR-RATIFICATION RISC-V: Add platform property/capability extensions > > If we just need to recognize them in assembler, then it looks good. > Thanks for arranging these bunch of extensions before everything gets > messy... Generally, since they are frozen, we have good reason to > commit them to the mainline. But if you prefer to wait until they are > ratified, then that's also work to me, I believe you know when will be > the best time, so please commit at that time. Some pointed out that an extension name 'Ssptead' is no good: https://github.com/riscv/riscv-profiles/issues/81 New name would be 'Svptead'? In any case, I'll wait PATCH 2/2 until... at least this issue is resolved in the main branch in some way. Thanks, Tsukasa > > Thanks > Nelson > > Nelson > >> bfd/elfxx-riscv.c | 38 +++++++++++++++- >> gas/config/tc-riscv.c | 20 +++++---- >> gas/testsuite/gas/riscv/csr-version-1p10.l | 48 ++++++++++----------- >> gas/testsuite/gas/riscv/csr-version-1p11.l | 48 ++++++++++----------- >> gas/testsuite/gas/riscv/csr-version-1p12.l | 48 ++++++++++----------- >> gas/testsuite/gas/riscv/csr-version-1p9p1.l | 48 ++++++++++----------- >> gas/testsuite/gas/riscv/csr.s | 2 +- >> gas/testsuite/gas/riscv/smstateen-csr-s.d | 22 ++++++++++ >> gas/testsuite/gas/riscv/ssstateen-csr.d | 22 ++++++++++ >> gas/testsuite/gas/riscv/ssstateen-csr.s | 13 ++++++ >> include/opcode/riscv-opc.h | 26 +++++------ >> 11 files changed, 215 insertions(+), 120 deletions(-) >> create mode 100644 gas/testsuite/gas/riscv/smstateen-csr-s.d >> create mode 100644 gas/testsuite/gas/riscv/ssstateen-csr.d >> create mode 100644 gas/testsuite/gas/riscv/ssstateen-csr.s >> >> >> base-commit: ae1c45ead6b60ef0fd338bbeb6a4c5e5808c6e6a >> -- >> 2.37.2 >> >