cpuinfo.pas 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {
  2. $Id$
  3. Copyright (c) 1998-2000 by Florian Klaempfl
  4. Basic Processor information
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. Unit cpuinfo;
  19. {$i fpcdefs.inc}
  20. Interface
  21. uses
  22. globtype;
  23. Type
  24. bestreal = extended;
  25. ts32real = single;
  26. ts64real = double;
  27. ts80real = extended;
  28. ts128real = type extended;
  29. ts64comp = type extended;
  30. pbestreal=^bestreal;
  31. tprocessors =
  32. (no_processor,
  33. ClassAthlon64
  34. );
  35. tfputype =
  36. (no_fpuprocessor,
  37. fpu_sse64
  38. );
  39. Const
  40. { Size of native extended type }
  41. extended_size = 10;
  42. { Size of a multimedia register }
  43. mmreg_size = 16;
  44. { target cpu string (used by compiler options) }
  45. target_cpu_string = 'x86_64';
  46. { size of the buffer used for setjump/longjmp
  47. the size of this buffer is deduced from the
  48. jmp_buf structure in setjumph.inc file
  49. }
  50. jmp_buf_size = 64;
  51. { calling conventions supported by the code generator }
  52. supported_calling_conventions : tproccalloptions = [
  53. pocall_internproc,
  54. pocall_compilerproc,
  55. pocall_inline,
  56. pocall_register,
  57. pocall_safecall,
  58. pocall_stdcall,
  59. pocall_cdecl,
  60. pocall_cppdecl
  61. ];
  62. processorsstr : array[tprocessors] of string[10] = ('',
  63. 'ATHLON64'
  64. );
  65. fputypestr : array[tfputype] of string[6] = ('',
  66. 'SSE64'
  67. );
  68. sse_singlescalar : set of tfputype = [fpu_sse64];
  69. sse_doublescalar : set of tfputype = [fpu_sse64];
  70. Implementation
  71. end.
  72. {
  73. $Log$
  74. Revision 1.14 2004-06-20 08:55:32 florian
  75. * logs truncated
  76. Revision 1.13 2004/06/16 20:07:11 florian
  77. * dwarf branch merged
  78. Revision 1.12 2004/04/28 15:19:03 florian
  79. + syscall directive support for MorphOS added
  80. Revision 1.11 2004/04/12 18:25:26 florian
  81. + AInt added
  82. Revision 1.10.2.4 2004/05/01 16:02:10 peter
  83. * POINTER_SIZE replaced with sizeof(aint)
  84. * aint,aword,tconst*int moved to globtype
  85. Revision 1.10.2.3 2004/04/26 21:00:37 peter
  86. * AInt fixed, PAInt added
  87. }