瀏覽代碼

sparc: don't access fp registers when configured for no fpu

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Austin Foxley 14 年之前
父節點
當前提交
542c67dd8e
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      libc/sysdeps/linux/sparc/soft-fp/sfp-machine.h

+ 2 - 0
libc/sysdeps/linux/sparc/soft-fp/sfp-machine.h

@@ -187,6 +187,7 @@
 
 #define _FP_DECL_EX	fpu_control_t _fcw
 
+#ifdef __UCLIBC_HAS_FPU__
 #define FP_INIT_ROUNDMODE					\
 do {								\
   _FPU_GETCW(_fcw);						\
@@ -211,3 +212,4 @@ do {								\
   else								\
     ___Q_simulate_exceptions (_fex);			        \
 } while (0)
+#endif