cpuinfo.pas 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. {$ifdef FPC_HAS_TYPE_EXTENDED}
  19. bestrealrec = TExtended80Rec;
  20. {$else}
  21. bestrealrec = TDoubleRec;
  22. {$endif}
  23. ts32real = single;
  24. ts64real = double;
  25. ts80real = type extended;
  26. ts128real = type extended;
  27. ts64comp = comp;
  28. pbestreal=^bestreal;
  29. { possible supported processors for this target }
  30. tcputype =
  31. (cpu_none
  32. );
  33. { copied from arm/cpuinfo unit for arm specific
  34. TSettings field }
  35. tinstructionset = (is_thumb,is_arm);
  36. Type
  37. tfputype =
  38. (fpu_none,
  39. fpu_soft
  40. );
  41. tcontrollertype =
  42. (ct_none
  43. );
  44. tcontrollerdatatype = record
  45. controllertypestr, controllerunitstr: string[20];
  46. cputype: tcputype; fputype: tfputype;
  47. flashbase, flashsize, srambase, sramsize, eeprombase, eepromsize, bootbase, bootsize: dword;
  48. end;
  49. Const
  50. { Is there support for dealing with multiple microcontrollers available }
  51. { for this platform? }
  52. ControllerSupport = false;
  53. { We know that there are fields after sramsize
  54. but we don't care about this warning }
  55. {$PUSH}
  56. {$WARN 3177 OFF}
  57. embedded_controllers : array [tcontrollertype] of tcontrollerdatatype =
  58. (
  59. (controllertypestr:''; controllerunitstr:''; cputype:cpu_none; fputype:fpu_none; flashbase:0; flashsize:0; srambase:0; sramsize:0));
  60. {$POP}
  61. cputypestr : array[tcputype] of string[8] = ('none');
  62. fputypestr : array[tfputype] of string[6] = ('none','soft');
  63. Implementation
  64. end.