Message ID | cover.1691021025.git.research_trasio@irq.a4lg.com |
---|---|
Headers |
Return-Path: <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp805351vqx; Wed, 2 Aug 2023 17:04:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlE5wmIoBrkj3VqV4KhLVqBJs38amrmqMPrggNYbK4NyHzbw68e9C1WEvRO3czL4vroGkOvq X-Received: by 2002:a17:907:2cd2:b0:99b:55e3:bbd with SMTP id hg18-20020a1709072cd200b0099b55e30bbdmr6253090ejc.34.1691021050061; Wed, 02 Aug 2023 17:04:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691021050; cv=none; d=google.com; s=arc-20160816; b=GPStmRHm500LmDJvjGA29PFDpgTbAmb0euQeauhDFQdEBbgJ8XIT8AR6kTUE6Ppkd5 /OrmQjr5eL8OqMmA7Qp5krduyWvR0scLWsuvpJcC2nkZoU5muA/M5B5NnVxpqJkR4K+8 hu2nB9WyAOumLxlZwBJRJ2f6SAdkCzGoU49CuMS1Alz0nZ1mJgNxQHQg3xIwPoTtYOl+ rGMrNN/SKDKyO7zvV3RxOXdXRYmGa5zXL+Hb5hdcjIR6QgtmGN+n8cSLM7556s0C/M/u aMFlNwdAu44CatgoyL1hgq/2yHXX9xKsDdISIMkyaIcFPDZIqHT6M/aFSvkHD3/i2GdN 2rOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=uwdDtCjfYRrbh8BrFsUDTVC+3AW0uf1C1axm5ksCIuQ=; fh=oLBbkpKGrMjsAiDUocfN7mW0LEnMJsqDdFE8uCs7/vo=; b=ZvgIXyiSFPqoupxuUB906FvXXJCkEKMRHMIeAdLYR/+oPRf6bih298kuhOdocYdB9S axrIPyiKKHDm+6KoN62PdMfdL1GYFcHOYhL46N1wDjto4ntv7/ZLq5THSxRdI+bXCNtb sT3Owaa0XucyDdOiKtqqTVW2PFM0gYYD78b6nXb0rSdwogIsRzah02AtKnJrlUpUDGBC ty00FGqfiNxNJ3HFMVgciPccJHCD2hcWDA+uWOeG8fO18Vrls3jiOYsQC24AbotLOwNp HmzNNnvqeC94IRb53rw7fx2TkG6AJ3HP+iJsksnR/zJ+XwZkX+QxabxbK6maBlLXZp/J wApA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=YXUjmYyC; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 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 (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id e10-20020a1709067e0a00b0099bd5a1b111si10694728ejr.411.2023.08.02.17.04.09 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Aug 2023 17:04:10 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=YXUjmYyC; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 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 EB7B9385842B for <ouuuleilei@gmail.com>; Thu, 3 Aug 2023 00:04:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EB7B9385842B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1691021049; bh=uwdDtCjfYRrbh8BrFsUDTVC+3AW0uf1C1axm5ksCIuQ=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=YXUjmYyCJkqHUjGRntecDl6iiY5LMbFy9+sUWu7TXagJGjI49wS2CiWU2ypvSPTLb 365W3I4OPVyT/Kkk50BqkV2JYGGsTzMwSqOOS0WBqEPu5vrNrB+MBOW/tJotrlm5B1 3NxjEt2fuSgLohSeQg9AR4G5UROvAa1uxNsQY78I= 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 5BC4C3858C50 for <binutils@sourceware.org>; Thu, 3 Aug 2023 00:04:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5BC4C3858C50 Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id DBA03300089; Thu, 3 Aug 2023 00:03:57 +0000 (UTC) To: Tsukasa OI <research_trasio@irq.a4lg.com>, Palmer Dabbelt <palmer@dabbelt.com>, Andrew Waterman <andrew@sifive.com>, Jim Wilson <jim.wilson.gcc@gmail.com>, Nelson Chu <nelson@rivosinc.com>, Kito Cheng <kito.cheng@sifive.com> Cc: binutils@sourceware.org Subject: [PATCH 0/1] RISC-V: Imply 'Zicsr' from 'Zve32x' Date: Thu, 3 Aug 2023 00:03:50 +0000 Message-ID: <cover.1691021025.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, KAM_MANYTO, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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> Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773164088885988916 X-GMAIL-MSGID: 1773164088885988916 |
Series |
RISC-V: Imply 'Zicsr' from 'Zve32x'
|
|
Message
Tsukasa OI
Aug. 3, 2023, 12:03 a.m. UTC
Hi, In September 2022, I raised this issue (along with a patch set): <https://sourceware.org/pipermail/binutils/2022-September/122757.html> <https://sourceware.org/pipermail/binutils/2022-September/122761.html> that some extensions with CSR don't imply 'Zicsr' on the GNU toolchain. At that time, we couldn't conclude that unprivileged extensions with CSRs imply 'Zicsr' or not. So part of my patch set ('Zkr' and 'Zve32x') is withdrawn. I recently raised issues at the repository of related specifications and at the vector specification, it's concluded that 'Zve32x' (minimum vector subset) implies 'Zicsr': <https://github.com/riscv/riscv-v-spec/issues/908> <https://github.com/riscv/riscv-v-spec/issues/909> Combining the fact that LLVM already implies 'Zicsr' from 'Zve32x', it should be safe to imply 'Zicsr' from 'Zve32x' in the GNU toolchain. Thanks, Tsukasa Tsukasa OI (1): RISC-V: Imply 'Zicsr' from 'Zve32x' bfd/elfxx-riscv.c | 1 + 1 file changed, 1 insertion(+) base-commit: 4b177a76d5b759ba631568fb69e8750e99b43647
Comments
On Thu, Aug 3, 2023 at 8:04 AM Tsukasa OI <research_trasio@irq.a4lg.com> wrote: > Hi, > > In September 2022, I raised this issue (along with a patch set): > <https://sourceware.org/pipermail/binutils/2022-September/122757.html> > <https://sourceware.org/pipermail/binutils/2022-September/122761.html> > that some extensions with CSR don't imply 'Zicsr' on the GNU toolchain. > > At that time, we couldn't conclude that unprivileged extensions with CSRs > imply 'Zicsr' or not. So part of my patch set ('Zkr' and 'Zve32x') is > withdrawn. > > I recently raised issues at the repository of related specifications and at > the vector specification, it's concluded that 'Zve32x' (minimum vector > subset) implies 'Zicsr': > <https://github.com/riscv/riscv-v-spec/issues/908> > <https://github.com/riscv/riscv-v-spec/issues/909> > > Combining the fact that LLVM already implies 'Zicsr' from 'Zve32x', it > should be safe to imply 'Zicsr' from 'Zve32x' in the GNU toolchain. > Okay, sounds reasonable. Thanks Nelson > Thanks, > Tsukasa > > > > > Tsukasa OI (1): > RISC-V: Imply 'Zicsr' from 'Zve32x' > > bfd/elfxx-riscv.c | 1 + > 1 file changed, 1 insertion(+) > > > base-commit: 4b177a76d5b759ba631568fb69e8750e99b43647 > -- > 2.41.0 > >
On 2023/08/03 9:39, Nelson Chu wrote: > > > On Thu, Aug 3, 2023 at 8:04 AM Tsukasa OI <research_trasio@irq.a4lg.com > <mailto:research_trasio@irq.a4lg.com>> wrote: > > Hi, > > In September 2022, I raised this issue (along with a patch set): > <https://sourceware.org/pipermail/binutils/2022-September/122757.html <https://sourceware.org/pipermail/binutils/2022-September/122757.html>> > <https://sourceware.org/pipermail/binutils/2022-September/122761.html <https://sourceware.org/pipermail/binutils/2022-September/122761.html>> > that some extensions with CSR don't imply 'Zicsr' on the GNU toolchain. > > At that time, we couldn't conclude that unprivileged extensions with > CSRs > imply 'Zicsr' or not. So part of my patch set ('Zkr' and 'Zve32x') is > withdrawn. > > I recently raised issues at the repository of related specifications > and at > the vector specification, it's concluded that 'Zve32x' (minimum vector > subset) implies 'Zicsr': > <https://github.com/riscv/riscv-v-spec/issues/908 > <https://github.com/riscv/riscv-v-spec/issues/908>> > <https://github.com/riscv/riscv-v-spec/issues/909 > <https://github.com/riscv/riscv-v-spec/issues/909>> > > Combining the fact that LLVM already implies 'Zicsr' from 'Zve32x', it > should be safe to imply 'Zicsr' from 'Zve32x' in the GNU toolchain. > > > Okay, sounds reasonable. > > Thanks > Nelson Committed! Thanks, Tsukasa > > > Thanks, > Tsukasa > > > > > Tsukasa OI (1): > RISC-V: Imply 'Zicsr' from 'Zve32x' > > bfd/elfxx-riscv.c | 1 + > 1 file changed, 1 insertion(+) > > > base-commit: 4b177a76d5b759ba631568fb69e8750e99b43647 > -- > 2.41.0 >