From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34975) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqQOs-0002yo-2X for qemu-devel@nongnu.org; Sat, 22 Jun 2013 12:10:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UqQOo-0007cl-38 for qemu-devel@nongnu.org; Sat, 22 Jun 2013 12:10:53 -0400 Received: from mail-vb0-x22f.google.com ([2607:f8b0:400c:c02::22f]:64487) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqQOn-0007cK-Vz for qemu-devel@nongnu.org; Sat, 22 Jun 2013 12:10:50 -0400 Received: by mail-vb0-f47.google.com with SMTP id x14so6944387vbb.34 for ; Sat, 22 Jun 2013 09:10:49 -0700 (PDT) From: Zhihui Zhang Date: Sat, 22 Jun 2013 12:10:36 -0400 Message-Id: <1371917436-5008-1-git-send-email-zzhsuny@gmail.com> Subject: [Qemu-devel] [PATCH] Switch the roles of jmp_next[0] and jmp_next[1]. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: blauwirbel@gmail.com, rth@twiddle.net This way, jmp_next[0] means "taken" for both conditional jumps AND unconditional jumps. Currently, it has opposite meanings for the two cases. Signed-off-by: Zhihui Zhang --- target-i386/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target-i386/translate.c b/target-i386/translate.c index 14b0298..7daa1a1 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -2430,10 +2430,10 @@ static inline void gen_jcc(DisasContext *s, int b, l1 = gen_new_label(); gen_jcc1(s, b, l1); - gen_goto_tb(s, 0, next_eip); + gen_goto_tb(s, 1, next_eip); gen_set_label(l1); - gen_goto_tb(s, 1, val); + gen_goto_tb(s, 0, val); s->is_jmp = DISAS_TB_JUMP; } else { l1 = gen_new_label(); -- 1.8.1.2