From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua1-x929.google.com (mail-ua1-x929.google.com [IPv6:2607:f8b0:4864:20::929]) by sourceware.org (Postfix) with ESMTPS id 305043858C52 for ; Mon, 21 Nov 2022 01:36:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 305043858C52 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ua1-x929.google.com with SMTP id 97so3603055uam.0 for ; Sun, 20 Nov 2022 17:36:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=R+n+zf0bzBYsC/Mn7ZulbG5F9tjx/Vd1MTcTQYDHaqg=; b=h18L3o8MYGQZyC4X93fF+NHVZpljseFe3zpnTLyA65GboYL4zYQWVZo39f+vBaI2ZG EK6ZiAIMKOzdjloeR3VO6y1mKwuaM5iyuVY5z0KemUR3t0ZkqEM4RABLP0TTNmrXJf9b NSFvfVI1AT3y0afOiXyxmQ+Mnl+Uiomx4pt7+xuwevfozRGIzTeCspm3233i+bLUFmDL xTk2y7jMwKfy6qkBHXLwiRpEINhmc3aQKMFDt/f0YZ5jKUpY1BUNrC0tweodJ08N0+FU 6JZdnto0xNTFXHXSU/yXc8/Q4M77DMLT7TQN76Wj8yG4jk4mQ1P8RYB+E/Yu7EAMqMlZ MoLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=R+n+zf0bzBYsC/Mn7ZulbG5F9tjx/Vd1MTcTQYDHaqg=; b=NEXo+nFNM33e8VCgYLK7PiOalrSuZMpLYaGJChIXKRAW3WtIX1i9krPZGm4CEXSepf eMFe0GLF3QJJufhLHUU+BSqpAuqDCy+5f2Nf7ukMPcGSPDyATIFUxBfEOcJmNWKn2ORV 0wMu0QKyh5uNYf16TgMJzeiG4cd2LHJStoV9m+JwGK54FmUTn2XLofwoCGrxEw4j/nTd 7dQHTsaEanK9apjHpKLG184YXn6vg9z2dSXu+SChLAkZuPS234U4H+Gg5cywQ6ojBQQy wD+X0m75nDjILHoKiPhyvUXdlzpbRPp6b+gpCGhFll6kAuYzqQdbwDmXG+pryE2yRR0h KZ8Q== X-Gm-Message-State: ANoB5pk5FcyrOSzkiZgkJOp9tle43rNuidGo70TR7ANNggOPB3Dnyp+l rxGO+FgPMYyxAuIDGfjh+BQjzQ115Bxu0cavIf0= X-Google-Smtp-Source: AA0mqf5b1UwguLCW0Lkbx4eOhzxGVG2F7SfxtsWwLWzjOUMEFmzcIp6yedzxE68i4rzP3JHRwPjymX5AWjT5Oq1Rpf4= X-Received: by 2002:ab0:5bdc:0:b0:415:8954:bd51 with SMTP id z28-20020ab05bdc000000b004158954bd51mr8968518uae.97.1668994607332; Sun, 20 Nov 2022 17:36:47 -0800 (PST) MIME-Version: 1.0 References: <20221109030036.19175-1-palmer@rivosinc.com> In-Reply-To: From: Kito Cheng Date: Mon, 21 Nov 2022 09:36:35 +0800 Message-ID: Subject: Re: [PATCH] RISC-V: Add the Zihpm and Zicntr extensions To: Jeff Law Cc: Palmer Dabbelt , gcc-patches@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,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 List-Id: > So the idea here is just to define the extension so that it gets defined > in the ISA strings and passed through to the assembler, right? That will also define arch test marco: https://github.com/riscv-non-isa/riscv-c-api-doc/blob/master/riscv-c-api.md#architecture-extension-test-macro On Mon, Nov 21, 2022 at 12:20 AM Jeff Law via Gcc-patches wrote: > > > On 11/8/22 20:00, Palmer Dabbelt wrote: > > These extensions were recently frozen [1]. As per Andrew's post [2] > > we're meant to ignore these in software, this just adds them to the list > > of allowed extensions and otherwise ignores them. I added these under > > SPEC_CLASS_NONE even though the PDF lists them as 20190614 because it > > seems pointless to add another spec class just to accept two extensions > > we then ignore. > > > > 1: https://groups.google.com/a/groups.riscv.org/g/isa-dev/c/HZGoqP1eyps/m/GTNKRLJoAQAJ > > 2: https://groups.google.com/a/groups.riscv.org/g/sw-dev/c/QKjQhChrq9Q/m/7gqdkctgAgAJ > > > > gcc/ChangeLog > > > > * common/config/riscv/riscv-common.cc: Add Zihpm and Zicnttr > > extensions. > > So the idea here is just to define the extension so that it gets defined > in the ISA strings and passed through to the assembler, right? > > Jeff