Revision fa0d32c4

b/target-ppc/op_helper.c
65 65
    }
66 66
}
67 67

  
68
#if defined(TARGET_PPC64)
69
void do_store_pri (int prio)
70
{
71
    env->spr[SPR_PPR] &= ~0x001C000000000000ULL;
72
    env->spr[SPR_PPR] |= ((uint64_t)prio & 0x7) << 50;
73
}
74
#endif
75

  
76 68
target_ulong ppc_load_dump_spr (int sprn)
77 69
{
78 70
    if (loglevel != 0) {
......
841 833
        if (msr_fe0 != 0 || msr_fe1 != 0)
842 834
            raise_exception_err(env, env->exception_index, env->error_code);
843 835
    }
844
    RETURN();
845 836
#endif
846 837
}
847 838

  
......
1574 1565

  
1575 1566
/*****************************************************************************/
1576 1567
/* PowerPC 601 specific instructions (POWER bridge) */
1577
void do_POWER_abso (void)
1578
{
1579
    if ((int32_t)T0 == INT32_MIN) {
1580
        T0 = INT32_MAX;
1581
        env->xer |= (1 << XER_OV) | (1 << XER_SO);
1582
    } else if ((int32_t)T0 < 0) {
1583
        T0 = -T0;
1584
        env->xer &= ~(1 << XER_OV);
1585
    } else {
1586
        env->xer &= ~(1 << XER_OV);
1587
    }
1588
}
1589 1568

  
1590 1569
target_ulong helper_clcs (uint32_t arg)
1591 1570
{

Also available in: Unified diff