]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target-ppc: fix mtfsf and mtfsfi instructions
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 15 Dec 2008 00:30:28 +0000 (00:30 +0000)
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 15 Dec 2008 00:30:28 +0000 (00:30 +0000)
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6035 c046a42c-6fe2-441c-8c8c-71466251a162

target-ppc/op_helper.c

index a26b1ddb28708c9bce4e973386cf5589f9506be9..2d665e8d22338e7b2fe3aa6941f99c6d1a32a05b 100644 (file)
@@ -986,9 +986,9 @@ void helper_store_fpscr (uint64_t arg, uint32_t mask)
 
     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));