summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/sh/rtems/score/sh.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-06-14 17:07:54 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-06-14 17:07:54 +0000
commitac8154305172ebcb347f5563dd3ce17d95b4736b (patch)
tree6f24392d14911a8911b287a8b478016c40cb3a26 /cpukit/score/cpu/sh/rtems/score/sh.h
parentMoved PowerPC cache management code to libcpu. Also compiled (diff)
downloadrtems-ac8154305172ebcb347f5563dd3ce17d95b4736b.tar.bz2
Patch rtems-rc-20000614-sh.tar.gz from Ralf Corsepius
<corsepiu@faw.uni-ulm.de> that migrates the SH port to multilib'ing. This patch involved moving a number of files in the CVS repository, adding new files, and deleting files from their previous location. Ralf gave good instructions (not repeated here) and here are his notes: Note 1: In this version, I did not change the installation points of the headers which are moved inside of the source-tree. This is a temporary hack for not breaking compatibility with 4.5 based BSPs, but will probably not last once having real multilibs (We would have include file conflicts when several BSPs/CPU_MODELS share a common installation prefix). Note 2: I hope not to have broken too much, but I would not be astonished if something goes wrong. Note 3: There are more patches to come :)
Diffstat (limited to 'cpukit/score/cpu/sh/rtems/score/sh.h')
-rw-r--r--cpukit/score/cpu/sh/rtems/score/sh.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/cpukit/score/cpu/sh/rtems/score/sh.h b/cpukit/score/cpu/sh/rtems/score/sh.h
index 26c633c190..2834ea6c64 100644
--- a/cpukit/score/cpu/sh/rtems/score/sh.h
+++ b/cpukit/score/cpu/sh/rtems/score/sh.h
@@ -40,6 +40,7 @@ extern "C" {
*/
#if defined(rtems_multilib)
+
/*
* Figure out all CPU Model Feature Flags based upon compiler
* predefines.
@@ -49,19 +50,19 @@ extern "C" {
#define SH_HAS_FPU 0
#define SH_HAS_SEPARATE_STACKS 1
-#elif defined(sh7032)
-#define CPU_MODEL_NAME "SH7032"
-#define SH_HAS_FPU 0
-
-#elif defined (sh7045)
-#define CPU_MODEL_NAME "SH7045"
-#define SH_HAS_FPU 0
+#else
+#if defined(__sh1__) || defined(__sh2__) || defined(__sh3__)
+#define SH_HAS_FPU 0
#else
-#error "Unsupported CPU Model"
-
+#define SH_HAS_FPU 1
#endif
+/* this should not be here */
+#define CPU_MODEL_NAME "SH-Multilib"
+
+#endif /* multilib */
+
/*
* If the following macro is set to 0 there will be no software irq stack
*/