cpuinfo.pas 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. Interface
  13. uses
  14. globtype;
  15. Type
  16. bestreal = extended;
  17. {$if FPC_FULLVERSION>20700}
  18. {$ifdef FPC_HAS_TYPE_EXTENDED}
  19. bestrealrec = TExtended80Rec;
  20. {$else}
  21. bestrealrec = TDoubleRec;
  22. {$endif}
  23. {$endif FPC_FULLVERSION>20700}
  24. ts32real = single;
  25. ts64real = double;
  26. ts80real = type extended;
  27. ts128real = type extended;
  28. ts64comp = comp;
  29. pbestreal=^bestreal;
  30. { possible supported processors for this target }
  31. tcputype =
  32. (cpu_none
  33. );
  34. Type
  35. tfputype =
  36. (fpu_none,
  37. fpu_soft
  38. );
  39. tcontrollertype =
  40. (ct_none
  41. );
  42. Const
  43. { Is there support for dealing with multiple microcontrollers available }
  44. { for this platform? }
  45. ControllerSupport = false;
  46. { We know that there are fields after sramsize
  47. but we don't care about this warning }
  48. {$PUSH}
  49. {$WARN 3177 OFF}
  50. embedded_controllers : array [tcontrollertype] of tcontrollerdatatype =
  51. (
  52. (controllertypestr:''; controllerunitstr:''; flashbase:0; flashsize:0; srambase:0; sramsize:0));
  53. {$POP}
  54. cputypestr : array[tcputype] of string[8] = ('none');
  55. fputypestr : array[tfputype] of string[6] = ('none','soft');
  56. Implementation
  57. end.