Enable 64-bit FPU only for NewABI. Spotted by Vince Weaver.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4368 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
ths 2008-05-06 20:48:02 +00:00
parent adcbebaa40
commit 36271893ab

View File

@ -495,9 +495,11 @@ static void fpu_init (CPUMIPSState *env, const mips_def_t *def)
#ifdef CONFIG_USER_ONLY #ifdef CONFIG_USER_ONLY
if (env->CP0_Config1 & (1 << CP0C1_FP)) if (env->CP0_Config1 & (1 << CP0C1_FP))
env->hflags |= MIPS_HFLAG_FPU; env->hflags |= MIPS_HFLAG_FPU;
#ifdef TARGET_MIPS64
if (env->fpu->fcr0 & (1 << FCR0_F64)) if (env->fpu->fcr0 & (1 << FCR0_F64))
env->hflags |= MIPS_HFLAG_F64; env->hflags |= MIPS_HFLAG_F64;
#endif #endif
#endif
} }
static void mvp_init (CPUMIPSState *env, const mips_def_t *def) static void mvp_init (CPUMIPSState *env, const mips_def_t *def)