qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Blue Swirl <blauwirbel@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [4617] Remove unused (for now) reg_REGWPTR (original patch by Glauber Costa )
Date: Thu, 29 May 2008 16:38:41 +0000	[thread overview]
Message-ID: <E1K1l9F-0002SX-Od@cvs.savannah.gnu.org> (raw)

Revision: 4617
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4617
Author:   blueswir1
Date:     2008-05-29 16:38:41 +0000 (Thu, 29 May 2008)

Log Message:
-----------
Remove unused (for now) reg_REGWPTR (original patch by Glauber Costa)

Modified Paths:
--------------
    trunk/cpu-exec.c
    trunk/target-sparc/exec.h
    trunk/target-sparc/op_helper.c

Modified: trunk/cpu-exec.c
===================================================================
--- trunk/cpu-exec.c	2008-05-29 14:34:11 UTC (rev 4616)
+++ trunk/cpu-exec.c	2008-05-29 16:38:41 UTC (rev 4617)
@@ -246,11 +246,6 @@
 {
 #define DECLARE_HOST_REGS 1
 #include "hostregs_helper.h"
-#if defined(TARGET_SPARC)
-#if defined(reg_REGWPTR)
-    uint32_t *saved_regwptr;
-#endif
-#endif
     int ret, interrupt_request;
     TranslationBlock *tb;
     uint8_t *tc_ptr;
@@ -273,9 +268,6 @@
     CC_OP = CC_OP_EFLAGS;
     env->eflags &= ~(DF_MASK | CC_O | CC_S | CC_Z | CC_A | CC_P | CC_C);
 #elif defined(TARGET_SPARC)
-#if defined(reg_REGWPTR)
-    saved_regwptr = REGWPTR;
-#endif
 #elif defined(TARGET_M68K)
     env->cc_op = CC_OP_FLAGS;
     env->cc_dest = env->sr & 0xf;
@@ -562,8 +554,6 @@
 #elif defined(TARGET_ARM)
                     cpu_dump_state(env, logfile, fprintf, 0);
 #elif defined(TARGET_SPARC)
-		    REGWPTR = env->regbase + (env->cwp * 16);
-		    env->regwptr = REGWPTR;
                     cpu_dump_state(env, logfile, fprintf, 0);
 #elif defined(TARGET_PPC)
                     cpu_dump_state(env, logfile, fprintf, 0);
@@ -640,9 +630,6 @@
 #elif defined(TARGET_ARM)
     /* XXX: Save/restore host fpu exception state?.  */
 #elif defined(TARGET_SPARC)
-#if defined(reg_REGWPTR)
-    REGWPTR = saved_regwptr;
-#endif
 #elif defined(TARGET_PPC)
 #elif defined(TARGET_M68K)
     cpu_m68k_flush_flags(env, env->cc_op);

Modified: trunk/target-sparc/exec.h
===================================================================
--- trunk/target-sparc/exec.h	2008-05-29 14:34:11 UTC (rev 4616)
+++ trunk/target-sparc/exec.h	2008-05-29 16:38:41 UTC (rev 4617)
@@ -4,7 +4,6 @@
 #include "dyngen-exec.h"
 
 register struct CPUSPARCState *env asm(AREG0);
-#define REGWPTR env->regwptr
 
 #define FT0 (env->ft0)
 #define FT1 (env->ft1)
@@ -18,10 +17,6 @@
 
 static inline void env_to_regs(void)
 {
-#if defined(reg_REGWPTR)
-    REGWPTR = env->regbase + (env->cwp * 16);
-    env->regwptr = REGWPTR;
-#endif
 }
 
 static inline void regs_to_env(void)

Modified: trunk/target-sparc/op_helper.c
===================================================================
--- trunk/target-sparc/op_helper.c	2008-05-29 14:34:11 UTC (rev 4616)
+++ trunk/target-sparc/op_helper.c	2008-05-29 16:38:41 UTC (rev 4617)
@@ -2629,7 +2629,6 @@
     if (new_cwp == (NWINDOWS - 1))
         memcpy32(env1->regbase + NWINDOWS * 16, env1->regbase);
     env1->regwptr = env1->regbase + (new_cwp * 16);
-    REGWPTR = env1->regwptr;
 }
 
 void set_cwp(int new_cwp)

                 reply	other threads:[~2008-05-29 16:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1K1l9F-0002SX-Od@cvs.savannah.gnu.org \
    --to=blauwirbel@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).