diff options
| author | Bernard Xiong <[email protected]> | 2020-08-26 17:35:07 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-08-26 17:35:07 +0800 |
| commit | 5b3ec9490c72eda3fa6b70e3070b635bc78b0150 (patch) | |
| tree | 4c53e35c6f997ffa1862917e895f85fcf05c9560 /libcpu/mips/common/stackframe.h | |
| parent | 241a29a13f2c6404d672239d3682ff4b4b85d335 (diff) | |
| parent | 52a4bace6812e1ddfc4b468ab0781a16774d53c2 (diff) | |
Merge pull request #3842 from Michael0066/dev
MIPS:remove redundant #ifdef ARCH_MIPS64
Diffstat (limited to 'libcpu/mips/common/stackframe.h')
| -rw-r--r-- | libcpu/mips/common/stackframe.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libcpu/mips/common/stackframe.h b/libcpu/mips/common/stackframe.h index 258f9a994f..4f1157aebf 100644 --- a/libcpu/mips/common/stackframe.h +++ b/libcpu/mips/common/stackframe.h @@ -22,7 +22,9 @@ #ifdef RT_USING_FPU /* Ensure CU1 (FPU) is enabled */ MFC0 v1, CP0_STATUS - ori v1, ST0_CU1 + lui t1, %hi(ST0_CU1) + addiu t1, t1, %lo(ST0_CU1) + or v1, v1, t1 MTC0 v1, CP0_STATUS SSNOP cfc1 v1, fcr31 @@ -125,11 +127,13 @@ #ifdef RT_USING_FPU /* Ensure CU1 (FPU) is enabled */ MFC0 v1, CP0_STATUS - ori v1, ST0_CU1 + lui t1, %hi(ST0_CU1) + addiu t1, t1, %lo(ST0_CU1) + or v1, v1, t1 MTC0 v1, CP0_STATUS SSNOP LONG_L v1, PT_FPU_FCSR31(sp) - ctc1 v1, fcsr31 + ctc1 v1, fcr31 l.d $f0, PT_FPU_R0(sp) l.d $f2, PT_FPU_R2(sp) l.d $f4, PT_FPU_R4(sp) |
