cpuinfo.pas 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  1. {
  2. Copyright (c) 1998-2002 by the Free Pascal development team
  3. Basic Processor information for the MIPS
  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. Unit CPUInfo;
  11. Interface
  12. uses
  13. globtype;
  14. Type
  15. bestreal = double;
  16. ts32real = single;
  17. ts64real = double;
  18. ts80real = type double;
  19. ts128real = type double;
  20. ts64comp = comp;
  21. pbestreal=^bestreal;
  22. { possible supported processors for this target }
  23. tcputype =
  24. (cpu_none,
  25. cpu_mips1,
  26. cpu_mips2,
  27. cpu_mips3,
  28. cpu_mips4,
  29. cpu_mips5,
  30. cpu_mips32,
  31. cpu_mips32r2,
  32. cpu_pic32mx
  33. );
  34. tfputype =(fpu_none,fpu_soft,fpu_mips2,fpu_mips3);
  35. tabitype =
  36. (
  37. abi_none,
  38. abi_default,
  39. abi_o32,
  40. abi_n32,
  41. abi_o64,
  42. abi_n64,
  43. abi_eabi
  44. );
  45. Const
  46. {# Size of native extended floating point type }
  47. extended_size = 8;
  48. {# Size of a multimedia register }
  49. mmreg_size = 0;
  50. { calling conventions supported by the code generator }
  51. supported_calling_conventions : tproccalloptions = [
  52. pocall_internproc,
  53. pocall_stdcall,
  54. pocall_safecall,
  55. { same as stdcall only different name mangling }
  56. pocall_cdecl,
  57. { same as stdcall only different name mangling }
  58. pocall_cppdecl
  59. ];
  60. { cpu strings as accepted by
  61. GNU assembler in -arch=XXX option
  62. this ilist needs to be uppercased }
  63. cputypestr : array[tcputype] of string[8] = ('',
  64. { cpu_mips1 } 'MIPS1',
  65. { cpu_mips2 } 'MIPS2',
  66. { cpu_mips3 } 'MIPS3',
  67. { cpu_mips4 } 'MIPS4',
  68. { cpu_mips5 } 'MIPS5',
  69. { cpu_mips32 } 'MIPS32',
  70. { cpu_mips32r2 } 'MIPS32R2',
  71. { cpu_pic32mx } 'PIC32MX'
  72. );
  73. fputypestr : array[tfputype] of string[9] = ('',
  74. 'SOFT',
  75. 'FPU_MIPS2','FPU_MIPS3'
  76. );
  77. { abi strings as accepted by
  78. GNU assembler in -abi=XXX option }
  79. abitypestr : array[tabitype] of string[4] =
  80. ({ abi_none } '',
  81. { abi_default } '32',
  82. { abi_o32 } '32',
  83. { abi_n32 } 'n32',
  84. { abi_o64 } 'o64',
  85. { abi_n64 } '64',
  86. { abi_eabi } 'eabi'
  87. );
  88. mips_abi : tabitype = abi_default;
  89. type
  90. tcpuflags=(
  91. CPUMIPS_HAS_CMOV, { conditional move instructions (mips4+) }
  92. CPUMIPS_HAS_ISA32R2 { mips32r2 instructions (also on PIC32) }
  93. );
  94. const
  95. cpu_capabilities : array[tcputype] of set of tcpuflags =
  96. ( { cpu_none } [],
  97. { cpu_mips1 } [],
  98. { cpu_mips2 } [],
  99. { cpu_mips3 } [],
  100. { cpu_mips4 } [CPUMIPS_HAS_CMOV],
  101. { cpu_mips5 } [CPUMIPS_HAS_CMOV],
  102. { cpu_mips32 } [CPUMIPS_HAS_CMOV],
  103. { cpu_mips32r2 } [CPUMIPS_HAS_CMOV,CPUMIPS_HAS_ISA32R2],
  104. { cpu_pic32mx } [CPUMIPS_HAS_CMOV,CPUMIPS_HAS_ISA32R2]
  105. );
  106. {$ifdef MIPSEL}
  107. type
  108. tcontrollertype =
  109. (ct_none,
  110. { pic32mx }
  111. ct_pic32mx110f016b,
  112. ct_pic32mx110f016c,
  113. ct_pic32mx110f016d,
  114. ct_pic32mx120f032b,
  115. ct_pic32mx120f032c,
  116. ct_pic32mx120f032d,
  117. ct_pic32mx130f064b,
  118. ct_pic32mx130f064c,
  119. ct_pic32mx130f064d,
  120. ct_pic32mx150f128b,
  121. ct_pic32mx150f128c,
  122. ct_pic32mx150f128d,
  123. ct_pic32mx170f256b,
  124. ct_pic32mx170f256c,
  125. ct_pic32mx170f256d,
  126. ct_pic32mx210f016b,
  127. ct_pic32mx210f016c,
  128. ct_pic32mx210f016d,
  129. ct_pic32mx220f032b,
  130. ct_pic32mx220f032c,
  131. ct_pic32mx220f032d,
  132. ct_pic32mx230f064b,
  133. ct_pic32mx230f064c,
  134. ct_pic32mx230f064d,
  135. ct_pic32mx250f128b,
  136. ct_pic32mx250f128c,
  137. ct_pic32mx250f128d,
  138. ct_pic32mx270f256b,
  139. ct_pic32mx270f256c,
  140. ct_pic32mx270f256d,
  141. ct_pic32mx320f032h,
  142. ct_pic32mx320f064h,
  143. ct_pic32mx320f128h,
  144. ct_pic32mx320f128l,
  145. ct_pic32mx330f064h,
  146. ct_pic32mx330f064l,
  147. ct_pic32mx340f128h,
  148. ct_pic32mx340f128l,
  149. ct_pic32mx340f256h,
  150. ct_pic32mx340f512h,
  151. ct_pic32mx350f128h,
  152. ct_pic32mx350f128l,
  153. ct_pic32mx350f256h,
  154. ct_pic32mx350f256l,
  155. ct_pic32mx360f256l,
  156. ct_pic32mx360f512l,
  157. ct_pic32mx370f512h,
  158. ct_pic32mx370f512l,
  159. ct_pic32mx420f032h,
  160. ct_pic32mx430f064h,
  161. ct_pic32mx430f064l,
  162. ct_pic32mx440f128h,
  163. ct_pic32mx440f128l,
  164. ct_pic32mx440f256h,
  165. ct_pic32mx440f512h,
  166. ct_pic32mx450f128h,
  167. ct_pic32mx450f128l,
  168. ct_pic32mx450f256h,
  169. ct_pic32mx450f256l,
  170. ct_pic32mx460f256l,
  171. ct_pic32mx460f512l,
  172. ct_pic32mx470f512h,
  173. ct_pic32mx470f512l,
  174. ct_pic32mx534f064h,
  175. ct_pic32mx534f064l,
  176. ct_pic32mx564f064h,
  177. ct_pic32mx564f064l,
  178. ct_pic32mx564f128h,
  179. ct_pic32mx564f128l,
  180. ct_pic32mx575f256h,
  181. ct_pic32mx575f256l,
  182. ct_pic32mx575f512h,
  183. ct_pic32mx575f512l,
  184. ct_pic32mx664f064h,
  185. ct_pic32mx664f064l,
  186. ct_pic32mx664f128h,
  187. ct_pic32mx664f128l,
  188. ct_pic32mx675f256h,
  189. ct_pic32mx675f256l,
  190. ct_pic32mx675f512h,
  191. ct_pic32mx675f512l,
  192. ct_pic32mx695f512h,
  193. ct_pic32mx695f512l,
  194. ct_pic32mx764f128h,
  195. ct_pic32mx764f128l,
  196. ct_pic32mx775f256h,
  197. ct_pic32mx775f256l,
  198. ct_pic32mx775f512h,
  199. ct_pic32mx775f512l,
  200. ct_pic32mx795f512h,
  201. ct_pic32mx795f512l
  202. );
  203. { We know that there are fields after sramsize
  204. but we don't care about this warning }
  205. {$WARN 3177 OFF}
  206. const
  207. embedded_controllers : array [tcontrollertype] of tcontrollerdatatype =
  208. (
  209. (controllertypestr:''; controllerunitstr:''; flashbase:0; flashsize:0; srambase:0; sramsize:0),
  210. { PIC32MX1xx Series}
  211. (controllertypestr:'PIC32MX110F016B'; controllerunitstr:'PIC32MX110F016B'; flashbase:$9d000000; flashsize:$00004000; srambase:$A0000000; sramsize:$00001000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  212. (controllertypestr:'PIC32MX110F016C'; controllerunitstr:'PIC32MX110F016C'; flashbase:$9d000000; flashsize:$00004000; srambase:$A0000000; sramsize:$00001000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  213. (controllertypestr:'PIC32MX110F016D'; controllerunitstr:'PIC32MX110F016D'; flashbase:$9d000000; flashsize:$00004000; srambase:$A0000000; sramsize:$00001000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  214. (controllertypestr:'PIC32MX120F032B'; controllerunitstr:'PIC32MX120F032B'; flashbase:$9d000000; flashsize:$00008000; srambase:$A0000000; sramsize:$00002000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  215. (controllertypestr:'PIC32MX120F032C'; controllerunitstr:'PIC32MX120F032C'; flashbase:$9d000000; flashsize:$00008000; srambase:$A0000000; sramsize:$00002000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  216. (controllertypestr:'PIC32MX120F032D'; controllerunitstr:'PIC32MX120F032D'; flashbase:$9d000000; flashsize:$00008000; srambase:$A0000000; sramsize:$00002000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  217. (controllertypestr:'PIC32MX130F064B'; controllerunitstr:'PIC32MX130F064B'; flashbase:$9d000000; flashsize:$00010000; srambase:$A0000000; sramsize:$00004000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  218. (controllertypestr:'PIC32MX130F064C'; controllerunitstr:'PIC32MX130F064C'; flashbase:$9d000000; flashsize:$00010000; srambase:$A0000000; sramsize:$00004000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  219. (controllertypestr:'PIC32MX130F064D'; controllerunitstr:'PIC32MX130F064D'; flashbase:$9d000000; flashsize:$00010000; srambase:$A0000000; sramsize:$00004000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  220. (controllertypestr:'PIC32MX150F128B'; controllerunitstr:'PIC32MX150F128B'; flashbase:$9d000000; flashsize:$00020000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  221. (controllertypestr:'PIC32MX150F128C'; controllerunitstr:'PIC32MX150F128C'; flashbase:$9d000000; flashsize:$00020000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  222. (controllertypestr:'PIC32MX150F128D'; controllerunitstr:'PIC32MX150F128D'; flashbase:$9d000000; flashsize:$00020000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  223. (controllertypestr:'PIC32MX170F256B'; controllerunitstr:'PIC32MX170F256B'; flashbase:$9d000000; flashsize:$00040000; srambase:$A0000000; sramsize:$00010000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  224. (controllertypestr:'PIC32MX170F256C'; controllerunitstr:'PIC32MX170F256C'; flashbase:$9d000000; flashsize:$00040000; srambase:$A0000000; sramsize:$00010000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  225. (controllertypestr:'PIC32MX170F256D'; controllerunitstr:'PIC32MX170F256D'; flashbase:$9d000000; flashsize:$00040000; srambase:$A0000000; sramsize:$00010000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  226. { PIC32MX2xx Series}
  227. (controllertypestr:'PIC32MX210F016B'; controllerunitstr:'PIC32MX210F016B'; flashbase:$9d000000; flashsize:$00004000; srambase:$A0000000; sramsize:$00001000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  228. (controllertypestr:'PIC32MX210F016C'; controllerunitstr:'PIC32MX210F016C'; flashbase:$9d000000; flashsize:$00004000; srambase:$A0000000; sramsize:$00001000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  229. (controllertypestr:'PIC32MX210F016D'; controllerunitstr:'PIC32MX210F016D'; flashbase:$9d000000; flashsize:$00004000; srambase:$A0000000; sramsize:$00001000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  230. (controllertypestr:'PIC32MX220F032B'; controllerunitstr:'PIC32MX220F032B'; flashbase:$9d000000; flashsize:$00008000; srambase:$A0000000; sramsize:$00002000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  231. (controllertypestr:'PIC32MX220F032C'; controllerunitstr:'PIC32MX220F032C'; flashbase:$9d000000; flashsize:$00008000; srambase:$A0000000; sramsize:$00002000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  232. (controllertypestr:'PIC32MX220F032D'; controllerunitstr:'PIC32MX220F032D'; flashbase:$9d000000; flashsize:$00008000; srambase:$A0000000; sramsize:$00002000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  233. (controllertypestr:'PIC32MX230F064B'; controllerunitstr:'PIC32MX230F064B'; flashbase:$9d000000; flashsize:$00010000; srambase:$A0000000; sramsize:$00004000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  234. (controllertypestr:'PIC32MX230F064C'; controllerunitstr:'PIC32MX230F064C'; flashbase:$9d000000; flashsize:$00010000; srambase:$A0000000; sramsize:$00004000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  235. (controllertypestr:'PIC32MX230F064D'; controllerunitstr:'PIC32MX230F064D'; flashbase:$9d000000; flashsize:$00010000; srambase:$A0000000; sramsize:$00004000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  236. (controllertypestr:'PIC32MX250F128B'; controllerunitstr:'PIC32MX250F128B'; flashbase:$9d000000; flashsize:$00020000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  237. (controllertypestr:'PIC32MX250F128C'; controllerunitstr:'PIC32MX250F128C'; flashbase:$9d000000; flashsize:$00020000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  238. (controllertypestr:'PIC32MX250F128D'; controllerunitstr:'PIC32MX250F128D'; flashbase:$9d000000; flashsize:$00020000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  239. (controllertypestr:'PIC32MX270F256B'; controllerunitstr:'PIC32MX270F256B'; flashbase:$9d000000; flashsize:$00020000; srambase:$A0000000; sramsize:$00010000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  240. (controllertypestr:'PIC32MX270F256C'; controllerunitstr:'PIC32MX270F256C'; flashbase:$9d000000; flashsize:$00020000; srambase:$A0000000; sramsize:$00010000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  241. (controllertypestr:'PIC32MX270F256D'; controllerunitstr:'PIC32MX270F256D'; flashbase:$9d000000; flashsize:$00020000; srambase:$A0000000; sramsize:$00010000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00000BEF),
  242. { PIC32MX3xx Series}
  243. (controllertypestr:'PIC32MX320F032H'; controllerunitstr:'PIC32MX320F032H'; flashbase:$9d000000; flashsize:$00008000; srambase:$A0000000; sramsize:$00002000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  244. (controllertypestr:'PIC32MX320F064H'; controllerunitstr:'PIC32MX320F064H'; flashbase:$9d000000; flashsize:$00010000; srambase:$A0000000; sramsize:$00004000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  245. (controllertypestr:'PIC32MX320F128H'; controllerunitstr:'PIC32MX320F128H'; flashbase:$9d000000; flashsize:$00020000; srambase:$A0000000; sramsize:$00004000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  246. (controllertypestr:'PIC32MX320F128L'; controllerunitstr:'PIC32MX320F128L'; flashbase:$9d000000; flashsize:$00020000; srambase:$A0000000; sramsize:$00004000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  247. (controllertypestr:'PIC32MX330F064H'; controllerunitstr:'PIC32MX330F064H'; flashbase:$9d000000; flashsize:$00010000; srambase:$A0000000; sramsize:$00004000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  248. (controllertypestr:'PIC32MX330F064L'; controllerunitstr:'PIC32MX330F064L'; flashbase:$9d000000; flashsize:$00020000; srambase:$A0000000; sramsize:$00004000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  249. (controllertypestr:'PIC32MX340F128H'; controllerunitstr:'PIC32MX340F128H'; flashbase:$9d000000; flashsize:$00020000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  250. (controllertypestr:'PIC32MX340F128L'; controllerunitstr:'PIC32MX340F128L'; flashbase:$9d000000; flashsize:$00020000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  251. (controllertypestr:'PIC32MX340F256H'; controllerunitstr:'PIC32MX340F256H'; flashbase:$9d000000; flashsize:$00040000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  252. (controllertypestr:'PIC32MX340F512H'; controllerunitstr:'PIC32MX340F512H'; flashbase:$9d000000; flashsize:$00080000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  253. (controllertypestr:'PIC32MX350F128H'; controllerunitstr:'PIC32MX350F128H'; flashbase:$9d000000; flashsize:$00020000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  254. (controllertypestr:'PIC32MX350F128L'; controllerunitstr:'PIC32MX350F128L'; flashbase:$9d000000; flashsize:$00020000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  255. (controllertypestr:'PIC32MX350F256H'; controllerunitstr:'PIC32MX350F256H'; flashbase:$9d000000; flashsize:$00040000; srambase:$A0000000; sramsize:$00010000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  256. (controllertypestr:'PIC32MX350F256L'; controllerunitstr:'PIC32MX350F256L'; flashbase:$9d000000; flashsize:$00040000; srambase:$A0000000; sramsize:$00010000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  257. (controllertypestr:'PIC32MX360F256L'; controllerunitstr:'PIC32MX360F256L'; flashbase:$9d000000; flashsize:$00040000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  258. (controllertypestr:'PIC32MX360F512L'; controllerunitstr:'PIC32MX360F512L'; flashbase:$9d000000; flashsize:$00080000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  259. (controllertypestr:'PIC32MX370F512H'; controllerunitstr:'PIC32MX370F512H'; flashbase:$9d000000; flashsize:$00080000; srambase:$A0000000; sramsize:$00020000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  260. (controllertypestr:'PIC32MX370F512L'; controllerunitstr:'PIC32MX370F512L'; flashbase:$9d000000; flashsize:$00080000; srambase:$A0000000; sramsize:$00020000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  261. { PIC32MX4xx Series}
  262. (controllertypestr:'PIC32MX420F032H'; controllerunitstr:'PIC32MX420F032H'; flashbase:$9d000000; flashsize:$00008000; srambase:$A0000000; sramsize:$00002000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  263. (controllertypestr:'PIC32MX430F064H'; controllerunitstr:'PIC32MX430F064H'; flashbase:$9d000000; flashsize:$00010000; srambase:$A0000000; sramsize:$00004000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  264. (controllertypestr:'PIC32MX430F064L'; controllerunitstr:'PIC32MX430F064L'; flashbase:$9d000000; flashsize:$00010000; srambase:$A0000000; sramsize:$00004000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  265. (controllertypestr:'PIC32MX440F128H'; controllerunitstr:'PIC32MX440F128H'; flashbase:$9d000000; flashsize:$00020000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  266. (controllertypestr:'PIC32MX440F128L'; controllerunitstr:'PIC32MX440F128L'; flashbase:$9d000000; flashsize:$00020000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  267. (controllertypestr:'PIC32MX440F256H'; controllerunitstr:'PIC32MX440F256H'; flashbase:$9d000000; flashsize:$00040000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  268. (controllertypestr:'PIC32MX440F512H'; controllerunitstr:'PIC32MX440F512H'; flashbase:$9d000000; flashsize:$00080000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  269. (controllertypestr:'PIC32MX450F128H'; controllerunitstr:'PIC32MX450F128H'; flashbase:$9d000000; flashsize:$00020000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  270. (controllertypestr:'PIC32MX450F128L'; controllerunitstr:'PIC32MX450F128L'; flashbase:$9d000000; flashsize:$00020000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  271. (controllertypestr:'PIC32MX450F256H'; controllerunitstr:'PIC32MX450F256H'; flashbase:$9d000000; flashsize:$00040000; srambase:$A0000000; sramsize:$00010000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  272. (controllertypestr:'PIC32MX450F256L'; controllerunitstr:'PIC32MX450F256L'; flashbase:$9d000000; flashsize:$00040000; srambase:$A0000000; sramsize:$00010000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  273. (controllertypestr:'PIC32MX460F256L'; controllerunitstr:'PIC32MX460F256L'; flashbase:$9d000000; flashsize:$00040000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  274. (controllertypestr:'PIC32MX460F512L'; controllerunitstr:'PIC32MX460F512L'; flashbase:$9d000000; flashsize:$00080000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  275. (controllertypestr:'PIC32MX460F512H'; controllerunitstr:'PIC32MX460F512H'; flashbase:$9d000000; flashsize:$00080000; srambase:$A0000000; sramsize:$00020000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  276. (controllertypestr:'PIC32MX460F512L'; controllerunitstr:'PIC32MX460F512L'; flashbase:$9d000000; flashsize:$00080000; srambase:$A0000000; sramsize:$00020000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  277. { PIC32MX5xx Series}
  278. (controllertypestr:'PIC32MX534F064H'; controllerunitstr:'PIC32MX534F064H'; flashbase:$9d000000; flashsize:$00010000; srambase:$A0000000; sramsize:$00004000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  279. (controllertypestr:'PIC32MX534F064L'; controllerunitstr:'PIC32MX534F064L'; flashbase:$9d000000; flashsize:$00010000; srambase:$A0000000; sramsize:$00004000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  280. (controllertypestr:'PIC32MX564F064H'; controllerunitstr:'PIC32MX564F064H'; flashbase:$9d000000; flashsize:$00010000; srambase:$A0000000; sramsize:$00004000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  281. (controllertypestr:'PIC32MX564F064L'; controllerunitstr:'PIC32MX564F064L'; flashbase:$9d000000; flashsize:$00010000; srambase:$A0000000; sramsize:$00004000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  282. (controllertypestr:'PIC32MX564F128H'; controllerunitstr:'PIC32MX564F128H'; flashbase:$9d000000; flashsize:$00020000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  283. (controllertypestr:'PIC32MX564F128L'; controllerunitstr:'PIC32MX564F128L'; flashbase:$9d000000; flashsize:$00020000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  284. (controllertypestr:'PIC32MX575F256H'; controllerunitstr:'PIC32MX575F256H'; flashbase:$9d000000; flashsize:$00040000; srambase:$A0000000; sramsize:$00010000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  285. (controllertypestr:'PIC32MX575F256L'; controllerunitstr:'PIC32MX575F256L'; flashbase:$9d000000; flashsize:$00040000; srambase:$A0000000; sramsize:$00010000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  286. (controllertypestr:'PIC32MX575F512H'; controllerunitstr:'PIC32MX575F512H'; flashbase:$9d000000; flashsize:$00080000; srambase:$A0000000; sramsize:$00010000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  287. (controllertypestr:'PIC32MX575F512L'; controllerunitstr:'PIC32MX575F512L'; flashbase:$9d000000; flashsize:$00080000; srambase:$A0000000; sramsize:$00010000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  288. { PIC32MX6xx Series}
  289. (controllertypestr:'PIC32MX664F064H'; controllerunitstr:'PIC32MX664F064H'; flashbase:$9d000000; flashsize:$00010000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  290. (controllertypestr:'PIC32MX664F064L'; controllerunitstr:'PIC32MX664F064L'; flashbase:$9d000000; flashsize:$00010000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  291. (controllertypestr:'PIC32MX664F128H'; controllerunitstr:'PIC32MX664F128H'; flashbase:$9d000000; flashsize:$00020000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  292. (controllertypestr:'PIC32MX664F128L'; controllerunitstr:'PIC32MX664F128L'; flashbase:$9d000000; flashsize:$00020000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  293. (controllertypestr:'PIC32MX675F256H'; controllerunitstr:'PIC32MX675F256H'; flashbase:$9d000000; flashsize:$00040000; srambase:$A0000000; sramsize:$00010000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  294. (controllertypestr:'PIC32MX675F256L'; controllerunitstr:'PIC32MX675F256L'; flashbase:$9d000000; flashsize:$00040000; srambase:$A0000000; sramsize:$00010000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  295. (controllertypestr:'PIC32MX675F512H'; controllerunitstr:'PIC32MX675F512H'; flashbase:$9d000000; flashsize:$00080000; srambase:$A0000000; sramsize:$00010000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  296. (controllertypestr:'PIC32MX675F512L'; controllerunitstr:'PIC32MX675F512L'; flashbase:$9d000000; flashsize:$00080000; srambase:$A0000000; sramsize:$00010000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  297. (controllertypestr:'PIC32MX695F512H'; controllerunitstr:'PIC32MX695F512H'; flashbase:$9d000000; flashsize:$00080000; srambase:$A0000000; sramsize:$00020000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  298. (controllertypestr:'PIC32MX695F512L'; controllerunitstr:'PIC32MX695F512L'; flashbase:$9d000000; flashsize:$00080000; srambase:$A0000000; sramsize:$00020000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  299. { PIC32MX7xx Series}
  300. (controllertypestr:'PIC32MX764F128H'; controllerunitstr:'PIC32MX764F128H'; flashbase:$9d000000; flashsize:$00020000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  301. (controllertypestr:'PIC32MX764F128L'; controllerunitstr:'PIC32MX764F128L'; flashbase:$9d000000; flashsize:$00020000; srambase:$A0000000; sramsize:$00008000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  302. (controllertypestr:'PIC32MX775F256H'; controllerunitstr:'PIC32MX775F256H'; flashbase:$9d000000; flashsize:$00040000; srambase:$A0000000; sramsize:$00010000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  303. (controllertypestr:'PIC32MX775F256L'; controllerunitstr:'PIC32MX775F256L'; flashbase:$9d000000; flashsize:$00040000; srambase:$A0000000; sramsize:$00010000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  304. (controllertypestr:'PIC32MX775F512H'; controllerunitstr:'PIC32MX775F512H'; flashbase:$9d000000; flashsize:$00080000; srambase:$A0000000; sramsize:$00010000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  305. (controllertypestr:'PIC32MX775F512L'; controllerunitstr:'PIC32MX775F512L'; flashbase:$9d000000; flashsize:$00080000; srambase:$A0000000; sramsize:$00010000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  306. (controllertypestr:'PIC32MX795F512H'; controllerunitstr:'PIC32MX795F512H'; flashbase:$9d000000; flashsize:$00080000; srambase:$A0000000; sramsize:$00020000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF),
  307. (controllertypestr:'PIC32MX795F512L'; controllerunitstr:'PIC32MX795F512L'; flashbase:$9d000000; flashsize:$00080000; srambase:$A0000000; sramsize:$00020000; eeprombase:0; eepromsize:0; bootbase:$BFC00000; bootsize:$00002FEF)
  308. );
  309. {$endif MIPSEL}
  310. { Supported optimizations, only used for information }
  311. supported_optimizerswitches = [cs_opt_regvar,cs_opt_loopunroll,cs_opt_nodecse,
  312. cs_opt_reorder_fields,cs_opt_fastmath];
  313. level1optimizerswitches = genericlevel1optimizerswitches;
  314. level2optimizerswitches = level1optimizerswitches + [cs_opt_regvar,cs_opt_stackframe,cs_opt_nodecse];
  315. level3optimizerswitches = level2optimizerswitches + [cs_opt_loopunroll];
  316. level4optimizerswitches = genericlevel4optimizerswitches + level3optimizerswitches + [];
  317. function SetMipsABIType(const s : string) : boolean;
  318. Implementation
  319. uses
  320. cutils;
  321. function SetMipsABIType(const s : string) : boolean;
  322. var
  323. abi : tabitype;
  324. begin
  325. SetMipsABIType:=false;
  326. for abi := low(tabitype) to high(tabitype) do
  327. if (lower(s)=abitypestr[abi]) then
  328. begin
  329. mips_abi:=abi;
  330. SetMipsABIType:=true;
  331. break;
  332. end;
  333. end;
  334. end.