From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0FA9CC433E7 for ; Mon, 13 Jul 2020 16:42:07 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CE11820738 for ; Mon, 13 Jul 2020 16:42:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="itnsTCn/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CE11820738 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:58720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jv1Wo-0004rg-3p for qemu-devel@archiver.kernel.org; Mon, 13 Jul 2020 12:42:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jv1W6-0004Ch-Tw for qemu-devel@nongnu.org; Mon, 13 Jul 2020 12:41:22 -0400 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]:55878) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jv1W3-0005WC-BA for qemu-devel@nongnu.org; Mon, 13 Jul 2020 12:41:22 -0400 Received: by mail-pj1-x102e.google.com with SMTP id ch3so107555pjb.5 for ; Mon, 13 Jul 2020 09:41:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=lpX0AbqcBURc8xbBOflNMdSbD0ML95iYY0Txo4Ucl80=; b=itnsTCn/TKnST9iqLHQuSwLEF3cPqH5n3/IwoZYh8iayZy3OBm8bGrmFeSd83Qtkku OvXQnYwxAivKQByCXxdtP9nYhIrWMg84GpcyetIX0vCoqMwykuRnnM/Qq3hlzWOOnZyN fWEutFVHbpR+ZlcLqWqyIFV9u4NgJ5Wnqyy61nC/Z13iJCN0RAV6AG23FcBJYkOcp4El zAy/T7bhiR3MdksLDngCrbSkGfmIO5rHP8H2ugMzk+ojtXijA5Ok3kW2uV1lyGGdQiub 53bkT68z1r/wsbW8s/utms4cqZX0wEALoeyNGv8T1rSYodzeSARV6mPiZspAzqDfWPKm Uqyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=lpX0AbqcBURc8xbBOflNMdSbD0ML95iYY0Txo4Ucl80=; b=OAVQJ58OjSuJ5Hn8R4QU1TxrVNG+2xFlws1B8PsQKik2Hvx/ap4ePx6EqakDrdJSre APeoddzr1iGGIcgYQCZEUNI/ekioY4G8G9Ll1VHt0onj/DrekbXnAYhm0PDhxdZ7xskh RQzHAJVGnK3IIyYrMVhnIhGjRqnT4tT5Zt5vx6NKSfzhR3o6nf2Ker7q7CpY+Cb/8tHp kMwhNmvuJXDX6r/sncRe3ttTc1mWAFqMlbGtjq5aqwAknBMu9FIPTGkpRcqyYmAYJk3J SDNsAihUD3idDduu5D9Hg3IemB/hPhhrH4b6TuCZX7L1zzmP0wTFglbNn1N4P8kDmhZ3 GKEA== X-Gm-Message-State: AOAM5310VN/yjmAf5onMlbWQs7y3acvuTTZXIr6kZtXNYJvAMy+PkC80 vn69XXB8vhmLuyyQ7460mzK6MMSCjuc= X-Google-Smtp-Source: ABdhPJzFuLCAUDk2cU76pNoK/i9ys9dYseB38v7NiuhTpJ6FbnRtF78kxeErJtP/BiCJhUaqIjo9Zw== X-Received: by 2002:a17:90b:4c0f:: with SMTP id na15mr229899pjb.33.1594658477664; Mon, 13 Jul 2020 09:41:17 -0700 (PDT) Received: from [192.168.1.11] (174-21-143-238.tukw.qwest.net. [174.21.143.238]) by smtp.gmail.com with ESMTPSA id h9sm14807310pfk.155.2020.07.13.09.41.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 13 Jul 2020 09:41:16 -0700 (PDT) Subject: Re: [RFC 00/65] target/riscv: support vector extension v0.9 To: Frank Chang , Alistair Francis References: <20200710104920.13550-1-frank.chang@sifive.com> From: Richard Henderson Message-ID: <4a5140da-eda6-a40a-c803-5094a0d5abea@linaro.org> Date: Mon, 13 Jul 2020 09:41:14 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::102e; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102e.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "open list:RISC-V" , "qemu-devel@nongnu.org Developers" Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 7/12/20 7:02 PM, Frank Chang wrote: > Does decodetree support any feature for multi-version opcodes? > Or if it can use something like C macros to compile with the opcodes by the vspec > user assigned? If there's any good way to keep both versions, then I can try to > rearrange > my codes to support both vspecs. There is a way, using { } to indicate where overlap is allowed. The trans_* functions checks the ISA version, and return false. Which causes the next matching overlapping pattern to be used, etc. Have a look at some of the ARM decodetree files. But since Alisair is happy dropping 0.7.1 support, we should do that. It will be cleaner not to have to retain the backward compatibility. r~