Commit 27ee5df007d34f78fef5fbc64fd6e147684a25cc
1 parent
9a819377
target-ppc: fix mtfsf and mtfsfi instructions
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6035 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
3 deletions
target-ppc/op_helper.c
... | ... | @@ -986,9 +986,9 @@ void helper_store_fpscr (uint64_t arg, uint32_t mask) |
986 | 986 | |
987 | 987 | prev = env->fpscr; |
988 | 988 | new = (uint32_t)arg; |
989 | - new &= ~0x90000000; | |
990 | - new |= prev & 0x90000000; | |
991 | - for (i = 0; i < 7; i++) { | |
989 | + new &= ~0x60000000; | |
990 | + new |= prev & 0x60000000; | |
991 | + for (i = 0; i < 8; i++) { | |
992 | 992 | if (mask & (1 << i)) { |
993 | 993 | env->fpscr &= ~(0xF << (4 * i)); |
994 | 994 | env->fpscr |= new & (0xF << (4 * i)); | ... | ... |