From nobody Tue Apr 15 23:00:44 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1625931574; cv=none; d=zohomail.com; s=zohoarc; b=mHfp8N4MaVB9zFBzOMz9ezlmHljj20c5IumQR/UuLhf9QpHWIWDCmvPKBEVG1UIro8MZNK0H5vuMW2BIP8Ws1SIBxr1Yo+WI8Kux8fu43dLznj6eqlS42mNZX7DArfhLfsONihlETanaR+XhEsN/syDL9QaR7UURDggmSFh1nDo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1625931574; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=6X5LcOGj/+Ng0LgouhznZyWXrpfHmdfU0n7UCveDgJU=; b=cEWawReR8DlUxoLwFEdxjRxWsWzMBdgq3XcZp4taJAK5dXxLXDfef3/KwFz3WSfvOVo8VobSdReZhMQGQvFOOwqFNukgorE+JnXUtE+xfniQZ8yphHf1KNDdsR//+fqZWAz7oWkvaGNodp5eGOge10Rxss71bs3k6PkLoxTkE10= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1625931574163221.82813294981838; Sat, 10 Jul 2021 08:39:34 -0700 (PDT) Received: from localhost ([::1]:38534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2F4m-0008ND-Pt for importer@patchew.org; Sat, 10 Jul 2021 11:39:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2ExS-0005Ld-5U for qemu-devel@nongnu.org; Sat, 10 Jul 2021 11:31:58 -0400 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]:40606) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m2ExQ-0002J8-GG for qemu-devel@nongnu.org; Sat, 10 Jul 2021 11:31:57 -0400 Received: by mail-pj1-x1033.google.com with SMTP id b14-20020a17090a7aceb029017261c7d206so9960935pjl.5 for ; Sat, 10 Jul 2021 08:31:56 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id u23sm11975374pgk.38.2021.07.10.08.31.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Jul 2021 08:31:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6X5LcOGj/+Ng0LgouhznZyWXrpfHmdfU0n7UCveDgJU=; b=Xt3Wfbt23W9FDJ7E652mM0XdYa0SxGiJo9gXN44zUk4YwjHf2tP9PqYwe0wR4p/m+c q0NWQfB5Yf+GG8vzK9kufdTQIVgcLo0xQQAQl0Jzxd1zR1wfR/2aIydbhCLtMOJvoU2Z /5AGIROK7iW+l3vJqc1qQyAd76w1U2XEDbIX9twRVDzT7gqHHFpbiHcLLNkeoHG5L1nN J+xCRsxEh95ih4ZnhsCEkRpjy1JYzY+RXCJkXzFArOZJ+uO2R05dfhF4fY0BIgcKer46 U9Ov4m4clVFg61n4RgeFCwyj6aRB+I4i9EFtpfU0tuX2mSR7j50uKxI/tEdgPz6Xn6h0 z4Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6X5LcOGj/+Ng0LgouhznZyWXrpfHmdfU0n7UCveDgJU=; b=EVyL1nx5YMASKz3l43YhiIuvHAOzA9q7JW0J932taEIS1cdklLhCptvZiEXJ6GUXvn TyMtZkk6/wkqywIVeusxhIIUXR9Vl9MgwAITqKpCo0ZhwifpgvvTBv9iPH+vUJhqKYsx D8/Bdo84dQRUdXiZzORzurVM63Y+7eTKwzSpyw0VPVC/Kf8tw8Z/6VrZ4KD2Kscs/245 cwwWo8IozF+S6QcZiSgvo/prVLJkBmqPO/5Oj8EeQx5yoJh+DQCtZaH22p1PnETURqzw eBmR9YkLPWBVEkguuWTp2LubzNz4Dh5SLZgIHo9NBdtsbyCbU+WxPFmL702DmnCk3gdw bF0g== X-Gm-Message-State: AOAM532Z9+cEQvjxhh7J9RcBR70ABzAvHLSNlDmTcWLj4rNlCxfRmfz/ +9C+PlnKu+SHlvl13Z6VpXcG06WpQws98g== X-Google-Smtp-Source: ABdhPJw6xsH6CBqDD/23FevN6VF6Eqo4jIUY1m0O8QQ2jZt/haUJQudYJ7vLBuhx4cPPPcpw/PttsA== X-Received: by 2002:a17:902:e04e:b029:10f:133f:87c8 with SMTP id x14-20020a170902e04eb029010f133f87c8mr35537436plx.70.1625931115179; Sat, 10 Jul 2021 08:31:55 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 15/41] target/cris: Use translator_use_goto_tb Date: Sat, 10 Jul 2021 08:31:17 -0700 Message-Id: <20210710153143.1320521-16-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210710153143.1320521-1-richard.henderson@linaro.org> References: <20210710153143.1320521-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::1033; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1033.google.com 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=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: Peter Maydell Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1625931576221100005 Content-Type: text/plain; charset="utf-8" The test for singlestepping is done in translator_use_goto_tb, so we may elide it from cris_tr_tb_stop. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target/cris/translate.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/target/cris/translate.c b/target/cris/translate.c index a6796c83b9..9258c13e9f 100644 --- a/target/cris/translate.c +++ b/target/cris/translate.c @@ -481,7 +481,7 @@ static void t_gen_swapr(TCGv d, TCGv s) =20 static bool use_goto_tb(DisasContext *dc, target_ulong dest) { - return ((dest ^ dc->base.pc_first) & TARGET_PAGE_MASK) =3D=3D 0; + return translator_use_goto_tb(&dc->base, dest); } =20 static void gen_goto_tb(DisasContext *dc, int n, target_ulong dest) @@ -3234,8 +3234,7 @@ static void cris_tr_tb_stop(DisasContextBase *dcbase,= CPUState *cpu) * Use a conditional branch if either taken or not-taken path * can use goto_tb. If neither can, then treat it as indirect. */ - if (likely(!dc->base.singlestep_enabled) - && likely(!dc->cpustate_changed) + if (likely(!dc->cpustate_changed) && (use_goto_tb(dc, dc->jmp_pc) || use_goto_tb(dc, npc))) { TCGLabel *not_taken =3D gen_new_label(); =20 --=20 2.25.1