From 574e22bdbd1a2d907016c953b230782215190a1a Mon Sep 17 00:00:00 2001 From: 勤为本 <1207280597@qq.com> Date: Wed, 13 Sep 2017 15:21:09 +0800 Subject: 在é…�置文件“rtconfig.hâ€�中增加硬浮点FPUçš„é…�置项, 浮点ç»�常会用到,所以默认使用硬浮点。 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libcpu/mips/loongson_1c/stackframe_fpu.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libcpu') 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 -- cgit v1.3.1