diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-06-02 21:43:54 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-06-09 09:05:50 +0200 |
commit | 335e5caa9a9e0f28acf94fe4c2871017fcd71794 (patch) | |
tree | 13eb37c82f52e2a0e6199eb03aad6590eeabc566 /cpukit/posix | |
parent | sptests/spcontext01: Improve output (diff) | |
download | rtems-335e5caa9a9e0f28acf94fe4c2871017fcd71794.tar.bz2 |
score: Add Thread_Control::is_fp
Store the floating-point unit property in the thread control block
regardless of the CPU_HARDWARE_FP and CPU_SOFTWARE_FP settings. Make
sure the floating-point unit is only enabled for the corresponding
multilibs. This helps targets which have a volatile only floating point
context like SPARC for example.
Diffstat (limited to 'cpukit/posix')
-rw-r--r-- | cpukit/posix/src/pthreadcreate.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cpukit/posix/src/pthreadcreate.c b/cpukit/posix/src/pthreadcreate.c index c448c4253b..498242c02b 100644 --- a/cpukit/posix/src/pthreadcreate.c +++ b/cpukit/posix/src/pthreadcreate.c @@ -155,11 +155,7 @@ int pthread_create( * Currently all POSIX threads are floating point if the hardware * supports it. */ - #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) - is_fp = true; - #else - is_fp = false; - #endif + is_fp = true; /* * Allocate the thread control block. |