[6035] target-ppc: fix mtfsf and mtfsfi instructions
Revision: 6035
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6035 Author: aurel32 Date: 2008-12-15 00:30:28 +0000 (Mon, 15 Dec 2008)
Log Message:
-----------
target-ppc: fix mtfsf and mtfsfi 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 -3
@@ -986,9 +986,9 @@ prev = env->fpscr; new = (uint32_t )arg; - new &= ~0x90000000 ; - new |= prev &0x90000000 ; -for (i =0 ; i <7 ; i++) { + new &= ~0x60000000 ; + new |= prev &0x60000000 ; +for (i =0 ; i <8 ; i++) {if (mask & (1 << i)) { env->fpscr &= ~(0xF << (4 * i)); env->fpscr |= new & (0xF << (4 * i));