Revision c3d420ea

b/target-ppc/helper.c
2080 2080
    srr1 = SPR_SRR1;
2081 2081
    asrr0 = -1;
2082 2082
    asrr1 = -1;
2083
    msr &= ~((target_ulong)0x783F0000);
2084 2083
    switch (excp) {
2085 2084
    case POWERPC_EXCP_NONE:
2086 2085
        /* Should never happen */
b/target-ppc/op_helper.c
1646 1646
void helper_rfi (void)
1647 1647
{
1648 1648
    do_rfi(env->spr[SPR_SRR0], env->spr[SPR_SRR1],
1649
           ~((target_ulong)0x0), 1);
1649
           ~((target_ulong)0x783F0000), 1);
1650 1650
}
1651 1651

  
1652 1652
#if defined(TARGET_PPC64)
1653 1653
void helper_rfid (void)
1654 1654
{
1655 1655
    do_rfi(env->spr[SPR_SRR0], env->spr[SPR_SRR1],
1656
           ~((target_ulong)0x0), 0);
1656
           ~((target_ulong)0x783F0000), 0);
1657 1657
}
1658 1658

  
1659 1659
void helper_hrfid (void)
1660 1660
{
1661 1661
    do_rfi(env->spr[SPR_HSRR0], env->spr[SPR_HSRR1],
1662
           ~((target_ulong)0x0), 0);
1662
           ~((target_ulong)0x783F0000), 0);
1663 1663
}
1664 1664
#endif
1665 1665
#endif

Also available in: Unified diff