[6138] target-ppc: fix stsw/stswi instructions
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 <[email protected]>
Modified Paths:
--------------
trunk/target-ppc/op_helper.c
Modified: trunk/target-ppc/op_helper.c
===================================================================
target-ppc/op_helper.c +3 -2
@@ -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 ); + } } }