cpuinfo.pas 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. Type
  36. tfputype =
  37. (fpu_none,
  38. fpu_soft
  39. );
  40. tcontrollertype =
  41. (ct_none
  42. );
  43. tcontrollerdatatype = record
  44. controllertypestr, controllerunitstr: string[20];
  45. cputype: tcputype; fputype: tfputype;
  46. flashbase, flashsize, srambase, sramsize, eeprombase, eepromsize, bootbase, bootsize: dword;
  47. end;
  48. Const
  49. { Is there support for dealing with multiple microcontrollers available }
  50. { for this platform? }
  51. ControllerSupport = false;
  52. { We know that there are fields after sramsize
  53. but we don't care about this warning }
  54. {$PUSH}
  55. {$WARN 3177 OFF}
  56. embedded_controllers : array [tcontrollertype] of tcontrollerdatatype =
  57. (
  58. (controllertypestr:''; controllerunitstr:''; cputype:cpu_none; fputype:fpu_none; flashbase:0; flashsize:0; srambase:0; sramsize:0));
  59. {$POP}
  60. cputypestr : array[tcputype] of string[8] = ('none');
  61. fputypestr : array[tfputype] of string[6] = ('none','soft');
  62. Implementation
  63. end.