Commit a139a3ad233e81c75eab9c5671934f4f79623147

Authored by ths
1 parent 05ebd537

Fix typo which broke MIPS32R2 64-bit FPU support.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3902 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
target-mips/exec.h
@@ -258,7 +258,7 @@ static always_inline void compute_hflags(CPUState *env) @@ -258,7 +258,7 @@ static always_inline void compute_hflags(CPUState *env)
258 if (env->CP0_Status & (1 << CP0St_FR)) 258 if (env->CP0_Status & (1 << CP0St_FR))
259 env->hflags |= MIPS_HFLAG_F64; 259 env->hflags |= MIPS_HFLAG_F64;
260 if (env->insn_flags & ISA_MIPS32R2) { 260 if (env->insn_flags & ISA_MIPS32R2) {
261 - if (env->fpu->fcr0 & FCR0_F64) 261 + if (env->fpu->fcr0 & (1 << FCR0_F64))
262 env->hflags |= MIPS_HFLAG_COP1X; 262 env->hflags |= MIPS_HFLAG_COP1X;
263 } else if (env->insn_flags & ISA_MIPS32) { 263 } else if (env->insn_flags & ISA_MIPS32) {
264 if (env->hflags & MIPS_HFLAG_64) 264 if (env->hflags & MIPS_HFLAG_64)