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.
This commit is contained in:
Joel Sherrill
1998-08-13 14:23:37 +00:00
parent 7e19c72b13
commit 26e5cd406a

View File

@@ -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