From nobody Sun Nov 16 07:19:00 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=1599118360; cv=none; d=zohomail.com; s=zohoarc; b=SBdPlCjybeYDj5T5sxzvlB6vG8UtlVOb0OUz09+tSXYnd4S/IxjS/PmIbvegnxcK/gpUm1nU+HmyiD3PN4G1YNLp8bKGSkB1C9ZnHIWHOpMwXwwOquHBuvXssew5TxCVLiauDICb3LiGpCRKuN5X6RGcW9PDOjOcql50V0sKYSw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1599118360; 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=hA0Q3ZvS9ZMt8mExwk35iB2Bwjpw4Nf408fgP9XSgOU=; b=Pvs2rqRgIjmSiz6kOxucRlA0esjqNfTFQkjteX37reDNctcO2eubGR9mrYO6bSyL1xviWgKv2zUsW7MEkKGbU4anW1nD15NwlnRPwPn70cEp6XHHj7BqQ2fxAvguq62D7ioO9np62U194hCx9bwJa/DvxoUpgqrVvkX15EDpZW4= 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) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1599118360409539.5636950861943; Thu, 3 Sep 2020 00:32:40 -0700 (PDT) Received: from localhost ([::1]:59544 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDjjb-0003uD-Hu for importer@patchew.org; Thu, 03 Sep 2020 03:32:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDjeI-0002FH-Ec for qemu-devel@nongnu.org; Thu, 03 Sep 2020 03:27:10 -0400 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]:38611) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kDjeG-0001mq-NK for qemu-devel@nongnu.org; Thu, 03 Sep 2020 03:27:10 -0400 Received: by mail-pf1-x443.google.com with SMTP id d22so1577911pfn.5 for ; Thu, 03 Sep 2020 00:27:08 -0700 (PDT) Received: from localhost.localdomain ([71.212.141.89]) by smtp.gmail.com with ESMTPSA id x185sm1930229pfc.188.2020.09.03.00.27.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 00:27:06 -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=hA0Q3ZvS9ZMt8mExwk35iB2Bwjpw4Nf408fgP9XSgOU=; b=mY7W7h2wq/n51O8Sp20oP6jL7RceK/BxYLfmBYx8BhgKKuFnbjiR+bUQZmvixo+RCr tlUhB9X/oYbCZpfOFMQEB7uyAfW25y0QuOV2j7iLo3D1kpL7wtiwqHpsaaLQ7+XLsPRh RQ3ooAdRx3OahUbLoIvu+esysGFBKRZLWZyEBN0ajMEVOMuRPH0byKeH2uxVbovAEQPN cEnwjK/+sNixCzlOL2bWf2dH+IQbUQpVZ8DN6ItYp9OXBAVlb4/b3M6yrBMgdekXKUS3 bFmTmI1AE/5l6KbLAGrnZwTWaIRscjo16EqpTEiP8OKEbc0RZmkH1kRFDIoxA53DJR06 qE3Q== 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=hA0Q3ZvS9ZMt8mExwk35iB2Bwjpw4Nf408fgP9XSgOU=; b=kAaonSp8KH5UcDwprlO7jpi8Drp2K50sqke0wbbR9LFwM+RhagJQ+U2omKyn+eWyJr td2b5hIbvZC1sbtj4thatHBiaRJq50r+rurcDKi59xL2w+6bG1rk5lmOt0INNtz3rdUO eN/FvHdbWifRHGPitqSIy8e5vVW+CWQzj0n0iXCqoX9uK7//PpDffyqBl9j17NzQhapK aq7wILlK5aWIoNV1AzgHolEGVj+bxeGf6rVtsfnKX0vaOMJc4PgAOdTiATL/elWnzvdv vLxN15GI213lSQQRgSaslAG5r26xXUWJu4Mfs6RRxNcLlws5n0NULDnsMfwGjjI7CvgY IEBQ== X-Gm-Message-State: AOAM532x9qynuMVUrb02E/VmNLMZUFyTtxth+DihaWWZZhWYtdUX1Py9 qKSwMGGR1VDZmprS+/ptaDP4VS41Vj0GLQ== X-Google-Smtp-Source: ABdhPJz0K0qsPjhdvOiAKvQ3ZIhi/y8KhOiLhZ7QhQwmM8S4CeQlASG0ZAd59+YjniIpo+3w7ouluQ== X-Received: by 2002:a17:902:9a44:: with SMTP id x4mr2542364plv.31.1599118027052; Thu, 03 Sep 2020 00:27:07 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 11/12] target/microblaze: Use tcg_gen_lookup_and_goto_ptr Date: Thu, 3 Sep 2020 00:26:49 -0700 Message-Id: <20200903072650.1360454-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200903072650.1360454-1-richard.henderson@linaro.org> References: <20200903072650.1360454-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::443; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x443.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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: edgar.iglesias@xilinx.com, thuth@redhat.com, f4bug@amsat.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" Normal indirect jumps, or page-crossing direct jumps, can use tcg_gen_lookup_and_goto_ptr to avoid returning to the main loop simply to find an existing TB for the next pc. Reviewed-by: Edgar E. Iglesias Tested-by: Edgar E. Iglesias Signed-off-by: Richard Henderson --- target/microblaze/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c index da84fdb20b..d98572fab9 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -147,7 +147,7 @@ static void gen_goto_tb(DisasContext *dc, int n, target= _ulong dest) tcg_gen_exit_tb(dc->base.tb, n); } else { tcg_gen_movi_i32(cpu_pc, dest); - tcg_gen_exit_tb(NULL, 0); + tcg_gen_lookup_and_goto_ptr(); } dc->base.is_jmp =3D DISAS_NORETURN; } @@ -1803,7 +1803,7 @@ static void mb_tr_tb_stop(DisasContextBase *dcb, CPUS= tate *cs) if (unlikely(cs->singlestep_enabled)) { gen_raise_exception(dc, EXCP_DEBUG); } else { - tcg_gen_exit_tb(NULL, 0); + tcg_gen_lookup_and_goto_ptr(); } return; =20 --=20 2.25.1