summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/cpu
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-08-25 17:30:13 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-08-25 17:30:13 +0000
commit95990b57ea054a97a3491f1c76748c288841ba69 (patch)
tree60cf02f1ff00723fc9295a606ffc44a7aad8445b /c/src/exec/score/cpu
parent2000-08-25 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-95990b57ea054a97a3491f1c76748c288841ba69.tar.bz2
2000-08-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* rtems/score/i386.h: cpu-variant define handling Rewrite due to introduction of multilib defines. * asm.h: include cpuopts.h instead of targopts.h
Diffstat (limited to 'c/src/exec/score/cpu')
-rw-r--r--c/src/exec/score/cpu/i386/ChangeLog6
-rw-r--r--c/src/exec/score/cpu/i386/asm.h2
-rw-r--r--c/src/exec/score/cpu/i386/rtems/score/i386.h60
3 files changed, 36 insertions, 32 deletions
diff --git a/c/src/exec/score/cpu/i386/ChangeLog b/c/src/exec/score/cpu/i386/ChangeLog
index 101734ce64..d0aac3f756 100644
--- a/c/src/exec/score/cpu/i386/ChangeLog
+++ b/c/src/exec/score/cpu/i386/ChangeLog
@@ -1,3 +1,9 @@
+2000-08-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+
+ * rtems/score/i386.h: cpu-variant define handling
+ Rewrite due to introduction of multilib defines.
+ * asm.h: include cpuopts.h instead of targopts.h
+
2000-08-10 Joel Sherrill <joel@OARcorp.com>
* ChangeLog: New file.
diff --git a/c/src/exec/score/cpu/i386/asm.h b/c/src/exec/score/cpu/i386/asm.h
index 3fbaa4cbd9..f1981791a3 100644
--- a/c/src/exec/score/cpu/i386/asm.h
+++ b/c/src/exec/score/cpu/i386/asm.h
@@ -33,7 +33,7 @@
#ifndef ASM
#define ASM
#endif
-#include <rtems/score/targopts.h>
+#include <rtems/score/cpuopts.h>
#include <rtems/score/i386.h>
/*
diff --git a/c/src/exec/score/cpu/i386/rtems/score/i386.h b/c/src/exec/score/cpu/i386/rtems/score/i386.h
index bc486da473..7b4c486e7d 100644
--- a/c/src/exec/score/cpu/i386/rtems/score/i386.h
+++ b/c/src/exec/score/cpu/i386/rtems/score/i386.h
@@ -46,48 +46,46 @@ extern "C" {
*
*/
-#if defined(rtems_multilib)
-/*
- * Figure out all CPU Model Feature Flags based upon compiler
- * predefines.
- */
-
-#define CPU_MODEL_NAME "rtems_multilib"
-#define I386_HAS_FPU 0
-#define I386_HAS_BSWAP 0
-
-#elif defined(i386_fp)
-
-#define CPU_MODEL_NAME "i386 with i387"
-#define I386_HAS_BSWAP 0
-
-#elif defined(i386_nofp)
+#if defined(_SOFT_FLOAT)
+#define I386_HAS_FPU 0
+#else
+#define I386_HAS_FPU 1
+#endif
-#define CPU_MODEL_NAME "i386 w/o i387"
-#define I386_HAS_FPU 0
-#define I386_HAS_BSWAP 0
+#if defined(__pentiumpro__)
-#elif defined(i486dx)
+#define CPU_MODEL_NAME "Pentium Pro"
-#define CPU_MODEL_NAME "i486dx"
+#elif defined(__i586__)
-#elif defined(i486sx)
+# if defined(__pentium__)
+# define CPU_MODEL_NAME "Pentium"
+# elsif defined(__k6__)
+# define CPU_MODEL_NAME "K6"
+# else
+# define CPU_MODEL_NAME "i586"
+# endif
-#define CPU_MODEL_NAME "i486sx"
-#define I386_HAS_FPU 0
+#elif defined(__i486__)
-#elif defined(pentium)
+# if !defined(_SOFT_FLOAT)
+# define CPU_MODEL_NAME "i486dx"
+# else
+# define CPU_MODEL_NAME "i486sx"
+# endif
-#define CPU_MODEL_NAME "Pentium"
+#elif defined(__i386__)
-#elif defined(pentiumpro)
+#define I386_HAS_BSWAP 0
-#define CPU_MODEL_NAME "Pentium Pro"
+# if !defined(_SOFT_FLOAT)
+# define CPU_MODEL_NAME "i386 with i387"
+# else
+# define CPU_MODEL_NAME "i386 w/o i387"
+# endif
#else
-
-#error "Unsupported CPU Model"
-
+#error "Unknown CPU Model"
#endif
/*