Skip to content

Commit

Permalink
MIPS: asm: fpu: Allow 64-bit FPU on MIPS32 R6
Browse files Browse the repository at this point in the history
MIPS32 R6 has a 64-bit FPU so add the necessary MIPS R6
definition.

Signed-off-by: Markos Chandras <[email protected]>
  • Loading branch information
Markos Chandras committed Feb 17, 2015
1 parent 13e45f0 commit 6134d94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/mips/include/asm/fpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ static inline int __enable_fpu(enum fpu_mode mode)
goto fr_common;

case FPU_64BIT:
#if !(defined(CONFIG_CPU_MIPS32_R2) || defined(CONFIG_64BIT))
#if !(defined(CONFIG_CPU_MIPS32_R2) || defined(CONFIG_CPU_MIPS32_R6) \
|| defined(CONFIG_64BIT))
/* we only have a 32-bit FPU */
return SIGFPE;
#endif
Expand Down

0 comments on commit 6134d94

Please sign in to comment.