From patchwork Mon Jun 21 01:34:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 464476 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:102:0:0:0:0 with SMTP id x2csp2115248jao; Sun, 20 Jun 2021 18:42:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+dQ1pDCm9xN5sv9JWaZTgI6HJLl6Z/NiweI47ka4WCya8EpeFWIlkSCwx4cYGu/2zsI1V X-Received: by 2002:a05:6214:883:: with SMTP id cz3mr17614330qvb.38.1624239775284; Sun, 20 Jun 2021 18:42:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624239775; cv=none; d=google.com; s=arc-20160816; b=MvFuOsGXSfku0LeePjkI12MfkYDXJahm0f3Fsohcc7dmGWC5BFTDOHvhTjMTAg8vuS IUBFfhecsYW6IzzYqZVxeS2204Sp43KDfD2CGCwv3JVZbFvmjq2pSNU/r1QFusiZUYgi RaDXKCbjHdSbN/oKXVLapoTp0I9Mf/T5X3nLuNtYGHEbOXoUbX3OQkgeqBMDYKXTRdwD rGnbPOqQv6xUZESJGe4Ozsl36ME0jZtGUNGARjeTEM6iPqAakugHwcADitXdAAr9D9b0 dlWnFI1QWJca9NIEFqPhp0+E1yUO1IEe/tM9ZkjJaCovmqxhzWxpyO64uR0K0S/PT8/K OSQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=rxkDq96k3ZTvlscbiDlbIOM0PupnkbICBsbxK69yAjc=; b=MelwSgAe4m5g+xJ8jGNIV/+KExsyjJ4stJCykT4hmQ+U4rvO84u6qcnDo3OkAGXRF0 jEnBGW6ijBdZ8zM5/WKltmwVwTV4BPDNScWpXq0FigdOJTdFfu6KUCHZJ103PDYCewoJ oYqX5lSpzL5Vp6lUj6/BlrT4OpnUTQn+pPsxRHQBHqu1pJNMTjTPwZGycP0pnGCTXZpv UTRkyL1fMCfhA525tiDx8MAKFnB2sSzBi1HXm7GRZF4yAFxSBhxfR+4CmvIGxJOk6bIQ w3p5S9SPlRgmjBLImmupggLzeQktHTcbZsVCKD+JTUN32CJLciBs05IYeKVKfhFwLqUQ xk9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kDLZmVfW; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id m9si4458969qkp.114.2021.06.20.18.42.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 20 Jun 2021 18:42:55 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kDLZmVfW; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:60460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv8xi-00041k-Mv for patch@linaro.org; Sun, 20 Jun 2021 21:42:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40004) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv8q5-0003tm-Gs for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:35:03 -0400 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]:41617) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv8pq-0005B2-TV for qemu-devel@nongnu.org; Sun, 20 Jun 2021 21:34:59 -0400 Received: by mail-pf1-x429.google.com with SMTP id x73so12390110pfc.8 for ; Sun, 20 Jun 2021 18:34:46 -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=rxkDq96k3ZTvlscbiDlbIOM0PupnkbICBsbxK69yAjc=; b=kDLZmVfWV4wsFpjzZJ1pENqklXd1jt0r9hUjELIfbjAwyeYjcAclqz1gTLDWIm8elc O58M0MW4+5khnk2t0P2/tcA5R2ZsBQ03l3T4oQy8FtgHSNKYqgJJwWlQYLvKNEGHGOi8 Vx/AYgTs789FSN6kwig2nshEaIxhDh9PQ8/GJxSh2FUPhfZJ/ve2WaDi7NQBf8U0h783 DR08/GV5n7mwjVmOusXzZk/7S2g9Rbl37PEqVR0RyxiElyE2OIVKy9/W/Rz4DUOWg8R8 Ch562A/I6fgbDTOReG9Qu3pf+5qfDxdRtQQXfB8Yq3XVcqqE/K155S8p5WAbA2rl7Gqc xPeg== 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=rxkDq96k3ZTvlscbiDlbIOM0PupnkbICBsbxK69yAjc=; b=DkgFleD6zu0GL9K5T2kuYnDNk6TuSkqK2/E04cZii3IFYEWFVj6A1LeoF+VkXFt7KW 3SJyk/nvuwZezx2R5SAsqkktqMIZGOzjESBlX9wOZZ8q7PPutV7pM6XzYF5cV3MyY6pU mtT4Hi9r2v7AiwUsXqytVT+zUNNXJzVvChSvQivqUmY/G0fuRVzQj2zsRj6EzxcVA+UU cuHYykrlPGl087jLOklO37h5xIztzgPgpuR88DSwLw88tNYBDXPPxbrzKoE+uhcOoba3 PQNquhuw4jQvUcwrrTAhfdwiODKZ8++NcjpEXqEzRql3fM3DcR9h1MmiIjSHKbgvZLBi 7Ilw== X-Gm-Message-State: AOAM53122lNSuHnGMncwHDkyYuZAD4wCyIjiOs8L6PoAnj+AgI+iop9L PZfRk9R7QPsRHXe9DlzA1bguKeDyo0ahcw== X-Received: by 2002:aa7:8702:0:b029:303:6c92:dc8e with SMTP id b2-20020aa787020000b02903036c92dc8emr2663686pfo.63.1624239285642; Sun, 20 Jun 2021 18:34:45 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id s27sm1495628pfg.169.2021.06.20.18.34.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 18:34:45 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 08/26] target/cris: Use translator_use_goto_tb Date: Sun, 20 Jun 2021 18:34:21 -0700 Message-Id: <20210621013439.1791385-9-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621013439.1791385-1-richard.henderson@linaro.org> References: <20210621013439.1791385-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::429; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x429.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=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: "Edgar E . Iglesias" Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The test for singlestepping is done in translator_use_goto_tb, so we may elide it from cris_tr_tb_stop. Cc: Edgar E. Iglesias Signed-off-by: Richard Henderson --- target/cris/translate.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- 2.25.1 diff --git a/target/cris/translate.c b/target/cris/translate.c index 3200819f32..33ad76c0a8 100644 --- a/target/cris/translate.c +++ b/target/cris/translate.c @@ -517,7 +517,7 @@ static void t_gen_swapr(TCGv d, TCGv s) static bool use_goto_tb(DisasContext *dc, target_ulong dest) { - return ((dest ^ dc->base.pc_first) & TARGET_PAGE_MASK) == 0; + return translator_use_goto_tb(&dc->base, dest); } static void gen_goto_tb(DisasContext *dc, int n, target_ulong dest) @@ -3275,8 +3275,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) - && (use_goto_tb(dc, dc->jmp_pc) || use_goto_tb(dc, npc))) { + if (use_goto_tb(dc, dc->jmp_pc) || use_goto_tb(dc, npc)) { TCGLabel *not_taken = gen_new_label(); tcg_gen_brcondi_tl(TCG_COND_EQ, env_btaken, 0, not_taken);