Revision 996ba2cc target-mips/op.c

b/target-mips/op.c
297 297
   with Status_UX = 0 should be casted to 32-bit and sign extended.
298 298
   See the MIPS64 PRA manual, section 4.10. */
299 299
#ifdef TARGET_MIPS64
300
    if ((env->CP0_Status & (1 << CP0St_UM)) &&
300
    if ((env->hflags & MIPS_HFLAG_UM) &&
301 301
        !(env->CP0_Status & (1 << CP0St_UX)))
302 302
        T0 = (int64_t)(int32_t)(T0 + T1);
303 303
    else
......
1608 1608
void op_cp0_enabled(void)
1609 1609
{
1610 1610
    if (!(env->CP0_Status & (1 << CP0St_CU0)) &&
1611
	(env->hflags & MIPS_HFLAG_UM)) {
1611
        (env->hflags & MIPS_HFLAG_UM)) {
1612 1612
        CALL_FROM_TB2(do_raise_exception_err, EXCP_CpU, 0);
1613 1613
    }
1614 1614
    RETURN();

Also available in: Unified diff