[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 08/11] PPC64: Fix RFI(d)
From: |
Alexander Graf |
Subject: |
[Qemu-devel] [PATCH 08/11] PPC64: Fix RFI(d) |
Date: |
Sat, 7 Mar 2009 20:08:49 +0100 |
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 <address@hidden>
---
target-ppc/op_helper.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/target-ppc/op_helper.c b/target-ppc/op_helper.c
index 76fe8f6..f21f695 100644
--- a/target-ppc/op_helper.c
+++ b/target-ppc/op_helper.c
@@ -1671,20 +1671,20 @@ static always_inline void do_rfi (target_ulong nip,
target_ulong msr,
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
--
1.6.0.2
- [Qemu-devel] [PATCH 00/11] PPC64 Linux bringup patches v4, Alexander Graf, 2009/03/07
- [Qemu-devel] [PATCH 01/11] PPC64: Implement slbmte, Alexander Graf, 2009/03/07
- [Qemu-devel] [PATCH 02/11] PPC64: Implement large pages, Alexander Graf, 2009/03/07
- [Qemu-devel] [PATCH 03/11] PPC64: Implment tlbiel, Alexander Graf, 2009/03/07
- [Qemu-devel] [PATCH 04/11] Activate uninorth AGP bridge, Alexander Graf, 2009/03/07
- [Qemu-devel] [PATCH 05/11] PPC64: Nop some SPRs on 970fx, Alexander Graf, 2009/03/07
- [Qemu-devel] [PATCH 06/11] PPC64: Enable 64bit mode on interrupts, Alexander Graf, 2009/03/07
- [Qemu-devel] [PATCH 07/11] PPC64: Implement mtfsf.L encoding, Alexander Graf, 2009/03/07
- [Qemu-devel] [PATCH 08/11] PPC64: Fix RFI(d),
Alexander Graf <=
- [Qemu-devel] [PATCH 09/11] PPC64: Fix NX bit, Alexander Graf, 2009/03/07
- [Qemu-devel] [PATCH 10/11] PPC64: Keep SLB in-CPU, Alexander Graf, 2009/03/07
- [Qemu-devel] [PATCH 11/11] PPC64: Disable BAT for 970, Alexander Graf, 2009/03/07
[Qemu-devel] Re: [PATCH 00/11] PPC64 Linux bringup patches v4, Blue Swirl, 2009/03/07