From patchwork Thu Jan 24 04:03:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [19/57] target-i386: no need to flush out cc_op before gen_eob Date: Wed, 23 Jan 2013 18:03:03 -0000 From: Richard Henderson X-Patchwork-Id: 215250 Message-Id: <1359000221-19834-20-git-send-email-rth@twiddle.net> To: qemu-devel@nongnu.org Cc: Blue Swirl , Paolo Bonzini This makes code more similar to the other callers of gen_eob, especially loopz/loopnz/jcxz. Signed-off-by: Paolo Bonzini Signed-off-by: Richard Henderson --- target-i386/translate.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/target-i386/translate.c b/target-i386/translate.c index 39893fd..af6ca49 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -2302,8 +2302,8 @@ static inline void gen_jcc(DisasContext *s, int b, { int l1, l2; - gen_update_cc_op(s); if (s->jmp_opt) { + gen_update_cc_op(s); l1 = gen_new_label(); gen_jcc1(s, b, l1); set_cc_op(s, CC_OP_DYNAMIC); @@ -2314,11 +2314,9 @@ static inline void gen_jcc(DisasContext *s, int b, gen_goto_tb(s, 1, val); s->is_jmp = DISAS_TB_JUMP; } else { - l1 = gen_new_label(); l2 = gen_new_label(); gen_jcc1(s, b, l1); - set_cc_op(s, CC_OP_DYNAMIC); gen_jmp_im(next_eip); tcg_gen_br(l2);