Revision 91a75935 target-mips/translate_init.c

b/target-mips/translate_init.c
533 533
        env->fpus[i].fcr0 = def->CP1_fcr0;
534 534

  
535 535
    memcpy(&env->active_fpu, &env->fpus[0], sizeof(env->active_fpu));
536
#if defined(CONFIG_USER_ONLY)
537
    if (env->CP0_Config1 & (1 << CP0C1_FP))
538
        env->hflags |= MIPS_HFLAG_FPU;
539
#ifdef TARGET_MIPS64
540
    if (env->active_fpu.fcr0 & (1 << FCR0_F64))
541
        env->hflags |= MIPS_HFLAG_F64;
542
#endif
543
#endif
544 536
}
545 537

  
546 538
static void mvp_init (CPUMIPSState *env, const mips_def_t *def)

Also available in: Unified diff