model.c 75 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570
  1. /* Simulator model support for iq2000bf.
  2. THIS FILE IS MACHINE GENERATED WITH CGEN.
  3. Copyright 1996-2015 Free Software Foundation, Inc.
  4. This file is part of the GNU simulators.
  5. This file 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 3, or (at your option)
  8. any later version.
  9. It is distributed in the hope that it will be useful, but WITHOUT
  10. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  11. or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
  12. License for more details.
  13. You should have received a copy of the GNU General Public License along
  14. with this program; if not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #define WANT_CPU iq2000bf
  17. #define WANT_CPU_IQ2000BF
  18. #include "sim-main.h"
  19. /* The profiling data is recorded here, but is accessed via the profiling
  20. mechanism. After all, this is information for profiling. */
  21. #if WITH_PROFILE_MODEL_P
  22. /* Model handlers for each insn. */
  23. static int
  24. model_iq2000_add (SIM_CPU *current_cpu, void *sem_arg)
  25. {
  26. #define FLD(f) abuf->fields.sfmt_mrgb.f
  27. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  28. const IDESC * UNUSED idesc = abuf->idesc;
  29. int cycles = 0;
  30. {
  31. int referenced = 0;
  32. int UNUSED insn_referenced = abuf->written;
  33. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  34. }
  35. return cycles;
  36. #undef FLD
  37. }
  38. static int
  39. model_iq2000_addi (SIM_CPU *current_cpu, void *sem_arg)
  40. {
  41. #define FLD(f) abuf->fields.sfmt_addi.f
  42. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  43. const IDESC * UNUSED idesc = abuf->idesc;
  44. int cycles = 0;
  45. {
  46. int referenced = 0;
  47. int UNUSED insn_referenced = abuf->written;
  48. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  49. }
  50. return cycles;
  51. #undef FLD
  52. }
  53. static int
  54. model_iq2000_addiu (SIM_CPU *current_cpu, void *sem_arg)
  55. {
  56. #define FLD(f) abuf->fields.sfmt_addi.f
  57. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  58. const IDESC * UNUSED idesc = abuf->idesc;
  59. int cycles = 0;
  60. {
  61. int referenced = 0;
  62. int UNUSED insn_referenced = abuf->written;
  63. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  64. }
  65. return cycles;
  66. #undef FLD
  67. }
  68. static int
  69. model_iq2000_addu (SIM_CPU *current_cpu, void *sem_arg)
  70. {
  71. #define FLD(f) abuf->fields.sfmt_mrgb.f
  72. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  73. const IDESC * UNUSED idesc = abuf->idesc;
  74. int cycles = 0;
  75. {
  76. int referenced = 0;
  77. int UNUSED insn_referenced = abuf->written;
  78. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  79. }
  80. return cycles;
  81. #undef FLD
  82. }
  83. static int
  84. model_iq2000_ado16 (SIM_CPU *current_cpu, void *sem_arg)
  85. {
  86. #define FLD(f) abuf->fields.sfmt_mrgb.f
  87. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  88. const IDESC * UNUSED idesc = abuf->idesc;
  89. int cycles = 0;
  90. {
  91. int referenced = 0;
  92. int UNUSED insn_referenced = abuf->written;
  93. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  94. }
  95. return cycles;
  96. #undef FLD
  97. }
  98. static int
  99. model_iq2000_and (SIM_CPU *current_cpu, void *sem_arg)
  100. {
  101. #define FLD(f) abuf->fields.sfmt_mrgb.f
  102. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  103. const IDESC * UNUSED idesc = abuf->idesc;
  104. int cycles = 0;
  105. {
  106. int referenced = 0;
  107. int UNUSED insn_referenced = abuf->written;
  108. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  109. }
  110. return cycles;
  111. #undef FLD
  112. }
  113. static int
  114. model_iq2000_andi (SIM_CPU *current_cpu, void *sem_arg)
  115. {
  116. #define FLD(f) abuf->fields.sfmt_addi.f
  117. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  118. const IDESC * UNUSED idesc = abuf->idesc;
  119. int cycles = 0;
  120. {
  121. int referenced = 0;
  122. int UNUSED insn_referenced = abuf->written;
  123. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  124. }
  125. return cycles;
  126. #undef FLD
  127. }
  128. static int
  129. model_iq2000_andoi (SIM_CPU *current_cpu, void *sem_arg)
  130. {
  131. #define FLD(f) abuf->fields.sfmt_addi.f
  132. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  133. const IDESC * UNUSED idesc = abuf->idesc;
  134. int cycles = 0;
  135. {
  136. int referenced = 0;
  137. int UNUSED insn_referenced = abuf->written;
  138. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  139. }
  140. return cycles;
  141. #undef FLD
  142. }
  143. static int
  144. model_iq2000_nor (SIM_CPU *current_cpu, void *sem_arg)
  145. {
  146. #define FLD(f) abuf->fields.sfmt_mrgb.f
  147. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  148. const IDESC * UNUSED idesc = abuf->idesc;
  149. int cycles = 0;
  150. {
  151. int referenced = 0;
  152. int UNUSED insn_referenced = abuf->written;
  153. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  154. }
  155. return cycles;
  156. #undef FLD
  157. }
  158. static int
  159. model_iq2000_or (SIM_CPU *current_cpu, void *sem_arg)
  160. {
  161. #define FLD(f) abuf->fields.sfmt_mrgb.f
  162. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  163. const IDESC * UNUSED idesc = abuf->idesc;
  164. int cycles = 0;
  165. {
  166. int referenced = 0;
  167. int UNUSED insn_referenced = abuf->written;
  168. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  169. }
  170. return cycles;
  171. #undef FLD
  172. }
  173. static int
  174. model_iq2000_ori (SIM_CPU *current_cpu, void *sem_arg)
  175. {
  176. #define FLD(f) abuf->fields.sfmt_addi.f
  177. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  178. const IDESC * UNUSED idesc = abuf->idesc;
  179. int cycles = 0;
  180. {
  181. int referenced = 0;
  182. int UNUSED insn_referenced = abuf->written;
  183. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  184. }
  185. return cycles;
  186. #undef FLD
  187. }
  188. static int
  189. model_iq2000_ram (SIM_CPU *current_cpu, void *sem_arg)
  190. {
  191. #define FLD(f) abuf->fields.sfmt_ram.f
  192. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  193. const IDESC * UNUSED idesc = abuf->idesc;
  194. int cycles = 0;
  195. {
  196. int referenced = 0;
  197. int UNUSED insn_referenced = abuf->written;
  198. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  199. }
  200. return cycles;
  201. #undef FLD
  202. }
  203. static int
  204. model_iq2000_sll (SIM_CPU *current_cpu, void *sem_arg)
  205. {
  206. #define FLD(f) abuf->fields.sfmt_ram.f
  207. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  208. const IDESC * UNUSED idesc = abuf->idesc;
  209. int cycles = 0;
  210. {
  211. int referenced = 0;
  212. int UNUSED insn_referenced = abuf->written;
  213. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  214. }
  215. return cycles;
  216. #undef FLD
  217. }
  218. static int
  219. model_iq2000_sllv (SIM_CPU *current_cpu, void *sem_arg)
  220. {
  221. #define FLD(f) abuf->fields.sfmt_mrgb.f
  222. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  223. const IDESC * UNUSED idesc = abuf->idesc;
  224. int cycles = 0;
  225. {
  226. int referenced = 0;
  227. int UNUSED insn_referenced = abuf->written;
  228. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  229. }
  230. return cycles;
  231. #undef FLD
  232. }
  233. static int
  234. model_iq2000_slmv (SIM_CPU *current_cpu, void *sem_arg)
  235. {
  236. #define FLD(f) abuf->fields.sfmt_ram.f
  237. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  238. const IDESC * UNUSED idesc = abuf->idesc;
  239. int cycles = 0;
  240. {
  241. int referenced = 0;
  242. int UNUSED insn_referenced = abuf->written;
  243. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  244. }
  245. return cycles;
  246. #undef FLD
  247. }
  248. static int
  249. model_iq2000_slt (SIM_CPU *current_cpu, void *sem_arg)
  250. {
  251. #define FLD(f) abuf->fields.sfmt_mrgb.f
  252. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  253. const IDESC * UNUSED idesc = abuf->idesc;
  254. int cycles = 0;
  255. {
  256. int referenced = 0;
  257. int UNUSED insn_referenced = abuf->written;
  258. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  259. }
  260. return cycles;
  261. #undef FLD
  262. }
  263. static int
  264. model_iq2000_slti (SIM_CPU *current_cpu, void *sem_arg)
  265. {
  266. #define FLD(f) abuf->fields.sfmt_addi.f
  267. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  268. const IDESC * UNUSED idesc = abuf->idesc;
  269. int cycles = 0;
  270. {
  271. int referenced = 0;
  272. int UNUSED insn_referenced = abuf->written;
  273. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  274. }
  275. return cycles;
  276. #undef FLD
  277. }
  278. static int
  279. model_iq2000_sltiu (SIM_CPU *current_cpu, void *sem_arg)
  280. {
  281. #define FLD(f) abuf->fields.sfmt_addi.f
  282. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  283. const IDESC * UNUSED idesc = abuf->idesc;
  284. int cycles = 0;
  285. {
  286. int referenced = 0;
  287. int UNUSED insn_referenced = abuf->written;
  288. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  289. }
  290. return cycles;
  291. #undef FLD
  292. }
  293. static int
  294. model_iq2000_sltu (SIM_CPU *current_cpu, void *sem_arg)
  295. {
  296. #define FLD(f) abuf->fields.sfmt_mrgb.f
  297. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  298. const IDESC * UNUSED idesc = abuf->idesc;
  299. int cycles = 0;
  300. {
  301. int referenced = 0;
  302. int UNUSED insn_referenced = abuf->written;
  303. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  304. }
  305. return cycles;
  306. #undef FLD
  307. }
  308. static int
  309. model_iq2000_sra (SIM_CPU *current_cpu, void *sem_arg)
  310. {
  311. #define FLD(f) abuf->fields.sfmt_ram.f
  312. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  313. const IDESC * UNUSED idesc = abuf->idesc;
  314. int cycles = 0;
  315. {
  316. int referenced = 0;
  317. int UNUSED insn_referenced = abuf->written;
  318. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  319. }
  320. return cycles;
  321. #undef FLD
  322. }
  323. static int
  324. model_iq2000_srav (SIM_CPU *current_cpu, void *sem_arg)
  325. {
  326. #define FLD(f) abuf->fields.sfmt_mrgb.f
  327. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  328. const IDESC * UNUSED idesc = abuf->idesc;
  329. int cycles = 0;
  330. {
  331. int referenced = 0;
  332. int UNUSED insn_referenced = abuf->written;
  333. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  334. }
  335. return cycles;
  336. #undef FLD
  337. }
  338. static int
  339. model_iq2000_srl (SIM_CPU *current_cpu, void *sem_arg)
  340. {
  341. #define FLD(f) abuf->fields.sfmt_ram.f
  342. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  343. const IDESC * UNUSED idesc = abuf->idesc;
  344. int cycles = 0;
  345. {
  346. int referenced = 0;
  347. int UNUSED insn_referenced = abuf->written;
  348. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  349. }
  350. return cycles;
  351. #undef FLD
  352. }
  353. static int
  354. model_iq2000_srlv (SIM_CPU *current_cpu, void *sem_arg)
  355. {
  356. #define FLD(f) abuf->fields.sfmt_mrgb.f
  357. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  358. const IDESC * UNUSED idesc = abuf->idesc;
  359. int cycles = 0;
  360. {
  361. int referenced = 0;
  362. int UNUSED insn_referenced = abuf->written;
  363. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  364. }
  365. return cycles;
  366. #undef FLD
  367. }
  368. static int
  369. model_iq2000_srmv (SIM_CPU *current_cpu, void *sem_arg)
  370. {
  371. #define FLD(f) abuf->fields.sfmt_ram.f
  372. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  373. const IDESC * UNUSED idesc = abuf->idesc;
  374. int cycles = 0;
  375. {
  376. int referenced = 0;
  377. int UNUSED insn_referenced = abuf->written;
  378. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  379. }
  380. return cycles;
  381. #undef FLD
  382. }
  383. static int
  384. model_iq2000_sub (SIM_CPU *current_cpu, void *sem_arg)
  385. {
  386. #define FLD(f) abuf->fields.sfmt_mrgb.f
  387. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  388. const IDESC * UNUSED idesc = abuf->idesc;
  389. int cycles = 0;
  390. {
  391. int referenced = 0;
  392. int UNUSED insn_referenced = abuf->written;
  393. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  394. }
  395. return cycles;
  396. #undef FLD
  397. }
  398. static int
  399. model_iq2000_subu (SIM_CPU *current_cpu, void *sem_arg)
  400. {
  401. #define FLD(f) abuf->fields.sfmt_mrgb.f
  402. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  403. const IDESC * UNUSED idesc = abuf->idesc;
  404. int cycles = 0;
  405. {
  406. int referenced = 0;
  407. int UNUSED insn_referenced = abuf->written;
  408. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  409. }
  410. return cycles;
  411. #undef FLD
  412. }
  413. static int
  414. model_iq2000_xor (SIM_CPU *current_cpu, void *sem_arg)
  415. {
  416. #define FLD(f) abuf->fields.sfmt_mrgb.f
  417. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  418. const IDESC * UNUSED idesc = abuf->idesc;
  419. int cycles = 0;
  420. {
  421. int referenced = 0;
  422. int UNUSED insn_referenced = abuf->written;
  423. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  424. }
  425. return cycles;
  426. #undef FLD
  427. }
  428. static int
  429. model_iq2000_xori (SIM_CPU *current_cpu, void *sem_arg)
  430. {
  431. #define FLD(f) abuf->fields.sfmt_addi.f
  432. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  433. const IDESC * UNUSED idesc = abuf->idesc;
  434. int cycles = 0;
  435. {
  436. int referenced = 0;
  437. int UNUSED insn_referenced = abuf->written;
  438. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  439. }
  440. return cycles;
  441. #undef FLD
  442. }
  443. static int
  444. model_iq2000_bbi (SIM_CPU *current_cpu, void *sem_arg)
  445. {
  446. #define FLD(f) abuf->fields.sfmt_bbi.f
  447. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  448. const IDESC * UNUSED idesc = abuf->idesc;
  449. int cycles = 0;
  450. {
  451. int referenced = 0;
  452. int UNUSED insn_referenced = abuf->written;
  453. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  454. }
  455. return cycles;
  456. #undef FLD
  457. }
  458. static int
  459. model_iq2000_bbin (SIM_CPU *current_cpu, void *sem_arg)
  460. {
  461. #define FLD(f) abuf->fields.sfmt_bbi.f
  462. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  463. const IDESC * UNUSED idesc = abuf->idesc;
  464. int cycles = 0;
  465. {
  466. int referenced = 0;
  467. int UNUSED insn_referenced = abuf->written;
  468. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  469. }
  470. return cycles;
  471. #undef FLD
  472. }
  473. static int
  474. model_iq2000_bbv (SIM_CPU *current_cpu, void *sem_arg)
  475. {
  476. #define FLD(f) abuf->fields.sfmt_bbi.f
  477. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  478. const IDESC * UNUSED idesc = abuf->idesc;
  479. int cycles = 0;
  480. {
  481. int referenced = 0;
  482. int UNUSED insn_referenced = abuf->written;
  483. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  484. }
  485. return cycles;
  486. #undef FLD
  487. }
  488. static int
  489. model_iq2000_bbvn (SIM_CPU *current_cpu, void *sem_arg)
  490. {
  491. #define FLD(f) abuf->fields.sfmt_bbi.f
  492. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  493. const IDESC * UNUSED idesc = abuf->idesc;
  494. int cycles = 0;
  495. {
  496. int referenced = 0;
  497. int UNUSED insn_referenced = abuf->written;
  498. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  499. }
  500. return cycles;
  501. #undef FLD
  502. }
  503. static int
  504. model_iq2000_beq (SIM_CPU *current_cpu, void *sem_arg)
  505. {
  506. #define FLD(f) abuf->fields.sfmt_bbi.f
  507. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  508. const IDESC * UNUSED idesc = abuf->idesc;
  509. int cycles = 0;
  510. {
  511. int referenced = 0;
  512. int UNUSED insn_referenced = abuf->written;
  513. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  514. }
  515. return cycles;
  516. #undef FLD
  517. }
  518. static int
  519. model_iq2000_beql (SIM_CPU *current_cpu, void *sem_arg)
  520. {
  521. #define FLD(f) abuf->fields.sfmt_bbi.f
  522. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  523. const IDESC * UNUSED idesc = abuf->idesc;
  524. int cycles = 0;
  525. {
  526. int referenced = 0;
  527. int UNUSED insn_referenced = abuf->written;
  528. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  529. }
  530. return cycles;
  531. #undef FLD
  532. }
  533. static int
  534. model_iq2000_bgez (SIM_CPU *current_cpu, void *sem_arg)
  535. {
  536. #define FLD(f) abuf->fields.sfmt_bbi.f
  537. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  538. const IDESC * UNUSED idesc = abuf->idesc;
  539. int cycles = 0;
  540. {
  541. int referenced = 0;
  542. int UNUSED insn_referenced = abuf->written;
  543. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  544. }
  545. return cycles;
  546. #undef FLD
  547. }
  548. static int
  549. model_iq2000_bgezal (SIM_CPU *current_cpu, void *sem_arg)
  550. {
  551. #define FLD(f) abuf->fields.sfmt_bbi.f
  552. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  553. const IDESC * UNUSED idesc = abuf->idesc;
  554. int cycles = 0;
  555. {
  556. int referenced = 0;
  557. int UNUSED insn_referenced = abuf->written;
  558. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  559. }
  560. return cycles;
  561. #undef FLD
  562. }
  563. static int
  564. model_iq2000_bgezall (SIM_CPU *current_cpu, void *sem_arg)
  565. {
  566. #define FLD(f) abuf->fields.sfmt_bbi.f
  567. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  568. const IDESC * UNUSED idesc = abuf->idesc;
  569. int cycles = 0;
  570. {
  571. int referenced = 0;
  572. int UNUSED insn_referenced = abuf->written;
  573. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  574. }
  575. return cycles;
  576. #undef FLD
  577. }
  578. static int
  579. model_iq2000_bgezl (SIM_CPU *current_cpu, void *sem_arg)
  580. {
  581. #define FLD(f) abuf->fields.sfmt_bbi.f
  582. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  583. const IDESC * UNUSED idesc = abuf->idesc;
  584. int cycles = 0;
  585. {
  586. int referenced = 0;
  587. int UNUSED insn_referenced = abuf->written;
  588. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  589. }
  590. return cycles;
  591. #undef FLD
  592. }
  593. static int
  594. model_iq2000_bltz (SIM_CPU *current_cpu, void *sem_arg)
  595. {
  596. #define FLD(f) abuf->fields.sfmt_bbi.f
  597. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  598. const IDESC * UNUSED idesc = abuf->idesc;
  599. int cycles = 0;
  600. {
  601. int referenced = 0;
  602. int UNUSED insn_referenced = abuf->written;
  603. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  604. }
  605. return cycles;
  606. #undef FLD
  607. }
  608. static int
  609. model_iq2000_bltzl (SIM_CPU *current_cpu, void *sem_arg)
  610. {
  611. #define FLD(f) abuf->fields.sfmt_bbi.f
  612. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  613. const IDESC * UNUSED idesc = abuf->idesc;
  614. int cycles = 0;
  615. {
  616. int referenced = 0;
  617. int UNUSED insn_referenced = abuf->written;
  618. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  619. }
  620. return cycles;
  621. #undef FLD
  622. }
  623. static int
  624. model_iq2000_bltzal (SIM_CPU *current_cpu, void *sem_arg)
  625. {
  626. #define FLD(f) abuf->fields.sfmt_bbi.f
  627. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  628. const IDESC * UNUSED idesc = abuf->idesc;
  629. int cycles = 0;
  630. {
  631. int referenced = 0;
  632. int UNUSED insn_referenced = abuf->written;
  633. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  634. }
  635. return cycles;
  636. #undef FLD
  637. }
  638. static int
  639. model_iq2000_bltzall (SIM_CPU *current_cpu, void *sem_arg)
  640. {
  641. #define FLD(f) abuf->fields.sfmt_bbi.f
  642. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  643. const IDESC * UNUSED idesc = abuf->idesc;
  644. int cycles = 0;
  645. {
  646. int referenced = 0;
  647. int UNUSED insn_referenced = abuf->written;
  648. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  649. }
  650. return cycles;
  651. #undef FLD
  652. }
  653. static int
  654. model_iq2000_bmb0 (SIM_CPU *current_cpu, void *sem_arg)
  655. {
  656. #define FLD(f) abuf->fields.sfmt_bbi.f
  657. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  658. const IDESC * UNUSED idesc = abuf->idesc;
  659. int cycles = 0;
  660. {
  661. int referenced = 0;
  662. int UNUSED insn_referenced = abuf->written;
  663. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  664. }
  665. return cycles;
  666. #undef FLD
  667. }
  668. static int
  669. model_iq2000_bmb1 (SIM_CPU *current_cpu, void *sem_arg)
  670. {
  671. #define FLD(f) abuf->fields.sfmt_bbi.f
  672. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  673. const IDESC * UNUSED idesc = abuf->idesc;
  674. int cycles = 0;
  675. {
  676. int referenced = 0;
  677. int UNUSED insn_referenced = abuf->written;
  678. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  679. }
  680. return cycles;
  681. #undef FLD
  682. }
  683. static int
  684. model_iq2000_bmb2 (SIM_CPU *current_cpu, void *sem_arg)
  685. {
  686. #define FLD(f) abuf->fields.sfmt_bbi.f
  687. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  688. const IDESC * UNUSED idesc = abuf->idesc;
  689. int cycles = 0;
  690. {
  691. int referenced = 0;
  692. int UNUSED insn_referenced = abuf->written;
  693. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  694. }
  695. return cycles;
  696. #undef FLD
  697. }
  698. static int
  699. model_iq2000_bmb3 (SIM_CPU *current_cpu, void *sem_arg)
  700. {
  701. #define FLD(f) abuf->fields.sfmt_bbi.f
  702. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  703. const IDESC * UNUSED idesc = abuf->idesc;
  704. int cycles = 0;
  705. {
  706. int referenced = 0;
  707. int UNUSED insn_referenced = abuf->written;
  708. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  709. }
  710. return cycles;
  711. #undef FLD
  712. }
  713. static int
  714. model_iq2000_bne (SIM_CPU *current_cpu, void *sem_arg)
  715. {
  716. #define FLD(f) abuf->fields.sfmt_bbi.f
  717. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  718. const IDESC * UNUSED idesc = abuf->idesc;
  719. int cycles = 0;
  720. {
  721. int referenced = 0;
  722. int UNUSED insn_referenced = abuf->written;
  723. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  724. }
  725. return cycles;
  726. #undef FLD
  727. }
  728. static int
  729. model_iq2000_bnel (SIM_CPU *current_cpu, void *sem_arg)
  730. {
  731. #define FLD(f) abuf->fields.sfmt_bbi.f
  732. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  733. const IDESC * UNUSED idesc = abuf->idesc;
  734. int cycles = 0;
  735. {
  736. int referenced = 0;
  737. int UNUSED insn_referenced = abuf->written;
  738. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  739. }
  740. return cycles;
  741. #undef FLD
  742. }
  743. static int
  744. model_iq2000_jalr (SIM_CPU *current_cpu, void *sem_arg)
  745. {
  746. #define FLD(f) abuf->fields.sfmt_mrgb.f
  747. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  748. const IDESC * UNUSED idesc = abuf->idesc;
  749. int cycles = 0;
  750. {
  751. int referenced = 0;
  752. int UNUSED insn_referenced = abuf->written;
  753. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  754. }
  755. return cycles;
  756. #undef FLD
  757. }
  758. static int
  759. model_iq2000_jr (SIM_CPU *current_cpu, void *sem_arg)
  760. {
  761. #define FLD(f) abuf->fields.sfmt_bbi.f
  762. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  763. const IDESC * UNUSED idesc = abuf->idesc;
  764. int cycles = 0;
  765. {
  766. int referenced = 0;
  767. int UNUSED insn_referenced = abuf->written;
  768. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  769. }
  770. return cycles;
  771. #undef FLD
  772. }
  773. static int
  774. model_iq2000_lb (SIM_CPU *current_cpu, void *sem_arg)
  775. {
  776. #define FLD(f) abuf->fields.sfmt_addi.f
  777. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  778. const IDESC * UNUSED idesc = abuf->idesc;
  779. int cycles = 0;
  780. {
  781. int referenced = 0;
  782. int UNUSED insn_referenced = abuf->written;
  783. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  784. }
  785. return cycles;
  786. #undef FLD
  787. }
  788. static int
  789. model_iq2000_lbu (SIM_CPU *current_cpu, void *sem_arg)
  790. {
  791. #define FLD(f) abuf->fields.sfmt_addi.f
  792. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  793. const IDESC * UNUSED idesc = abuf->idesc;
  794. int cycles = 0;
  795. {
  796. int referenced = 0;
  797. int UNUSED insn_referenced = abuf->written;
  798. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  799. }
  800. return cycles;
  801. #undef FLD
  802. }
  803. static int
  804. model_iq2000_lh (SIM_CPU *current_cpu, void *sem_arg)
  805. {
  806. #define FLD(f) abuf->fields.sfmt_addi.f
  807. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  808. const IDESC * UNUSED idesc = abuf->idesc;
  809. int cycles = 0;
  810. {
  811. int referenced = 0;
  812. int UNUSED insn_referenced = abuf->written;
  813. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  814. }
  815. return cycles;
  816. #undef FLD
  817. }
  818. static int
  819. model_iq2000_lhu (SIM_CPU *current_cpu, void *sem_arg)
  820. {
  821. #define FLD(f) abuf->fields.sfmt_addi.f
  822. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  823. const IDESC * UNUSED idesc = abuf->idesc;
  824. int cycles = 0;
  825. {
  826. int referenced = 0;
  827. int UNUSED insn_referenced = abuf->written;
  828. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  829. }
  830. return cycles;
  831. #undef FLD
  832. }
  833. static int
  834. model_iq2000_lui (SIM_CPU *current_cpu, void *sem_arg)
  835. {
  836. #define FLD(f) abuf->fields.sfmt_addi.f
  837. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  838. const IDESC * UNUSED idesc = abuf->idesc;
  839. int cycles = 0;
  840. {
  841. int referenced = 0;
  842. int UNUSED insn_referenced = abuf->written;
  843. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  844. }
  845. return cycles;
  846. #undef FLD
  847. }
  848. static int
  849. model_iq2000_lw (SIM_CPU *current_cpu, void *sem_arg)
  850. {
  851. #define FLD(f) abuf->fields.sfmt_addi.f
  852. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  853. const IDESC * UNUSED idesc = abuf->idesc;
  854. int cycles = 0;
  855. {
  856. int referenced = 0;
  857. int UNUSED insn_referenced = abuf->written;
  858. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  859. }
  860. return cycles;
  861. #undef FLD
  862. }
  863. static int
  864. model_iq2000_sb (SIM_CPU *current_cpu, void *sem_arg)
  865. {
  866. #define FLD(f) abuf->fields.sfmt_addi.f
  867. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  868. const IDESC * UNUSED idesc = abuf->idesc;
  869. int cycles = 0;
  870. {
  871. int referenced = 0;
  872. int UNUSED insn_referenced = abuf->written;
  873. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  874. }
  875. return cycles;
  876. #undef FLD
  877. }
  878. static int
  879. model_iq2000_sh (SIM_CPU *current_cpu, void *sem_arg)
  880. {
  881. #define FLD(f) abuf->fields.sfmt_addi.f
  882. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  883. const IDESC * UNUSED idesc = abuf->idesc;
  884. int cycles = 0;
  885. {
  886. int referenced = 0;
  887. int UNUSED insn_referenced = abuf->written;
  888. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  889. }
  890. return cycles;
  891. #undef FLD
  892. }
  893. static int
  894. model_iq2000_sw (SIM_CPU *current_cpu, void *sem_arg)
  895. {
  896. #define FLD(f) abuf->fields.sfmt_addi.f
  897. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  898. const IDESC * UNUSED idesc = abuf->idesc;
  899. int cycles = 0;
  900. {
  901. int referenced = 0;
  902. int UNUSED insn_referenced = abuf->written;
  903. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  904. }
  905. return cycles;
  906. #undef FLD
  907. }
  908. static int
  909. model_iq2000_break (SIM_CPU *current_cpu, void *sem_arg)
  910. {
  911. #define FLD(f) abuf->fields.sfmt_empty.f
  912. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  913. const IDESC * UNUSED idesc = abuf->idesc;
  914. int cycles = 0;
  915. {
  916. int referenced = 0;
  917. int UNUSED insn_referenced = abuf->written;
  918. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  919. }
  920. return cycles;
  921. #undef FLD
  922. }
  923. static int
  924. model_iq2000_syscall (SIM_CPU *current_cpu, void *sem_arg)
  925. {
  926. #define FLD(f) abuf->fields.sfmt_empty.f
  927. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  928. const IDESC * UNUSED idesc = abuf->idesc;
  929. int cycles = 0;
  930. {
  931. int referenced = 0;
  932. int UNUSED insn_referenced = abuf->written;
  933. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  934. }
  935. return cycles;
  936. #undef FLD
  937. }
  938. static int
  939. model_iq2000_andoui (SIM_CPU *current_cpu, void *sem_arg)
  940. {
  941. #define FLD(f) abuf->fields.sfmt_addi.f
  942. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  943. const IDESC * UNUSED idesc = abuf->idesc;
  944. int cycles = 0;
  945. {
  946. int referenced = 0;
  947. int UNUSED insn_referenced = abuf->written;
  948. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  949. }
  950. return cycles;
  951. #undef FLD
  952. }
  953. static int
  954. model_iq2000_orui (SIM_CPU *current_cpu, void *sem_arg)
  955. {
  956. #define FLD(f) abuf->fields.sfmt_addi.f
  957. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  958. const IDESC * UNUSED idesc = abuf->idesc;
  959. int cycles = 0;
  960. {
  961. int referenced = 0;
  962. int UNUSED insn_referenced = abuf->written;
  963. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  964. }
  965. return cycles;
  966. #undef FLD
  967. }
  968. static int
  969. model_iq2000_bgtz (SIM_CPU *current_cpu, void *sem_arg)
  970. {
  971. #define FLD(f) abuf->fields.sfmt_bbi.f
  972. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  973. const IDESC * UNUSED idesc = abuf->idesc;
  974. int cycles = 0;
  975. {
  976. int referenced = 0;
  977. int UNUSED insn_referenced = abuf->written;
  978. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  979. }
  980. return cycles;
  981. #undef FLD
  982. }
  983. static int
  984. model_iq2000_bgtzl (SIM_CPU *current_cpu, void *sem_arg)
  985. {
  986. #define FLD(f) abuf->fields.sfmt_bbi.f
  987. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  988. const IDESC * UNUSED idesc = abuf->idesc;
  989. int cycles = 0;
  990. {
  991. int referenced = 0;
  992. int UNUSED insn_referenced = abuf->written;
  993. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  994. }
  995. return cycles;
  996. #undef FLD
  997. }
  998. static int
  999. model_iq2000_blez (SIM_CPU *current_cpu, void *sem_arg)
  1000. {
  1001. #define FLD(f) abuf->fields.sfmt_bbi.f
  1002. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1003. const IDESC * UNUSED idesc = abuf->idesc;
  1004. int cycles = 0;
  1005. {
  1006. int referenced = 0;
  1007. int UNUSED insn_referenced = abuf->written;
  1008. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1009. }
  1010. return cycles;
  1011. #undef FLD
  1012. }
  1013. static int
  1014. model_iq2000_blezl (SIM_CPU *current_cpu, void *sem_arg)
  1015. {
  1016. #define FLD(f) abuf->fields.sfmt_bbi.f
  1017. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1018. const IDESC * UNUSED idesc = abuf->idesc;
  1019. int cycles = 0;
  1020. {
  1021. int referenced = 0;
  1022. int UNUSED insn_referenced = abuf->written;
  1023. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1024. }
  1025. return cycles;
  1026. #undef FLD
  1027. }
  1028. static int
  1029. model_iq2000_mrgb (SIM_CPU *current_cpu, void *sem_arg)
  1030. {
  1031. #define FLD(f) abuf->fields.sfmt_mrgb.f
  1032. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1033. const IDESC * UNUSED idesc = abuf->idesc;
  1034. int cycles = 0;
  1035. {
  1036. int referenced = 0;
  1037. int UNUSED insn_referenced = abuf->written;
  1038. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1039. }
  1040. return cycles;
  1041. #undef FLD
  1042. }
  1043. static int
  1044. model_iq2000_bctxt (SIM_CPU *current_cpu, void *sem_arg)
  1045. {
  1046. #define FLD(f) abuf->fields.sfmt_empty.f
  1047. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1048. const IDESC * UNUSED idesc = abuf->idesc;
  1049. int cycles = 0;
  1050. {
  1051. int referenced = 0;
  1052. int UNUSED insn_referenced = abuf->written;
  1053. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1054. }
  1055. return cycles;
  1056. #undef FLD
  1057. }
  1058. static int
  1059. model_iq2000_bc0f (SIM_CPU *current_cpu, void *sem_arg)
  1060. {
  1061. #define FLD(f) abuf->fields.sfmt_empty.f
  1062. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1063. const IDESC * UNUSED idesc = abuf->idesc;
  1064. int cycles = 0;
  1065. {
  1066. int referenced = 0;
  1067. int UNUSED insn_referenced = abuf->written;
  1068. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1069. }
  1070. return cycles;
  1071. #undef FLD
  1072. }
  1073. static int
  1074. model_iq2000_bc0fl (SIM_CPU *current_cpu, void *sem_arg)
  1075. {
  1076. #define FLD(f) abuf->fields.sfmt_empty.f
  1077. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1078. const IDESC * UNUSED idesc = abuf->idesc;
  1079. int cycles = 0;
  1080. {
  1081. int referenced = 0;
  1082. int UNUSED insn_referenced = abuf->written;
  1083. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1084. }
  1085. return cycles;
  1086. #undef FLD
  1087. }
  1088. static int
  1089. model_iq2000_bc3f (SIM_CPU *current_cpu, void *sem_arg)
  1090. {
  1091. #define FLD(f) abuf->fields.sfmt_empty.f
  1092. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1093. const IDESC * UNUSED idesc = abuf->idesc;
  1094. int cycles = 0;
  1095. {
  1096. int referenced = 0;
  1097. int UNUSED insn_referenced = abuf->written;
  1098. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1099. }
  1100. return cycles;
  1101. #undef FLD
  1102. }
  1103. static int
  1104. model_iq2000_bc3fl (SIM_CPU *current_cpu, void *sem_arg)
  1105. {
  1106. #define FLD(f) abuf->fields.sfmt_empty.f
  1107. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1108. const IDESC * UNUSED idesc = abuf->idesc;
  1109. int cycles = 0;
  1110. {
  1111. int referenced = 0;
  1112. int UNUSED insn_referenced = abuf->written;
  1113. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1114. }
  1115. return cycles;
  1116. #undef FLD
  1117. }
  1118. static int
  1119. model_iq2000_bc0t (SIM_CPU *current_cpu, void *sem_arg)
  1120. {
  1121. #define FLD(f) abuf->fields.sfmt_empty.f
  1122. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1123. const IDESC * UNUSED idesc = abuf->idesc;
  1124. int cycles = 0;
  1125. {
  1126. int referenced = 0;
  1127. int UNUSED insn_referenced = abuf->written;
  1128. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1129. }
  1130. return cycles;
  1131. #undef FLD
  1132. }
  1133. static int
  1134. model_iq2000_bc0tl (SIM_CPU *current_cpu, void *sem_arg)
  1135. {
  1136. #define FLD(f) abuf->fields.sfmt_empty.f
  1137. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1138. const IDESC * UNUSED idesc = abuf->idesc;
  1139. int cycles = 0;
  1140. {
  1141. int referenced = 0;
  1142. int UNUSED insn_referenced = abuf->written;
  1143. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1144. }
  1145. return cycles;
  1146. #undef FLD
  1147. }
  1148. static int
  1149. model_iq2000_bc3t (SIM_CPU *current_cpu, void *sem_arg)
  1150. {
  1151. #define FLD(f) abuf->fields.sfmt_empty.f
  1152. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1153. const IDESC * UNUSED idesc = abuf->idesc;
  1154. int cycles = 0;
  1155. {
  1156. int referenced = 0;
  1157. int UNUSED insn_referenced = abuf->written;
  1158. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1159. }
  1160. return cycles;
  1161. #undef FLD
  1162. }
  1163. static int
  1164. model_iq2000_bc3tl (SIM_CPU *current_cpu, void *sem_arg)
  1165. {
  1166. #define FLD(f) abuf->fields.sfmt_empty.f
  1167. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1168. const IDESC * UNUSED idesc = abuf->idesc;
  1169. int cycles = 0;
  1170. {
  1171. int referenced = 0;
  1172. int UNUSED insn_referenced = abuf->written;
  1173. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1174. }
  1175. return cycles;
  1176. #undef FLD
  1177. }
  1178. static int
  1179. model_iq2000_cfc0 (SIM_CPU *current_cpu, void *sem_arg)
  1180. {
  1181. #define FLD(f) abuf->fields.sfmt_empty.f
  1182. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1183. const IDESC * UNUSED idesc = abuf->idesc;
  1184. int cycles = 0;
  1185. {
  1186. int referenced = 0;
  1187. int UNUSED insn_referenced = abuf->written;
  1188. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1189. }
  1190. return cycles;
  1191. #undef FLD
  1192. }
  1193. static int
  1194. model_iq2000_cfc1 (SIM_CPU *current_cpu, void *sem_arg)
  1195. {
  1196. #define FLD(f) abuf->fields.sfmt_empty.f
  1197. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1198. const IDESC * UNUSED idesc = abuf->idesc;
  1199. int cycles = 0;
  1200. {
  1201. int referenced = 0;
  1202. int UNUSED insn_referenced = abuf->written;
  1203. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1204. }
  1205. return cycles;
  1206. #undef FLD
  1207. }
  1208. static int
  1209. model_iq2000_cfc2 (SIM_CPU *current_cpu, void *sem_arg)
  1210. {
  1211. #define FLD(f) abuf->fields.sfmt_empty.f
  1212. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1213. const IDESC * UNUSED idesc = abuf->idesc;
  1214. int cycles = 0;
  1215. {
  1216. int referenced = 0;
  1217. int UNUSED insn_referenced = abuf->written;
  1218. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1219. }
  1220. return cycles;
  1221. #undef FLD
  1222. }
  1223. static int
  1224. model_iq2000_cfc3 (SIM_CPU *current_cpu, void *sem_arg)
  1225. {
  1226. #define FLD(f) abuf->fields.sfmt_empty.f
  1227. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1228. const IDESC * UNUSED idesc = abuf->idesc;
  1229. int cycles = 0;
  1230. {
  1231. int referenced = 0;
  1232. int UNUSED insn_referenced = abuf->written;
  1233. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1234. }
  1235. return cycles;
  1236. #undef FLD
  1237. }
  1238. static int
  1239. model_iq2000_chkhdr (SIM_CPU *current_cpu, void *sem_arg)
  1240. {
  1241. #define FLD(f) abuf->fields.sfmt_empty.f
  1242. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1243. const IDESC * UNUSED idesc = abuf->idesc;
  1244. int cycles = 0;
  1245. {
  1246. int referenced = 0;
  1247. int UNUSED insn_referenced = abuf->written;
  1248. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1249. }
  1250. return cycles;
  1251. #undef FLD
  1252. }
  1253. static int
  1254. model_iq2000_ctc0 (SIM_CPU *current_cpu, void *sem_arg)
  1255. {
  1256. #define FLD(f) abuf->fields.sfmt_empty.f
  1257. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1258. const IDESC * UNUSED idesc = abuf->idesc;
  1259. int cycles = 0;
  1260. {
  1261. int referenced = 0;
  1262. int UNUSED insn_referenced = abuf->written;
  1263. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1264. }
  1265. return cycles;
  1266. #undef FLD
  1267. }
  1268. static int
  1269. model_iq2000_ctc1 (SIM_CPU *current_cpu, void *sem_arg)
  1270. {
  1271. #define FLD(f) abuf->fields.sfmt_empty.f
  1272. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1273. const IDESC * UNUSED idesc = abuf->idesc;
  1274. int cycles = 0;
  1275. {
  1276. int referenced = 0;
  1277. int UNUSED insn_referenced = abuf->written;
  1278. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1279. }
  1280. return cycles;
  1281. #undef FLD
  1282. }
  1283. static int
  1284. model_iq2000_ctc2 (SIM_CPU *current_cpu, void *sem_arg)
  1285. {
  1286. #define FLD(f) abuf->fields.sfmt_empty.f
  1287. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1288. const IDESC * UNUSED idesc = abuf->idesc;
  1289. int cycles = 0;
  1290. {
  1291. int referenced = 0;
  1292. int UNUSED insn_referenced = abuf->written;
  1293. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1294. }
  1295. return cycles;
  1296. #undef FLD
  1297. }
  1298. static int
  1299. model_iq2000_ctc3 (SIM_CPU *current_cpu, void *sem_arg)
  1300. {
  1301. #define FLD(f) abuf->fields.sfmt_empty.f
  1302. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1303. const IDESC * UNUSED idesc = abuf->idesc;
  1304. int cycles = 0;
  1305. {
  1306. int referenced = 0;
  1307. int UNUSED insn_referenced = abuf->written;
  1308. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1309. }
  1310. return cycles;
  1311. #undef FLD
  1312. }
  1313. static int
  1314. model_iq2000_jcr (SIM_CPU *current_cpu, void *sem_arg)
  1315. {
  1316. #define FLD(f) abuf->fields.sfmt_empty.f
  1317. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1318. const IDESC * UNUSED idesc = abuf->idesc;
  1319. int cycles = 0;
  1320. {
  1321. int referenced = 0;
  1322. int UNUSED insn_referenced = abuf->written;
  1323. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1324. }
  1325. return cycles;
  1326. #undef FLD
  1327. }
  1328. static int
  1329. model_iq2000_luc32 (SIM_CPU *current_cpu, void *sem_arg)
  1330. {
  1331. #define FLD(f) abuf->fields.sfmt_empty.f
  1332. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1333. const IDESC * UNUSED idesc = abuf->idesc;
  1334. int cycles = 0;
  1335. {
  1336. int referenced = 0;
  1337. int UNUSED insn_referenced = abuf->written;
  1338. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1339. }
  1340. return cycles;
  1341. #undef FLD
  1342. }
  1343. static int
  1344. model_iq2000_luc32l (SIM_CPU *current_cpu, void *sem_arg)
  1345. {
  1346. #define FLD(f) abuf->fields.sfmt_empty.f
  1347. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1348. const IDESC * UNUSED idesc = abuf->idesc;
  1349. int cycles = 0;
  1350. {
  1351. int referenced = 0;
  1352. int UNUSED insn_referenced = abuf->written;
  1353. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1354. }
  1355. return cycles;
  1356. #undef FLD
  1357. }
  1358. static int
  1359. model_iq2000_luc64 (SIM_CPU *current_cpu, void *sem_arg)
  1360. {
  1361. #define FLD(f) abuf->fields.sfmt_empty.f
  1362. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1363. const IDESC * UNUSED idesc = abuf->idesc;
  1364. int cycles = 0;
  1365. {
  1366. int referenced = 0;
  1367. int UNUSED insn_referenced = abuf->written;
  1368. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1369. }
  1370. return cycles;
  1371. #undef FLD
  1372. }
  1373. static int
  1374. model_iq2000_luc64l (SIM_CPU *current_cpu, void *sem_arg)
  1375. {
  1376. #define FLD(f) abuf->fields.sfmt_empty.f
  1377. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1378. const IDESC * UNUSED idesc = abuf->idesc;
  1379. int cycles = 0;
  1380. {
  1381. int referenced = 0;
  1382. int UNUSED insn_referenced = abuf->written;
  1383. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1384. }
  1385. return cycles;
  1386. #undef FLD
  1387. }
  1388. static int
  1389. model_iq2000_luk (SIM_CPU *current_cpu, void *sem_arg)
  1390. {
  1391. #define FLD(f) abuf->fields.sfmt_empty.f
  1392. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1393. const IDESC * UNUSED idesc = abuf->idesc;
  1394. int cycles = 0;
  1395. {
  1396. int referenced = 0;
  1397. int UNUSED insn_referenced = abuf->written;
  1398. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1399. }
  1400. return cycles;
  1401. #undef FLD
  1402. }
  1403. static int
  1404. model_iq2000_lulck (SIM_CPU *current_cpu, void *sem_arg)
  1405. {
  1406. #define FLD(f) abuf->fields.sfmt_empty.f
  1407. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1408. const IDESC * UNUSED idesc = abuf->idesc;
  1409. int cycles = 0;
  1410. {
  1411. int referenced = 0;
  1412. int UNUSED insn_referenced = abuf->written;
  1413. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1414. }
  1415. return cycles;
  1416. #undef FLD
  1417. }
  1418. static int
  1419. model_iq2000_lum32 (SIM_CPU *current_cpu, void *sem_arg)
  1420. {
  1421. #define FLD(f) abuf->fields.sfmt_empty.f
  1422. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1423. const IDESC * UNUSED idesc = abuf->idesc;
  1424. int cycles = 0;
  1425. {
  1426. int referenced = 0;
  1427. int UNUSED insn_referenced = abuf->written;
  1428. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1429. }
  1430. return cycles;
  1431. #undef FLD
  1432. }
  1433. static int
  1434. model_iq2000_lum32l (SIM_CPU *current_cpu, void *sem_arg)
  1435. {
  1436. #define FLD(f) abuf->fields.sfmt_empty.f
  1437. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1438. const IDESC * UNUSED idesc = abuf->idesc;
  1439. int cycles = 0;
  1440. {
  1441. int referenced = 0;
  1442. int UNUSED insn_referenced = abuf->written;
  1443. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1444. }
  1445. return cycles;
  1446. #undef FLD
  1447. }
  1448. static int
  1449. model_iq2000_lum64 (SIM_CPU *current_cpu, void *sem_arg)
  1450. {
  1451. #define FLD(f) abuf->fields.sfmt_empty.f
  1452. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1453. const IDESC * UNUSED idesc = abuf->idesc;
  1454. int cycles = 0;
  1455. {
  1456. int referenced = 0;
  1457. int UNUSED insn_referenced = abuf->written;
  1458. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1459. }
  1460. return cycles;
  1461. #undef FLD
  1462. }
  1463. static int
  1464. model_iq2000_lum64l (SIM_CPU *current_cpu, void *sem_arg)
  1465. {
  1466. #define FLD(f) abuf->fields.sfmt_empty.f
  1467. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1468. const IDESC * UNUSED idesc = abuf->idesc;
  1469. int cycles = 0;
  1470. {
  1471. int referenced = 0;
  1472. int UNUSED insn_referenced = abuf->written;
  1473. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1474. }
  1475. return cycles;
  1476. #undef FLD
  1477. }
  1478. static int
  1479. model_iq2000_lur (SIM_CPU *current_cpu, void *sem_arg)
  1480. {
  1481. #define FLD(f) abuf->fields.sfmt_empty.f
  1482. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1483. const IDESC * UNUSED idesc = abuf->idesc;
  1484. int cycles = 0;
  1485. {
  1486. int referenced = 0;
  1487. int UNUSED insn_referenced = abuf->written;
  1488. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1489. }
  1490. return cycles;
  1491. #undef FLD
  1492. }
  1493. static int
  1494. model_iq2000_lurl (SIM_CPU *current_cpu, void *sem_arg)
  1495. {
  1496. #define FLD(f) abuf->fields.sfmt_empty.f
  1497. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1498. const IDESC * UNUSED idesc = abuf->idesc;
  1499. int cycles = 0;
  1500. {
  1501. int referenced = 0;
  1502. int UNUSED insn_referenced = abuf->written;
  1503. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1504. }
  1505. return cycles;
  1506. #undef FLD
  1507. }
  1508. static int
  1509. model_iq2000_luulck (SIM_CPU *current_cpu, void *sem_arg)
  1510. {
  1511. #define FLD(f) abuf->fields.sfmt_empty.f
  1512. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1513. const IDESC * UNUSED idesc = abuf->idesc;
  1514. int cycles = 0;
  1515. {
  1516. int referenced = 0;
  1517. int UNUSED insn_referenced = abuf->written;
  1518. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1519. }
  1520. return cycles;
  1521. #undef FLD
  1522. }
  1523. static int
  1524. model_iq2000_mfc0 (SIM_CPU *current_cpu, void *sem_arg)
  1525. {
  1526. #define FLD(f) abuf->fields.sfmt_empty.f
  1527. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1528. const IDESC * UNUSED idesc = abuf->idesc;
  1529. int cycles = 0;
  1530. {
  1531. int referenced = 0;
  1532. int UNUSED insn_referenced = abuf->written;
  1533. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1534. }
  1535. return cycles;
  1536. #undef FLD
  1537. }
  1538. static int
  1539. model_iq2000_mfc1 (SIM_CPU *current_cpu, void *sem_arg)
  1540. {
  1541. #define FLD(f) abuf->fields.sfmt_empty.f
  1542. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1543. const IDESC * UNUSED idesc = abuf->idesc;
  1544. int cycles = 0;
  1545. {
  1546. int referenced = 0;
  1547. int UNUSED insn_referenced = abuf->written;
  1548. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1549. }
  1550. return cycles;
  1551. #undef FLD
  1552. }
  1553. static int
  1554. model_iq2000_mfc2 (SIM_CPU *current_cpu, void *sem_arg)
  1555. {
  1556. #define FLD(f) abuf->fields.sfmt_empty.f
  1557. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1558. const IDESC * UNUSED idesc = abuf->idesc;
  1559. int cycles = 0;
  1560. {
  1561. int referenced = 0;
  1562. int UNUSED insn_referenced = abuf->written;
  1563. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1564. }
  1565. return cycles;
  1566. #undef FLD
  1567. }
  1568. static int
  1569. model_iq2000_mfc3 (SIM_CPU *current_cpu, void *sem_arg)
  1570. {
  1571. #define FLD(f) abuf->fields.sfmt_empty.f
  1572. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1573. const IDESC * UNUSED idesc = abuf->idesc;
  1574. int cycles = 0;
  1575. {
  1576. int referenced = 0;
  1577. int UNUSED insn_referenced = abuf->written;
  1578. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1579. }
  1580. return cycles;
  1581. #undef FLD
  1582. }
  1583. static int
  1584. model_iq2000_mtc0 (SIM_CPU *current_cpu, void *sem_arg)
  1585. {
  1586. #define FLD(f) abuf->fields.sfmt_empty.f
  1587. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1588. const IDESC * UNUSED idesc = abuf->idesc;
  1589. int cycles = 0;
  1590. {
  1591. int referenced = 0;
  1592. int UNUSED insn_referenced = abuf->written;
  1593. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1594. }
  1595. return cycles;
  1596. #undef FLD
  1597. }
  1598. static int
  1599. model_iq2000_mtc1 (SIM_CPU *current_cpu, void *sem_arg)
  1600. {
  1601. #define FLD(f) abuf->fields.sfmt_empty.f
  1602. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1603. const IDESC * UNUSED idesc = abuf->idesc;
  1604. int cycles = 0;
  1605. {
  1606. int referenced = 0;
  1607. int UNUSED insn_referenced = abuf->written;
  1608. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1609. }
  1610. return cycles;
  1611. #undef FLD
  1612. }
  1613. static int
  1614. model_iq2000_mtc2 (SIM_CPU *current_cpu, void *sem_arg)
  1615. {
  1616. #define FLD(f) abuf->fields.sfmt_empty.f
  1617. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1618. const IDESC * UNUSED idesc = abuf->idesc;
  1619. int cycles = 0;
  1620. {
  1621. int referenced = 0;
  1622. int UNUSED insn_referenced = abuf->written;
  1623. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1624. }
  1625. return cycles;
  1626. #undef FLD
  1627. }
  1628. static int
  1629. model_iq2000_mtc3 (SIM_CPU *current_cpu, void *sem_arg)
  1630. {
  1631. #define FLD(f) abuf->fields.sfmt_empty.f
  1632. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1633. const IDESC * UNUSED idesc = abuf->idesc;
  1634. int cycles = 0;
  1635. {
  1636. int referenced = 0;
  1637. int UNUSED insn_referenced = abuf->written;
  1638. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1639. }
  1640. return cycles;
  1641. #undef FLD
  1642. }
  1643. static int
  1644. model_iq2000_pkrl (SIM_CPU *current_cpu, void *sem_arg)
  1645. {
  1646. #define FLD(f) abuf->fields.sfmt_empty.f
  1647. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1648. const IDESC * UNUSED idesc = abuf->idesc;
  1649. int cycles = 0;
  1650. {
  1651. int referenced = 0;
  1652. int UNUSED insn_referenced = abuf->written;
  1653. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1654. }
  1655. return cycles;
  1656. #undef FLD
  1657. }
  1658. static int
  1659. model_iq2000_pkrlr1 (SIM_CPU *current_cpu, void *sem_arg)
  1660. {
  1661. #define FLD(f) abuf->fields.sfmt_empty.f
  1662. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1663. const IDESC * UNUSED idesc = abuf->idesc;
  1664. int cycles = 0;
  1665. {
  1666. int referenced = 0;
  1667. int UNUSED insn_referenced = abuf->written;
  1668. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1669. }
  1670. return cycles;
  1671. #undef FLD
  1672. }
  1673. static int
  1674. model_iq2000_pkrlr30 (SIM_CPU *current_cpu, void *sem_arg)
  1675. {
  1676. #define FLD(f) abuf->fields.sfmt_empty.f
  1677. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1678. const IDESC * UNUSED idesc = abuf->idesc;
  1679. int cycles = 0;
  1680. {
  1681. int referenced = 0;
  1682. int UNUSED insn_referenced = abuf->written;
  1683. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1684. }
  1685. return cycles;
  1686. #undef FLD
  1687. }
  1688. static int
  1689. model_iq2000_rb (SIM_CPU *current_cpu, void *sem_arg)
  1690. {
  1691. #define FLD(f) abuf->fields.sfmt_empty.f
  1692. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1693. const IDESC * UNUSED idesc = abuf->idesc;
  1694. int cycles = 0;
  1695. {
  1696. int referenced = 0;
  1697. int UNUSED insn_referenced = abuf->written;
  1698. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1699. }
  1700. return cycles;
  1701. #undef FLD
  1702. }
  1703. static int
  1704. model_iq2000_rbr1 (SIM_CPU *current_cpu, void *sem_arg)
  1705. {
  1706. #define FLD(f) abuf->fields.sfmt_empty.f
  1707. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1708. const IDESC * UNUSED idesc = abuf->idesc;
  1709. int cycles = 0;
  1710. {
  1711. int referenced = 0;
  1712. int UNUSED insn_referenced = abuf->written;
  1713. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1714. }
  1715. return cycles;
  1716. #undef FLD
  1717. }
  1718. static int
  1719. model_iq2000_rbr30 (SIM_CPU *current_cpu, void *sem_arg)
  1720. {
  1721. #define FLD(f) abuf->fields.sfmt_empty.f
  1722. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1723. const IDESC * UNUSED idesc = abuf->idesc;
  1724. int cycles = 0;
  1725. {
  1726. int referenced = 0;
  1727. int UNUSED insn_referenced = abuf->written;
  1728. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1729. }
  1730. return cycles;
  1731. #undef FLD
  1732. }
  1733. static int
  1734. model_iq2000_rfe (SIM_CPU *current_cpu, void *sem_arg)
  1735. {
  1736. #define FLD(f) abuf->fields.sfmt_empty.f
  1737. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1738. const IDESC * UNUSED idesc = abuf->idesc;
  1739. int cycles = 0;
  1740. {
  1741. int referenced = 0;
  1742. int UNUSED insn_referenced = abuf->written;
  1743. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1744. }
  1745. return cycles;
  1746. #undef FLD
  1747. }
  1748. static int
  1749. model_iq2000_rx (SIM_CPU *current_cpu, void *sem_arg)
  1750. {
  1751. #define FLD(f) abuf->fields.sfmt_empty.f
  1752. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1753. const IDESC * UNUSED idesc = abuf->idesc;
  1754. int cycles = 0;
  1755. {
  1756. int referenced = 0;
  1757. int UNUSED insn_referenced = abuf->written;
  1758. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1759. }
  1760. return cycles;
  1761. #undef FLD
  1762. }
  1763. static int
  1764. model_iq2000_rxr1 (SIM_CPU *current_cpu, void *sem_arg)
  1765. {
  1766. #define FLD(f) abuf->fields.sfmt_empty.f
  1767. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1768. const IDESC * UNUSED idesc = abuf->idesc;
  1769. int cycles = 0;
  1770. {
  1771. int referenced = 0;
  1772. int UNUSED insn_referenced = abuf->written;
  1773. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1774. }
  1775. return cycles;
  1776. #undef FLD
  1777. }
  1778. static int
  1779. model_iq2000_rxr30 (SIM_CPU *current_cpu, void *sem_arg)
  1780. {
  1781. #define FLD(f) abuf->fields.sfmt_empty.f
  1782. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1783. const IDESC * UNUSED idesc = abuf->idesc;
  1784. int cycles = 0;
  1785. {
  1786. int referenced = 0;
  1787. int UNUSED insn_referenced = abuf->written;
  1788. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1789. }
  1790. return cycles;
  1791. #undef FLD
  1792. }
  1793. static int
  1794. model_iq2000_sleep (SIM_CPU *current_cpu, void *sem_arg)
  1795. {
  1796. #define FLD(f) abuf->fields.sfmt_empty.f
  1797. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1798. const IDESC * UNUSED idesc = abuf->idesc;
  1799. int cycles = 0;
  1800. {
  1801. int referenced = 0;
  1802. int UNUSED insn_referenced = abuf->written;
  1803. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1804. }
  1805. return cycles;
  1806. #undef FLD
  1807. }
  1808. static int
  1809. model_iq2000_srrd (SIM_CPU *current_cpu, void *sem_arg)
  1810. {
  1811. #define FLD(f) abuf->fields.sfmt_empty.f
  1812. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1813. const IDESC * UNUSED idesc = abuf->idesc;
  1814. int cycles = 0;
  1815. {
  1816. int referenced = 0;
  1817. int UNUSED insn_referenced = abuf->written;
  1818. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1819. }
  1820. return cycles;
  1821. #undef FLD
  1822. }
  1823. static int
  1824. model_iq2000_srrdl (SIM_CPU *current_cpu, void *sem_arg)
  1825. {
  1826. #define FLD(f) abuf->fields.sfmt_empty.f
  1827. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1828. const IDESC * UNUSED idesc = abuf->idesc;
  1829. int cycles = 0;
  1830. {
  1831. int referenced = 0;
  1832. int UNUSED insn_referenced = abuf->written;
  1833. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1834. }
  1835. return cycles;
  1836. #undef FLD
  1837. }
  1838. static int
  1839. model_iq2000_srulck (SIM_CPU *current_cpu, void *sem_arg)
  1840. {
  1841. #define FLD(f) abuf->fields.sfmt_empty.f
  1842. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1843. const IDESC * UNUSED idesc = abuf->idesc;
  1844. int cycles = 0;
  1845. {
  1846. int referenced = 0;
  1847. int UNUSED insn_referenced = abuf->written;
  1848. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1849. }
  1850. return cycles;
  1851. #undef FLD
  1852. }
  1853. static int
  1854. model_iq2000_srwr (SIM_CPU *current_cpu, void *sem_arg)
  1855. {
  1856. #define FLD(f) abuf->fields.sfmt_empty.f
  1857. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1858. const IDESC * UNUSED idesc = abuf->idesc;
  1859. int cycles = 0;
  1860. {
  1861. int referenced = 0;
  1862. int UNUSED insn_referenced = abuf->written;
  1863. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1864. }
  1865. return cycles;
  1866. #undef FLD
  1867. }
  1868. static int
  1869. model_iq2000_srwru (SIM_CPU *current_cpu, void *sem_arg)
  1870. {
  1871. #define FLD(f) abuf->fields.sfmt_empty.f
  1872. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1873. const IDESC * UNUSED idesc = abuf->idesc;
  1874. int cycles = 0;
  1875. {
  1876. int referenced = 0;
  1877. int UNUSED insn_referenced = abuf->written;
  1878. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1879. }
  1880. return cycles;
  1881. #undef FLD
  1882. }
  1883. static int
  1884. model_iq2000_trapqfl (SIM_CPU *current_cpu, void *sem_arg)
  1885. {
  1886. #define FLD(f) abuf->fields.sfmt_empty.f
  1887. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1888. const IDESC * UNUSED idesc = abuf->idesc;
  1889. int cycles = 0;
  1890. {
  1891. int referenced = 0;
  1892. int UNUSED insn_referenced = abuf->written;
  1893. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1894. }
  1895. return cycles;
  1896. #undef FLD
  1897. }
  1898. static int
  1899. model_iq2000_trapqne (SIM_CPU *current_cpu, void *sem_arg)
  1900. {
  1901. #define FLD(f) abuf->fields.sfmt_empty.f
  1902. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1903. const IDESC * UNUSED idesc = abuf->idesc;
  1904. int cycles = 0;
  1905. {
  1906. int referenced = 0;
  1907. int UNUSED insn_referenced = abuf->written;
  1908. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1909. }
  1910. return cycles;
  1911. #undef FLD
  1912. }
  1913. static int
  1914. model_iq2000_traprel (SIM_CPU *current_cpu, void *sem_arg)
  1915. {
  1916. #define FLD(f) abuf->fields.sfmt_empty.f
  1917. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1918. const IDESC * UNUSED idesc = abuf->idesc;
  1919. int cycles = 0;
  1920. {
  1921. int referenced = 0;
  1922. int UNUSED insn_referenced = abuf->written;
  1923. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1924. }
  1925. return cycles;
  1926. #undef FLD
  1927. }
  1928. static int
  1929. model_iq2000_wb (SIM_CPU *current_cpu, void *sem_arg)
  1930. {
  1931. #define FLD(f) abuf->fields.sfmt_empty.f
  1932. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1933. const IDESC * UNUSED idesc = abuf->idesc;
  1934. int cycles = 0;
  1935. {
  1936. int referenced = 0;
  1937. int UNUSED insn_referenced = abuf->written;
  1938. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1939. }
  1940. return cycles;
  1941. #undef FLD
  1942. }
  1943. static int
  1944. model_iq2000_wbu (SIM_CPU *current_cpu, void *sem_arg)
  1945. {
  1946. #define FLD(f) abuf->fields.sfmt_empty.f
  1947. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1948. const IDESC * UNUSED idesc = abuf->idesc;
  1949. int cycles = 0;
  1950. {
  1951. int referenced = 0;
  1952. int UNUSED insn_referenced = abuf->written;
  1953. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1954. }
  1955. return cycles;
  1956. #undef FLD
  1957. }
  1958. static int
  1959. model_iq2000_wbr1 (SIM_CPU *current_cpu, void *sem_arg)
  1960. {
  1961. #define FLD(f) abuf->fields.sfmt_empty.f
  1962. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1963. const IDESC * UNUSED idesc = abuf->idesc;
  1964. int cycles = 0;
  1965. {
  1966. int referenced = 0;
  1967. int UNUSED insn_referenced = abuf->written;
  1968. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1969. }
  1970. return cycles;
  1971. #undef FLD
  1972. }
  1973. static int
  1974. model_iq2000_wbr1u (SIM_CPU *current_cpu, void *sem_arg)
  1975. {
  1976. #define FLD(f) abuf->fields.sfmt_empty.f
  1977. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1978. const IDESC * UNUSED idesc = abuf->idesc;
  1979. int cycles = 0;
  1980. {
  1981. int referenced = 0;
  1982. int UNUSED insn_referenced = abuf->written;
  1983. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1984. }
  1985. return cycles;
  1986. #undef FLD
  1987. }
  1988. static int
  1989. model_iq2000_wbr30 (SIM_CPU *current_cpu, void *sem_arg)
  1990. {
  1991. #define FLD(f) abuf->fields.sfmt_empty.f
  1992. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1993. const IDESC * UNUSED idesc = abuf->idesc;
  1994. int cycles = 0;
  1995. {
  1996. int referenced = 0;
  1997. int UNUSED insn_referenced = abuf->written;
  1998. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  1999. }
  2000. return cycles;
  2001. #undef FLD
  2002. }
  2003. static int
  2004. model_iq2000_wbr30u (SIM_CPU *current_cpu, void *sem_arg)
  2005. {
  2006. #define FLD(f) abuf->fields.sfmt_empty.f
  2007. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2008. const IDESC * UNUSED idesc = abuf->idesc;
  2009. int cycles = 0;
  2010. {
  2011. int referenced = 0;
  2012. int UNUSED insn_referenced = abuf->written;
  2013. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  2014. }
  2015. return cycles;
  2016. #undef FLD
  2017. }
  2018. static int
  2019. model_iq2000_wx (SIM_CPU *current_cpu, void *sem_arg)
  2020. {
  2021. #define FLD(f) abuf->fields.sfmt_empty.f
  2022. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2023. const IDESC * UNUSED idesc = abuf->idesc;
  2024. int cycles = 0;
  2025. {
  2026. int referenced = 0;
  2027. int UNUSED insn_referenced = abuf->written;
  2028. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  2029. }
  2030. return cycles;
  2031. #undef FLD
  2032. }
  2033. static int
  2034. model_iq2000_wxu (SIM_CPU *current_cpu, void *sem_arg)
  2035. {
  2036. #define FLD(f) abuf->fields.sfmt_empty.f
  2037. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2038. const IDESC * UNUSED idesc = abuf->idesc;
  2039. int cycles = 0;
  2040. {
  2041. int referenced = 0;
  2042. int UNUSED insn_referenced = abuf->written;
  2043. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  2044. }
  2045. return cycles;
  2046. #undef FLD
  2047. }
  2048. static int
  2049. model_iq2000_wxr1 (SIM_CPU *current_cpu, void *sem_arg)
  2050. {
  2051. #define FLD(f) abuf->fields.sfmt_empty.f
  2052. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2053. const IDESC * UNUSED idesc = abuf->idesc;
  2054. int cycles = 0;
  2055. {
  2056. int referenced = 0;
  2057. int UNUSED insn_referenced = abuf->written;
  2058. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  2059. }
  2060. return cycles;
  2061. #undef FLD
  2062. }
  2063. static int
  2064. model_iq2000_wxr1u (SIM_CPU *current_cpu, void *sem_arg)
  2065. {
  2066. #define FLD(f) abuf->fields.sfmt_empty.f
  2067. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2068. const IDESC * UNUSED idesc = abuf->idesc;
  2069. int cycles = 0;
  2070. {
  2071. int referenced = 0;
  2072. int UNUSED insn_referenced = abuf->written;
  2073. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  2074. }
  2075. return cycles;
  2076. #undef FLD
  2077. }
  2078. static int
  2079. model_iq2000_wxr30 (SIM_CPU *current_cpu, void *sem_arg)
  2080. {
  2081. #define FLD(f) abuf->fields.sfmt_empty.f
  2082. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2083. const IDESC * UNUSED idesc = abuf->idesc;
  2084. int cycles = 0;
  2085. {
  2086. int referenced = 0;
  2087. int UNUSED insn_referenced = abuf->written;
  2088. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  2089. }
  2090. return cycles;
  2091. #undef FLD
  2092. }
  2093. static int
  2094. model_iq2000_wxr30u (SIM_CPU *current_cpu, void *sem_arg)
  2095. {
  2096. #define FLD(f) abuf->fields.sfmt_empty.f
  2097. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2098. const IDESC * UNUSED idesc = abuf->idesc;
  2099. int cycles = 0;
  2100. {
  2101. int referenced = 0;
  2102. int UNUSED insn_referenced = abuf->written;
  2103. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  2104. }
  2105. return cycles;
  2106. #undef FLD
  2107. }
  2108. static int
  2109. model_iq2000_ldw (SIM_CPU *current_cpu, void *sem_arg)
  2110. {
  2111. #define FLD(f) abuf->fields.sfmt_addi.f
  2112. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2113. const IDESC * UNUSED idesc = abuf->idesc;
  2114. int cycles = 0;
  2115. {
  2116. int referenced = 0;
  2117. int UNUSED insn_referenced = abuf->written;
  2118. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  2119. }
  2120. return cycles;
  2121. #undef FLD
  2122. }
  2123. static int
  2124. model_iq2000_sdw (SIM_CPU *current_cpu, void *sem_arg)
  2125. {
  2126. #define FLD(f) abuf->fields.sfmt_addi.f
  2127. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2128. const IDESC * UNUSED idesc = abuf->idesc;
  2129. int cycles = 0;
  2130. {
  2131. int referenced = 0;
  2132. int UNUSED insn_referenced = abuf->written;
  2133. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  2134. }
  2135. return cycles;
  2136. #undef FLD
  2137. }
  2138. static int
  2139. model_iq2000_j (SIM_CPU *current_cpu, void *sem_arg)
  2140. {
  2141. #define FLD(f) abuf->fields.sfmt_j.f
  2142. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2143. const IDESC * UNUSED idesc = abuf->idesc;
  2144. int cycles = 0;
  2145. {
  2146. int referenced = 0;
  2147. int UNUSED insn_referenced = abuf->written;
  2148. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  2149. }
  2150. return cycles;
  2151. #undef FLD
  2152. }
  2153. static int
  2154. model_iq2000_jal (SIM_CPU *current_cpu, void *sem_arg)
  2155. {
  2156. #define FLD(f) abuf->fields.sfmt_j.f
  2157. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2158. const IDESC * UNUSED idesc = abuf->idesc;
  2159. int cycles = 0;
  2160. {
  2161. int referenced = 0;
  2162. int UNUSED insn_referenced = abuf->written;
  2163. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  2164. }
  2165. return cycles;
  2166. #undef FLD
  2167. }
  2168. static int
  2169. model_iq2000_bmb (SIM_CPU *current_cpu, void *sem_arg)
  2170. {
  2171. #define FLD(f) abuf->fields.sfmt_bbi.f
  2172. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2173. const IDESC * UNUSED idesc = abuf->idesc;
  2174. int cycles = 0;
  2175. {
  2176. int referenced = 0;
  2177. int UNUSED insn_referenced = abuf->written;
  2178. cycles += iq2000bf_model_iq2000_u_exec (current_cpu, idesc, 0, referenced);
  2179. }
  2180. return cycles;
  2181. #undef FLD
  2182. }
  2183. /* We assume UNIT_NONE == 0 because the tables don't always terminate
  2184. entries with it. */
  2185. /* Model timing data for `iq2000'. */
  2186. static const INSN_TIMING iq2000_timing[] = {
  2187. { IQ2000BF_INSN_X_INVALID, 0, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2188. { IQ2000BF_INSN_X_AFTER, 0, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2189. { IQ2000BF_INSN_X_BEFORE, 0, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2190. { IQ2000BF_INSN_X_CTI_CHAIN, 0, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2191. { IQ2000BF_INSN_X_CHAIN, 0, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2192. { IQ2000BF_INSN_X_BEGIN, 0, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2193. { IQ2000BF_INSN_ADD, model_iq2000_add, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2194. { IQ2000BF_INSN_ADDI, model_iq2000_addi, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2195. { IQ2000BF_INSN_ADDIU, model_iq2000_addiu, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2196. { IQ2000BF_INSN_ADDU, model_iq2000_addu, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2197. { IQ2000BF_INSN_ADO16, model_iq2000_ado16, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2198. { IQ2000BF_INSN_AND, model_iq2000_and, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2199. { IQ2000BF_INSN_ANDI, model_iq2000_andi, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2200. { IQ2000BF_INSN_ANDOI, model_iq2000_andoi, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2201. { IQ2000BF_INSN_NOR, model_iq2000_nor, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2202. { IQ2000BF_INSN_OR, model_iq2000_or, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2203. { IQ2000BF_INSN_ORI, model_iq2000_ori, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2204. { IQ2000BF_INSN_RAM, model_iq2000_ram, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2205. { IQ2000BF_INSN_SLL, model_iq2000_sll, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2206. { IQ2000BF_INSN_SLLV, model_iq2000_sllv, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2207. { IQ2000BF_INSN_SLMV, model_iq2000_slmv, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2208. { IQ2000BF_INSN_SLT, model_iq2000_slt, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2209. { IQ2000BF_INSN_SLTI, model_iq2000_slti, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2210. { IQ2000BF_INSN_SLTIU, model_iq2000_sltiu, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2211. { IQ2000BF_INSN_SLTU, model_iq2000_sltu, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2212. { IQ2000BF_INSN_SRA, model_iq2000_sra, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2213. { IQ2000BF_INSN_SRAV, model_iq2000_srav, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2214. { IQ2000BF_INSN_SRL, model_iq2000_srl, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2215. { IQ2000BF_INSN_SRLV, model_iq2000_srlv, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2216. { IQ2000BF_INSN_SRMV, model_iq2000_srmv, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2217. { IQ2000BF_INSN_SUB, model_iq2000_sub, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2218. { IQ2000BF_INSN_SUBU, model_iq2000_subu, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2219. { IQ2000BF_INSN_XOR, model_iq2000_xor, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2220. { IQ2000BF_INSN_XORI, model_iq2000_xori, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2221. { IQ2000BF_INSN_BBI, model_iq2000_bbi, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2222. { IQ2000BF_INSN_BBIN, model_iq2000_bbin, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2223. { IQ2000BF_INSN_BBV, model_iq2000_bbv, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2224. { IQ2000BF_INSN_BBVN, model_iq2000_bbvn, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2225. { IQ2000BF_INSN_BEQ, model_iq2000_beq, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2226. { IQ2000BF_INSN_BEQL, model_iq2000_beql, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2227. { IQ2000BF_INSN_BGEZ, model_iq2000_bgez, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2228. { IQ2000BF_INSN_BGEZAL, model_iq2000_bgezal, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2229. { IQ2000BF_INSN_BGEZALL, model_iq2000_bgezall, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2230. { IQ2000BF_INSN_BGEZL, model_iq2000_bgezl, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2231. { IQ2000BF_INSN_BLTZ, model_iq2000_bltz, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2232. { IQ2000BF_INSN_BLTZL, model_iq2000_bltzl, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2233. { IQ2000BF_INSN_BLTZAL, model_iq2000_bltzal, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2234. { IQ2000BF_INSN_BLTZALL, model_iq2000_bltzall, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2235. { IQ2000BF_INSN_BMB0, model_iq2000_bmb0, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2236. { IQ2000BF_INSN_BMB1, model_iq2000_bmb1, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2237. { IQ2000BF_INSN_BMB2, model_iq2000_bmb2, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2238. { IQ2000BF_INSN_BMB3, model_iq2000_bmb3, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2239. { IQ2000BF_INSN_BNE, model_iq2000_bne, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2240. { IQ2000BF_INSN_BNEL, model_iq2000_bnel, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2241. { IQ2000BF_INSN_JALR, model_iq2000_jalr, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2242. { IQ2000BF_INSN_JR, model_iq2000_jr, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2243. { IQ2000BF_INSN_LB, model_iq2000_lb, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2244. { IQ2000BF_INSN_LBU, model_iq2000_lbu, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2245. { IQ2000BF_INSN_LH, model_iq2000_lh, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2246. { IQ2000BF_INSN_LHU, model_iq2000_lhu, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2247. { IQ2000BF_INSN_LUI, model_iq2000_lui, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2248. { IQ2000BF_INSN_LW, model_iq2000_lw, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2249. { IQ2000BF_INSN_SB, model_iq2000_sb, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2250. { IQ2000BF_INSN_SH, model_iq2000_sh, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2251. { IQ2000BF_INSN_SW, model_iq2000_sw, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2252. { IQ2000BF_INSN_BREAK, model_iq2000_break, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2253. { IQ2000BF_INSN_SYSCALL, model_iq2000_syscall, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2254. { IQ2000BF_INSN_ANDOUI, model_iq2000_andoui, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2255. { IQ2000BF_INSN_ORUI, model_iq2000_orui, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2256. { IQ2000BF_INSN_BGTZ, model_iq2000_bgtz, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2257. { IQ2000BF_INSN_BGTZL, model_iq2000_bgtzl, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2258. { IQ2000BF_INSN_BLEZ, model_iq2000_blez, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2259. { IQ2000BF_INSN_BLEZL, model_iq2000_blezl, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2260. { IQ2000BF_INSN_MRGB, model_iq2000_mrgb, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2261. { IQ2000BF_INSN_BCTXT, model_iq2000_bctxt, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2262. { IQ2000BF_INSN_BC0F, model_iq2000_bc0f, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2263. { IQ2000BF_INSN_BC0FL, model_iq2000_bc0fl, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2264. { IQ2000BF_INSN_BC3F, model_iq2000_bc3f, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2265. { IQ2000BF_INSN_BC3FL, model_iq2000_bc3fl, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2266. { IQ2000BF_INSN_BC0T, model_iq2000_bc0t, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2267. { IQ2000BF_INSN_BC0TL, model_iq2000_bc0tl, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2268. { IQ2000BF_INSN_BC3T, model_iq2000_bc3t, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2269. { IQ2000BF_INSN_BC3TL, model_iq2000_bc3tl, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2270. { IQ2000BF_INSN_CFC0, model_iq2000_cfc0, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2271. { IQ2000BF_INSN_CFC1, model_iq2000_cfc1, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2272. { IQ2000BF_INSN_CFC2, model_iq2000_cfc2, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2273. { IQ2000BF_INSN_CFC3, model_iq2000_cfc3, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2274. { IQ2000BF_INSN_CHKHDR, model_iq2000_chkhdr, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2275. { IQ2000BF_INSN_CTC0, model_iq2000_ctc0, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2276. { IQ2000BF_INSN_CTC1, model_iq2000_ctc1, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2277. { IQ2000BF_INSN_CTC2, model_iq2000_ctc2, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2278. { IQ2000BF_INSN_CTC3, model_iq2000_ctc3, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2279. { IQ2000BF_INSN_JCR, model_iq2000_jcr, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2280. { IQ2000BF_INSN_LUC32, model_iq2000_luc32, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2281. { IQ2000BF_INSN_LUC32L, model_iq2000_luc32l, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2282. { IQ2000BF_INSN_LUC64, model_iq2000_luc64, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2283. { IQ2000BF_INSN_LUC64L, model_iq2000_luc64l, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2284. { IQ2000BF_INSN_LUK, model_iq2000_luk, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2285. { IQ2000BF_INSN_LULCK, model_iq2000_lulck, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2286. { IQ2000BF_INSN_LUM32, model_iq2000_lum32, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2287. { IQ2000BF_INSN_LUM32L, model_iq2000_lum32l, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2288. { IQ2000BF_INSN_LUM64, model_iq2000_lum64, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2289. { IQ2000BF_INSN_LUM64L, model_iq2000_lum64l, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2290. { IQ2000BF_INSN_LUR, model_iq2000_lur, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2291. { IQ2000BF_INSN_LURL, model_iq2000_lurl, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2292. { IQ2000BF_INSN_LUULCK, model_iq2000_luulck, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2293. { IQ2000BF_INSN_MFC0, model_iq2000_mfc0, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2294. { IQ2000BF_INSN_MFC1, model_iq2000_mfc1, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2295. { IQ2000BF_INSN_MFC2, model_iq2000_mfc2, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2296. { IQ2000BF_INSN_MFC3, model_iq2000_mfc3, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2297. { IQ2000BF_INSN_MTC0, model_iq2000_mtc0, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2298. { IQ2000BF_INSN_MTC1, model_iq2000_mtc1, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2299. { IQ2000BF_INSN_MTC2, model_iq2000_mtc2, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2300. { IQ2000BF_INSN_MTC3, model_iq2000_mtc3, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2301. { IQ2000BF_INSN_PKRL, model_iq2000_pkrl, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2302. { IQ2000BF_INSN_PKRLR1, model_iq2000_pkrlr1, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2303. { IQ2000BF_INSN_PKRLR30, model_iq2000_pkrlr30, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2304. { IQ2000BF_INSN_RB, model_iq2000_rb, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2305. { IQ2000BF_INSN_RBR1, model_iq2000_rbr1, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2306. { IQ2000BF_INSN_RBR30, model_iq2000_rbr30, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2307. { IQ2000BF_INSN_RFE, model_iq2000_rfe, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2308. { IQ2000BF_INSN_RX, model_iq2000_rx, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2309. { IQ2000BF_INSN_RXR1, model_iq2000_rxr1, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2310. { IQ2000BF_INSN_RXR30, model_iq2000_rxr30, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2311. { IQ2000BF_INSN_SLEEP, model_iq2000_sleep, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2312. { IQ2000BF_INSN_SRRD, model_iq2000_srrd, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2313. { IQ2000BF_INSN_SRRDL, model_iq2000_srrdl, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2314. { IQ2000BF_INSN_SRULCK, model_iq2000_srulck, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2315. { IQ2000BF_INSN_SRWR, model_iq2000_srwr, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2316. { IQ2000BF_INSN_SRWRU, model_iq2000_srwru, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2317. { IQ2000BF_INSN_TRAPQFL, model_iq2000_trapqfl, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2318. { IQ2000BF_INSN_TRAPQNE, model_iq2000_trapqne, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2319. { IQ2000BF_INSN_TRAPREL, model_iq2000_traprel, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2320. { IQ2000BF_INSN_WB, model_iq2000_wb, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2321. { IQ2000BF_INSN_WBU, model_iq2000_wbu, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2322. { IQ2000BF_INSN_WBR1, model_iq2000_wbr1, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2323. { IQ2000BF_INSN_WBR1U, model_iq2000_wbr1u, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2324. { IQ2000BF_INSN_WBR30, model_iq2000_wbr30, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2325. { IQ2000BF_INSN_WBR30U, model_iq2000_wbr30u, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2326. { IQ2000BF_INSN_WX, model_iq2000_wx, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2327. { IQ2000BF_INSN_WXU, model_iq2000_wxu, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2328. { IQ2000BF_INSN_WXR1, model_iq2000_wxr1, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2329. { IQ2000BF_INSN_WXR1U, model_iq2000_wxr1u, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2330. { IQ2000BF_INSN_WXR30, model_iq2000_wxr30, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2331. { IQ2000BF_INSN_WXR30U, model_iq2000_wxr30u, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2332. { IQ2000BF_INSN_LDW, model_iq2000_ldw, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2333. { IQ2000BF_INSN_SDW, model_iq2000_sdw, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2334. { IQ2000BF_INSN_J, model_iq2000_j, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2335. { IQ2000BF_INSN_JAL, model_iq2000_jal, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2336. { IQ2000BF_INSN_BMB, model_iq2000_bmb, { { (int) UNIT_IQ2000_U_EXEC, 1, 1 } } },
  2337. };
  2338. #endif /* WITH_PROFILE_MODEL_P */
  2339. static void
  2340. iq2000_model_init (SIM_CPU *cpu)
  2341. {
  2342. CPU_MODEL_DATA (cpu) = (void *) zalloc (sizeof (MODEL_IQ2000_DATA));
  2343. }
  2344. #if WITH_PROFILE_MODEL_P
  2345. #define TIMING_DATA(td) td
  2346. #else
  2347. #define TIMING_DATA(td) 0
  2348. #endif
  2349. static const MODEL iq2000_models[] =
  2350. {
  2351. { "iq2000", & iq2000_mach, MODEL_IQ2000, TIMING_DATA (& iq2000_timing[0]), iq2000_model_init },
  2352. { 0 }
  2353. };
  2354. /* The properties of this cpu's implementation. */
  2355. static const MACH_IMP_PROPERTIES iq2000bf_imp_properties =
  2356. {
  2357. sizeof (SIM_CPU),
  2358. #if WITH_SCACHE
  2359. sizeof (SCACHE)
  2360. #else
  2361. 0
  2362. #endif
  2363. };
  2364. static void
  2365. iq2000bf_prepare_run (SIM_CPU *cpu)
  2366. {
  2367. if (CPU_IDESC (cpu) == NULL)
  2368. iq2000bf_init_idesc_table (cpu);
  2369. }
  2370. static const CGEN_INSN *
  2371. iq2000bf_get_idata (SIM_CPU *cpu, int inum)
  2372. {
  2373. return CPU_IDESC (cpu) [inum].idata;
  2374. }
  2375. static void
  2376. iq2000_init_cpu (SIM_CPU *cpu)
  2377. {
  2378. CPU_REG_FETCH (cpu) = iq2000bf_fetch_register;
  2379. CPU_REG_STORE (cpu) = iq2000bf_store_register;
  2380. CPU_PC_FETCH (cpu) = iq2000bf_h_pc_get;
  2381. CPU_PC_STORE (cpu) = iq2000bf_h_pc_set;
  2382. CPU_GET_IDATA (cpu) = iq2000bf_get_idata;
  2383. CPU_MAX_INSNS (cpu) = IQ2000BF_INSN__MAX;
  2384. CPU_INSN_NAME (cpu) = cgen_insn_name;
  2385. CPU_FULL_ENGINE_FN (cpu) = iq2000bf_engine_run_full;
  2386. #if WITH_FAST
  2387. CPU_FAST_ENGINE_FN (cpu) = iq2000bf_engine_run_fast;
  2388. #else
  2389. CPU_FAST_ENGINE_FN (cpu) = iq2000bf_engine_run_full;
  2390. #endif
  2391. }
  2392. const MACH iq2000_mach =
  2393. {
  2394. "iq2000", "iq2000", MACH_IQ2000,
  2395. 32, 32, & iq2000_models[0], & iq2000bf_imp_properties,
  2396. iq2000_init_cpu,
  2397. iq2000bf_prepare_run
  2398. };