Commit a7037b2950629ab1a305a7f5c6909e749d72b5d0
1 parent
278d0702
Allow again FPU for usermode emulation.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2905 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
6 additions
and
1 deletions
target-mips/translate_init.c
... | ... | @@ -225,7 +225,12 @@ int cpu_mips_register (CPUMIPSState *env, mips_def_t *def) |
225 | 225 | env->CCRes = def->CCRes; |
226 | 226 | env->Status_rw_bitmask = def->Status_rw_bitmask; |
227 | 227 | env->fcr0 = def->CP1_fcr0; |
228 | -#ifndef CONFIG_USER_ONLY | |
228 | +#ifdef CONFIG_USER_ONLY | |
229 | + if (env->CP0_Config1 & (1 << CP0C1_FP)) | |
230 | + env->hflags |= MIPS_HFLAG_FPU; | |
231 | + if (env->fcr0 & (1 << FCR0_F64)) | |
232 | + env->hflags |= MIPS_HFLAG_F64; | |
233 | +#else | |
229 | 234 | switch ((env->CP0_Config0 >> CP0C0_MT) & 3) { |
230 | 235 | case 0: |
231 | 236 | no_mmu_init(env, def); | ... | ... |