]> Git Repo - qemu.git/commitdiff
fixed INC/DEC condition codes
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 18 May 2008 19:19:57 +0000 (19:19 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 18 May 2008 19:19:57 +0000 (19:19 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4493 c046a42c-6fe2-441c-8c8c-71466251a162

target-i386/translate.c

index dc7bb03c2a7dfd0f3a4396f47e0ae14eb0cfa0bf..44e287bc3e356907f43dc1faaf939672a25d719d 100644 (file)
@@ -1312,8 +1312,8 @@ static void gen_inc(DisasContext *s1, int ot, int d, int c)
         gen_op_mov_reg_T0(ot, d);
     else
         gen_op_st_T0_A0(ot + s1->mem_index);
-    tcg_gen_mov_tl(cpu_cc_dst, cpu_T[0]);
     gen_compute_eflags_c(cpu_cc_src);
+    tcg_gen_mov_tl(cpu_cc_dst, cpu_T[0]);
 }
 
 static void gen_extu(int ot, TCGv reg)
This page took 0.040655 seconds and 4 git commands to generate.