File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ static inline int __enable_fpu(enum fpu_mode mode)
64
64
return SIGFPE ;
65
65
66
66
/* set FRE */
67
- write_c0_config5 ( read_c0_config5 () | MIPS_CONF5_FRE );
67
+ set_c0_config5 ( MIPS_CONF5_FRE );
68
68
goto fr_common ;
69
69
70
70
case FPU_64BIT :
@@ -76,7 +76,7 @@ static inline int __enable_fpu(enum fpu_mode mode)
76
76
case FPU_32BIT :
77
77
if (cpu_has_fre ) {
78
78
/* clear FRE */
79
- write_c0_config5 ( read_c0_config5 () & ~ MIPS_CONF5_FRE );
79
+ clear_c0_config5 ( MIPS_CONF5_FRE );
80
80
}
81
81
fr_common :
82
82
/* set CU1 & change FR appropriately */
@@ -196,15 +196,13 @@ static inline int init_fpu(void)
196
196
return 0 ;
197
197
}
198
198
199
- config5 = read_c0_config5 ();
200
-
201
199
/*
202
200
* Ensure FRE is clear whilst running _init_fpu, since
203
201
* single precision FP instructions are used. If FRE
204
202
* was set then we'll just end up initialising all 32
205
203
* 64b registers.
206
204
*/
207
- write_c0_config5 ( config5 & ~ MIPS_CONF5_FRE );
205
+ config5 = clear_c0_config5 ( MIPS_CONF5_FRE );
208
206
enable_fpu_hazard ();
209
207
210
208
_init_fpu ();
You can’t perform that action at this time.
0 commit comments