summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/cpu/sparc/rtems/score
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-11-15 21:33:35 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-11-15 21:33:35 +0000
commit477e2d195fbaaab64fb5e6b8443982ad423d05b6 (patch)
tree36548531ac8e11ecfffe51afbca0a26905f8d768 /c/src/exec/score/cpu/sparc/rtems/score
parent2000-11-14 Jiri Gaisler <jgais@ws.estec.esa.nl> (diff)
downloadrtems-477e2d195fbaaab64fb5e6b8443982ad423d05b6.tar.bz2
2000-11-14 Jiri Gaisler <jgais@ws.estec.esa.nl>
* cpu.c, rtems/cpu/sparc.h: Make floating point optional based on gcc arguments. Do not initialize FP context if there is no FPU. Flush instruction cache after installing RTEMS trap handler.
Diffstat (limited to 'c/src/exec/score/cpu/sparc/rtems/score')
-rw-r--r--c/src/exec/score/cpu/sparc/rtems/score/sparc.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/c/src/exec/score/cpu/sparc/rtems/score/sparc.h b/c/src/exec/score/cpu/sparc/rtems/score/sparc.h
index 1d09116295..e6d7690702 100644
--- a/c/src/exec/score/cpu/sparc/rtems/score/sparc.h
+++ b/c/src/exec/score/cpu/sparc/rtems/score/sparc.h
@@ -65,7 +65,12 @@ extern "C" {
* cpp predefine but gcc does not currently give us that information.
*/
-#define SPARC_HAS_FPU 1
+
+#if defined(_SOFT_FLOAT)
+#define SPARC_HAS_FPU 0
+#else
+#define SPARC_HAS_FPU 1
+#endif
#if SPARC_HAS_FPU
#define CPU_MODEL_NAME "w/FPU"