summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/cpu')
-rw-r--r--cpukit/score/cpu/sh/Makefile.am4
-rw-r--r--cpukit/score/cpu/sh/rtems/score/sh.h19
2 files changed, 12 insertions, 11 deletions
diff --git a/cpukit/score/cpu/sh/Makefile.am b/cpukit/score/cpu/sh/Makefile.am
index d6c8f3ae05..1ed4187fe0 100644
--- a/cpukit/score/cpu/sh/Makefile.am
+++ b/cpukit/score/cpu/sh/Makefile.am
@@ -21,7 +21,7 @@ $(PROJECT_INCLUDE)/%.h: %.h
$(PROJECT_RELEASE)/lib/rtems$(LIB_VARIANT).o: $(ARCH)/rtems.o
$(INSTALL_DATA) $< $@
-C_FILES = cpu.c cpu_asm.c isp$(RTEMS_CPU_MODEL).c
+C_FILES = cpu.c
C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
REL = $(ARCH)/rtems-cpu.rel
@@ -40,7 +40,7 @@ all-local: $(ARCH) $(PREINSTALL_FILES) $(rtems_cpu_rel_OBJECTS) $(REL) \
.PRECIOUS: $(REL)
-EXTRA_DIST = asm.h cpu.c cpu_asm.c ispsh7032.c ispsh7045.c rtems.c
+EXTRA_DIST = asm.h cpu.c rtems.c
include $(top_srcdir)/../../../../../../automake/subdirs.am
include $(top_srcdir)/../../../../../../automake/local.am
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
*/