From nobody Tue Oct 28 12:15:22 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 (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1514936612088845.496305091554; Tue, 2 Jan 2018 15:43:32 -0800 (PST) Received: from localhost ([::1]:59574 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWWDK-000070-CO for importer@patchew.org; Tue, 02 Jan 2018 18:43:22 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWWBL-00071d-1s for qemu-devel@nongnu.org; Tue, 02 Jan 2018 18:41:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eWWBI-00034y-Ax for qemu-devel@nongnu.org; Tue, 02 Jan 2018 18:41:19 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:58277) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eWWBI-00034V-1R for qemu-devel@nongnu.org; Tue, 02 Jan 2018 18:41:16 -0500 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue005 [212.227.15.167]) with ESMTPSA (Nemesis) id 0MOVaj-1ea5520xHB-005nEG; Wed, 03 Jan 2018 00:41:13 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Wed, 3 Jan 2018 00:40:52 +0100 Message-Id: <20180102234108.32713-2-laurent@vivier.eu> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180102234108.32713-1-laurent@vivier.eu> References: <20180102234108.32713-1-laurent@vivier.eu> X-Provags-ID: V03:K0:4xwfuA48Rym3ehX7qha8QBfuUdtjum6xiGSbUH1MHljr3FZ75et Of7o+Rnag5XNMzW+BIO/BUDAFHUneMy4tl4ch/Vwx/pxPYOp4si3lADnVBMbUEOsl0RJzjM 0iPdtpcPiR/iItd4t7GHUntxv3N+m2bWrOEiXQzxofNpdN8XLZFbJ8s/+AB/+QDJmkv3rcx PMsxJUOyoVxJPNgcoy1NQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:9rNFUxXHYMg=:Qre3kgp8ecgqYZ5+TTBhxD AkAs8iy5PSEFJoUZeoNHLWKIZj+BDXAADjJqZ2YVQIuWfya/QNMhDv9EMX/OFvt3S6KosdX9x RPzWNhHH7gP1PPLVNnwC4u0fAM4va7hozwO+0uiFvAYxuY4uW/VVa0wLWxcYIFB5Fv6HJIpCb ocNHX9OXAzRlX2Lwfh+ccc/yxJtLD4HiPeHZYeXdn8j2Pl1K1hrappbRWBBU2v1JpjpFdLoWa wYL82x9+ALT/hscF9nIMEPwCuf1srjYXe8SFrOSgm5jeSShMkBCtklXpJA2TNBax+YKxqrSAb Lxj3NxZfzIGKbtJ2ti8ib6x4rHwh6PW8iU11+cR6Umvs0/Zv9cCyK7mbuRWpFJM64ueuFnDal 2NpHSnPswODKXI0Ik8xMHfAweuVvusERXI798+Q3tm9qIPHT46qP5bV5+Ua+P7JWNIjO8svyQ 92WWpEzVMvuIawA9mZMoy/EV7Qi3UAvFI8J4keIuOByxkrxOCYEPgBnUukdXtOOGwQ1uu+AQZ tcC6D2VdAKFH/a2AXPgsKrR8oxYly3mJMWyQXdrn/sghGDhWQxMBP78+daR3VrIUoOQd7pyfc kxe7WrVIuA6bjNJB3JDKARdavywtN1ie+vyIoa9QmgUQ3hLrPaLcd+Jm1A8LrIOVqGt/uIps6 06Pa6bDhzNyXioG0SDU/wUFmHr1TOkx5og08koMAzg/uW2FCB4VitcVT3vj3BpH3PTHVi7zNG BVc/4Z/wHwcj2zrRNqhFntR4II0dJRqi1nUdzg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.126.135 Subject: [Qemu-devel] [PATCH v6 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 , Richard Henderson , 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