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] [5203] Use 64 bit loads for tlb addend only if addend size is 64 bits
Date: Sat, 13 Sep 2008 20:07:53 +0000	[thread overview]
Message-ID: <E1KebPN-0004YT-IP@cvs.savannah.gnu.org> (raw)

Revision: 5203
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5203
Author:   blueswir1
Date:     2008-09-13 20:07:53 +0000 (Sat, 13 Sep 2008)

Log Message:
-----------
Use 64 bit loads for tlb addend only if addend size is 64 bits

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

Modified: trunk/tcg/sparc/tcg-target.c
===================================================================
--- trunk/tcg/sparc/tcg-target.c	2008-09-13 20:05:32 UTC (rev 5202)
+++ trunk/tcg/sparc/tcg-target.c	2008-09-13 20:07:53 UTC (rev 5203)
@@ -496,6 +496,12 @@
 #define TARGET_LD_OP LDX
 #endif
 
+#if TARGET_PHYS_ADDR_BITS == 32
+#define TARGET_ADDEND_LD_OP LDUW
+#else
+#define TARGET_ADDEND_LD_OP LDX
+#endif
+
 #ifdef __arch64__
 #define HOST_LD_OP LDX
 #define HOST_ST_OP STX
@@ -623,7 +629,7 @@
 
     /* ld [arg1 + x], arg1 */
     tcg_out_ldst(s, arg1, arg1, offsetof(CPUTLBEntry, addend) -
-                 offsetof(CPUTLBEntry, addr_read), HOST_LD_OP);
+                 offsetof(CPUTLBEntry, addr_read), TARGET_ADDEND_LD_OP);
 
 #if TARGET_LONG_BITS == 32
     /* and addr_reg, x, arg0 */
@@ -792,7 +798,7 @@
 
     /* ld [arg1 + x], arg1 */
     tcg_out_ldst(s, arg1, arg1, offsetof(CPUTLBEntry, addend) -
-                 offsetof(CPUTLBEntry, addr_write), HOST_LD_OP);
+                 offsetof(CPUTLBEntry, addr_write), TARGET_ADDEND_LD_OP);
 
 #if TARGET_LONG_BITS == 32
     /* and addr_reg, x, arg0 */

                 reply	other threads:[~2008-09-13 20:07 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=E1KebPN-0004YT-IP@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).