From nobody Tue Oct 28 12:14:05 2025 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; 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 1514855711767686.0665397675131; Mon, 1 Jan 2018 17:15:11 -0800 (PST) Received: from localhost ([::1]:50768 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWBAc-0004lI-NB for importer@patchew.org; Mon, 01 Jan 2018 20:15:10 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWB6I-0001Vb-00 for qemu-devel@nongnu.org; Mon, 01 Jan 2018 20:10:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eWB6E-00052A-Q4 for qemu-devel@nongnu.org; Mon, 01 Jan 2018 20:10:41 -0500 Received: from mout.kundenserver.de ([212.227.126.130]:53931) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eWB6E-00050g-Fp for qemu-devel@nongnu.org; Mon, 01 Jan 2018 20:10:38 -0500 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.167]) with ESMTPSA (Nemesis) id 0Lle2C-1f5Err1Lwe-00ZRlT; Tue, 02 Jan 2018 02:10:35 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Tue, 2 Jan 2018 02:10:16 +0100 Message-Id: <20180102011032.30056-2-laurent@vivier.eu> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180102011032.30056-1-laurent@vivier.eu> References: <20180102011032.30056-1-laurent@vivier.eu> X-Provags-ID: V03:K0:wOgEH0QpWWCaI1mpfjCqluVfJ7Y+HWtbOvPUTonwOaPmF12BoJx LVb6K+NwPFMvY2vN6c+zNdPRaK8+O3Q3RqQyPqW1gEp4crlVLsJcahpDgoY/qge27ksSlFM g4wL8xE2rACQzj4M2y+zErfwyj4Z2TzzL2QEyWR/dsa2th77gbOS+v6bX3eGSU7pGvlRE40 +xs/wBqnmDswCNhNVW8Yg== X-UI-Out-Filterresults: notjunk:1;V01:K0:VTWWjcND2Ws=:oH50m32eI68Et4t4DTz6L4 u2QpQZsZc1HM50M6vxRaQcvdGBbMYsbFFb48/k0UfhTaaGqaZcpCtxw7yJqI5x0jUyIJHJU2T zPMBxnlKcuaG/pGPKpKfQEe4qnhsB7Uh38lnxjlhmgS8/Xx/lsBwdZdvZnc+b8Hmn/vZ1iP/+ XsJitxOfGOOIqi1eYZScVMUZWOkgQNaAT50LwySkFiF0DsEdKNb+PS8Z5ZOVZJJM2Enz6D9qa IEsa2VB01XeHyu1hDKjUoAvLVaXsz8ERFOIsCfzqajMF9euJiaSB9jqFb6ptXiLxWSQCztqGt Ru7PeoBEPMg5g7LVUO/yYG35+KcGTYmFtMdacP+XipVIN/o7kwabTCBmHR3Th6ZGxGG43bTfy saokllxV8c5Vj8/5kLgFC2QPaSoGJQRtlzzBaCRMwwmBGNXCm1iQwU/HwHd3vPlhcBH5PJ2MG Y6erI3IkzJB7DC5wbwEchfk6JAFPDBhmCxXY/BTnUBwnUM8okVoxBTn71LRLf17GyqXrKwf6Q /JPw0jMz0PxhubLZZtuKOT6CTPUzi3siIwQKVt7Tw9UHkIydZ415IYT8PpsNqO5R039PpEofF boA32pI353GKwb6oroQjxNQb2B/JpFP3fEenGcwkPlu8YPOA1QQSsG1a3XehVcug0f5/iIyAm JDSpIHq3XruN8rSsM/1RfBPJCCFGvkhHfS6tsSEEBtGGwJNCCBePCjpZx30++KSUiYg1fbnff anqxs4ZPqZcxSlXqvlczgxRmO/4YidPCagVk1w== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.126.130 Subject: [Qemu-devel] [PATCH v5 01/17] target-m68k: sync CC_OP before gen_jmp_tb() 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: Thomas Huth , Laurent Vivier Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" And remove update_cc_op() from gen_exception() because there is one in gen_jmp_im(). Signed-off-by: Laurent Vivier Reviewed-by: Richard Henderson --- target/m68k/translate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/m68k/translate.c b/target/m68k/translate.c index bbda7399ec..0e9d651a2a 100644 --- a/target/m68k/translate.c +++ b/target/m68k/translate.c @@ -270,7 +270,6 @@ static void gen_raise_exception(int nr) =20 static void gen_exception(DisasContext *s, uint32_t where, int nr) { - update_cc_op(s); gen_jmp_im(s, where); gen_raise_exception(nr); } @@ -2897,6 +2896,7 @@ DISAS_INSN(branch) gen_jmp_tb(s, 0, s->pc); } else { /* Unconditional branch. */ + update_cc_op(s); gen_jmp_tb(s, 0, base + offset); } } @@ -4875,6 +4875,7 @@ static void gen_fjmpcc(DisasContext *s, int cond, TCG= Label *l1) DisasCompare c; =20 gen_fcc_cond(&c, s, cond); + update_cc_op(s); tcg_gen_brcond_i32(c.tcond, c.v1, c.v2, l1); free_cond(&c); } --=20 2.14.3