From nobody Tue Apr 15 23:05:33 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=1625931893; cv=none; d=zohomail.com; s=zohoarc; b=YiHyagQQ9d2W92/4LZvF0d4qBQV8k2Lxa/+WDew0lYf/ZJfsuzFLV1Pd4POF/tDulYxtnHEB1z5xUR+wyKaStmQyCOayw+zUsH34cLLIn/NU9+KM6E7W2EboGMAGmMG3lWwLw0Jrg9Fq2svXHnx2Jhzvn1KDTgh1lI7K54uFMwQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1625931893; 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=o9A9j6l/wX1G4+Ye4FYMb+DUZWuGQ1B3FFGlncSiSJM=; b=JSZ8lUhtVSzaj9yIwR8c5YDHVEprV2jD690qsZFeFQNWPAt38itj3WS1s/Atbm1h4sj0L4oNz0aOZ44/B6P50NtnNXj4c6GcBoLjZYmW7WsIor0lPkLADMXehko9dkq5MFmcli+uyaThPiBHzAmPza+2x3rjINI949OOrn+kg3U= 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 1625931893712463.35426130407495; Sat, 10 Jul 2021 08:44:53 -0700 (PDT) Received: from localhost ([::1]:34534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2F9w-0007iD-Fe for importer@patchew.org; Sat, 10 Jul 2021 11:44:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2ExW-0005d3-FW for qemu-devel@nongnu.org; Sat, 10 Jul 2021 11:32:02 -0400 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]:33528) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m2ExT-0002L0-EO for qemu-devel@nongnu.org; Sat, 10 Jul 2021 11:32:02 -0400 Received: by mail-pl1-x630.google.com with SMTP id d1so1426772plg.0 for ; Sat, 10 Jul 2021 08:31:59 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id u23sm11975374pgk.38.2021.07.10.08.31.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Jul 2021 08:31:57 -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=o9A9j6l/wX1G4+Ye4FYMb+DUZWuGQ1B3FFGlncSiSJM=; b=jVPkH4TM9bGxmXZGnooq9FIUvwkK6gD5WpJaufSouLTElI1T7g5DLCEcjId5ASsI2o UvZC5Pe/tcXf53nz8e/70eDeGbWJstnBLnrWkJ2WtOSYGz9KNLtYZO+NjTSdGlJWN1WA IjQcj9wbY5ud7BFpoaZELzgnHraOBDbvcpyEWYvgbeFcCXQJDiXpito2b/2DPMRRbXoI PgeBbVL4y6C5iIz/c+Q26Vs/iuHC1webs9qmmjRmiT7zlIlC4cK+v/43nza7B7ZRyvk4 6aI8L9LY9kTyoZN+36Ly4agJqbgevUNI2zxp8MsFXCr5csBcksPqy31Kgs3nbbv2Gm6Z 0ROA== 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=o9A9j6l/wX1G4+Ye4FYMb+DUZWuGQ1B3FFGlncSiSJM=; b=by34XcLKoG+zpVMU+qQ8OUkyAZ6CKx2twAqpgwVN0j7shEecq6mwzHIW463pdAA6fu 5TneJeXaiBfunrJ6LOOE/AWLnXjbpYQHByJ63tst21OvCpv0o72dVmkJPcWSOd05UNPO uGRzrY4lt/OSMN096KJLEN+g4+0pvJrnooMi8rC7Zc8TO3jS3GmOpEQHiHXYZ+K/sGd6 skjpSzMl686qO7g+MgZnDouBHImsCcOZbEBAG/sUhRXjsm3/X3Fu0Nn45MOeKLJFzA6K suszPsoWkYObVHfqMcRg+hKKUvPIxtnDbnGi8LVrbsybJZAOzAI98U/wvE8mZYTuJxDw tr1g== X-Gm-Message-State: AOAM5328Dq9zrJlW3ktnSyJ56fRVGoZrWmEzhEd/CtRkm2D8/OrukU4n p1OXJMQflmTAhisbp5h3dQZEEtJOVp+GSA== X-Google-Smtp-Source: ABdhPJz+/zPYz37mMdZ6YGqoE3p2LKiz0j5eauPhbdqRaI/+YxPmXd1dFrhuZWuvATlUUsly/LqWww== X-Received: by 2002:a17:902:9a8c:b029:113:d891:2eaf with SMTP id w12-20020a1709029a8cb0290113d8912eafmr35874381plp.61.1625931118030; Sat, 10 Jul 2021 08:31:58 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 19/41] target/microblaze: Use translator_use_goto_tb Date: Sat, 10 Jul 2021 08:31:21 -0700 Message-Id: <20210710153143.1320521-20-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::630; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x630.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: 1625931895353100003 Content-Type: text/plain; charset="utf-8" Just use translator_use_goto_tb directly at the one call site, rather than maintaining a local wrapper. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target/microblaze/translate.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c index 5dfb08d49f..c68a84a219 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -124,15 +124,6 @@ static void gen_raise_hw_excp(DisasContext *dc, uint32= _t esr_ec) gen_raise_exception_sync(dc, EXCP_HW_EXCP); } =20 -static inline bool use_goto_tb(DisasContext *dc, target_ulong dest) -{ -#ifndef CONFIG_USER_ONLY - return (dc->base.pc_first & TARGET_PAGE_MASK) =3D=3D (dest & TARGET_PA= GE_MASK); -#else - return true; -#endif -} - static void gen_goto_tb(DisasContext *dc, int n, target_ulong dest) { if (dc->base.singlestep_enabled) { @@ -140,7 +131,7 @@ static void gen_goto_tb(DisasContext *dc, int n, target= _ulong dest) tcg_gen_movi_i32(cpu_pc, dest); gen_helper_raise_exception(cpu_env, tmp); tcg_temp_free_i32(tmp); - } else if (use_goto_tb(dc, dest)) { + } else 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); --=20 2.25.1