summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-08-13 14:23:37 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-08-13 14:23:37 +0000
commit26e5cd406a28d647fb064080b67d95dda35936a3 (patch)
treeceb0815d38db669c03f05b5389d08811ad59b444
parentfixed spacing (diff)
downloadrtems-26e5cd406a28d647fb064080b67d95dda35936a3.tar.bz2
Patch from Chris Johns <ccj@acm.org>. Comments follow:
Here is a small patch which allows the m68060 to be used. I have not tested the FP switching stuff which we know is broken. This is taken against the libchip snapshot but should merge without problems. If you have any problems please let me know. There are other smaller issues such as superscalar enable and cache control which I have not addressed yet. They are different to all other m68k processors. These can wait IMO.
-rw-r--r--c/src/exec/score/cpu/m68k/m68k.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/c/src/exec/score/cpu/m68k/m68k.h b/c/src/exec/score/cpu/m68k/m68k.h
index a6cf0ce212..5f4c3597b5 100644
--- a/c/src/exec/score/cpu/m68k/m68k.h
+++ b/c/src/exec/score/cpu/m68k/m68k.h
@@ -37,6 +37,8 @@ extern "C" {
* -m68040 -msoft-float
* -m68040
* -m68040 -msoft-float
+ * -m68060
+ * -m68060 -msoft-float
* -m68302 (no FP) (deprecated, use -m68000)
* -m68332 (no FP) (deprecated, use -mcpu32)
* -mcpu32 (no FP)
@@ -129,6 +131,23 @@ extern "C" {
# define M68K_HAS_FPSP_PACKAGE 0
# endif
+#elif defined(__mc68060__)
+
+#define CPU_MODEL_NAME "m68060"
+#define M68K_HAS_VBR 1
+#define M68K_HAS_SEPARATE_STACKS 0
+#define M68K_HAS_BFFFO 1
+#define M68K_HAS_PREINDEXING 1
+#define M68K_HAS_EXTB_L 1
+#define M68K_HAS_MISALIGNED 1
+# if defined (__HAVE_68881__)
+# define M68K_HAS_FPU 1
+# define M68K_HAS_FPSP_PACKAGE 1
+# else
+# define M68K_HAS_FPU 0
+# define M68K_HAS_FPSP_PACKAGE 0
+# endif
+
#elif defined(__mc68302__)
#define CPU_MODEL_NAME "m68302"
#define M68K_HAS_VBR 0