From 335e5caa9a9e0f28acf94fe4c2871017fcd71794 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 2 Jun 2015 21:43:54 +0200 Subject: 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. --- cpukit/posix/src/pthreadcreate.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'cpukit/posix/src/pthreadcreate.c') 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. -- cgit v1.2.3