From ba35741e51b9292eb52617d2382910d26e8a1da3 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Sat, 25 Apr 2009 15:23:44 +0000 Subject: [PATCH] 2009-04-25 Aurelien Jarno * sysdeps/arm/eabi/fpu_control.h: If soft-float, don't use floating-point registers. --- ChangeLog.arm | 5 +++++ sysdeps/arm/eabi/fpu_control.h | 15 ++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/ChangeLog.arm b/ChangeLog.arm index 779ef2d..c9f44f4 100644 --- a/ChangeLog.arm +++ b/ChangeLog.arm @@ -1,3 +1,8 @@ +2009-04-25 Aurelien Jarno + + * sysdeps/arm/eabi/fpu_control.h: If soft-float, don't use + floating-point registers. + 2009-04-18 Joseph Myers * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_PREADV, diff --git a/sysdeps/arm/eabi/fpu_control.h b/sysdeps/arm/eabi/fpu_control.h index 55d7764..9d29994 100644 --- a/sysdeps/arm/eabi/fpu_control.h +++ b/sysdeps/arm/eabi/fpu_control.h @@ -1,5 +1,5 @@ /* FPU control word definitions. ARM VFP version. - Copyright (C) 2004, 2005 Free Software Foundation, Inc. + Copyright (C) 2004, 2005, 2009 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -20,6 +20,17 @@ #ifndef _FPU_CONTROL_H #define _FPU_CONTROL_H +#if !defined(_LIBC) && defined(__SOFTFP__) + +#define _FPU_RESERVED 0xffffffff +#define _FPU_DEFAULT 0x00000000 +typedef unsigned int fpu_control_t; +#define _FPU_GETCW(cw) 0 +#define _FPU_SETCW(cw) do { } while (0) +extern fpu_control_t __fpu_control; + +#else + /* masking of interrupts */ #define _FPU_MASK_IM 0x00000100 /* invalid operation */ #define _FPU_MASK_ZM 0x00000200 /* divide by zero */ @@ -48,4 +59,6 @@ typedef unsigned int fpu_control_t; /* Default control word set at startup. */ extern fpu_control_t __fpu_control; +#endif /* __SOFTFP__ */ + #endif /* _FPU_CONTROL_H */ -- 2.7.4