Message ID | 20220310112725.570053-39-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6713:0:0:0:0 with SMTP id u19csp944034mag; Thu, 10 Mar 2022 04:27:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQOqV8At3C88ZS57qM9BxggUAVpKWbE2xKBuRWy2jfBBMnXHCB3wt5dMcGJ0G/bvQlooe2 X-Received: by 2002:a25:d714:0:b0:628:dc7b:cf9 with SMTP id o20-20020a25d714000000b00628dc7b0cf9mr3538258ybg.77.1646915246006; Thu, 10 Mar 2022 04:27:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646915246; cv=none; d=google.com; s=arc-20160816; b=ebdvKmTkg3sSb8eD88kHjSyFd1Pfq6IpULnv+2UAYFXRlLDoeVMmt9FrM7kIw2u4c9 ODGDxorTKlr10L7iXO3UYPtmxJ4krQewwhlS8IFAYr1LypL6THm48wrKaFjeysLTJGYe np4+pFCD4rGXOFi2Ya65aRHQvabUbhvc2ZPg+kmOKECe7BQN6Aab6dwWtbUNJSlBZT9/ hEpT6FqXLGDu03LapkrY7kl1Y+J8lV9MtP7XMOKC4Rb33cM/LTejChPSmNs8ntTQ6fa9 zJ4fESqjMeYt6d/hkr8ZLoz94TiKYZXh+RFwHKx+a564mb2zcZMnu9y6VM58/+ed+0fC 0JCQ== 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=QMOimEYkivNn0EOtJQFRq+oOiueoNqaCGaU7AEWQQss=; b=qLgShtJdRyV2IiMyf0lepks2abqMmdKThhcWu/7Y9n8Yrpc6fE3Ju+z7wj87IIF6vv jRtsdVdfr1+Us0snvhthay7JH3SENc26Hsuf9fedBY+JoNLiQQrlpE0fInFSadG8ZfOO PuMwCGUrfZv1TiE93Xq/CPZzxUVfNbGBgEtGKaEudTlQj600MfnlXAUHdFHNGNVdOMJU Dbcokg6c5MkR7ZqXHekuyhD+AQLuPnrYcHO8Ft1gW/1RW1BBefL+RV5lZ0HbAmkPML4K 31wpDiLMwkiTQdSveUCIVBJV/0+8XaajUpunPyHjaqsiZBfc9711yE2RGVy3M4zFREaf Mqdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Byn5Go+L; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 21-20020a250415000000b00628beb0917asi2813403ybe.292.2022.03.10.04.27.25 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 Mar 2022 04:27:25 -0800 (PST) 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=fail header.i=@linaro.org header.s=google header.b=Byn5Go+L; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:43432 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1nSHt7-0001H1-FZ for patch@linaro.org; Thu, 10 Mar 2022 07:27:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51180) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1nSGxq-0006Ka-Ie for qemu-devel@nongnu.org; Thu, 10 Mar 2022 06:28:14 -0500 Received: from [2607:f8b0:4864:20::42c] (port=33513 helo=mail-pf1-x42c.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1nSGxo-00083n-A6 for qemu-devel@nongnu.org; Thu, 10 Mar 2022 06:28:13 -0500 Received: by mail-pf1-x42c.google.com with SMTP id s42so4890849pfg.0 for <qemu-devel@nongnu.org>; Thu, 10 Mar 2022 03:28:11 -0800 (PST) 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=QMOimEYkivNn0EOtJQFRq+oOiueoNqaCGaU7AEWQQss=; b=Byn5Go+LYQ2Av8Mi3qz+Sgft9F2TIfzHppda4474BXPpc/YF00oQaTNplQ4nLg4s6s hN81MvLAtXwaxAlB6QDXkjukpR+jTQapcQ9odadgwkv+NqRsFO4+Nkd00467hFQoWul/ jMBoc/GT05z3+LkGF8nPbG1XxJiJ14V7chtG5Xgd6RL8p1F5MpMSb1f/Tjn9z/yCY0Pq 7fJRkqxSs/5PjzgiMgyobduEgknCUDyEjPNx8AEk7y4TSQqqbDfj6aOuE9rdHBgTsdYt 9LpMdbhMsF10nKZKYTfjV0V1FhA6LKneMcfJwuTOC4zfycXwC/3wVZAPKwY0JxPH4dQ8 poCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QMOimEYkivNn0EOtJQFRq+oOiueoNqaCGaU7AEWQQss=; b=wYzhODRRP2Qhn6GbxVK7yQ8zQE5Z6gxNnYoqkdfUwki0HC+48ZL1uwbNhnq5AbXZ8Y oYFWyKzWlsUV4XZgNHsAtGnflg4uGMRJr8x28Tj3keICCifFcrlT+1ArSWpqEVH3Xq1W vkkYJ27XgRQuO0a9ciZfQT4+VB+GO1HkirISUwLg03l7yzcJZ+IcxuxZKoHqrHtLlmHd RyEaG/EMGp+rcD7kfe/D/fya45f0j7HEToLAK3KQKwX/28qINLgr8X7CE1nqBjzc4kWg aV4NTI+AlRAHYZVdJ7TV1oXxKwQer3As9xO8JA7z+9OQbGwVHsI7RFO0SPRWCPYXbuun m43A== X-Gm-Message-State: AOAM532I3JuLY6nv53K9Ik2cxp5OUS4xMN/NaWixo2zT+10BVpsKcQWr Cua7PltO/sRtMP1FDfzYEnvtXW7Y5P2LyA== X-Received: by 2002:a63:724b:0:b0:378:7967:e45c with SMTP id c11-20020a63724b000000b003787967e45cmr3753719pgn.602.1646911690234; Thu, 10 Mar 2022 03:28:10 -0800 (PST) Received: from localhost.localdomain (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id js15-20020a17090b148f00b001bfc8614b93sm3114977pjb.1.2022.03.10.03.28.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Mar 2022 03:28:09 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH v5 38/48] target/nios2: Use tcg_gen_lookup_and_goto_ptr Date: Thu, 10 Mar 2022 03:27:15 -0800 Message-Id: <20220310112725.570053-39-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220310112725.570053-1-richard.henderson@linaro.org> References: <20220310112725.570053-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::42c (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42c.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: marex@denx.de, peter.maydell@linaro.org, amir.gonnen@neuroblade.ai Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
target/nios2: Shadow register set, EIC and VIC
|
expand
|
diff --git a/target/nios2/translate.c b/target/nios2/translate.c index 6f31b6cc50..f7bab0908b 100644 --- a/target/nios2/translate.c +++ b/target/nios2/translate.c @@ -163,7 +163,7 @@ static void gen_goto_tb(DisasContext *dc, int n, uint32_t dest) tcg_gen_exit_tb(tb, n); } else { tcg_gen_movi_tl(cpu_pc, dest); - tcg_gen_exit_tb(NULL, 0); + tcg_gen_lookup_and_goto_ptr(); } dc->base.is_jmp = DISAS_NORETURN; } @@ -174,7 +174,7 @@ static void gen_jumpr(DisasContext *dc, int regno, bool is_call) if (is_call) { tcg_gen_movi_tl(dest_gpr(dc, R_RA), dc->base.pc_next); } - tcg_gen_exit_tb(NULL, 0); + tcg_gen_lookup_and_goto_ptr(); dc->base.is_jmp = DISAS_NORETURN; }
Use lookup_and_goto_ptr for indirect chaining between TBs. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- target/nios2/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)