cpuinfo.inc 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {
  2. Copyright (c) 1998-2002 by the Free Pascal development team
  3. Basic Processor information common for all RiscV variants
  4. See the file COPYING.FPC, included in this distribution,
  5. for details about the copyright.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  9. **********************************************************************}
  10. type
  11. bestreal = double;
  12. bestrealrec = TDoubleRec;
  13. ts32real = single;
  14. ts64real = double;
  15. ts80real = extended;
  16. ts128real = extended;
  17. ts64comp = comp;
  18. pbestreal = ^bestreal;
  19. tcpuflags =
  20. (CPURV_HAS_MUL,
  21. CPURV_HAS_ATOMIC,
  22. CPURV_HAS_COMPACT,
  23. CPURV_HAS_16REGISTERS,
  24. CPURV_HAS_ZBA,
  25. CPURV_HAS_ZBB,
  26. CPURV_HAS_ZBC,
  27. CPURV_HAS_ZBS,
  28. CPURV_HAS_ZBKB,
  29. CPURV_HAS_ZBKC,
  30. CPURV_HAS_ZBKX,
  31. CPURV_HAS_CSR_INSTRUCTIONS, { extension Zicsr }
  32. CPURV_HAS_FETCH_FENCE, { extension Zifencei }
  33. CPURV_HAS_ZIHINTPAUSE,
  34. CPURV_HAS_F,
  35. CPURV_HAS_D,
  36. CPURV_HAS_Q,
  37. CPURV_HAS_ZFH,
  38. CPURV_HAS_ZFHMIN,
  39. CPURV_HAS_ZFA,
  40. CPURV_HAS_ZFINX,
  41. CPURV_HAS_ZDINX,
  42. CPURV_HAS_ZHINX,
  43. CPURV_HAS_ZHINXMIN,
  44. CPURV_HAS_ZICOND,
  45. CPURV_HAS_ZMMUL
  46. );
  47. tfputype =
  48. (fpu_none,
  49. fpu_libgcc,
  50. fpu_soft,
  51. fpu_fd
  52. );
  53. const
  54. fputypestr: array[tfputype] of string[8] = (
  55. 'NONE',
  56. 'LIBGCC',
  57. 'SOFT',
  58. 'FD'
  59. );