summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/powerpc/rtems/score/powerpc.h
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2005-02-10 05:29:02 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2005-02-10 05:29:02 +0000
commit52ebfcb71f73b5e2b581c7bee5fa12627caa6912 (patch)
tree4c922d0ee06aba378782327b32226f21e5d11076 /cpukit/score/cpu/powerpc/rtems/score/powerpc.h
parent2005-02-09 Ralf Corsepius <ralf.corsepius@rtems.org> (diff)
downloadrtems-52ebfcb71f73b5e2b581c7bee5fa12627caa6912.tar.bz2
2005-02-10 Ralf Corsepius <ralf.corsepius@rtems.org>
* rtems/score/powerpc.h: Remove hard-coded PPC_HAS_FPU. Tie PPC_HAS_FPU to _SOFT_FLOAT.
Diffstat (limited to 'cpukit/score/cpu/powerpc/rtems/score/powerpc.h')
-rw-r--r--cpukit/score/cpu/powerpc/rtems/score/powerpc.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/cpukit/score/cpu/powerpc/rtems/score/powerpc.h b/cpukit/score/cpu/powerpc/rtems/score/powerpc.h
index 42be6c9213..1f14030f4a 100644
--- a/cpukit/score/cpu/powerpc/rtems/score/powerpc.h
+++ b/cpukit/score/cpu/powerpc/rtems/score/powerpc.h
@@ -110,7 +110,6 @@ extern "C" {
#define PPC_ALIGNMENT 4
#define PPC_CACHE_ALIGNMENT 16
#define PPC_HAS_RFCI 1
-#define PPC_HAS_FPU 0
#define PPC_USE_MULTIPLE 1
#define PPC_I_CACHE 2048
#define PPC_D_CACHE 1024
@@ -222,8 +221,6 @@ extern "C" {
#define PPC_D_CACHE 4096
#define PPC_CACHE_ALIGNMENT 16
#define PPC_INTERRUPT_MAX 71
-#define PPC_HAS_FPU 0
-#define PPC_HAS_DOUBLE 0
#define PPC_USE_MULTIPLE 1
#define PPC_MSR_0 0x00009000
@@ -242,8 +239,6 @@ extern "C" {
#define PPC_D_CACHE 4096
#define PPC_CACHE_ALIGNMENT 16
#define PPC_INTERRUPT_MAX 71
-#define PPC_HAS_FPU 0
-#define PPC_HAS_DOUBLE 0
#define PPC_MSR_0 0x00009000
#define PPC_MSR_1 0x00001000
@@ -289,9 +284,6 @@ extern "C" {
#define PPC_D_CACHE 16384
#define PPC_CACHE_ALIGNMENT 32
#define PPC_INTERRUPT_MAX 125
-/*#define PPC_HAS_FPU 0 */ /* my 8260 is one the few with no FPU */
-#define PPC_HAS_FPU 1 /* the rest do have one */
-#define PPC_HAS_DOUBLE 1
#define PPC_USE_MULTIPLE 1
#else
@@ -417,12 +409,18 @@ extern "C" {
#endif
/*
- * Unless specified above, then assume the model has FP support.
+ * Unless specified above, assume PPC_HAS_FPU to be a synonym for _SOFT_FLOAT.
+ * FIXME: Should we tie PPC_HAS_FPU to _SOFT_FLOAT, directly
+ * and disallow explicitly setting PPC_HAS_FPU?
*/
#ifndef PPC_HAS_FPU
+#ifdef _SOFT_FLOAT
+#define PPC_HAS_FPU 0
+#else
#define PPC_HAS_FPU 1
#endif
+#endif
/*
* Unless specified above, If the model has FP support, it is assumed to