From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by sourceware.org (Postfix) with ESMTPS id A9104396E449 for ; Thu, 2 Jun 2022 14:40:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A9104396E449 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dabbelt.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dabbelt.com Received: by mail-pg1-x533.google.com with SMTP id g184so4943255pgc.1 for ; Thu, 02 Jun 2022 07:40:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20210112.gappssmtp.com; s=20210112; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=L5Awq8LAJxxlJ8AG6kbuH2slk0vJuu4pP061lsF1foU=; b=CuMP9biM4N38hXxeuTZpJlyKbDQt+2QMA/kxLvuzH1ooilUIlS5GLct3UBTFgoW1zC IO19agp3+B3G88bFzdHW/W836FgTvztOHQfrZSjMAFGT5EmM9hYwdvrshFAsdHax/Bu+ JG5gXPllFP4W77HR+z04m3C0d8Bu5ikmCJwxtwSg0IXRUTqC0b+1GOvabxuvhPeBY/3/ U/IZpH5x9hIIjNaQGHDb8Ni4igy4+gAqkBQ0scH5kZtdBlHqQHismoYAeST0oi9lKDuW MPq9FZnolOSqjNJ5thEH9pVRo/mYKTZFiM2iN2zy2YJ23Jt+Gl6Gcy2FJMvdzwMWngqi wu+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=L5Awq8LAJxxlJ8AG6kbuH2slk0vJuu4pP061lsF1foU=; b=o+sHVy69S/b0leE1Ipd/f0w8C9luGWpqh8WeFH/pPgp2ZMmbOcM5HyosiLyANZ2ivh MhffQOeTmI9KkMwuA4mLHp1qVMJLxRuXufjhCooiVUM6WyOP355WccHBxwgLLzJdrxvC lieFWUjOcW0IiNFjRio7oWVggOw2vxX+Mva1fNgWU7G0DRlr1XQLFme16BBWYhDdcw32 WVV0XTCeTHw0iCz5WMHuTbEj4/XNLrWwxjA3KKu4cWGsAN0IRPXSSFNVvqFhg2jSIh+I UWOjN/+MqyI9vWDpp3PgUilAu2IrTL/i/+4a9czn/KPmHaqvQkqLxYWea+JMy+cjsC63 o7HQ== X-Gm-Message-State: AOAM532q/lQz4INYgL//oSLLsM+wL2ApGgV8vnImsP+HOHFWk02lf++0 shfo5t2kauTnG11YccoeQcYZAnp1rt0bPA== X-Google-Smtp-Source: ABdhPJwaMUY0au6f//NClVkBExZzJLT37g49arY+MtJ0ot/5tTWmqFOz1c6jXTUS+6xoIWzjGCEafw== X-Received: by 2002:a17:903:41c1:b0:163:771e:e61c with SMTP id u1-20020a17090341c100b00163771ee61cmr5261810ple.49.1654180806456; Thu, 02 Jun 2022 07:40:06 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id t4-20020a170902b20400b001617ffc6d25sm3608201plr.19.2022.06.02.07.40.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jun 2022 07:40:05 -0700 (PDT) Date: Thu, 02 Jun 2022 07:40:05 -0700 (PDT) X-Google-Original-Date: Thu, 02 Jun 2022 07:40:04 PDT (-0700) Subject: Re: [PATCH 1/9] RISC-V: Add 'H' to canonical extension ordering In-Reply-To: <74a56f827e9c7a5d75edbb60e0a93ee377e2d56a.1654178756.git.research_trasio@irq.a4lg.com> CC: research_trasio@irq.a4lg.com, liweiwei@iscas.ac.cn, Nelson Chu , kito.cheng@sifive.com, binutils@sourceware.org From: Palmer Dabbelt To: binutils@sourceware.org Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jun 2022 14:40:22 -0000 On Thu, 02 Jun 2022 07:05:58 PDT (-0700), binutils@sourceware.org wrote: > This commit adds 'H' to canonical extension ordering based on current > consensus (not officially ratified as a new ISA specification manual > but discussion for software compatibility is made). > > bfd/ChangeLog > > * elfxx-riscv.c (riscv_ext_canonical_order): Add 'H' for > canonical extension ordering based on current consensus. > --- > bfd/elfxx-riscv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c > index 92ad03feea0..5c2c616a760 100644 > --- a/bfd/elfxx-riscv.c > +++ b/bfd/elfxx-riscv.c > @@ -1345,7 +1345,7 @@ riscv_recognized_prefixed_ext (const char *ext) > } > > /* Canonical order for single letter extensions. */ > -static const char riscv_ext_canonical_order[] = "eigmafdqlcbkjtpvn"; > +static const char riscv_ext_canonical_order[] = "eigmafdqlcbkjtpvnh"; > > /* Array is used to compare the orders of standard extensions quickly. */ > static int riscv_ext_order[26] = {0}; I forget if this came up elsewhere, but it just did in Linux land. Essenitally we added the hypervisor CSRs/instructions to the base ISA under the assumption that the lack of a letter meant they were in there, but now that there's a letter it's unclear what we should do. Probably we should do the same thing for H that we do for the other ones in flight right now, though.