aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/mips/kernel/process.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c
index 4677b4c67da6..696d59e40fa4 100644
--- a/arch/mips/kernel/process.c
+++ b/arch/mips/kernel/process.c
@@ -581,6 +581,10 @@ int mips_set_process_fp_mode(struct task_struct *task, unsigned int value)
581 if ((value & PR_FP_MODE_FRE) && cpu_has_fpu && !cpu_has_fre) 581 if ((value & PR_FP_MODE_FRE) && cpu_has_fpu && !cpu_has_fre)
582 return -EOPNOTSUPP; 582 return -EOPNOTSUPP;
583 583
584 /* FR = 0 not supported in MIPS R6 */
585 if (!(value & PR_FP_MODE_FR) && cpu_has_fpu && cpu_has_mips_r6)
586 return -EOPNOTSUPP;
587
584 /* Save FP & vector context, then disable FPU & MSA */ 588 /* Save FP & vector context, then disable FPU & MSA */
585 if (task->signal == current->signal) 589 if (task->signal == current->signal)
586 lose_fpu(1); 590 lose_fpu(1);