From nobody Tue Feb 10 02:54:49 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1499796285390740.9271019412307; Tue, 11 Jul 2017 11:04:45 -0700 (PDT) Received: from localhost ([::1]:48122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUzWb-0005CZ-PK for importer@patchew.org; Tue, 11 Jul 2017 14:04:41 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56237) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUzSr-0002Ud-Nh for qemu-devel@nongnu.org; Tue, 11 Jul 2017 14:00:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUzSo-0005F1-Fp for qemu-devel@nongnu.org; Tue, 11 Jul 2017 14:00:49 -0400 Received: from mail-wr0-f180.google.com ([209.85.128.180]:34697) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dUzSo-0005E6-43 for qemu-devel@nongnu.org; Tue, 11 Jul 2017 14:00:46 -0400 Received: by mail-wr0-f180.google.com with SMTP id 77so9557709wrb.1 for ; Tue, 11 Jul 2017 11:00:45 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id l8sm3153464wmd.15.2017.07.11.10.59.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Jul 2017 10:59:40 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 389B73E0C22; Tue, 11 Jul 2017 18:59:38 +0100 (BST) 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=hfILuYeoW/2VUcoI1OEJJp+m/FkdK0C8eGA81xN2QhU=; b=dt4niN6eL/AXsiZg9cDKeypk4NuMb/STgBHn5RsunR6jAX59O2wqjqbddi0e4mOaTr 8t1wgmrcuM0N6vMfiyBjZEb0cHnT4w9dEyBCCB1CEncKiZ23P9dqE5058Yy+vYND9RSC PRwy5iYpvRUfl6iSxoNMxStKPiapv4F6Jliik= 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=hfILuYeoW/2VUcoI1OEJJp+m/FkdK0C8eGA81xN2QhU=; b=nLlIV6DyPXe2pG/3wwi/Z3/xFSRKXWB7aUEPEDMjn5e0nDTRGWqTToTYxRpsiZWdHl Ue1ukYXFv0Q8wwX7p1fZRg+MF7f7Y5/NLuAI7ic4b4UVIdNldr/yANeUOACG3Bg8ssKn kA9IUnrkpcZg3uihoJRC+InoJ3aGqMGW0LdWJZAPzjJL+BaLyXuns6439oTPL8ST31nr KiRHGn2kQs2YcaYTKaHidDi156NboTGu80H08VFgNc5aez7rDpMoAQVo2bCGIiBSxxgC iEtsBnBqMhKJ8F0WA6OqC8XuX5eZcQVofOFO5Fhiir/8Y16iE5eJ+ABDykyN9DmeTTg6 UKxw== X-Gm-Message-State: AIVw111GfV7hjbp6tSJaJsUD/b9gEctkrcCeAUl1uEBH6clpkO86hRMg Ik3MdVY4NHv7a5kj X-Received: by 10.28.227.67 with SMTP id a64mr3613836wmh.116.1499795984956; Tue, 11 Jul 2017 10:59:44 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org, rth@twiddle.net, cota@braap.org Date: Tue, 11 Jul 2017 18:59:35 +0100 Message-Id: <20170711175937.23140-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170711175937.23140-1-alex.bennee@linaro.org> References: <20170711175937.23140-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.128.180 Subject: [Qemu-devel] [PATCH v3 4/6] target/arm/translate: ensure gen_goto_tb sets exit flags X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "open list:ARM" , =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 As the gen_goto_tb function can do both static and dynamic jumps it should also set the is_jmp field. This matches the behaviour of the a64 code. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Richard Henderson --- target/arm/translate.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/target/arm/translate.c b/target/arm/translate.c index 5f2cea8641..82341ee709 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -4158,15 +4158,20 @@ static void gen_goto_ptr(void) tcg_temp_free(addr); } =20 +/* This will end the TB but doesn't guarantee we'll return to + * cpu_loop_exec. Any live exit_requests will be processed as we + * enter the next TB. */ static void gen_goto_tb(DisasContext *s, int n, target_ulong dest) { if (use_goto_tb(s, dest)) { tcg_gen_goto_tb(n); gen_set_pc_im(s, dest); tcg_gen_exit_tb((uintptr_t)s->tb + n); + s->is_jmp =3D DISAS_TB_JUMP; } else { gen_set_pc_im(s, dest); gen_goto_ptr(); + s->is_jmp =3D DISAS_JUMP; } } =20 @@ -4179,7 +4184,6 @@ static inline void gen_jmp (DisasContext *s, uint32_t= dest) gen_bx_im(s, dest); } else { gen_goto_tb(s, 0, dest); - s->is_jmp =3D DISAS_TB_JUMP; } } =20 --=20 2.13.0