Message ID | 20220317050538.924111-38-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 u19csp889550mag; Wed, 16 Mar 2022 22:43:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMnPc+dXVIYyqy+m33wfKuogFs4Dax7yJPHGEYKbO+3Ai8X88hYfiaaHapazV+nriSuU+A X-Received: by 2002:a05:622a:13cb:b0:2e1:e14e:5b1f with SMTP id p11-20020a05622a13cb00b002e1e14e5b1fmr2399286qtk.317.1647495809111; Wed, 16 Mar 2022 22:43:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647495809; cv=none; d=google.com; s=arc-20160816; b=UJTuTIj9qATYz2Hd1HGqLG9E8tBeNSo+mL8VAsBkJHnQqyXohLlVjmHg1Hck2kMLSZ nI15lWyUvx0f2udnFe634TizJJVMYqJh1guYM5/XJgE4GJV8PBPSlWp2cPa4bBhzrf/I Hj4YeV+H1f57apG28CQ2ujzViNXLMAwCkctdIntu3bpUtrgsEQWHm2sQ5/kBInMoeq3Q 9zR/0njzOIJ0ocxQjbHR0R2bK1MQNb6rhhGkek2xZvICIChW7DLuexU5yxJYr/zmy/Y+ sPlOhoGcCWCvWxovZhR7mHakiAKUw3D5XoVOrGYm+TFiL7GScXs/q4TFdVhFHJXY+j+P G9RQ== 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=3YCeMoFSIPOtuFxyHW9qCFQJFQUeLRVbZvCIxi8q4XE=; b=nqWuLd/kWUiFk/Mw6bInzpkPgKl9DQIbdnXWPvwolCQ2bndcmvnCAhBqz7Zvw9uOGT CaZtb8rn4R4zOcVu2xQTdD60MsypEH7Itje3nXIU19/CF0+542sQ8Iuuvp7Qx3yQgfaw ZVpCxOWHx/NH4aSZfMsMG4rmkrLFCu4HboZ6K7XGzlfl1YzqDPwUoaq+5UeLeRKMZv7i xd9YaL50zyzxZPyVrF+zUDF8baeJ3dNltDeQpXEhYVOi18VhvsAV70YXU1ipmtAUd2wS UiCK96BxbQ0xyIKQZq+JYNoUZE2wwzzkBqOxzmlbHVJAbZ1mviLhhLvy7NaX89kLcug/ OvdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Z3mfbAng; 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 gw13-20020a0562140f0d00b0043f326f2abcsi1108029qvb.373.2022.03.16.22.43.29 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 Mar 2022 22:43:29 -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=fail header.i=@linaro.org header.s=google header.b=Z3mfbAng; 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]:41960 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 1nUiv2-0007LZ-OD for patch@linaro.org; Thu, 17 Mar 2022 01:43:28 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51222) 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 1nUiL7-0001Wa-0d for qemu-devel@nongnu.org; Thu, 17 Mar 2022 01:06:22 -0400 Received: from [2607:f8b0:4864:20::52f] (port=36732 helo=mail-pg1-x52f.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 1nUiL4-0002JV-Kt for qemu-devel@nongnu.org; Thu, 17 Mar 2022 01:06:20 -0400 Received: by mail-pg1-x52f.google.com with SMTP id t14so1810367pgr.3 for <qemu-devel@nongnu.org>; Wed, 16 Mar 2022 22:06:16 -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=3YCeMoFSIPOtuFxyHW9qCFQJFQUeLRVbZvCIxi8q4XE=; b=Z3mfbAngkp6lthIsRFle+fvLdwO0oYWdwkU69JflJwXh4x2nojXHguUol/KMSZdXAA r02EnA+hVdvPi0qwl81m+Gcy7RjC7a+gN+xsTvhmxILoOA306I/c4SifBTDK/rbCDBc4 nOHGhfUfAOp6V9w29Ii/Yz0FVdH1SkGyWxd210DPbK7M0EETy08iBhNOr6QPYh8pJnC2 vX9ltqfZZI6foyPk77hrfTWcqlj84iOcah0UvFCZeo8v2KJSoikCNhm3F6lOokc1ytqX GtKbNwcy4uLu9wZNGcftxHNJEKuKOROfU9YlnDsNo0zBitDplPK3uQUU5IXCNdwdpiBx CHTg== 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=3YCeMoFSIPOtuFxyHW9qCFQJFQUeLRVbZvCIxi8q4XE=; b=YJq92nonbvhsBGcHB0JIU778NBDT/yxs6nPbPQrpVsodoe+NJI/EbUp04hGFjey6Ak N0GzgmibTWODvr9WcWxUfAZ6JZjoHu9EgWz3wcKYQScuXQyiAQZfaxmhqpygSnxubgGg Te6QeKsC+yQDwRDKRt5+x0ay0cAjkoO37dNyxLplaQCYwo0+s/sIas4xOQZzJk9E8yAt 6snJ9XowgeMD8RnBkdMC0DuvholbQyZvFSEwhuGmrPnmkCJTVw6DWGx04nan9Q4+pYbe s4Waf9pdV6eHoi5mG38wFfmCqYJ2i+UxKPf0hid/c1olKpdqJcog68iQ7VwyzrypXetV /U7Q== X-Gm-Message-State: AOAM530Q+QMiyHegUWmmlInGDkXPBMDf+Dg50pfmBt2lnKD/CcUejXm5 UzzkRht2GiLvoXB83rV5mNoy2XwKDI8wOA== X-Received: by 2002:a63:fc5a:0:b0:381:744c:9781 with SMTP id r26-20020a63fc5a000000b00381744c9781mr2321191pgk.158.1647493575764; Wed, 16 Mar 2022 22:06:15 -0700 (PDT) Received: from localhost.localdomain (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id h22-20020a056a001a5600b004f7c17b291asm5101357pfv.87.2022.03.16.22.06.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 22:06:15 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH for-7.1 v6 37/51] target/nios2: Use gen_goto_tb for DISAS_TOO_MANY Date: Wed, 16 Mar 2022 22:05:24 -0700 Message-Id: <20220317050538.924111-38-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220317050538.924111-1-richard.henderson@linaro.org> References: <20220317050538.924111-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::52f (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::52f; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52f.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, 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
|
On Thu, 17 Mar 2022 at 05:46, Richard Henderson <richard.henderson@linaro.org> wrote: > > Depending on the reason for ending the TB, we can chain > to the next TB because the PC is constant. > > Signed-off-by: Richard Henderson <richard.henderson@linaro.org> > --- > target/nios2/translate.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) Reviewed-by: Peter Maydell <peter.maydell@linaro.org> thanks -- PMM
diff --git a/target/nios2/translate.c b/target/nios2/translate.c index 51907586ab..6f31b6cc50 100644 --- a/target/nios2/translate.c +++ b/target/nios2/translate.c @@ -834,8 +834,11 @@ static void nios2_tr_tb_stop(DisasContextBase *dcbase, CPUState *cs) /* Indicate where the next block should start */ switch (dc->base.is_jmp) { case DISAS_TOO_MANY: + gen_goto_tb(dc, 0, dc->base.pc_next); + break; + case DISAS_UPDATE: - /* Save the current PC back into the CPU register */ + /* Save the current PC, and return to the main loop. */ tcg_gen_movi_tl(cpu_pc, dc->base.pc_next); tcg_gen_exit_tb(NULL, 0); break;
Depending on the reason for ending the TB, we can chain to the next TB because the PC is constant. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- target/nios2/translate.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)