* [Qemu-devel] [6035] target-ppc: fix mtfsf and mtfsfi instructions
@ 2008-12-15 0:30 Aurelien Jarno
0 siblings, 0 replies; only message in thread
From: Aurelien Jarno @ 2008-12-15 0:30 UTC (permalink / raw)
To: qemu-devel
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 <aurelien@aurel32.net>
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));
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-12-15 0:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-15 0:30 [Qemu-devel] [6035] target-ppc: fix mtfsf and mtfsfi instructions Aurelien Jarno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).