* [Qemu-devel] [6754] Fix RFI(d)
@ 2009-03-07 20:56 Blue Swirl
0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2009-03-07 20:56 UTC (permalink / raw)
To: qemu-devel
Revision: 6754
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6754
Author: blueswir1
Date: 2009-03-07 20:56:21 +0000 (Sat, 07 Mar 2009)
Log Message:
-----------
Fix RFI(d)
The current implementation masks some MSR bits from SRR1 as it is
given on rfi(d). This looks pretty wrong and breaks Altivec.
Signed-off-by: Alexander Graf <alex@csgraf.de>
Modified Paths:
--------------
trunk/target-ppc/op_helper.c
Modified: trunk/target-ppc/op_helper.c
===================================================================
--- trunk/target-ppc/op_helper.c 2009-03-07 20:55:31 UTC (rev 6753)
+++ trunk/target-ppc/op_helper.c 2009-03-07 20:56:21 UTC (rev 6754)
@@ -1671,20 +1671,20 @@
void helper_rfi (void)
{
do_rfi(env->spr[SPR_SRR0], env->spr[SPR_SRR1],
- ~((target_ulong)0xFFFF0000), 1);
+ ~((target_ulong)0x0), 1);
}
#if defined(TARGET_PPC64)
void helper_rfid (void)
{
do_rfi(env->spr[SPR_SRR0], env->spr[SPR_SRR1],
- ~((target_ulong)0xFFFF0000), 0);
+ ~((target_ulong)0x0), 0);
}
void helper_hrfid (void)
{
do_rfi(env->spr[SPR_HSRR0], env->spr[SPR_HSRR1],
- ~((target_ulong)0xFFFF0000), 0);
+ ~((target_ulong)0x0), 0);
}
#endif
#endif
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-07 20:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-07 20:56 [Qemu-devel] [6754] Fix RFI(d) Blue Swirl
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).