2009-04-25 Aurelien Jarno <aurelien@aurel32.net>

* sysdeps/arm/eabi/fpu_control.h: If soft-float, don't use
	floating-point registers.
This commit is contained in:
Joseph Myers 2009-04-25 15:23:44 +00:00
parent 84c54b39d2
commit ba35741e51
2 changed files with 19 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-04-25 Aurelien Jarno <aurelien@aurel32.net>
* sysdeps/arm/eabi/fpu_control.h: If soft-float, don't use
floating-point registers.
2009-04-18 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_PREADV,

View File

@ -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 */