diff options
| author | 勤为本 <[email protected]> | 2017-09-13 15:21:09 +0800 |
|---|---|---|
| committer | 勤为本 <[email protected]> | 2017-09-13 15:21:09 +0800 |
| commit | 574e22bdbd1a2d907016c953b230782215190a1a (patch) | |
| tree | 242edebaf1616925d42618aec135c62556ce84df /libcpu/mips | |
| parent | 8d908671821bad9136be1bc5cbc3c5dbd966541c (diff) | |
在配置文件“rtconfig.h”中增加硬浮点FPU的配置项,
浮点经常会用到,所以默认使用硬浮点。
Diffstat (limited to 'libcpu/mips')
| -rw-r--r-- | libcpu/mips/loongson_1c/stackframe_fpu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcpu/mips/loongson_1c/stackframe_fpu.h b/libcpu/mips/loongson_1c/stackframe_fpu.h index 58e9271833..93b8ef10c3 100644 --- a/libcpu/mips/loongson_1c/stackframe_fpu.h +++ b/libcpu/mips/loongson_1c/stackframe_fpu.h @@ -37,6 +37,7 @@ .macro SAVE_FPU .set push .set noreorder +#ifdef RT_USING_FPU move k1, sp /* �����ֳ� */ and k0, k1, 0xFFFFFFF8 /* 8�ֽڶ��� */ PTR_SUBU sp, k0, PT_FPU_SIZE /* ����ջ�� */ @@ -57,6 +58,7 @@ s.d $f28, PT_FPU_R28(sp) s.d $f30, PT_FPU_R30(sp) move sp, k1 /* �ָ��ֳ� */ +#endif .set reorder .set pop .endm @@ -65,6 +67,7 @@ .macro RESTORE_FPU .set push .set noreorder +#ifdef RT_USING_FPU move k1, sp /* �����ֳ� */ and k0, k1, 0xFFFFFFF8 /* 8�ֽڶ��� */ PTR_SUBU sp, k0, PT_FPU_SIZE /* ����ջ��*/ @@ -85,6 +88,7 @@ l.d $f28, PT_FPU_R28(sp) l.d $f30, PT_FPU_R30(sp) move sp, k1 /* �ָ��ֳ� */ +#endif .set reorder .set pop .endm |
