aboutsummaryrefslogtreecommitdiff
path: root/target-mips/translate_init.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-06 20:48:02 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-06 20:48:02 +0000
commit36271893ab4426ec7a0c73a9e843f1798e400fda (patch)
treece7c6878f3d4b9142b6ded5fe7534cf0bc209b1a /target-mips/translate_init.c
parentadcbebaa40933e15d18fa629fa8528e5c8388695 (diff)
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
Diffstat (limited to 'target-mips/translate_init.c')
-rw-r--r--target-mips/translate_init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target-mips/translate_init.c b/target-mips/translate_init.c
index d069285c8b..fb9e6e2d4a 100644
--- a/target-mips/translate_init.c
+++ b/target-mips/translate_init.c
@@ -495,9 +495,11 @@ static void fpu_init (CPUMIPSState *env, const mips_def_t *def)
#ifdef CONFIG_USER_ONLY
if (env->CP0_Config1 & (1 << CP0C1_FP))
env->hflags |= MIPS_HFLAG_FPU;
+#ifdef TARGET_MIPS64
if (env->fpu->fcr0 & (1 << FCR0_F64))
env->hflags |= MIPS_HFLAG_F64;
#endif
+#endif
}
static void mvp_init (CPUMIPSState *env, const mips_def_t *def)