فهرست منبع

+ added 486 to the list of supported CPUs on the i8086 and i386 targets

git-svn-id: trunk@33317 -
nickysn 9 سال پیش
والد
کامیت
5f87ac5d47
4فایلهای تغییر یافته به همراه10 افزوده شده و 1 حذف شده
  1. 3 0
      compiler/i386/cpuinfo.pas
  2. 2 0
      compiler/i8086/cpuinfo.pas
  3. 3 1
      compiler/x86/aasmcpu.pas
  4. 2 0
      compiler/x86/agx86nsm.pas

+ 3 - 0
compiler/i386/cpuinfo.pas

@@ -45,6 +45,7 @@ Type
    tcputype =
       (cpu_none,
        cpu_386,
+       cpu_486,
        cpu_Pentium,
        cpu_Pentium2,
        cpu_Pentium3,
@@ -110,6 +111,7 @@ Const
 
    cputypestr : array[tcputype] of string[10] = ('',
      '80386',
+     '80486',
      'PENTIUM',
      'PENTIUM2',
      'PENTIUM3',
@@ -173,6 +175,7 @@ type
    cpu_capabilities : array[tcputype] of set of tcpuflags = (
      { cpu_none      } [],
      { cpu_386       } [],
+     { cpu_486       } [],
      { cpu_Pentium   } [],
      { cpu_Pentium2  } [CPUX86_HAS_CMOV],
      { cpu_Pentium3  } [CPUX86_HAS_CMOV,CPUX86_HAS_SSEUNIT],

+ 2 - 0
compiler/i8086/cpuinfo.pas

@@ -48,6 +48,7 @@ Type
        cpu_186,
        cpu_286,
        cpu_386,
+       cpu_486,
        cpu_Pentium,
        cpu_Pentium2,
        cpu_Pentium3,
@@ -113,6 +114,7 @@ Const
      '80186',
      '80286',
      '80386',
+     '80486',
      'PENTIUM',
      'PENTIUM2',
      'PENTIUM3',

+ 3 - 1
compiler/x86/aasmcpu.pas

@@ -2719,7 +2719,9 @@ implementation
               IF_386:
                 if objdata.CPUType<cpu_386 then
                   Message(asmw_e_instruction_not_supported_by_cpu);
-              IF_486,
+              IF_486:
+                if objdata.CPUType<cpu_486 then
+                  Message(asmw_e_instruction_not_supported_by_cpu);
               IF_PENT:
                 if objdata.CPUType<cpu_Pentium then
                   Message(asmw_e_instruction_not_supported_by_cpu);

+ 2 - 0
compiler/x86/agx86nsm.pas

@@ -92,6 +92,7 @@ interface
 {$elseif defined(i386)}
         'IA64',     // cpu_none,
         '386',      // cpu_386,
+        '486',      // cpu_486,
         'PENTIUM',  // cpu_Pentium,
         'P2',       // cpu_Pentium2,
         'P3',       // cpu_Pentium3,
@@ -106,6 +107,7 @@ interface
         '186',     // cpu_186
         '286',     // cpu_286
         '386',     // cpu_386
+        '486',     // cpu_486
         'PENTIUM', // cpu_Pentium
         'P2',      // cpu_Pentium2
         'P3',      // cpu_Pentium3