Commit 36271893ab4426ec7a0c73a9e843f1798e400fda

Authored by ths
1 parent adcbebaa

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
Showing 1 changed file with 2 additions and 0 deletions
target-mips/translate_init.c
... ... @@ -495,9 +495,11 @@ static void fpu_init (CPUMIPSState *env, const mips_def_t *def)
495 495 #ifdef CONFIG_USER_ONLY
496 496 if (env->CP0_Config1 & (1 << CP0C1_FP))
497 497 env->hflags |= MIPS_HFLAG_FPU;
  498 +#ifdef TARGET_MIPS64
498 499 if (env->fpu->fcr0 & (1 << FCR0_F64))
499 500 env->hflags |= MIPS_HFLAG_F64;
500 501 #endif
  502 +#endif
501 503 }
502 504  
503 505 static void mvp_init (CPUMIPSState *env, const mips_def_t *def)
... ...