add nofpu subarchs to the sh arch, and properly detect compiler's fpu config
This commit is contained in:
parent
5c27c4458f
commit
b1683a1d6a
10 changed files with 76 additions and 2 deletions
|
|
@ -1,3 +1,10 @@
|
|||
#ifndef __SH_FPU_ANY__
|
||||
|
||||
#define FE_ALL_EXCEPT 0
|
||||
#define FE_TONEAREST 0
|
||||
|
||||
#else
|
||||
|
||||
#define FE_TONEAREST 0
|
||||
#define FE_TOWARDZERO 1
|
||||
|
||||
|
|
@ -8,6 +15,8 @@
|
|||
#define FE_INVALID 0x40
|
||||
#define FE_ALL_EXCEPT 0x7c
|
||||
|
||||
#endif
|
||||
|
||||
typedef unsigned long fexcept_t;
|
||||
|
||||
typedef struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue