Message ID | 20220310112725.570053-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 u19csp926288mag; Thu, 10 Mar 2022 04:05:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJzNibmmGJrYCEVLJ2Oc1uh9XOh5mvg/j2hlrFzuLG/dgk9Z0mA4JJlkMzjk1MGJ0MJh7gd9 X-Received: by 2002:a25:ab8e:0:b0:628:7c01:de65 with SMTP id v14-20020a25ab8e000000b006287c01de65mr3608474ybi.524.1646913951274; Thu, 10 Mar 2022 04:05:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646913951; cv=none; d=google.com; s=arc-20160816; b=XRxyhUuCrkPf1ZvTUPbiv8APZzz2W6Yo0jQVF/WlCa0F8JZq6XN1PmeSI/7zFLIjgq JsPyLj4DxSwQ6x+Eqq1aKh+LEVrE3U/VX4lHH0+MA2hu7UEXjVdmjzBCycDCDHzDY3BA rYThUP5kSjn+7SCWsz32bDR6lq1gLGrybFINes7vhOl/i9Qu3D7tVTeFbFsGv8gc7IY9 eRiqQMTmLVQBP+SJXX6SFwn2XtBnrEFeSUXv+xsT3y3oLUkT9DmrI3pmHWELrQME6NKT pBmtaD82ns7/JGH2ke5hS/U9ICQajJ8lj5FT1X59vc/LVyv1j2crFhkOBaCthGW/65ME IjCg== 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=O3sb63PjqSayJGPhIjYWT8X9ucIpdxc29uf8E4znz7IGcvI33OEUZUsQ+s24LMA7IF iFs8JeD0fbsejZ01zwGfFFJlwin51FsZ8gp7aOOJoGwOGn0ZTaEm1EK8MVsGkDseZDOB tFpm/A2xRbl2zurD84CP6lxRLbNE/CLowzHTP6Ozw+WaSCl57ChStxI70oIjUiY3mjQR K3wlJ34Z7DIGFQw3tvuLamfFqJmhsh04gYsW/iQ4qKeaCov6YDAS31BM/Vk2QVNVgmVm STKryfULbb2cFJHvg59vyYdf9iBoqD02wScMZB9q9aQnacJLsO6+XyLTHjMJP8CxPkR0 7mKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=FINuLbuz; 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 p84-20020a819857000000b002d6360ac595si2685762ywg.9.2022.03.10.04.05.51 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 Mar 2022 04:05:51 -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=FINuLbuz; 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]:60916 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 1nSHYE-0006tE-Ii for patch@linaro.org; Thu, 10 Mar 2022 07:05:50 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51158) 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 1nSGxo-0006K8-Kq for qemu-devel@nongnu.org; Thu, 10 Mar 2022 06:28:14 -0500 Received: from [2607:f8b0:4864:20::52d] (port=45863 helo=mail-pg1-x52d.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 1nSGxm-00083U-GB for qemu-devel@nongnu.org; Thu, 10 Mar 2022 06:28:11 -0500 Received: by mail-pg1-x52d.google.com with SMTP id z4so4467905pgh.12 for <qemu-devel@nongnu.org>; Thu, 10 Mar 2022 03:28:10 -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=3YCeMoFSIPOtuFxyHW9qCFQJFQUeLRVbZvCIxi8q4XE=; b=FINuLbuz155DTpUngqqhLnixH2INKODooSjzfWh2RnsW6z4Mk4N6E7OlDKQ7hMKbPI pAozDFYy2B2meSoYAEyn2mzN03pae7B85xy7eG7dgKzoYULFQfAVOYBZ/AQvV6E4Cy06 xyO+BNTG0iFhB+GaUlC1FZgsrbr7II/av3RKgAzKWVdC4MIflnrSBbYqkv5SSRt46esY sqXPDbCaGfVbQAQqBvCoMAOy9Nydjixzh9xagjVXuiUpA0Q7g/YUElBZlndEh08o14Tp vYkxSj0f0gHHcv+ZVy8OmW3rHmrlARUDw3lh8f5HdgPg45e/7fW0drPa5HBCkYobJbgA JIjg== 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=tR2eEXmBQlqY6CFqqoF3LX/3qutHsCeCJaKuRQeUXMbnkqIVp170oX/kQdqK4b4wun MDpri7/ZwtVbDrwS5zEEUT91GqXO/6mt7i4CVDfwzgZzSQ4JambKnsBdA71MLCqFoXKR KzsBvFAMgQXaIeolsJFl0Hn0eoClXPQuWc3kcFSK0Jd+ApOkO5qpzPCz6Ua65INpY0Dn xy4CN2LtWQGBUX6hL4JGvs1V/iGlii1lEYcxcPIzsSIqZau+jWJU/TTlYHn3XWCFctMr TqRneSyi5FddEMs6ZspspF5VzoyuQHZUd23bNLiCdL378IV0ut9FBSCMhKK1T3fDfPqi t6bA== X-Gm-Message-State: AOAM531OD0cEF+GK+4UQg2Q2id3V6Cdwv3g1qMcHCNUieqsVpHkXPmWP aSWHJDqel3W13LvzRryAArAqluD3WYZm+w== X-Received: by 2002:a05:6a00:24c4:b0:4f7:2fc6:50e8 with SMTP id d4-20020a056a0024c400b004f72fc650e8mr4176073pfv.63.1646911689247; Thu, 10 Mar 2022 03:28:09 -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.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Mar 2022 03:28:08 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH v5 37/48] target/nios2: Use gen_goto_tb for DISAS_TOO_MANY Date: Thu, 10 Mar 2022 03:27:14 -0800 Message-Id: <20220310112725.570053-38-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::52d (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::52d; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52d.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 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(-)