Skip to contentSkip to conversation

[4577] transformed TN into temporaries - add local temporaries usage when needed - optimized fcmovX

Qemu-devel Fabrice Bellard 1 participant 1 message May 25, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 4577

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4577
Author:   bellard
Date:     2008-05-25 17:26:41 +0000 (Sun, 25 May 2008)

Log Message:
-----------
transformed TN into temporaries - add local temporaries usage when needed - optimized fcmovX

Modified Paths:
--------------

    trunk/target-i386/cpu.h
    trunk/target-i386/exec.h
    trunk/target-i386/helper_template.h
    trunk/target-i386/translate.c

Modified: trunk/target-i386/cpu.h
===================================================================

target-i386/cpu.h +1 -6
@@ -472,12 +472,6 @@
 #define NB_MMU_MODES 2
 
 typedef struct CPUX86State {
-#if TARGET_LONG_BITS > HOST_LONG_BITS
-    /* temporaries if we cannot store them in host registers */
-    target_ulong t0, t1, t2;
-#endif
-    target_ulong t3;
-
     /* standard registers */
     target_ulong regs[CPU_NB_REGS];
     target_ulong eip;
@@ -526,6 +520,7 @@
     XMMReg xmm_regs[CPU_NB_REGS];
     XMMReg xmm_t0;
     MMXReg mmx_t0;
+    target_ulong cc_tmp; /* temporary for rcr/rcl */
 
     /* sysenter registers */
     uint32_t sysenter_cs;

Modified: trunk/target-i386/exec.h
===================================================================

target-i386/exec.h +1 -41

61 lines not on this page · raw message

Modified: trunk/target-i386/helper_template.h
===================================================================

target-i386/helper_template.h +4 -4
@@ -287,11 +287,11 @@
         if (count > 1)
             res |= t0 >> (DATA_BITS + 1 - count);
         t0 = res;
-        env->t3 = (eflags & ~(CC_C | CC_O)) |
+        env->cc_tmp = (eflags & ~(CC_C | CC_O)) |
             (lshift(src ^ t0, 11 - (DATA_BITS - 1)) & CC_O) |
             ((src >> (DATA_BITS - count)) & CC_C);
     } else {
-        env->t3 = -1;
+        env->cc_tmp = -1;
     }
     return t0;
 }
@@ -316,11 +316,11 @@
         if (count > 1)
             res |= t0 << (DATA_BITS + 1 - count);
         t0 = res;
-        env->t3 = (eflags & ~(CC_C | CC_O)) |
+        env->cc_tmp = (eflags & ~(CC_C | CC_O)) |
             (lshift(src ^ t0, 11 - (DATA_BITS - 1)) & CC_O) |
             ((src >> (count - 1)) & CC_C);
     } else {
-        env->t3 = -1;
+        env->cc_tmp = -1;
     }
     return t0;
 }

Modified: trunk/target-i386/translate.c
===================================================================

target-i386/translate.c +253 -215

911 lines not on this page · raw message