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=-8.1 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=ham 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 B2E63C433EF for ; Fri, 3 Sep 2021 15:29:58 +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 355046108E for ; Fri, 3 Sep 2021 15:29:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 355046108E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:48906 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMB8f-0001oi-3u for qemu-devel@archiver.kernel.org; Fri, 03 Sep 2021 11:29:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50412) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMB7J-0000Jg-2c for qemu-devel@nongnu.org; Fri, 03 Sep 2021 11:28:33 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:51889) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mMB7H-0002D2-Ap for qemu-devel@nongnu.org; Fri, 03 Sep 2021 11:28:32 -0400 Received: by mail-wm1-x32e.google.com with SMTP id u15so3771326wmj.1 for ; Fri, 03 Sep 2021 08:28:30 -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=V+zN+8J6jP0DGFMja2o+XrL5hYnhM1z0E3lRgqpMKrw=; b=i+L2gbwUNp/JXqReYec8oQ0BoHDT4YyCzdvDqp7ARF1r1AsAnsXWKiuuJcI/13kbwS K2a2nem1AGA13QAqL1VILdQm6VW+ovPH/BaOClKQQ9iZffWXtQM7T1K3eZC7y6yDCUBo JpbIdNQGuA+ZWwISt+WVs83yCnKGPw7dukkd4a5BmsCltQRXtp6rJkHgqCsUt5Ep5Fsn 0jzM7fj+qnnXzK44tdPwcyhtzh/KA0CH0BLygNBNFxnioAhAwNtUoYdxydq3yPW2LMNM RorfNtsRFMdnTw718OuGdQAd4Kzh9yYnTEGLIf+7VuuE5cXE0BzOaIN2QJNItznxu0hF EMxQ== 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=V+zN+8J6jP0DGFMja2o+XrL5hYnhM1z0E3lRgqpMKrw=; b=fzIChQtxkgMoctA6y8HJLWz1SfcDkra7Fki7aH3PYaxZR8WdKfjyEmlLgAuqR3OcG2 aSa4m+FGqnz18L9dSZ7Am9YKhAtYWFxUO79TyoXiNdEh8kNN5AAuMqovZhy3xgphPZ3B saIgAFbPDkEEEYQuo43Urji6WSMbnt0VkI/Cir1k7FzcggLjrh/+kQXm2or9tm7ikYQT fYfPFhPepsYvvaeyeIAC2S13vRCcLgevrRNrF8WDvj1AukMkQVBnHeX1wDs5WpYH4/q2 U0v2gmIbn4cgYZvtmgpcmbcQ+1xOklgsFsqCnqB5Qh2jntmE/KEGq+YAsNGCeWucqCWZ sHQQ== X-Gm-Message-State: AOAM532V3Z69f+6w4uImWgc4XpcPruMsQFjv4kIy8ND/dhu0Ok9eyz45 woOOovV9PAiH5x97FAplC2B2bIMhR3TLDrebn0E= X-Google-Smtp-Source: ABdhPJxpBpZcVr9L/59ZNYoAjQGCowDCkasAXAztM74DNlg/74CQqX1SOkupYQ0PJ58To3OKLS3DAA== X-Received: by 2002:a1c:f31a:: with SMTP id q26mr947518wmq.159.1630682909267; Fri, 03 Sep 2021 08:28:29 -0700 (PDT) Received: from [192.168.8.107] (190.red-2-142-216.dynamicip.rima-tde.net. [2.142.216.190]) by smtp.gmail.com with ESMTPSA id n4sm5840736wro.81.2021.09.03.08.28.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Sep 2021 08:28:28 -0700 (PDT) Subject: Re: [PATCH 1/4] target/arm: Add TB flag for "MVE insns not predicated" To: Peter Maydell References: <20210902150910.15748-1-peter.maydell@linaro.org> <20210902150910.15748-2-peter.maydell@linaro.org> <76cd3594-f864-232c-8687-19a1d44ff07e@linaro.org> From: Richard Henderson Message-ID: <906c738e-904c-99ba-b6ab-2556e9262c87@linaro.org> Date: Fri, 3 Sep 2021 17:28:26 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=richard.henderson@linaro.org; helo=mail-wm1-x32e.google.com X-Spam_score_int: -29 X-Spam_score: -3.0 X-Spam_bar: --- X-Spam_report: (-3.0 / 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, NICE_REPLY_A=-0.888, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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: qemu-arm , QEMU Developers Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 9/3/21 4:17 PM, Peter Maydell wrote: > I don't really understand what you mean here. What's the difference > between ending the TB now and translating a few more insns in > this TB before we end it? VCMP (pred now on or off) B label The code we emit for B uses goto_tb. When goto_tb is unlinked (e.g. first execute), we exit with a code that causes the current cpu state to be evaluated, the new TB created, and the link filled in. This makes permanent the cpu state we evaluated, and thus the state change across goto_tb must be constant. This is fine for B, since only the PC changes and to a known destination. So we have two choices: end the TB immediately after the VCMP, or set another flag to cause gen_goto_tb to fall back to goto_ptr. But I sorta think that it's just easier to end after VCMP. r~