MIPS: Respect the ISA level in FCSR handling
[linux-drm-fsl-dcu.git] / arch / mips / loongson / loongson-3 / cop2-ex.c
index b03e37d2071ac867e65a702f7e052a00c13f496c..ea13764d0a035ccc5ec6cf443f021aa1f4f58103 100644 (file)
@@ -43,7 +43,7 @@ static int loongson_cu2_call(struct notifier_block *nfb, unsigned long action,
                if (!fpu_owned) {
                        set_thread_flag(TIF_USEDFPU);
                        if (!used_math()) {
-                               _init_fpu();
+                               _init_fpu(current->thread.fpu.fcr31);
                                set_used_math();
                        } else
                                _restore_fp(current);