CRIS: Do post-increment without going via T0.
authoredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 3 May 2008 06:54:52 +0000 (06:54 +0000)
committeredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 3 May 2008 06:54:52 +0000 (06:54 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4304 c046a42c-6fe2-441c-8c8c-71466251a162

target-cris/translate.c

index 43c861d..7fdedbf 100644 (file)
@@ -958,13 +958,10 @@ static unsigned int memsize_zz(DisasContext *dc)
        }
 }
 
-static void do_postinc (DisasContext *dc, int size)
+static inline void do_postinc (DisasContext *dc, int size)
 {
-       if (!dc->postinc)
-               return;
-       t_gen_mov_TN_reg(cpu_T[0], dc->op1);
-       tcg_gen_addi_tl(cpu_T[0], cpu_T[0], size);
-       t_gen_mov_reg_TN(dc->op1, cpu_T[0]);
+       if (dc->postinc)
+               tcg_gen_addi_tl(cpu_R[dc->op1], cpu_R[dc->op1], size);
 }