qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [6138] target-ppc: fix stsw/stswi instructions


From: Aurelien Jarno
Subject: [Qemu-devel] [6138] target-ppc: fix stsw/stswi instructions
Date: Mon, 29 Dec 2008 09:46:58 +0000

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 <address@hidden>

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);
+        }
     }
 }
 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]