qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [4775] Eliminate cpu_T[1]
@ 2008-06-22  8:52 Blue Swirl
  0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2008-06-22  8:52 UTC (permalink / raw)
  To: qemu-devel

Revision: 4775
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4775
Author:   blueswir1
Date:     2008-06-22 08:52:58 +0000 (Sun, 22 Jun 2008)

Log Message:
-----------
Eliminate cpu_T[1]

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

Modified: trunk/target-sparc/translate.c
===================================================================
--- trunk/target-sparc/translate.c	2008-06-22 07:45:42 UTC (rev 4774)
+++ trunk/target-sparc/translate.c	2008-06-22 08:52:58 UTC (rev 4775)
@@ -1918,7 +1918,6 @@
 
     // loads and stores
     cpu_addr = cpu_T[0];
-    cpu_val = cpu_T[1];
 
     switch (opc) {
     case 0:                     /* branches/sethi */
@@ -4745,6 +4744,7 @@
     cpu_tmp0 = tcg_temp_new(TCG_TYPE_TL);
     cpu_tmp32 = tcg_temp_new(TCG_TYPE_I32);
     cpu_tmp64 = tcg_temp_new(TCG_TYPE_I64);
+    cpu_val = tcg_temp_local_new(TCG_TYPE_TL);
 
     do {
         if (env->nb_breakpoints > 0) {
@@ -4795,6 +4795,7 @@
              (dc->pc - pc_start) < (TARGET_PAGE_SIZE - 32));
 
  exit_gen_loop:
+    tcg_temp_free(cpu_val);
     tcg_temp_free(cpu_tmp64);
     tcg_temp_free(cpu_tmp32);
     tcg_temp_free(cpu_tmp0);
@@ -4875,11 +4876,9 @@
                                      TCG_AREG0, offsetof(CPUState, xcc),
                                      "xcc");
 #endif
-        /* XXX: T0 and T1 should be temporaries */
+        /* XXX: T0 should be a temporary */
         cpu_T[0] = tcg_global_mem_new(TCG_TYPE_TL,
                                       TCG_AREG0, offsetof(CPUState, t0), "T0");
-        cpu_T[1] = tcg_global_mem_new(TCG_TYPE_TL,
-                                      TCG_AREG0, offsetof(CPUState, t1), "T1");
         cpu_cond = tcg_global_mem_new(TCG_TYPE_TL,
                                       TCG_AREG0, offsetof(CPUState, cond),
                                       "cond");

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-06-22  8:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-22  8:52 [Qemu-devel] [4775] Eliminate cpu_T[1] Blue Swirl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).