From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by sourceware.org (Postfix) with ESMTPS id 82BD03948802 for ; Mon, 31 Jan 2022 16:44:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 82BD03948802 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-pl1-x629.google.com with SMTP id j16so12874414plx.4 for ; Mon, 31 Jan 2022 08:44:53 -0800 (PST) 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=+PMonacRhkoLO4A6PAVPKeeU9RFPQuErEZ+QP+eV1Iw=; b=fsYdBKyHXkQMikI6XReHDT7lB4vpcXmoHmmr0f/ohIMEN7+KQaWkIAjnuKi5UAi16b 3HB/1UyG0urz51VHVMk/yetqSgwMADX6U65TZzJ0qVTzsWNALoo3CDEUQKChSEUdnE1+ +3qlPW/gVQoLmPpFto+QOYl5kBC2+wNdy62dNmJvWQJ1r3RiOFRSjVCa6piSFrzpTu2K AaBgw7QrfRfq6F5p7O2pVykNptjgOjt+4U+GeATmKDRduK21sRK+K90yTyKu4pAiVSDR Q0AAPDaTFg/G6orAWcpLM/uHcWWe/BqC7RP+WDJFose++T6yNw9QGzxGa0aDyk6dDE/w T6mg== 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=+PMonacRhkoLO4A6PAVPKeeU9RFPQuErEZ+QP+eV1Iw=; b=fOYjk0QGUMklCYptlbcPM8k2j+5PBcQQU/ZyH12WWZPcJkdxUCCvGO2f00v1az4MyH TdhfaGNu+frrP7mGueqq0znHhsfr5BIx4VQsTx78/M0Y4A11h0Vt87tosPU0/jxzD/A6 NFUY0e4YaG/b3TG2UVqAn8XPdVmlRn5xY/TrXh0oVMnkaADATtzj1B1utRXMe/ZfBWk/ eU74NDfbDtk5uDhbd2qwUyFJnaPsYBS5N1ILx6h540osz32u+8LjAsEcHgR01Lafw0XX ejdx19SUNgR+GYf9tu0Gi5LmDSpnzvWbRfP1y/BQvTHfKVSdHJxpX0R0IqdwEnkR2ZPS Ol8Q== X-Gm-Message-State: AOAM530s3cXeu1NQpIiW7UHUWZsqNv/EpTlt+5hHIZG9QlObY84Ain6I Xf9vkCP2NBALVWBH6rfRi6HLKRohUvOYQA== X-Google-Smtp-Source: ABdhPJyZoE9S0rFhGnoqkb4voW94LJTPzHLlrHfYFQHNVWFU1/Z9Xo+NZB3um9YH44/9oWtzf7v8tA== X-Received: by 2002:a17:90a:c8b:: with SMTP id v11mr10131590pja.50.1643647492468; Mon, 31 Jan 2022 08:44:52 -0800 (PST) Received: from localhost ([12.3.194.138]) by smtp.gmail.com with ESMTPSA id a38sm18969090pfx.46.2022.01.31.08.44.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jan 2022 08:44:51 -0800 (PST) Date: Mon, 31 Jan 2022 08:44:51 -0800 (PST) X-Google-Original-Date: Mon, 31 Jan 2022 08:44:21 PST (-0800) Subject: Re: [PATCH] RISC-V: Update Zihintpause extension version In-Reply-To: CC: research_trasio@irq.a4lg.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.1 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.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Mon, 31 Jan 2022 16:44:55 -0000 On Sun, 30 Jan 2022 03:37:41 PST (-0800), binutils@sourceware.org wrote: > Because ratified Zihintpause extension has a version number of 2.0 > (not 1.0), we should update the number. The ISA manual also says it's ratified so having it in the draft set is kind of odd, but I'm not sure which spec version it should be included in. The commits saying it was ratified are in August 2021, but I can't find a spec version that's listed as ratified and contains the new 2.0 (there was also an earlier 2.0, from before the 1.0). Not sure if this matters, though. Looks like the only non-commentary differents are: from the original 2.0 to 1.0, the text "No architectural state is changed." was added; and from 1.0 to 2.0 the text "{\em fm}=0, {\em rd}={\tt x0}, and {\em rs1}={\tt x0}" was added (to the encoding section). The second one isn't substantive, and while the first one reads like a change to me IIRC we've been through that before and I just have the definition of architectural state change wrong. > > bfd/ChangeLog: > > * elfxx-riscv.c (riscv_supported_std_z_ext): Update version > number of Zihintpause extension. > --- > 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 9f52bb545ac..29755a6cb0a 100644 > --- a/bfd/elfxx-riscv.c > +++ b/bfd/elfxx-riscv.c > @@ -1183,7 +1183,7 @@ static struct riscv_supported_ext riscv_supported_std_z_ext[] = > {"zicsr", ISA_SPEC_CLASS_20190608, 2, 0, 0 }, > {"zifencei", ISA_SPEC_CLASS_20191213, 2, 0, 0 }, > {"zifencei", ISA_SPEC_CLASS_20190608, 2, 0, 0 }, > - {"zihintpause", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 }, > + {"zihintpause", ISA_SPEC_CLASS_DRAFT, 2, 0, 0 }, > {"zfinx", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 }, > {"zdinx", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 }, > {"zqinx", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 }, > > base-commit: 35b5767cf47169d11aa059fce0ed5b0fc213045d