qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [6138] target-ppc: fix stsw/stswi instructions
@ 2008-12-29  9:46 Aurelien Jarno
  0 siblings, 0 replies; only message in thread
From: Aurelien Jarno @ 2008-12-29  9:46 UTC (permalink / raw)
  To: qemu-devel

Revision: 6138
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6138
Author:   aurel32
Date:     2008-12-29 09:46:58 +0000 (Mon, 29 Dec 2008)

Log Message:
-----------
target-ppc: fix stsw/stswi instructions

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

Modified Paths:
--------------
    trunk/target-ppc/op_helper.c

Modified: trunk/target-ppc/op_helper.c
===================================================================
--- trunk/target-ppc/op_helper.c	2008-12-28 21:05:44 UTC (rev 6137)
+++ trunk/target-ppc/op_helper.c	2008-12-29 09:46:58 UTC (rev 6138)
@@ -338,9 +338,10 @@
 	addr = addr_add(addr, 4);
     }
     if (unlikely(nb > 0)) {
-        for (sh = 24; nb > 0; nb--, sh -= 8)
+        for (sh = 24; nb > 0; nb--, sh -= 8) {
             stb(addr, (env->gpr[reg] >> sh) & 0xFF);
-	    addr = addr_add(addr, 1);
+            addr = addr_add(addr, 1);
+        }
     }
 }
 

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

only message in thread, other threads:[~2008-12-29  9:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-29  9:46 [Qemu-devel] [6138] target-ppc: fix stsw/stswi instructions Aurelien Jarno

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).