summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/powerpc/rtems/score/cpu.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2006-08-09 23:04:47 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2006-08-09 23:04:47 +0000
commita19034d902b0a67e093894ba2cc143c625d5e69e (patch)
treef1f378efa404135d9ef0fc9ba9a9d3a014b9a096 /cpukit/score/cpu/powerpc/rtems/score/cpu.h
parent2006-08-09 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-a19034d902b0a67e093894ba2cc143c625d5e69e.tar.bz2
2006-08-09 Joel Sherrill <joel@OARcorp.com>
* rtems/score/cpu.h: Because gcc implicitly uses floating point turn on floating point for all threads if there is a hardware FPU.
Diffstat (limited to 'cpukit/score/cpu/powerpc/rtems/score/cpu.h')
-rw-r--r--cpukit/score/cpu/powerpc/rtems/score/cpu.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpukit/score/cpu/powerpc/rtems/score/cpu.h b/cpukit/score/cpu/powerpc/rtems/score/cpu.h
index 3739ccec63..b3115bb312 100644
--- a/cpukit/score/cpu/powerpc/rtems/score/cpu.h
+++ b/cpukit/score/cpu/powerpc/rtems/score/cpu.h
@@ -157,9 +157,13 @@
* If FALSE, then the RTEMS_FLOATING_POINT task attribute is followed.
*
* If CPU_HARDWARE_FP is FALSE, then this should be FALSE as well.
+ *
+ * PowerPC Note: It appears the GCC can implicitly generate FPU
+ * and Altivec instructions when you least expect them. So make
+ * all tasks floating point.
*/
-#define CPU_ALL_TASKS_ARE_FP FALSE
+#define CPU_ALL_TASKS_ARE_FP CPU_HARDWARE_FP
/*
* Should the IDLE task have a floating point context?