cpuinfo.pas 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {
  2. Copyright (c) 1998-2002 by the Free Pascal development team
  3. Basic Processor information for the Generic CPU
  4. This file is used by PPUDump program from utils subdirectory.
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. Unit CPUInfo;
  12. {$i fpcdefs.inc}
  13. Interface
  14. uses
  15. globtype;
  16. Type
  17. bestreal = extended;
  18. {$if FPC_FULLVERSION>20700}
  19. {$ifdef FPC_HAS_TYPE_EXTENDED}
  20. bestrealrec = TExtended80Rec;
  21. {$else}
  22. bestrealrec = TDoubleRec;
  23. {$endif}
  24. {$endif FPC_FULLVERSION>20700}
  25. ts32real = single;
  26. ts64real = double;
  27. ts80real = type extended;
  28. ts128real = type extended;
  29. ts64comp = comp;
  30. pbestreal=^bestreal;
  31. { possible supported processors for this target }
  32. tcputype =
  33. (cpu_none
  34. );
  35. { copied from arm/cpuinfo unit for arm specific
  36. TSettings field }
  37. tinstructionset = (is_thumb,is_arm);
  38. Type
  39. tfputype =
  40. (fpu_none,
  41. fpu_soft
  42. );
  43. tcontrollertype =
  44. (ct_none
  45. );
  46. tcontrollerdatatype = record
  47. controllertypestr, controllerunitstr: string[20];
  48. cputype: tcputype; fputype: tfputype;
  49. flashbase, flashsize, srambase, sramsize, eeprombase, eepromsize, bootbase, bootsize: dword;
  50. end;
  51. Const
  52. { Is there support for dealing with multiple microcontrollers available }
  53. { for this platform? }
  54. ControllerSupport = false;
  55. { We know that there are fields after sramsize
  56. but we don't care about this warning }
  57. {$PUSH}
  58. {$WARN 3177 OFF}
  59. embedded_controllers : array [tcontrollertype] of tcontrollerdatatype =
  60. (
  61. (controllertypestr:''; controllerunitstr:''; cputype:cpu_none; fputype:fpu_none; flashbase:0; flashsize:0; srambase:0; sramsize:0));
  62. {$POP}
  63. cputypestr : array[tcputype] of string[8] = ('none');
  64. fputypestr : array[tfputype] of string[6] = ('none','soft');
  65. Implementation
  66. end.