qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [4988] Fix offset handling for ASI loads and stores (Vince Weaver)
@ 2008-08-06 15:28 Blue Swirl
  0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2008-08-06 15:28 UTC (permalink / raw)
  To: qemu-devel

Revision: 4988
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4988
Author:   blueswir1
Date:     2008-08-06 15:28:20 +0000 (Wed, 06 Aug 2008)

Log Message:
-----------
Fix offset handling for ASI loads and stores (Vince Weaver)

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

Modified: trunk/target-sparc/translate.c
===================================================================
--- trunk/target-sparc/translate.c	2008-08-06 14:11:44 UTC (rev 4987)
+++ trunk/target-sparc/translate.c	2008-08-06 15:28:20 UTC (rev 4988)
@@ -1641,13 +1641,11 @@
 #ifdef TARGET_SPARC64
 static inline TCGv gen_get_asi(int insn, TCGv r_addr)
 {
-    int asi, offset;
+    int asi;
     TCGv r_asi;
 
     if (IS_IMM) {
         r_asi = tcg_temp_new(TCG_TYPE_I32);
-        offset = GET_FIELD(insn, 25, 31);
-        tcg_gen_addi_tl(r_addr, r_addr, offset);
         tcg_gen_ld_i32(r_asi, cpu_env, offsetof(CPUSPARCState, asi));
     } else {
         asi = GET_FIELD(insn, 19, 26);

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

only message in thread, other threads:[~2008-08-06 15:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-06 15:28 [Qemu-devel] [4988] Fix offset handling for ASI loads and stores (Vince Weaver) 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).