From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) by sourceware.org (Postfix) with ESMTPS id 07DAD38983BD for ; Sun, 20 Nov 2022 16:19:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 07DAD38983BD 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-io1-xd31.google.com with SMTP id e189so7145372iof.1 for ; Sun, 20 Nov 2022 08:19:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=fMvxv79JHomPmRH8sUu0mf2fdzNqn4NM3yThsSdKnZ4=; b=TBBwabOMYRjirXsaKzFABj0PySsRVGCAyjOdIAAkNvGHq/1BDOaBILjGXWF5St7UIT RcVjteh/2DsFTpwESlx/ybYB41fsjZXFfr10GbH0JbjG79iPUnA/ofRgEL4m0P4ALOa9 95Bn4f8rOUgCUom9LAmylo5XXoEz2XWIwTaCW3PXV69UYbb/8GM05sgHK+jZCoMI4L/g bt7cKcCp7NR8+vwaPwTmJn2TD9W8MfMY/v2ieIF550JTncyXaekQLTxhQnItFqTVdotV Ww3/6WQs/1Qc+qyCpGNGbe2t217pIQsEGXsy8Dt6pRU9aJO1fXWyOsqiKZ9v6/7pzt0h C8zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=fMvxv79JHomPmRH8sUu0mf2fdzNqn4NM3yThsSdKnZ4=; b=r/ksp2rJSrffyLx4JGNlQ710wrAE2bjGLNwOPGBKZUtaF3QKZFkzszqBrWgWgag6oy O3024SRDI3pZ/rCJ6gRAsYcWW3PQrR05YIAIDyJTuSDfAgGqE0DnInfr9P/wHKl+2esF JeAfgjSBj5GUBKx1A00P9HBH5k9YOxe75STtYW8+uyg6snIFOrwz6SMAZGeNiHq45/9h m+FnH+3ogLiWBUo9uF/R2Lp8UTDcNTPvjDaho4w9L5eKLsjXMQ4hukPic97gf/YD7v3S 9En2TG2+GB1NIdiMKLENh4ltEZiglNnUry6z93CNtAXvNUdFI0X99f1DI02kAAkIr+mh ZhIg== X-Gm-Message-State: ANoB5pn246ozx6vlfKrZy9CXQ5DSRLPx+UnRHNaPbiIA+hiVKalI+lNx Ch1QHN8gvgUx1XZrZVEFS+JhUGuoFmM= X-Google-Smtp-Source: AA0mqf70T/7PT+/aTAsil+RWUesDSM4MyrwbuY+Xg6fyx2FitBBunogKBARjX+mHF77vyS6TXbLiqA== X-Received: by 2002:a5d:9943:0:b0:6aa:ad87:4e3f with SMTP id v3-20020a5d9943000000b006aaad874e3fmr1115432ios.14.1668961172982; Sun, 20 Nov 2022 08:19:32 -0800 (PST) Received: from ?IPV6:2601:681:8600:13d0::f0a? ([2601:681:8600:13d0::f0a]) by smtp.gmail.com with ESMTPSA id w6-20020a022a06000000b00375966aa90esm3024345jaw.161.2022.11.20.08.19.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Nov 2022 08:19:32 -0800 (PST) Message-ID: Date: Sun, 20 Nov 2022 09:19:31 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH] RISC-V: Add the Zihpm and Zicntr extensions Content-Language: en-US To: Palmer Dabbelt , gcc-patches@gcc.gnu.org References: <20221109030036.19175-1-palmer@rivosinc.com> From: Jeff Law In-Reply-To: <20221109030036.19175-1-palmer@rivosinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A,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: 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