From patchwork Wed Jun 30 18:32:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 468728 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp617423jao; Wed, 30 Jun 2021 11:47:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEOI58v+Bk9pPxymbx/SckR7zeicqgjIMfqRray4Rdz76mEnwxweasqJOXo2CKGJ76bnv7 X-Received: by 2002:ab0:3b8a:: with SMTP id p10mr323812uaw.101.1625078876133; Wed, 30 Jun 2021 11:47:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625078876; cv=none; d=google.com; s=arc-20160816; b=ny7hmhX85FbC0o0agc4PVv+ZrrozsD27BO2SloLjaQd3dJ6/8xua2Yn73STdaqnX5t l6dCZ3ncjEc6nk76chX8LS9sMFcPtGX9c6ELJ7qh7tsgSs9H34iDEv2MuOZSoA6RjBeH bPrCJWm9iX7Yl9ZGV4K2cPIeT9j5yKe1JHfpOTwQbk/FhA+mGWgEHrYVR7LJFpFDtRz0 cX03EWHpBZ8MEG7Ui2i93vTksamJHhihcU1VCGEBPpltSP4VTnmWhNnKRxlNm9gZ2pWo Qs4UVMxlGlwDjKtc1ina53Ph4lh8XUDMQhHrOIZYRWCsoJWk9LlZcKk1xmTU7pZX2GCS T4fQ== 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=W7Bf8v32MRSYl5delt6pF1CYpdgvOX/1OeFQMhwwhYo=; b=dULztgqp3+QG6wqf283UPkElxvTgkgsWRws8BOM55f1Ajlx3GXf57WcUrbaG0+8jLF +Y7kNmmqlO9wwW/n68YcR2dfXxou1ruWdGLKhJwJ5blp3JWpOU+6b6/K+XXNaWsIgTdk tYMor4hJs4uSY+2qMKGfgiA6D+WUHGQ4j2UrJrLhVZIg7/FzwydZUOsPAXNAlkuz9oAw G1l0/hTZzBD99ZDURAnWAppwt8QxLHnqrKHqfGjB6JEJGWRUnOodeNnIuaOH2+fgxqyD FRiLdfGV67Uf4ZQLxFhgTIs3z0nr8qb0NUE3MhWeUoni/PFIdZsGbHPUrH/Wi+H9txjj tDTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="zLdNxDS/"; 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 t9si14636145vsm.403.2021.06.30.11.47.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Jun 2021 11:47:56 -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="zLdNxDS/"; 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]:44456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lyfFb-0004JL-GM for patch@linaro.org; Wed, 30 Jun 2021 14:47:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyf0v-0005dk-39 for qemu-devel@nongnu.org; Wed, 30 Jun 2021 14:32:45 -0400 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]:44725) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lyf0r-00026z-Lh for qemu-devel@nongnu.org; Wed, 30 Jun 2021 14:32:44 -0400 Received: by mail-pj1-x102e.google.com with SMTP id p4-20020a17090a9304b029016f3020d867so1983238pjo.3 for ; Wed, 30 Jun 2021 11:32:41 -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=W7Bf8v32MRSYl5delt6pF1CYpdgvOX/1OeFQMhwwhYo=; b=zLdNxDS/9nIA/hJzfGAANmqjF72c2ANkI8RjF0uZrGy6jnhrVWcbzaPvHy8kB51ibg LLPdZgnhGa+EPCgekHtH/sOnnYlR8T9Sv8bkk3K/zVwjqxaclUa4xBFX70zVgTNHSR10 RLJV6jHx6KruEjNbRX4Ro2tJR8rZtR1rqHuq9aXZR8pLcdFl1vfav40+YAgORLW/cf7h ZFqfP1LiN5vQXNnfeQ/Ao19DiorkWHyH8flgpL1hgsfK8plpuDXL6pieyDWG5oxN9Oso Hegp4WaUfJXAADDYSZaqFCApgD1wyhONXd4kt78oYdo0Nyz46xWsccI3Rp1QyosvSZdR e5Dw== 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=W7Bf8v32MRSYl5delt6pF1CYpdgvOX/1OeFQMhwwhYo=; b=Yx4zzXthQrvcxdp5OWSBpO4srfde6UMNKpmyEzvw3auIl9MuoY4Gt4+NLLUE18rKMT 1aUTKNSTkRfA55CS5dVPOX7dYIFg+MP/0kUik8Eypms8pi55H1Oc7RAXA1ZL+Nvz/3yt BDX/JAv2k3hNC6BVVJ5NtOqsnmptQmymu5qJiFwiPqUW0KDrr3pVkudu1qbKiTARGnGC nZ3rqPDuZDQZHhGa+B4Nl6mvqSPjPdF8p2YVvk3bppj+JHg4k+E6uwbeoqHvyL7GIDez q6Pkucsgk06FQjg87KEduoMzb0QvpjGC8EsdG4vNmly1djrqDyb2KAC2bC2i259PGZ/v 94Ig== X-Gm-Message-State: AOAM531v5al/CrSrvsjXVlGJ0OUjFW6Le1EyBW+1bXPUBqucd6nTlsgR 9QifTaqRou4ZJEcKsjku8tCuqq2TUw0zjw== X-Received: by 2002:a17:902:7402:b029:129:aef:6e3d with SMTP id g2-20020a1709027402b02901290aef6e3dmr6593937pll.60.1625077960447; Wed, 30 Jun 2021 11:32:40 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id m18sm23909517pff.88.2021.06.30.11.32.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Jun 2021 11:32:40 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 21/28] target/rx: Use translator_use_goto_tb Date: Wed, 30 Jun 2021 11:32:19 -0700 Message-Id: <20210630183226.3290849-22-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210630183226.3290849-1-richard.henderson@linaro.org> References: <20210630183226.3290849-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102e; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102e.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: Yoshinori Sato Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Just use translator_use_goto_tb directly at the one call site, rather than maintaining a local wrapper. Cc: Yoshinori Sato Signed-off-by: Richard Henderson --- target/rx/translate.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) -- 2.25.1 Reviewed-by: Peter Maydell diff --git a/target/rx/translate.c b/target/rx/translate.c index 9ea941c630..2443406de5 100644 --- a/target/rx/translate.c +++ b/target/rx/translate.c @@ -143,18 +143,9 @@ void rx_cpu_dump_state(CPUState *cs, FILE *f, int flags) } } -static bool use_goto_tb(DisasContext *dc, target_ulong dest) -{ - if (unlikely(dc->base.singlestep_enabled)) { - return false; - } else { - return true; - } -} - static void gen_goto_tb(DisasContext *dc, int n, target_ulong dest) { - if (use_goto_tb(dc, dest)) { + if (translator_use_goto_tb(&dc->base, dest)) { tcg_gen_goto_tb(n); tcg_gen_movi_i32(cpu_pc, dest); tcg_gen_exit_tb(dc->base.tb, n);