Patchwork [v2,2/6] target-mips:enabling of 64 bit user mode and floating point operations

login
register
mail settings
Submitter Khansa Butt
Date Oct. 21, 2011, 8:17 a.m.
Message ID <1319185026-17589-3-git-send-email-khansa@kics.edu.pk>
Download mbox | patch
Permalink /patch/120962/
State New
Headers show

Comments

Khansa Butt - Oct. 21, 2011, 8:17 a.m.
From: Khansa Butt <khansa@kics.edu.pk>


Signed-off-by: Khansa Butt <khansa@kics.edu.pk>
---
 target-mips/translate.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/target-mips/translate.c b/target-mips/translate.c
index d5b1c76..0550333 100644
--- a/target-mips/translate.c
+++ b/target-mips/translate.c
@@ -12779,6 +12779,8 @@  void cpu_reset (CPUMIPSState *env)
         env->hflags |= MIPS_HFLAG_FPU;
     }
 #ifdef TARGET_MIPS64
+    env->hflags |=  MIPS_HFLAG_UX;
+    env->active_fpu.fcr0 = env->cpu_model->CP1_fcr0;
     if (env->active_fpu.fcr0 & (1 << FCR0_F64)) {
         env->hflags |= MIPS_HFLAG_F64;
     }