qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [4304] CRIS: Do post-increment without going via T0.


From: Edgar E. Iglesias
Subject: [Qemu-devel] [4304] CRIS: Do post-increment without going via T0.
Date: Sat, 03 May 2008 06:54:53 +0000

Revision: 4304
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4304
Author:   edgar_igl
Date:     2008-05-03 06:54:52 +0000 (Sat, 03 May 2008)

Log Message:
-----------
CRIS: Do post-increment without going via T0.

Modified Paths:
--------------
    trunk/target-cris/translate.c

Modified: trunk/target-cris/translate.c
===================================================================
--- trunk/target-cris/translate.c       2008-05-02 22:47:34 UTC (rev 4303)
+++ trunk/target-cris/translate.c       2008-05-03 06:54:52 UTC (rev 4304)
@@ -958,13 +958,10 @@
        }
 }
 
-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);
 }
 
 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]