[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [6035] target-ppc: fix mtfsf and mtfsfi instructions
From: |
Aurelien Jarno |
Subject: |
[Qemu-devel] [6035] target-ppc: fix mtfsf and mtfsfi instructions |
Date: |
Mon, 15 Dec 2008 00:30:30 +0000 |
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 <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-14 19:34:09 UTC (rev 6034)
+++ trunk/target-ppc/op_helper.c 2008-12-15 00:30:28 UTC (rev 6035)
@@ -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));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [6035] target-ppc: fix mtfsf and mtfsfi instructions,
Aurelien Jarno <=