static void fpu_init (CPUMIPSState *env, const mips_def_t *def)

{

    int i;



    for (i = 0; i < MIPS_FPU_MAX; i++)

        env->fpus[i].fcr0 = def->CP1_fcr0;



    memcpy(&env->active_fpu, &env->fpus[0], sizeof(env->active_fpu));

    if (env->user_mode_only) {

        if (env->CP0_Config1 & (1 << CP0C1_FP))

            env->hflags |= MIPS_HFLAG_FPU;

#ifdef TARGET_MIPS64

        if (env->active_fpu.fcr0 & (1 << FCR0_F64))

            env->hflags |= MIPS_HFLAG_F64;

#endif

    }

}

static void fpu_init (CPUMIPSState *env, const mips_def_t *def)

{

    int i;



    for (i = 0; i < MIPS_FPU_MAX; i++)

        env->fpus[i].fcr0 = def->CP1_fcr0;



    memcpy(&env->active_fpu, &env->fpus[0], sizeof(env->active_fpu));

    if (env->user_mode_only) {

        if (env->CP0_Config1 & (1 << CP0C1_FP))

            env->hflags |= MIPS_HFLAG_FPU;

#ifdef TARGET_MIPS64

        if (env->active_fpu.fcr0 & (1 << FCR0_F64))

            env->hflags |= MIPS_HFLAG_F64;

#endif

    }

}

static void FUNC_0 (CPUMIPSState *VAR_0, const mips_def_t *VAR_1)

{

    int VAR_2;



    for (VAR_2 = 0; VAR_2 < MIPS_FPU_MAX; VAR_2++)

        VAR_0->fpus[VAR_2].fcr0 = VAR_1->CP1_fcr0;



    memcpy(&VAR_0->active_fpu, &VAR_0->fpus[0], sizeof(VAR_0->active_fpu));

    if (VAR_0->user_mode_only) {

        if (VAR_0->CP0_Config1 & (1 << CP0C1_FP))

            VAR_0->hflags |= MIPS_HFLAG_FPU;

#ifdef TARGET_MIPS64

        if (VAR_0->active_fpu.fcr0 & (1 << FCR0_F64))

            VAR_0->hflags |= MIPS_HFLAG_F64;

#endif

    }

}

static void FUNC_0 (CPUMIPSState *VAR_0, const mips_def_t *VAR_1)
{ int VAR_2; for (VAR_2 = 0; VAR_2 < MIPS_FPU_MAX; VAR_2++) VAR_0->fpus[VAR_2].fcr0 = VAR_1->CP1_fcr0; memcpy(&VAR_0->active_fpu, &VAR_0->fpus[0], sizeof(VAR_0->active_fpu)); if (VAR_0->user_mode_only) { if (VAR_0->CP0_Config1 & (1 << CP0C1_FP))
VAR_0->hflags |= MIPS_HFLAG_FPU; #ifdef TARGET_MIPS64
if (VAR_0->active_fpu.fcr0 & (1 << FCR0_F64))
VAR_0->hflags |= MIPS_HFLAG_F64; #endif
} }