Browse Source

added 68040 CPU type, MOVE16 and ColdFire V4 extra instructions

git-svn-id: trunk@25742 -
Károly Balogh 11 years ago
parent
commit
dfe2f253f9
3 changed files with 12 additions and 0 deletions
  1. 4 0
      compiler/m68k/ag68kgas.pas
  2. 4 0
      compiler/m68k/cpubase.pas
  3. 4 0
      compiler/m68k/cpuinfo.pas

+ 4 - 0
compiler/m68k/ag68kgas.pas

@@ -71,6 +71,10 @@ interface
          'trapcc','tracs','trapeq','trapf','trapge','trapgt',
          'traphi','traple','trapls','traplt','trapmi','trapne',
          'trappl','trapt','trapvc','trapvs','unpk',
+         { mc64040 instructions }
+         'move16',
+         { coldfire v4 instructions }
+         'mov3q','mvz','mvs','sats',
          { fpu processor instructions - directly supported only. }
          { ieee aware and misc. condition codes not supported   }
          'fabs','fadd',

+ 4 - 0
compiler/m68k/cpubase.pas

@@ -64,6 +64,10 @@ unit cpubase;
          a_trapcc,a_tracs,a_trapeq,a_trapf,a_trapge,a_trapgt,
          a_traphi,a_traple,a_trapls,a_traplt,a_trapmi,a_trapne,
          a_trappl,a_trapt,a_trapvc,a_trapvs,a_unpk,
+         { mc64040 instructions }
+         a_move16,
+         { coldfire v4 instructions }
+         a_mov3q,a_mvz,a_mvs,a_sats,
          { fpu processor instructions - directly supported only. }
          { ieee aware and misc. condition codes not supported   }
          a_fabs,a_fadd,

+ 4 - 0
compiler/m68k/cpuinfo.pas

@@ -34,6 +34,7 @@ Type
       (cpu_none,
        cpu_MC68000,
        cpu_MC68020,
+       cpu_MC68040,
        cpu_isa_a,
        cpu_isa_a_p,
        cpu_isa_b,
@@ -63,6 +64,7 @@ Const
    cputypestr : array[tcputype] of string[8] = ('',
      '68000',
      '68020',
+     '68040',
      'ISAA',
      'ISAA+',
      'ISAB',
@@ -72,6 +74,7 @@ Const
    gascputypestr : array[tcputype] of string[8] = ('',
      '68000',
      '68020',
+     '68040',
      'isaa',
      'isaaplus',
      'isab',
@@ -112,6 +115,7 @@ const
     ( { cpu_none     } [],
       { cpu_68000    } [CPUM68K_HAS_DBRA,CPUM68K_HAS_TAS,CPUM68K_HAS_BRAL],
       { cpu_68020    } [CPUM68K_HAS_DBRA,CPUM68K_HAS_CAS,CPUM68K_HAS_TAS,CPUM68K_HAS_BRAL],
+      { cpu_68040    } [CPUM68K_HAS_DBRA,CPUM68K_HAS_CAS,CPUM68K_HAS_TAS,CPUM68K_HAS_BRAL],
       { cpu_isaa     } [],
       { cpu_isaap    } [CPUM68K_HAS_BRAL],
       { cpu_isab     } [CPUM68K_HAS_TAS,CPUM68K_HAS_BRAL],