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/score/src/threadinitialize.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cpukit/score/src/threadinitialize.c') diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c index 2133d7485b..a09693acc0 100644 --- a/cpukit/score/src/threadinitialize.c +++ b/cpukit/score/src/threadinitialize.c @@ -159,6 +159,7 @@ bool _Thread_Initialize( * General initialization */ + the_thread->is_fp = is_fp; the_thread->Start.isr_level = isr_level; the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; -- cgit v1.2.3