Re: [PATCH RFC v2 67/70] MIPS: kernel: process: Do not allow FR=0 on MIPS R6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/16/2015 11:54 AM, Matthew Fortune wrote:
> Markos Chandras <Markos.Chandras@xxxxxxxxxx> writes:
>> diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c
>> index b732c0ce2e56..41ebd5d0ac30 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)
>>  	if ((value & PR_FP_MODE_FRE) && !cpu_has_fre)
>>  		return -EOPNOTSUPP;
> 
> There is an inconsistency here in that the kernel will not support
> emulating FRE mode when there is no FPU but will emulate FR1 or FR0
> when there is no FPU.
> 
> For consistency I think we should do this for FRE:
> 
>  	if ((value & PR_FP_MODE_FRE) && cpu_has_fpu && !cpu_has_fre)
>  		return -EOPNOTSUPP;
> 
Ok I will create a separate patch for this one.

-- 
markos




[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux