Message ID | 1322651233-30867-3-git-send-email-khansa@kics.edu.pk |
---|---|
State | New |
Headers | show |
diff --git a/target-mips/translate.c b/target-mips/translate.c index d5b1c76..452a63b 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -12779,6 +12779,10 @@ void cpu_reset (CPUMIPSState *env) env->hflags |= MIPS_HFLAG_FPU; } #ifdef TARGET_MIPS64 + env->hflags |= MIPS_HFLAG_UX; + /* if cpu has FPU, MIPS_HFLAG_F64 must be included in env->hflags + so that floating point operations can be emulated */ + env->active_fpu.fcr0 = env->cpu_model->CP1_fcr0; if (env->active_fpu.fcr0 & (1 << FCR0_F64)) { env->hflags |= MIPS_HFLAG_F64; }