From patchwork Sun Jun 20 04:21:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 464321 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:102:0:0:0:0 with SMTP id x2csp1359345jao; Sat, 19 Jun 2021 21:28:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6KQlHq25PyakPc3C6DB5QxTmi3UT408yqMl2apNaWK0apprDvzDtYQG5Jg/Hfl+s8hQ9Z X-Received: by 2002:a05:6638:1919:: with SMTP id p25mr11054912jal.115.1624163288813; Sat, 19 Jun 2021 21:28:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624163288; cv=none; d=google.com; s=arc-20160816; b=PbLHFFsxNPm3O7Ug0VIuL2OKcuiVJDH5ILF6cmpe7tbihruzXmuv9P16qnVJEkRdLa LZ3R573XpXgvUOkC6EnpmIf9DuV/dRVPc4MW3nWEQWPQxcu+EEfYCeM0Vc4LUodTdgW7 g5XISQXd/HRFB24MVHnzrCUiYST68UGUS4T5rivThSX/BI99pH7dqQkL3T7bGuv5SiPx AQxZ5ra0hbznQ5jmVpYc+XrDufTfQiLgROaEG4aT9myxBv5sEBdakPDKoNkVXqoMYive D2k5mHTjutwJNwRGZkkDXCpgT6Xa0kK9LlJCyxictSX+zujP8C2oAJe1445ZgkDZIHt2 KIIg== 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=soBxmYzIZMGH+aXCnzU66X8RLdvoKJnc1fvxigxH0fg=; b=Ra7BLaTVMqXJRF2nIAxd7YZuSO2YwN4bnb+fPAzDbB2++6wCfR9YP40A1y76rAEq8M q5Xmzhsn1jZYwGZQ5uOIv1RFbY2MBB1rgNA5F4E3R0FEr7DtdV/EeXRb3rIM0+tO9tek R42bt3sLzqttGhen1mLSDvWDLhdmh54z/JgISvRg0J35bMPgv8nzG58XBQm0QKRFyZp3 dWRPPrTZpk6y4mY3shk8bzuI0PGe/ddmHh68A6DTTHudlJArTWF7N+sE2Noay+qDpB/u /SxI4jzx75cJ+hMO2IsJ56a1eVemV3hkfzqkvFWPRmw1fXpY5cs2HrGtcrDrL5/tJe8U TbHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=of+tKD29; 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 m11si8967554jat.29.2021.06.19.21.28.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 19 Jun 2021 21:28:08 -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=of+tKD29; 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]:46802 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lup44-0003m7-4J for patch@linaro.org; Sun, 20 Jun 2021 00:28:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41480) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1luoy4-0005MG-MY for qemu-devel@nongnu.org; Sun, 20 Jun 2021 00:21:57 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]:44782) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1luoxz-00080l-7N for qemu-devel@nongnu.org; Sun, 20 Jun 2021 00:21:56 -0400 Received: by mail-pf1-x42e.google.com with SMTP id u18so5644019pfk.11 for ; Sat, 19 Jun 2021 21:21:49 -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=soBxmYzIZMGH+aXCnzU66X8RLdvoKJnc1fvxigxH0fg=; b=of+tKD29OLtcKdR0OPS8PhlSF+PcG44d4in9HuN2gHtJ7sx2LTIaDNvFmHkIal2z+q iTPVPTWuKZi0/XnIhOLdeBWCpbBBVnqgHgNRQNUvVM5kU3PApsD7eaT6h9BAjMlMoT5z OozTtbsZR7qFi8+VvAHE4NlHeTx/4ZaEGIyzmKGrIlvWCl/P/yp3885WU+NclzVuldh1 O2K3nFcxKj35jhfMdPb3TX8mdIlNSzZXhivzpPkyMNNQSbV7ruYWglRweJ1PK1C9iUhj lXUwo0PU9Z0Ra2+ph8Fd4otuo4HHyqtW/ZhL2w+kJQsMXvcETRxtVvKZWjlTl4lQpBsa 4j6g== 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=soBxmYzIZMGH+aXCnzU66X8RLdvoKJnc1fvxigxH0fg=; b=RVZ+wcnHLOBHdFRKjzeGsxn6qY1KThT0nqcjCiASvqfl3AOgLh7xgagm61SAc+dmou VogUzpGyTsDhnGWKEC6fdNErz9gRU8JN/APXGkTX+lIDdKhvANZf+LKF0Ff+/mJQaEJd fyEj16zJ/SYQQq+qRT1Agr4Ssi7G9qbB0+1s1zy30QemqaJqzf84e6SGlwauZeL+nc2I +6lE+KFGdai2u//knqygbiqOZqckMo1hrz0B9o/GqzPbEun1m3LKkOuMAmhI7F2AhsHs 8/hRL74a0OnFnuQokv+PZSuPxqGfkirwTG9k00Z76M9c283M/dCgqrqylK4fjndVk5ad NdUg== X-Gm-Message-State: AOAM530e/B9xbCZQUkXrtwZBs/MCza+vpOtcZ/KPBA1RF8HuUzhj3rrb zPMzuGS+XAAeTr+8vW9XV0exAWg8jAe/mA== X-Received: by 2002:a63:e04e:: with SMTP id n14mr8530781pgj.324.1624162908886; Sat, 19 Jun 2021 21:21:48 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id b6sm11923156pfv.16.2021.06.19.21.21.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Jun 2021 21:21:48 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 9/9] target/cris: Use tcg_gen_lookup_and_goto_ptr Date: Sat, 19 Jun 2021 21:21:41 -0700 Message-Id: <20210620042141.1235541-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210620042141.1235541-1-richard.henderson@linaro.org> References: <20210620042141.1235541-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42e.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: edgar.iglesias@gmail.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Indirect jumps can use this to avoid returning to the main loop. Signed-off-by: Richard Henderson --- target/cris/translate.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.25.1 diff --git a/target/cris/translate.c b/target/cris/translate.c index e4cbc35ebd..8a8d62f11b 100644 --- a/target/cris/translate.c +++ b/target/cris/translate.c @@ -3330,6 +3330,9 @@ static void cris_tr_tb_stop(DisasContextBase *dcbase, CPUState *cpu) gen_goto_tb(dc, 1, npc); break; case DISAS_JUMP: + /* indirect chain to the next TB */ + tcg_gen_lookup_and_goto_ptr(); + break; case DISAS_UPDATE: /* indicate that the hash table must be used to find the next TB */ tcg_gen_exit_tb(NULL, 0);