model.c 150 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965
  1. /* Simulator model support for or1k32bf.
  2. THIS FILE IS MACHINE GENERATED WITH CGEN.
  3. Copyright (C) 1996-2022 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, write to the Free Software Foundation, Inc.,
  15. 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
  16. */
  17. #define WANT_CPU or1k32bf
  18. #define WANT_CPU_OR1K32BF
  19. #include "sim-main.h"
  20. /* The profiling data is recorded here, but is accessed via the profiling
  21. mechanism. After all, this is information for profiling. */
  22. #if WITH_PROFILE_MODEL_P
  23. /* Model handlers for each insn. */
  24. static int
  25. model_or1200_l_j (SIM_CPU *current_cpu, void *sem_arg)
  26. {
  27. #define FLD(f) abuf->fields.sfmt_l_j.f
  28. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  29. const IDESC * UNUSED idesc = abuf->idesc;
  30. int cycles = 0;
  31. {
  32. int referenced = 0;
  33. int UNUSED insn_referenced = abuf->written;
  34. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  35. }
  36. return cycles;
  37. #undef FLD
  38. }
  39. static int
  40. model_or1200_l_adrp (SIM_CPU *current_cpu, void *sem_arg)
  41. {
  42. #define FLD(f) abuf->fields.sfmt_l_adrp.f
  43. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  44. const IDESC * UNUSED idesc = abuf->idesc;
  45. int cycles = 0;
  46. {
  47. int referenced = 0;
  48. int UNUSED insn_referenced = abuf->written;
  49. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  50. }
  51. return cycles;
  52. #undef FLD
  53. }
  54. static int
  55. model_or1200_l_jal (SIM_CPU *current_cpu, void *sem_arg)
  56. {
  57. #define FLD(f) abuf->fields.sfmt_l_j.f
  58. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  59. const IDESC * UNUSED idesc = abuf->idesc;
  60. int cycles = 0;
  61. {
  62. int referenced = 0;
  63. int UNUSED insn_referenced = abuf->written;
  64. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  65. }
  66. return cycles;
  67. #undef FLD
  68. }
  69. static int
  70. model_or1200_l_jr (SIM_CPU *current_cpu, void *sem_arg)
  71. {
  72. #define FLD(f) abuf->fields.sfmt_l_sll.f
  73. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  74. const IDESC * UNUSED idesc = abuf->idesc;
  75. int cycles = 0;
  76. {
  77. int referenced = 0;
  78. int UNUSED insn_referenced = abuf->written;
  79. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  80. }
  81. return cycles;
  82. #undef FLD
  83. }
  84. static int
  85. model_or1200_l_jalr (SIM_CPU *current_cpu, void *sem_arg)
  86. {
  87. #define FLD(f) abuf->fields.sfmt_l_sll.f
  88. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  89. const IDESC * UNUSED idesc = abuf->idesc;
  90. int cycles = 0;
  91. {
  92. int referenced = 0;
  93. int UNUSED insn_referenced = abuf->written;
  94. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  95. }
  96. return cycles;
  97. #undef FLD
  98. }
  99. static int
  100. model_or1200_l_bnf (SIM_CPU *current_cpu, void *sem_arg)
  101. {
  102. #define FLD(f) abuf->fields.sfmt_l_j.f
  103. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  104. const IDESC * UNUSED idesc = abuf->idesc;
  105. int cycles = 0;
  106. {
  107. int referenced = 0;
  108. int UNUSED insn_referenced = abuf->written;
  109. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  110. }
  111. return cycles;
  112. #undef FLD
  113. }
  114. static int
  115. model_or1200_l_bf (SIM_CPU *current_cpu, void *sem_arg)
  116. {
  117. #define FLD(f) abuf->fields.sfmt_l_j.f
  118. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  119. const IDESC * UNUSED idesc = abuf->idesc;
  120. int cycles = 0;
  121. {
  122. int referenced = 0;
  123. int UNUSED insn_referenced = abuf->written;
  124. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  125. }
  126. return cycles;
  127. #undef FLD
  128. }
  129. static int
  130. model_or1200_l_trap (SIM_CPU *current_cpu, void *sem_arg)
  131. {
  132. #define FLD(f) abuf->fields.sfmt_empty.f
  133. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  134. const IDESC * UNUSED idesc = abuf->idesc;
  135. int cycles = 0;
  136. {
  137. int referenced = 0;
  138. int UNUSED insn_referenced = abuf->written;
  139. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  140. }
  141. return cycles;
  142. #undef FLD
  143. }
  144. static int
  145. model_or1200_l_sys (SIM_CPU *current_cpu, void *sem_arg)
  146. {
  147. #define FLD(f) abuf->fields.sfmt_empty.f
  148. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  149. const IDESC * UNUSED idesc = abuf->idesc;
  150. int cycles = 0;
  151. {
  152. int referenced = 0;
  153. int UNUSED insn_referenced = abuf->written;
  154. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  155. }
  156. return cycles;
  157. #undef FLD
  158. }
  159. static int
  160. model_or1200_l_msync (SIM_CPU *current_cpu, void *sem_arg)
  161. {
  162. #define FLD(f) abuf->fields.sfmt_empty.f
  163. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  164. const IDESC * UNUSED idesc = abuf->idesc;
  165. int cycles = 0;
  166. {
  167. int referenced = 0;
  168. int UNUSED insn_referenced = abuf->written;
  169. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  170. }
  171. return cycles;
  172. #undef FLD
  173. }
  174. static int
  175. model_or1200_l_psync (SIM_CPU *current_cpu, void *sem_arg)
  176. {
  177. #define FLD(f) abuf->fields.sfmt_empty.f
  178. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  179. const IDESC * UNUSED idesc = abuf->idesc;
  180. int cycles = 0;
  181. {
  182. int referenced = 0;
  183. int UNUSED insn_referenced = abuf->written;
  184. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  185. }
  186. return cycles;
  187. #undef FLD
  188. }
  189. static int
  190. model_or1200_l_csync (SIM_CPU *current_cpu, void *sem_arg)
  191. {
  192. #define FLD(f) abuf->fields.sfmt_empty.f
  193. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  194. const IDESC * UNUSED idesc = abuf->idesc;
  195. int cycles = 0;
  196. {
  197. int referenced = 0;
  198. int UNUSED insn_referenced = abuf->written;
  199. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  200. }
  201. return cycles;
  202. #undef FLD
  203. }
  204. static int
  205. model_or1200_l_rfe (SIM_CPU *current_cpu, void *sem_arg)
  206. {
  207. #define FLD(f) abuf->fields.sfmt_empty.f
  208. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  209. const IDESC * UNUSED idesc = abuf->idesc;
  210. int cycles = 0;
  211. {
  212. int referenced = 0;
  213. int UNUSED insn_referenced = abuf->written;
  214. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  215. }
  216. return cycles;
  217. #undef FLD
  218. }
  219. static int
  220. model_or1200_l_nop_imm (SIM_CPU *current_cpu, void *sem_arg)
  221. {
  222. #define FLD(f) abuf->fields.sfmt_l_mfspr.f
  223. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  224. const IDESC * UNUSED idesc = abuf->idesc;
  225. int cycles = 0;
  226. {
  227. int referenced = 0;
  228. int UNUSED insn_referenced = abuf->written;
  229. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  230. }
  231. return cycles;
  232. #undef FLD
  233. }
  234. static int
  235. model_or1200_l_movhi (SIM_CPU *current_cpu, void *sem_arg)
  236. {
  237. #define FLD(f) abuf->fields.sfmt_l_mfspr.f
  238. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  239. const IDESC * UNUSED idesc = abuf->idesc;
  240. int cycles = 0;
  241. {
  242. int referenced = 0;
  243. int UNUSED insn_referenced = abuf->written;
  244. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  245. }
  246. return cycles;
  247. #undef FLD
  248. }
  249. static int
  250. model_or1200_l_macrc (SIM_CPU *current_cpu, void *sem_arg)
  251. {
  252. #define FLD(f) abuf->fields.sfmt_l_adrp.f
  253. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  254. const IDESC * UNUSED idesc = abuf->idesc;
  255. int cycles = 0;
  256. {
  257. int referenced = 0;
  258. int UNUSED insn_referenced = abuf->written;
  259. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  260. }
  261. return cycles;
  262. #undef FLD
  263. }
  264. static int
  265. model_or1200_l_mfspr (SIM_CPU *current_cpu, void *sem_arg)
  266. {
  267. #define FLD(f) abuf->fields.sfmt_l_mfspr.f
  268. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  269. const IDESC * UNUSED idesc = abuf->idesc;
  270. int cycles = 0;
  271. {
  272. int referenced = 0;
  273. int UNUSED insn_referenced = abuf->written;
  274. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  275. }
  276. return cycles;
  277. #undef FLD
  278. }
  279. static int
  280. model_or1200_l_mtspr (SIM_CPU *current_cpu, void *sem_arg)
  281. {
  282. #define FLD(f) abuf->fields.sfmt_l_mtspr.f
  283. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  284. const IDESC * UNUSED idesc = abuf->idesc;
  285. int cycles = 0;
  286. {
  287. int referenced = 0;
  288. int UNUSED insn_referenced = abuf->written;
  289. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  290. }
  291. return cycles;
  292. #undef FLD
  293. }
  294. static int
  295. model_or1200_l_lwz (SIM_CPU *current_cpu, void *sem_arg)
  296. {
  297. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  298. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  299. const IDESC * UNUSED idesc = abuf->idesc;
  300. int cycles = 0;
  301. {
  302. int referenced = 0;
  303. int UNUSED insn_referenced = abuf->written;
  304. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  305. }
  306. return cycles;
  307. #undef FLD
  308. }
  309. static int
  310. model_or1200_l_lws (SIM_CPU *current_cpu, void *sem_arg)
  311. {
  312. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  313. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  314. const IDESC * UNUSED idesc = abuf->idesc;
  315. int cycles = 0;
  316. {
  317. int referenced = 0;
  318. int UNUSED insn_referenced = abuf->written;
  319. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  320. }
  321. return cycles;
  322. #undef FLD
  323. }
  324. static int
  325. model_or1200_l_lwa (SIM_CPU *current_cpu, void *sem_arg)
  326. {
  327. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  328. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  329. const IDESC * UNUSED idesc = abuf->idesc;
  330. int cycles = 0;
  331. {
  332. int referenced = 0;
  333. int UNUSED insn_referenced = abuf->written;
  334. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  335. }
  336. return cycles;
  337. #undef FLD
  338. }
  339. static int
  340. model_or1200_l_lbz (SIM_CPU *current_cpu, void *sem_arg)
  341. {
  342. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  343. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  344. const IDESC * UNUSED idesc = abuf->idesc;
  345. int cycles = 0;
  346. {
  347. int referenced = 0;
  348. int UNUSED insn_referenced = abuf->written;
  349. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  350. }
  351. return cycles;
  352. #undef FLD
  353. }
  354. static int
  355. model_or1200_l_lbs (SIM_CPU *current_cpu, void *sem_arg)
  356. {
  357. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  358. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  359. const IDESC * UNUSED idesc = abuf->idesc;
  360. int cycles = 0;
  361. {
  362. int referenced = 0;
  363. int UNUSED insn_referenced = abuf->written;
  364. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  365. }
  366. return cycles;
  367. #undef FLD
  368. }
  369. static int
  370. model_or1200_l_lhz (SIM_CPU *current_cpu, void *sem_arg)
  371. {
  372. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  373. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  374. const IDESC * UNUSED idesc = abuf->idesc;
  375. int cycles = 0;
  376. {
  377. int referenced = 0;
  378. int UNUSED insn_referenced = abuf->written;
  379. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  380. }
  381. return cycles;
  382. #undef FLD
  383. }
  384. static int
  385. model_or1200_l_lhs (SIM_CPU *current_cpu, void *sem_arg)
  386. {
  387. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  388. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  389. const IDESC * UNUSED idesc = abuf->idesc;
  390. int cycles = 0;
  391. {
  392. int referenced = 0;
  393. int UNUSED insn_referenced = abuf->written;
  394. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  395. }
  396. return cycles;
  397. #undef FLD
  398. }
  399. static int
  400. model_or1200_l_sw (SIM_CPU *current_cpu, void *sem_arg)
  401. {
  402. #define FLD(f) abuf->fields.sfmt_l_sw.f
  403. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  404. const IDESC * UNUSED idesc = abuf->idesc;
  405. int cycles = 0;
  406. {
  407. int referenced = 0;
  408. int UNUSED insn_referenced = abuf->written;
  409. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  410. }
  411. return cycles;
  412. #undef FLD
  413. }
  414. static int
  415. model_or1200_l_sb (SIM_CPU *current_cpu, void *sem_arg)
  416. {
  417. #define FLD(f) abuf->fields.sfmt_l_sw.f
  418. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  419. const IDESC * UNUSED idesc = abuf->idesc;
  420. int cycles = 0;
  421. {
  422. int referenced = 0;
  423. int UNUSED insn_referenced = abuf->written;
  424. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  425. }
  426. return cycles;
  427. #undef FLD
  428. }
  429. static int
  430. model_or1200_l_sh (SIM_CPU *current_cpu, void *sem_arg)
  431. {
  432. #define FLD(f) abuf->fields.sfmt_l_sw.f
  433. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  434. const IDESC * UNUSED idesc = abuf->idesc;
  435. int cycles = 0;
  436. {
  437. int referenced = 0;
  438. int UNUSED insn_referenced = abuf->written;
  439. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  440. }
  441. return cycles;
  442. #undef FLD
  443. }
  444. static int
  445. model_or1200_l_swa (SIM_CPU *current_cpu, void *sem_arg)
  446. {
  447. #define FLD(f) abuf->fields.sfmt_l_sw.f
  448. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  449. const IDESC * UNUSED idesc = abuf->idesc;
  450. int cycles = 0;
  451. {
  452. int referenced = 0;
  453. int UNUSED insn_referenced = abuf->written;
  454. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  455. }
  456. return cycles;
  457. #undef FLD
  458. }
  459. static int
  460. model_or1200_l_sll (SIM_CPU *current_cpu, void *sem_arg)
  461. {
  462. #define FLD(f) abuf->fields.sfmt_l_sll.f
  463. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  464. const IDESC * UNUSED idesc = abuf->idesc;
  465. int cycles = 0;
  466. {
  467. int referenced = 0;
  468. int UNUSED insn_referenced = abuf->written;
  469. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  470. }
  471. return cycles;
  472. #undef FLD
  473. }
  474. static int
  475. model_or1200_l_slli (SIM_CPU *current_cpu, void *sem_arg)
  476. {
  477. #define FLD(f) abuf->fields.sfmt_l_slli.f
  478. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  479. const IDESC * UNUSED idesc = abuf->idesc;
  480. int cycles = 0;
  481. {
  482. int referenced = 0;
  483. int UNUSED insn_referenced = abuf->written;
  484. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  485. }
  486. return cycles;
  487. #undef FLD
  488. }
  489. static int
  490. model_or1200_l_srl (SIM_CPU *current_cpu, void *sem_arg)
  491. {
  492. #define FLD(f) abuf->fields.sfmt_l_sll.f
  493. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  494. const IDESC * UNUSED idesc = abuf->idesc;
  495. int cycles = 0;
  496. {
  497. int referenced = 0;
  498. int UNUSED insn_referenced = abuf->written;
  499. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  500. }
  501. return cycles;
  502. #undef FLD
  503. }
  504. static int
  505. model_or1200_l_srli (SIM_CPU *current_cpu, void *sem_arg)
  506. {
  507. #define FLD(f) abuf->fields.sfmt_l_slli.f
  508. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  509. const IDESC * UNUSED idesc = abuf->idesc;
  510. int cycles = 0;
  511. {
  512. int referenced = 0;
  513. int UNUSED insn_referenced = abuf->written;
  514. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  515. }
  516. return cycles;
  517. #undef FLD
  518. }
  519. static int
  520. model_or1200_l_sra (SIM_CPU *current_cpu, void *sem_arg)
  521. {
  522. #define FLD(f) abuf->fields.sfmt_l_sll.f
  523. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  524. const IDESC * UNUSED idesc = abuf->idesc;
  525. int cycles = 0;
  526. {
  527. int referenced = 0;
  528. int UNUSED insn_referenced = abuf->written;
  529. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  530. }
  531. return cycles;
  532. #undef FLD
  533. }
  534. static int
  535. model_or1200_l_srai (SIM_CPU *current_cpu, void *sem_arg)
  536. {
  537. #define FLD(f) abuf->fields.sfmt_l_slli.f
  538. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  539. const IDESC * UNUSED idesc = abuf->idesc;
  540. int cycles = 0;
  541. {
  542. int referenced = 0;
  543. int UNUSED insn_referenced = abuf->written;
  544. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  545. }
  546. return cycles;
  547. #undef FLD
  548. }
  549. static int
  550. model_or1200_l_ror (SIM_CPU *current_cpu, void *sem_arg)
  551. {
  552. #define FLD(f) abuf->fields.sfmt_l_sll.f
  553. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  554. const IDESC * UNUSED idesc = abuf->idesc;
  555. int cycles = 0;
  556. {
  557. int referenced = 0;
  558. int UNUSED insn_referenced = abuf->written;
  559. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  560. }
  561. return cycles;
  562. #undef FLD
  563. }
  564. static int
  565. model_or1200_l_rori (SIM_CPU *current_cpu, void *sem_arg)
  566. {
  567. #define FLD(f) abuf->fields.sfmt_l_slli.f
  568. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  569. const IDESC * UNUSED idesc = abuf->idesc;
  570. int cycles = 0;
  571. {
  572. int referenced = 0;
  573. int UNUSED insn_referenced = abuf->written;
  574. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  575. }
  576. return cycles;
  577. #undef FLD
  578. }
  579. static int
  580. model_or1200_l_and (SIM_CPU *current_cpu, void *sem_arg)
  581. {
  582. #define FLD(f) abuf->fields.sfmt_l_sll.f
  583. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  584. const IDESC * UNUSED idesc = abuf->idesc;
  585. int cycles = 0;
  586. {
  587. int referenced = 0;
  588. int UNUSED insn_referenced = abuf->written;
  589. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  590. }
  591. return cycles;
  592. #undef FLD
  593. }
  594. static int
  595. model_or1200_l_or (SIM_CPU *current_cpu, void *sem_arg)
  596. {
  597. #define FLD(f) abuf->fields.sfmt_l_sll.f
  598. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  599. const IDESC * UNUSED idesc = abuf->idesc;
  600. int cycles = 0;
  601. {
  602. int referenced = 0;
  603. int UNUSED insn_referenced = abuf->written;
  604. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  605. }
  606. return cycles;
  607. #undef FLD
  608. }
  609. static int
  610. model_or1200_l_xor (SIM_CPU *current_cpu, void *sem_arg)
  611. {
  612. #define FLD(f) abuf->fields.sfmt_l_sll.f
  613. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  614. const IDESC * UNUSED idesc = abuf->idesc;
  615. int cycles = 0;
  616. {
  617. int referenced = 0;
  618. int UNUSED insn_referenced = abuf->written;
  619. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  620. }
  621. return cycles;
  622. #undef FLD
  623. }
  624. static int
  625. model_or1200_l_add (SIM_CPU *current_cpu, void *sem_arg)
  626. {
  627. #define FLD(f) abuf->fields.sfmt_l_sll.f
  628. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  629. const IDESC * UNUSED idesc = abuf->idesc;
  630. int cycles = 0;
  631. {
  632. int referenced = 0;
  633. int UNUSED insn_referenced = abuf->written;
  634. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  635. }
  636. return cycles;
  637. #undef FLD
  638. }
  639. static int
  640. model_or1200_l_sub (SIM_CPU *current_cpu, void *sem_arg)
  641. {
  642. #define FLD(f) abuf->fields.sfmt_l_sll.f
  643. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  644. const IDESC * UNUSED idesc = abuf->idesc;
  645. int cycles = 0;
  646. {
  647. int referenced = 0;
  648. int UNUSED insn_referenced = abuf->written;
  649. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  650. }
  651. return cycles;
  652. #undef FLD
  653. }
  654. static int
  655. model_or1200_l_addc (SIM_CPU *current_cpu, void *sem_arg)
  656. {
  657. #define FLD(f) abuf->fields.sfmt_l_sll.f
  658. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  659. const IDESC * UNUSED idesc = abuf->idesc;
  660. int cycles = 0;
  661. {
  662. int referenced = 0;
  663. int UNUSED insn_referenced = abuf->written;
  664. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  665. }
  666. return cycles;
  667. #undef FLD
  668. }
  669. static int
  670. model_or1200_l_mul (SIM_CPU *current_cpu, void *sem_arg)
  671. {
  672. #define FLD(f) abuf->fields.sfmt_l_sll.f
  673. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  674. const IDESC * UNUSED idesc = abuf->idesc;
  675. int cycles = 0;
  676. {
  677. int referenced = 0;
  678. int UNUSED insn_referenced = abuf->written;
  679. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  680. }
  681. return cycles;
  682. #undef FLD
  683. }
  684. static int
  685. model_or1200_l_muld (SIM_CPU *current_cpu, void *sem_arg)
  686. {
  687. #define FLD(f) abuf->fields.sfmt_l_sll.f
  688. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  689. const IDESC * UNUSED idesc = abuf->idesc;
  690. int cycles = 0;
  691. {
  692. int referenced = 0;
  693. int UNUSED insn_referenced = abuf->written;
  694. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  695. }
  696. return cycles;
  697. #undef FLD
  698. }
  699. static int
  700. model_or1200_l_mulu (SIM_CPU *current_cpu, void *sem_arg)
  701. {
  702. #define FLD(f) abuf->fields.sfmt_l_sll.f
  703. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  704. const IDESC * UNUSED idesc = abuf->idesc;
  705. int cycles = 0;
  706. {
  707. int referenced = 0;
  708. int UNUSED insn_referenced = abuf->written;
  709. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  710. }
  711. return cycles;
  712. #undef FLD
  713. }
  714. static int
  715. model_or1200_l_muldu (SIM_CPU *current_cpu, void *sem_arg)
  716. {
  717. #define FLD(f) abuf->fields.sfmt_l_sll.f
  718. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  719. const IDESC * UNUSED idesc = abuf->idesc;
  720. int cycles = 0;
  721. {
  722. int referenced = 0;
  723. int UNUSED insn_referenced = abuf->written;
  724. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  725. }
  726. return cycles;
  727. #undef FLD
  728. }
  729. static int
  730. model_or1200_l_div (SIM_CPU *current_cpu, void *sem_arg)
  731. {
  732. #define FLD(f) abuf->fields.sfmt_l_sll.f
  733. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  734. const IDESC * UNUSED idesc = abuf->idesc;
  735. int cycles = 0;
  736. {
  737. int referenced = 0;
  738. int UNUSED insn_referenced = abuf->written;
  739. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  740. }
  741. return cycles;
  742. #undef FLD
  743. }
  744. static int
  745. model_or1200_l_divu (SIM_CPU *current_cpu, void *sem_arg)
  746. {
  747. #define FLD(f) abuf->fields.sfmt_l_sll.f
  748. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  749. const IDESC * UNUSED idesc = abuf->idesc;
  750. int cycles = 0;
  751. {
  752. int referenced = 0;
  753. int UNUSED insn_referenced = abuf->written;
  754. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  755. }
  756. return cycles;
  757. #undef FLD
  758. }
  759. static int
  760. model_or1200_l_ff1 (SIM_CPU *current_cpu, void *sem_arg)
  761. {
  762. #define FLD(f) abuf->fields.sfmt_l_slli.f
  763. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  764. const IDESC * UNUSED idesc = abuf->idesc;
  765. int cycles = 0;
  766. {
  767. int referenced = 0;
  768. int UNUSED insn_referenced = abuf->written;
  769. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  770. }
  771. return cycles;
  772. #undef FLD
  773. }
  774. static int
  775. model_or1200_l_fl1 (SIM_CPU *current_cpu, void *sem_arg)
  776. {
  777. #define FLD(f) abuf->fields.sfmt_l_slli.f
  778. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  779. const IDESC * UNUSED idesc = abuf->idesc;
  780. int cycles = 0;
  781. {
  782. int referenced = 0;
  783. int UNUSED insn_referenced = abuf->written;
  784. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  785. }
  786. return cycles;
  787. #undef FLD
  788. }
  789. static int
  790. model_or1200_l_andi (SIM_CPU *current_cpu, void *sem_arg)
  791. {
  792. #define FLD(f) abuf->fields.sfmt_l_mfspr.f
  793. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  794. const IDESC * UNUSED idesc = abuf->idesc;
  795. int cycles = 0;
  796. {
  797. int referenced = 0;
  798. int UNUSED insn_referenced = abuf->written;
  799. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  800. }
  801. return cycles;
  802. #undef FLD
  803. }
  804. static int
  805. model_or1200_l_ori (SIM_CPU *current_cpu, void *sem_arg)
  806. {
  807. #define FLD(f) abuf->fields.sfmt_l_mfspr.f
  808. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  809. const IDESC * UNUSED idesc = abuf->idesc;
  810. int cycles = 0;
  811. {
  812. int referenced = 0;
  813. int UNUSED insn_referenced = abuf->written;
  814. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  815. }
  816. return cycles;
  817. #undef FLD
  818. }
  819. static int
  820. model_or1200_l_xori (SIM_CPU *current_cpu, void *sem_arg)
  821. {
  822. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  823. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  824. const IDESC * UNUSED idesc = abuf->idesc;
  825. int cycles = 0;
  826. {
  827. int referenced = 0;
  828. int UNUSED insn_referenced = abuf->written;
  829. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  830. }
  831. return cycles;
  832. #undef FLD
  833. }
  834. static int
  835. model_or1200_l_addi (SIM_CPU *current_cpu, void *sem_arg)
  836. {
  837. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  838. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  839. const IDESC * UNUSED idesc = abuf->idesc;
  840. int cycles = 0;
  841. {
  842. int referenced = 0;
  843. int UNUSED insn_referenced = abuf->written;
  844. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  845. }
  846. return cycles;
  847. #undef FLD
  848. }
  849. static int
  850. model_or1200_l_addic (SIM_CPU *current_cpu, void *sem_arg)
  851. {
  852. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  853. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  854. const IDESC * UNUSED idesc = abuf->idesc;
  855. int cycles = 0;
  856. {
  857. int referenced = 0;
  858. int UNUSED insn_referenced = abuf->written;
  859. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  860. }
  861. return cycles;
  862. #undef FLD
  863. }
  864. static int
  865. model_or1200_l_muli (SIM_CPU *current_cpu, void *sem_arg)
  866. {
  867. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  868. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  869. const IDESC * UNUSED idesc = abuf->idesc;
  870. int cycles = 0;
  871. {
  872. int referenced = 0;
  873. int UNUSED insn_referenced = abuf->written;
  874. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  875. }
  876. return cycles;
  877. #undef FLD
  878. }
  879. static int
  880. model_or1200_l_exths (SIM_CPU *current_cpu, void *sem_arg)
  881. {
  882. #define FLD(f) abuf->fields.sfmt_l_slli.f
  883. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  884. const IDESC * UNUSED idesc = abuf->idesc;
  885. int cycles = 0;
  886. {
  887. int referenced = 0;
  888. int UNUSED insn_referenced = abuf->written;
  889. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  890. }
  891. return cycles;
  892. #undef FLD
  893. }
  894. static int
  895. model_or1200_l_extbs (SIM_CPU *current_cpu, void *sem_arg)
  896. {
  897. #define FLD(f) abuf->fields.sfmt_l_slli.f
  898. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  899. const IDESC * UNUSED idesc = abuf->idesc;
  900. int cycles = 0;
  901. {
  902. int referenced = 0;
  903. int UNUSED insn_referenced = abuf->written;
  904. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  905. }
  906. return cycles;
  907. #undef FLD
  908. }
  909. static int
  910. model_or1200_l_exthz (SIM_CPU *current_cpu, void *sem_arg)
  911. {
  912. #define FLD(f) abuf->fields.sfmt_l_slli.f
  913. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  914. const IDESC * UNUSED idesc = abuf->idesc;
  915. int cycles = 0;
  916. {
  917. int referenced = 0;
  918. int UNUSED insn_referenced = abuf->written;
  919. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  920. }
  921. return cycles;
  922. #undef FLD
  923. }
  924. static int
  925. model_or1200_l_extbz (SIM_CPU *current_cpu, void *sem_arg)
  926. {
  927. #define FLD(f) abuf->fields.sfmt_l_slli.f
  928. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  929. const IDESC * UNUSED idesc = abuf->idesc;
  930. int cycles = 0;
  931. {
  932. int referenced = 0;
  933. int UNUSED insn_referenced = abuf->written;
  934. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  935. }
  936. return cycles;
  937. #undef FLD
  938. }
  939. static int
  940. model_or1200_l_extws (SIM_CPU *current_cpu, void *sem_arg)
  941. {
  942. #define FLD(f) abuf->fields.sfmt_l_slli.f
  943. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  944. const IDESC * UNUSED idesc = abuf->idesc;
  945. int cycles = 0;
  946. {
  947. int referenced = 0;
  948. int UNUSED insn_referenced = abuf->written;
  949. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  950. }
  951. return cycles;
  952. #undef FLD
  953. }
  954. static int
  955. model_or1200_l_extwz (SIM_CPU *current_cpu, void *sem_arg)
  956. {
  957. #define FLD(f) abuf->fields.sfmt_l_slli.f
  958. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  959. const IDESC * UNUSED idesc = abuf->idesc;
  960. int cycles = 0;
  961. {
  962. int referenced = 0;
  963. int UNUSED insn_referenced = abuf->written;
  964. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  965. }
  966. return cycles;
  967. #undef FLD
  968. }
  969. static int
  970. model_or1200_l_cmov (SIM_CPU *current_cpu, void *sem_arg)
  971. {
  972. #define FLD(f) abuf->fields.sfmt_l_sll.f
  973. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  974. const IDESC * UNUSED idesc = abuf->idesc;
  975. int cycles = 0;
  976. {
  977. int referenced = 0;
  978. int UNUSED insn_referenced = abuf->written;
  979. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  980. }
  981. return cycles;
  982. #undef FLD
  983. }
  984. static int
  985. model_or1200_l_sfgts (SIM_CPU *current_cpu, void *sem_arg)
  986. {
  987. #define FLD(f) abuf->fields.sfmt_l_sll.f
  988. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  989. const IDESC * UNUSED idesc = abuf->idesc;
  990. int cycles = 0;
  991. {
  992. int referenced = 0;
  993. int UNUSED insn_referenced = abuf->written;
  994. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  995. }
  996. return cycles;
  997. #undef FLD
  998. }
  999. static int
  1000. model_or1200_l_sfgtsi (SIM_CPU *current_cpu, void *sem_arg)
  1001. {
  1002. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  1003. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1004. const IDESC * UNUSED idesc = abuf->idesc;
  1005. int cycles = 0;
  1006. {
  1007. int referenced = 0;
  1008. int UNUSED insn_referenced = abuf->written;
  1009. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1010. }
  1011. return cycles;
  1012. #undef FLD
  1013. }
  1014. static int
  1015. model_or1200_l_sfgtu (SIM_CPU *current_cpu, void *sem_arg)
  1016. {
  1017. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1018. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1019. const IDESC * UNUSED idesc = abuf->idesc;
  1020. int cycles = 0;
  1021. {
  1022. int referenced = 0;
  1023. int UNUSED insn_referenced = abuf->written;
  1024. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1025. }
  1026. return cycles;
  1027. #undef FLD
  1028. }
  1029. static int
  1030. model_or1200_l_sfgtui (SIM_CPU *current_cpu, void *sem_arg)
  1031. {
  1032. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  1033. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1034. const IDESC * UNUSED idesc = abuf->idesc;
  1035. int cycles = 0;
  1036. {
  1037. int referenced = 0;
  1038. int UNUSED insn_referenced = abuf->written;
  1039. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1040. }
  1041. return cycles;
  1042. #undef FLD
  1043. }
  1044. static int
  1045. model_or1200_l_sfges (SIM_CPU *current_cpu, void *sem_arg)
  1046. {
  1047. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1048. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1049. const IDESC * UNUSED idesc = abuf->idesc;
  1050. int cycles = 0;
  1051. {
  1052. int referenced = 0;
  1053. int UNUSED insn_referenced = abuf->written;
  1054. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1055. }
  1056. return cycles;
  1057. #undef FLD
  1058. }
  1059. static int
  1060. model_or1200_l_sfgesi (SIM_CPU *current_cpu, void *sem_arg)
  1061. {
  1062. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  1063. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1064. const IDESC * UNUSED idesc = abuf->idesc;
  1065. int cycles = 0;
  1066. {
  1067. int referenced = 0;
  1068. int UNUSED insn_referenced = abuf->written;
  1069. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1070. }
  1071. return cycles;
  1072. #undef FLD
  1073. }
  1074. static int
  1075. model_or1200_l_sfgeu (SIM_CPU *current_cpu, void *sem_arg)
  1076. {
  1077. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1078. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1079. const IDESC * UNUSED idesc = abuf->idesc;
  1080. int cycles = 0;
  1081. {
  1082. int referenced = 0;
  1083. int UNUSED insn_referenced = abuf->written;
  1084. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1085. }
  1086. return cycles;
  1087. #undef FLD
  1088. }
  1089. static int
  1090. model_or1200_l_sfgeui (SIM_CPU *current_cpu, void *sem_arg)
  1091. {
  1092. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  1093. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1094. const IDESC * UNUSED idesc = abuf->idesc;
  1095. int cycles = 0;
  1096. {
  1097. int referenced = 0;
  1098. int UNUSED insn_referenced = abuf->written;
  1099. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1100. }
  1101. return cycles;
  1102. #undef FLD
  1103. }
  1104. static int
  1105. model_or1200_l_sflts (SIM_CPU *current_cpu, void *sem_arg)
  1106. {
  1107. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1108. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1109. const IDESC * UNUSED idesc = abuf->idesc;
  1110. int cycles = 0;
  1111. {
  1112. int referenced = 0;
  1113. int UNUSED insn_referenced = abuf->written;
  1114. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1115. }
  1116. return cycles;
  1117. #undef FLD
  1118. }
  1119. static int
  1120. model_or1200_l_sfltsi (SIM_CPU *current_cpu, void *sem_arg)
  1121. {
  1122. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  1123. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1124. const IDESC * UNUSED idesc = abuf->idesc;
  1125. int cycles = 0;
  1126. {
  1127. int referenced = 0;
  1128. int UNUSED insn_referenced = abuf->written;
  1129. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1130. }
  1131. return cycles;
  1132. #undef FLD
  1133. }
  1134. static int
  1135. model_or1200_l_sfltu (SIM_CPU *current_cpu, void *sem_arg)
  1136. {
  1137. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1138. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1139. const IDESC * UNUSED idesc = abuf->idesc;
  1140. int cycles = 0;
  1141. {
  1142. int referenced = 0;
  1143. int UNUSED insn_referenced = abuf->written;
  1144. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1145. }
  1146. return cycles;
  1147. #undef FLD
  1148. }
  1149. static int
  1150. model_or1200_l_sfltui (SIM_CPU *current_cpu, void *sem_arg)
  1151. {
  1152. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  1153. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1154. const IDESC * UNUSED idesc = abuf->idesc;
  1155. int cycles = 0;
  1156. {
  1157. int referenced = 0;
  1158. int UNUSED insn_referenced = abuf->written;
  1159. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1160. }
  1161. return cycles;
  1162. #undef FLD
  1163. }
  1164. static int
  1165. model_or1200_l_sfles (SIM_CPU *current_cpu, void *sem_arg)
  1166. {
  1167. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1168. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1169. const IDESC * UNUSED idesc = abuf->idesc;
  1170. int cycles = 0;
  1171. {
  1172. int referenced = 0;
  1173. int UNUSED insn_referenced = abuf->written;
  1174. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1175. }
  1176. return cycles;
  1177. #undef FLD
  1178. }
  1179. static int
  1180. model_or1200_l_sflesi (SIM_CPU *current_cpu, void *sem_arg)
  1181. {
  1182. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  1183. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1184. const IDESC * UNUSED idesc = abuf->idesc;
  1185. int cycles = 0;
  1186. {
  1187. int referenced = 0;
  1188. int UNUSED insn_referenced = abuf->written;
  1189. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1190. }
  1191. return cycles;
  1192. #undef FLD
  1193. }
  1194. static int
  1195. model_or1200_l_sfleu (SIM_CPU *current_cpu, void *sem_arg)
  1196. {
  1197. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1198. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1199. const IDESC * UNUSED idesc = abuf->idesc;
  1200. int cycles = 0;
  1201. {
  1202. int referenced = 0;
  1203. int UNUSED insn_referenced = abuf->written;
  1204. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1205. }
  1206. return cycles;
  1207. #undef FLD
  1208. }
  1209. static int
  1210. model_or1200_l_sfleui (SIM_CPU *current_cpu, void *sem_arg)
  1211. {
  1212. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  1213. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1214. const IDESC * UNUSED idesc = abuf->idesc;
  1215. int cycles = 0;
  1216. {
  1217. int referenced = 0;
  1218. int UNUSED insn_referenced = abuf->written;
  1219. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1220. }
  1221. return cycles;
  1222. #undef FLD
  1223. }
  1224. static int
  1225. model_or1200_l_sfeq (SIM_CPU *current_cpu, void *sem_arg)
  1226. {
  1227. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1228. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1229. const IDESC * UNUSED idesc = abuf->idesc;
  1230. int cycles = 0;
  1231. {
  1232. int referenced = 0;
  1233. int UNUSED insn_referenced = abuf->written;
  1234. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1235. }
  1236. return cycles;
  1237. #undef FLD
  1238. }
  1239. static int
  1240. model_or1200_l_sfeqi (SIM_CPU *current_cpu, void *sem_arg)
  1241. {
  1242. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  1243. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1244. const IDESC * UNUSED idesc = abuf->idesc;
  1245. int cycles = 0;
  1246. {
  1247. int referenced = 0;
  1248. int UNUSED insn_referenced = abuf->written;
  1249. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1250. }
  1251. return cycles;
  1252. #undef FLD
  1253. }
  1254. static int
  1255. model_or1200_l_sfne (SIM_CPU *current_cpu, void *sem_arg)
  1256. {
  1257. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1258. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1259. const IDESC * UNUSED idesc = abuf->idesc;
  1260. int cycles = 0;
  1261. {
  1262. int referenced = 0;
  1263. int UNUSED insn_referenced = abuf->written;
  1264. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1265. }
  1266. return cycles;
  1267. #undef FLD
  1268. }
  1269. static int
  1270. model_or1200_l_sfnei (SIM_CPU *current_cpu, void *sem_arg)
  1271. {
  1272. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  1273. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1274. const IDESC * UNUSED idesc = abuf->idesc;
  1275. int cycles = 0;
  1276. {
  1277. int referenced = 0;
  1278. int UNUSED insn_referenced = abuf->written;
  1279. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1280. }
  1281. return cycles;
  1282. #undef FLD
  1283. }
  1284. static int
  1285. model_or1200_l_mac (SIM_CPU *current_cpu, void *sem_arg)
  1286. {
  1287. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1288. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1289. const IDESC * UNUSED idesc = abuf->idesc;
  1290. int cycles = 0;
  1291. {
  1292. int referenced = 0;
  1293. int UNUSED insn_referenced = abuf->written;
  1294. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1295. }
  1296. return cycles;
  1297. #undef FLD
  1298. }
  1299. static int
  1300. model_or1200_l_maci (SIM_CPU *current_cpu, void *sem_arg)
  1301. {
  1302. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  1303. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1304. const IDESC * UNUSED idesc = abuf->idesc;
  1305. int cycles = 0;
  1306. {
  1307. int referenced = 0;
  1308. int UNUSED insn_referenced = abuf->written;
  1309. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1310. }
  1311. return cycles;
  1312. #undef FLD
  1313. }
  1314. static int
  1315. model_or1200_l_macu (SIM_CPU *current_cpu, void *sem_arg)
  1316. {
  1317. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1318. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1319. const IDESC * UNUSED idesc = abuf->idesc;
  1320. int cycles = 0;
  1321. {
  1322. int referenced = 0;
  1323. int UNUSED insn_referenced = abuf->written;
  1324. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1325. }
  1326. return cycles;
  1327. #undef FLD
  1328. }
  1329. static int
  1330. model_or1200_l_msb (SIM_CPU *current_cpu, void *sem_arg)
  1331. {
  1332. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1333. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1334. const IDESC * UNUSED idesc = abuf->idesc;
  1335. int cycles = 0;
  1336. {
  1337. int referenced = 0;
  1338. int UNUSED insn_referenced = abuf->written;
  1339. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1340. }
  1341. return cycles;
  1342. #undef FLD
  1343. }
  1344. static int
  1345. model_or1200_l_msbu (SIM_CPU *current_cpu, void *sem_arg)
  1346. {
  1347. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1348. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1349. const IDESC * UNUSED idesc = abuf->idesc;
  1350. int cycles = 0;
  1351. {
  1352. int referenced = 0;
  1353. int UNUSED insn_referenced = abuf->written;
  1354. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1355. }
  1356. return cycles;
  1357. #undef FLD
  1358. }
  1359. static int
  1360. model_or1200_l_cust1 (SIM_CPU *current_cpu, void *sem_arg)
  1361. {
  1362. #define FLD(f) abuf->fields.sfmt_empty.f
  1363. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1364. const IDESC * UNUSED idesc = abuf->idesc;
  1365. int cycles = 0;
  1366. {
  1367. int referenced = 0;
  1368. int UNUSED insn_referenced = abuf->written;
  1369. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1370. }
  1371. return cycles;
  1372. #undef FLD
  1373. }
  1374. static int
  1375. model_or1200_l_cust2 (SIM_CPU *current_cpu, void *sem_arg)
  1376. {
  1377. #define FLD(f) abuf->fields.sfmt_empty.f
  1378. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1379. const IDESC * UNUSED idesc = abuf->idesc;
  1380. int cycles = 0;
  1381. {
  1382. int referenced = 0;
  1383. int UNUSED insn_referenced = abuf->written;
  1384. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1385. }
  1386. return cycles;
  1387. #undef FLD
  1388. }
  1389. static int
  1390. model_or1200_l_cust3 (SIM_CPU *current_cpu, void *sem_arg)
  1391. {
  1392. #define FLD(f) abuf->fields.sfmt_empty.f
  1393. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1394. const IDESC * UNUSED idesc = abuf->idesc;
  1395. int cycles = 0;
  1396. {
  1397. int referenced = 0;
  1398. int UNUSED insn_referenced = abuf->written;
  1399. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1400. }
  1401. return cycles;
  1402. #undef FLD
  1403. }
  1404. static int
  1405. model_or1200_l_cust4 (SIM_CPU *current_cpu, void *sem_arg)
  1406. {
  1407. #define FLD(f) abuf->fields.sfmt_empty.f
  1408. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1409. const IDESC * UNUSED idesc = abuf->idesc;
  1410. int cycles = 0;
  1411. {
  1412. int referenced = 0;
  1413. int UNUSED insn_referenced = abuf->written;
  1414. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1415. }
  1416. return cycles;
  1417. #undef FLD
  1418. }
  1419. static int
  1420. model_or1200_l_cust5 (SIM_CPU *current_cpu, void *sem_arg)
  1421. {
  1422. #define FLD(f) abuf->fields.sfmt_empty.f
  1423. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1424. const IDESC * UNUSED idesc = abuf->idesc;
  1425. int cycles = 0;
  1426. {
  1427. int referenced = 0;
  1428. int UNUSED insn_referenced = abuf->written;
  1429. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1430. }
  1431. return cycles;
  1432. #undef FLD
  1433. }
  1434. static int
  1435. model_or1200_l_cust6 (SIM_CPU *current_cpu, void *sem_arg)
  1436. {
  1437. #define FLD(f) abuf->fields.sfmt_empty.f
  1438. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1439. const IDESC * UNUSED idesc = abuf->idesc;
  1440. int cycles = 0;
  1441. {
  1442. int referenced = 0;
  1443. int UNUSED insn_referenced = abuf->written;
  1444. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1445. }
  1446. return cycles;
  1447. #undef FLD
  1448. }
  1449. static int
  1450. model_or1200_l_cust7 (SIM_CPU *current_cpu, void *sem_arg)
  1451. {
  1452. #define FLD(f) abuf->fields.sfmt_empty.f
  1453. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1454. const IDESC * UNUSED idesc = abuf->idesc;
  1455. int cycles = 0;
  1456. {
  1457. int referenced = 0;
  1458. int UNUSED insn_referenced = abuf->written;
  1459. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1460. }
  1461. return cycles;
  1462. #undef FLD
  1463. }
  1464. static int
  1465. model_or1200_l_cust8 (SIM_CPU *current_cpu, void *sem_arg)
  1466. {
  1467. #define FLD(f) abuf->fields.sfmt_empty.f
  1468. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1469. const IDESC * UNUSED idesc = abuf->idesc;
  1470. int cycles = 0;
  1471. {
  1472. int referenced = 0;
  1473. int UNUSED insn_referenced = abuf->written;
  1474. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1475. }
  1476. return cycles;
  1477. #undef FLD
  1478. }
  1479. static int
  1480. model_or1200_lf_add_s (SIM_CPU *current_cpu, void *sem_arg)
  1481. {
  1482. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1483. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1484. const IDESC * UNUSED idesc = abuf->idesc;
  1485. int cycles = 0;
  1486. {
  1487. int referenced = 0;
  1488. int UNUSED insn_referenced = abuf->written;
  1489. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1490. }
  1491. return cycles;
  1492. #undef FLD
  1493. }
  1494. static int
  1495. model_or1200_lf_add_d32 (SIM_CPU *current_cpu, void *sem_arg)
  1496. {
  1497. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  1498. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1499. const IDESC * UNUSED idesc = abuf->idesc;
  1500. int cycles = 0;
  1501. {
  1502. int referenced = 0;
  1503. int UNUSED insn_referenced = abuf->written;
  1504. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1505. }
  1506. return cycles;
  1507. #undef FLD
  1508. }
  1509. static int
  1510. model_or1200_lf_sub_s (SIM_CPU *current_cpu, void *sem_arg)
  1511. {
  1512. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1513. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1514. const IDESC * UNUSED idesc = abuf->idesc;
  1515. int cycles = 0;
  1516. {
  1517. int referenced = 0;
  1518. int UNUSED insn_referenced = abuf->written;
  1519. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1520. }
  1521. return cycles;
  1522. #undef FLD
  1523. }
  1524. static int
  1525. model_or1200_lf_sub_d32 (SIM_CPU *current_cpu, void *sem_arg)
  1526. {
  1527. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  1528. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1529. const IDESC * UNUSED idesc = abuf->idesc;
  1530. int cycles = 0;
  1531. {
  1532. int referenced = 0;
  1533. int UNUSED insn_referenced = abuf->written;
  1534. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1535. }
  1536. return cycles;
  1537. #undef FLD
  1538. }
  1539. static int
  1540. model_or1200_lf_mul_s (SIM_CPU *current_cpu, void *sem_arg)
  1541. {
  1542. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1543. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1544. const IDESC * UNUSED idesc = abuf->idesc;
  1545. int cycles = 0;
  1546. {
  1547. int referenced = 0;
  1548. int UNUSED insn_referenced = abuf->written;
  1549. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1550. }
  1551. return cycles;
  1552. #undef FLD
  1553. }
  1554. static int
  1555. model_or1200_lf_mul_d32 (SIM_CPU *current_cpu, void *sem_arg)
  1556. {
  1557. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  1558. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1559. const IDESC * UNUSED idesc = abuf->idesc;
  1560. int cycles = 0;
  1561. {
  1562. int referenced = 0;
  1563. int UNUSED insn_referenced = abuf->written;
  1564. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1565. }
  1566. return cycles;
  1567. #undef FLD
  1568. }
  1569. static int
  1570. model_or1200_lf_div_s (SIM_CPU *current_cpu, void *sem_arg)
  1571. {
  1572. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1573. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1574. const IDESC * UNUSED idesc = abuf->idesc;
  1575. int cycles = 0;
  1576. {
  1577. int referenced = 0;
  1578. int UNUSED insn_referenced = abuf->written;
  1579. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1580. }
  1581. return cycles;
  1582. #undef FLD
  1583. }
  1584. static int
  1585. model_or1200_lf_div_d32 (SIM_CPU *current_cpu, void *sem_arg)
  1586. {
  1587. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  1588. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1589. const IDESC * UNUSED idesc = abuf->idesc;
  1590. int cycles = 0;
  1591. {
  1592. int referenced = 0;
  1593. int UNUSED insn_referenced = abuf->written;
  1594. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1595. }
  1596. return cycles;
  1597. #undef FLD
  1598. }
  1599. static int
  1600. model_or1200_lf_rem_s (SIM_CPU *current_cpu, void *sem_arg)
  1601. {
  1602. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1603. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1604. const IDESC * UNUSED idesc = abuf->idesc;
  1605. int cycles = 0;
  1606. {
  1607. int referenced = 0;
  1608. int UNUSED insn_referenced = abuf->written;
  1609. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1610. }
  1611. return cycles;
  1612. #undef FLD
  1613. }
  1614. static int
  1615. model_or1200_lf_rem_d32 (SIM_CPU *current_cpu, void *sem_arg)
  1616. {
  1617. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  1618. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1619. const IDESC * UNUSED idesc = abuf->idesc;
  1620. int cycles = 0;
  1621. {
  1622. int referenced = 0;
  1623. int UNUSED insn_referenced = abuf->written;
  1624. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1625. }
  1626. return cycles;
  1627. #undef FLD
  1628. }
  1629. static int
  1630. model_or1200_lf_itof_s (SIM_CPU *current_cpu, void *sem_arg)
  1631. {
  1632. #define FLD(f) abuf->fields.sfmt_l_slli.f
  1633. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1634. const IDESC * UNUSED idesc = abuf->idesc;
  1635. int cycles = 0;
  1636. {
  1637. int referenced = 0;
  1638. int UNUSED insn_referenced = abuf->written;
  1639. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1640. }
  1641. return cycles;
  1642. #undef FLD
  1643. }
  1644. static int
  1645. model_or1200_lf_itof_d32 (SIM_CPU *current_cpu, void *sem_arg)
  1646. {
  1647. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  1648. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1649. const IDESC * UNUSED idesc = abuf->idesc;
  1650. int cycles = 0;
  1651. {
  1652. int referenced = 0;
  1653. int UNUSED insn_referenced = abuf->written;
  1654. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1655. }
  1656. return cycles;
  1657. #undef FLD
  1658. }
  1659. static int
  1660. model_or1200_lf_ftoi_s (SIM_CPU *current_cpu, void *sem_arg)
  1661. {
  1662. #define FLD(f) abuf->fields.sfmt_l_slli.f
  1663. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1664. const IDESC * UNUSED idesc = abuf->idesc;
  1665. int cycles = 0;
  1666. {
  1667. int referenced = 0;
  1668. int UNUSED insn_referenced = abuf->written;
  1669. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1670. }
  1671. return cycles;
  1672. #undef FLD
  1673. }
  1674. static int
  1675. model_or1200_lf_ftoi_d32 (SIM_CPU *current_cpu, void *sem_arg)
  1676. {
  1677. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  1678. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1679. const IDESC * UNUSED idesc = abuf->idesc;
  1680. int cycles = 0;
  1681. {
  1682. int referenced = 0;
  1683. int UNUSED insn_referenced = abuf->written;
  1684. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1685. }
  1686. return cycles;
  1687. #undef FLD
  1688. }
  1689. static int
  1690. model_or1200_lf_sfeq_s (SIM_CPU *current_cpu, void *sem_arg)
  1691. {
  1692. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1693. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1694. const IDESC * UNUSED idesc = abuf->idesc;
  1695. int cycles = 0;
  1696. {
  1697. int referenced = 0;
  1698. int UNUSED insn_referenced = abuf->written;
  1699. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1700. }
  1701. return cycles;
  1702. #undef FLD
  1703. }
  1704. static int
  1705. model_or1200_lf_sfeq_d32 (SIM_CPU *current_cpu, void *sem_arg)
  1706. {
  1707. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  1708. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1709. const IDESC * UNUSED idesc = abuf->idesc;
  1710. int cycles = 0;
  1711. {
  1712. int referenced = 0;
  1713. int UNUSED insn_referenced = abuf->written;
  1714. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1715. }
  1716. return cycles;
  1717. #undef FLD
  1718. }
  1719. static int
  1720. model_or1200_lf_sfne_s (SIM_CPU *current_cpu, void *sem_arg)
  1721. {
  1722. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1723. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1724. const IDESC * UNUSED idesc = abuf->idesc;
  1725. int cycles = 0;
  1726. {
  1727. int referenced = 0;
  1728. int UNUSED insn_referenced = abuf->written;
  1729. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1730. }
  1731. return cycles;
  1732. #undef FLD
  1733. }
  1734. static int
  1735. model_or1200_lf_sfne_d32 (SIM_CPU *current_cpu, void *sem_arg)
  1736. {
  1737. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  1738. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1739. const IDESC * UNUSED idesc = abuf->idesc;
  1740. int cycles = 0;
  1741. {
  1742. int referenced = 0;
  1743. int UNUSED insn_referenced = abuf->written;
  1744. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1745. }
  1746. return cycles;
  1747. #undef FLD
  1748. }
  1749. static int
  1750. model_or1200_lf_sfge_s (SIM_CPU *current_cpu, void *sem_arg)
  1751. {
  1752. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1753. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1754. const IDESC * UNUSED idesc = abuf->idesc;
  1755. int cycles = 0;
  1756. {
  1757. int referenced = 0;
  1758. int UNUSED insn_referenced = abuf->written;
  1759. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1760. }
  1761. return cycles;
  1762. #undef FLD
  1763. }
  1764. static int
  1765. model_or1200_lf_sfge_d32 (SIM_CPU *current_cpu, void *sem_arg)
  1766. {
  1767. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  1768. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1769. const IDESC * UNUSED idesc = abuf->idesc;
  1770. int cycles = 0;
  1771. {
  1772. int referenced = 0;
  1773. int UNUSED insn_referenced = abuf->written;
  1774. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1775. }
  1776. return cycles;
  1777. #undef FLD
  1778. }
  1779. static int
  1780. model_or1200_lf_sfgt_s (SIM_CPU *current_cpu, void *sem_arg)
  1781. {
  1782. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1783. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1784. const IDESC * UNUSED idesc = abuf->idesc;
  1785. int cycles = 0;
  1786. {
  1787. int referenced = 0;
  1788. int UNUSED insn_referenced = abuf->written;
  1789. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1790. }
  1791. return cycles;
  1792. #undef FLD
  1793. }
  1794. static int
  1795. model_or1200_lf_sfgt_d32 (SIM_CPU *current_cpu, void *sem_arg)
  1796. {
  1797. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  1798. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1799. const IDESC * UNUSED idesc = abuf->idesc;
  1800. int cycles = 0;
  1801. {
  1802. int referenced = 0;
  1803. int UNUSED insn_referenced = abuf->written;
  1804. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1805. }
  1806. return cycles;
  1807. #undef FLD
  1808. }
  1809. static int
  1810. model_or1200_lf_sflt_s (SIM_CPU *current_cpu, void *sem_arg)
  1811. {
  1812. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1813. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1814. const IDESC * UNUSED idesc = abuf->idesc;
  1815. int cycles = 0;
  1816. {
  1817. int referenced = 0;
  1818. int UNUSED insn_referenced = abuf->written;
  1819. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1820. }
  1821. return cycles;
  1822. #undef FLD
  1823. }
  1824. static int
  1825. model_or1200_lf_sflt_d32 (SIM_CPU *current_cpu, void *sem_arg)
  1826. {
  1827. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  1828. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1829. const IDESC * UNUSED idesc = abuf->idesc;
  1830. int cycles = 0;
  1831. {
  1832. int referenced = 0;
  1833. int UNUSED insn_referenced = abuf->written;
  1834. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1835. }
  1836. return cycles;
  1837. #undef FLD
  1838. }
  1839. static int
  1840. model_or1200_lf_sfle_s (SIM_CPU *current_cpu, void *sem_arg)
  1841. {
  1842. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1843. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1844. const IDESC * UNUSED idesc = abuf->idesc;
  1845. int cycles = 0;
  1846. {
  1847. int referenced = 0;
  1848. int UNUSED insn_referenced = abuf->written;
  1849. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1850. }
  1851. return cycles;
  1852. #undef FLD
  1853. }
  1854. static int
  1855. model_or1200_lf_sfle_d32 (SIM_CPU *current_cpu, void *sem_arg)
  1856. {
  1857. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  1858. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1859. const IDESC * UNUSED idesc = abuf->idesc;
  1860. int cycles = 0;
  1861. {
  1862. int referenced = 0;
  1863. int UNUSED insn_referenced = abuf->written;
  1864. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1865. }
  1866. return cycles;
  1867. #undef FLD
  1868. }
  1869. static int
  1870. model_or1200_lf_sfueq_s (SIM_CPU *current_cpu, void *sem_arg)
  1871. {
  1872. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1873. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1874. const IDESC * UNUSED idesc = abuf->idesc;
  1875. int cycles = 0;
  1876. {
  1877. int referenced = 0;
  1878. int UNUSED insn_referenced = abuf->written;
  1879. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1880. }
  1881. return cycles;
  1882. #undef FLD
  1883. }
  1884. static int
  1885. model_or1200_lf_sfueq_d32 (SIM_CPU *current_cpu, void *sem_arg)
  1886. {
  1887. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  1888. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1889. const IDESC * UNUSED idesc = abuf->idesc;
  1890. int cycles = 0;
  1891. {
  1892. int referenced = 0;
  1893. int UNUSED insn_referenced = abuf->written;
  1894. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1895. }
  1896. return cycles;
  1897. #undef FLD
  1898. }
  1899. static int
  1900. model_or1200_lf_sfune_s (SIM_CPU *current_cpu, void *sem_arg)
  1901. {
  1902. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1903. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1904. const IDESC * UNUSED idesc = abuf->idesc;
  1905. int cycles = 0;
  1906. {
  1907. int referenced = 0;
  1908. int UNUSED insn_referenced = abuf->written;
  1909. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1910. }
  1911. return cycles;
  1912. #undef FLD
  1913. }
  1914. static int
  1915. model_or1200_lf_sfune_d32 (SIM_CPU *current_cpu, void *sem_arg)
  1916. {
  1917. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  1918. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1919. const IDESC * UNUSED idesc = abuf->idesc;
  1920. int cycles = 0;
  1921. {
  1922. int referenced = 0;
  1923. int UNUSED insn_referenced = abuf->written;
  1924. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1925. }
  1926. return cycles;
  1927. #undef FLD
  1928. }
  1929. static int
  1930. model_or1200_lf_sfugt_s (SIM_CPU *current_cpu, void *sem_arg)
  1931. {
  1932. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1933. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1934. const IDESC * UNUSED idesc = abuf->idesc;
  1935. int cycles = 0;
  1936. {
  1937. int referenced = 0;
  1938. int UNUSED insn_referenced = abuf->written;
  1939. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1940. }
  1941. return cycles;
  1942. #undef FLD
  1943. }
  1944. static int
  1945. model_or1200_lf_sfugt_d32 (SIM_CPU *current_cpu, void *sem_arg)
  1946. {
  1947. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  1948. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1949. const IDESC * UNUSED idesc = abuf->idesc;
  1950. int cycles = 0;
  1951. {
  1952. int referenced = 0;
  1953. int UNUSED insn_referenced = abuf->written;
  1954. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1955. }
  1956. return cycles;
  1957. #undef FLD
  1958. }
  1959. static int
  1960. model_or1200_lf_sfuge_s (SIM_CPU *current_cpu, void *sem_arg)
  1961. {
  1962. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1963. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1964. const IDESC * UNUSED idesc = abuf->idesc;
  1965. int cycles = 0;
  1966. {
  1967. int referenced = 0;
  1968. int UNUSED insn_referenced = abuf->written;
  1969. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1970. }
  1971. return cycles;
  1972. #undef FLD
  1973. }
  1974. static int
  1975. model_or1200_lf_sfuge_d32 (SIM_CPU *current_cpu, void *sem_arg)
  1976. {
  1977. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  1978. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1979. const IDESC * UNUSED idesc = abuf->idesc;
  1980. int cycles = 0;
  1981. {
  1982. int referenced = 0;
  1983. int UNUSED insn_referenced = abuf->written;
  1984. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  1985. }
  1986. return cycles;
  1987. #undef FLD
  1988. }
  1989. static int
  1990. model_or1200_lf_sfult_s (SIM_CPU *current_cpu, void *sem_arg)
  1991. {
  1992. #define FLD(f) abuf->fields.sfmt_l_sll.f
  1993. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  1994. const IDESC * UNUSED idesc = abuf->idesc;
  1995. int cycles = 0;
  1996. {
  1997. int referenced = 0;
  1998. int UNUSED insn_referenced = abuf->written;
  1999. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  2000. }
  2001. return cycles;
  2002. #undef FLD
  2003. }
  2004. static int
  2005. model_or1200_lf_sfult_d32 (SIM_CPU *current_cpu, void *sem_arg)
  2006. {
  2007. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  2008. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2009. const IDESC * UNUSED idesc = abuf->idesc;
  2010. int cycles = 0;
  2011. {
  2012. int referenced = 0;
  2013. int UNUSED insn_referenced = abuf->written;
  2014. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  2015. }
  2016. return cycles;
  2017. #undef FLD
  2018. }
  2019. static int
  2020. model_or1200_lf_sfule_s (SIM_CPU *current_cpu, void *sem_arg)
  2021. {
  2022. #define FLD(f) abuf->fields.sfmt_l_sll.f
  2023. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2024. const IDESC * UNUSED idesc = abuf->idesc;
  2025. int cycles = 0;
  2026. {
  2027. int referenced = 0;
  2028. int UNUSED insn_referenced = abuf->written;
  2029. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  2030. }
  2031. return cycles;
  2032. #undef FLD
  2033. }
  2034. static int
  2035. model_or1200_lf_sfule_d32 (SIM_CPU *current_cpu, void *sem_arg)
  2036. {
  2037. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  2038. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2039. const IDESC * UNUSED idesc = abuf->idesc;
  2040. int cycles = 0;
  2041. {
  2042. int referenced = 0;
  2043. int UNUSED insn_referenced = abuf->written;
  2044. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  2045. }
  2046. return cycles;
  2047. #undef FLD
  2048. }
  2049. static int
  2050. model_or1200_lf_sfun_s (SIM_CPU *current_cpu, void *sem_arg)
  2051. {
  2052. #define FLD(f) abuf->fields.sfmt_l_sll.f
  2053. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2054. const IDESC * UNUSED idesc = abuf->idesc;
  2055. int cycles = 0;
  2056. {
  2057. int referenced = 0;
  2058. int UNUSED insn_referenced = abuf->written;
  2059. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  2060. }
  2061. return cycles;
  2062. #undef FLD
  2063. }
  2064. static int
  2065. model_or1200_lf_sfun_d32 (SIM_CPU *current_cpu, void *sem_arg)
  2066. {
  2067. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  2068. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2069. const IDESC * UNUSED idesc = abuf->idesc;
  2070. int cycles = 0;
  2071. {
  2072. int referenced = 0;
  2073. int UNUSED insn_referenced = abuf->written;
  2074. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  2075. }
  2076. return cycles;
  2077. #undef FLD
  2078. }
  2079. static int
  2080. model_or1200_lf_madd_s (SIM_CPU *current_cpu, void *sem_arg)
  2081. {
  2082. #define FLD(f) abuf->fields.sfmt_l_sll.f
  2083. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2084. const IDESC * UNUSED idesc = abuf->idesc;
  2085. int cycles = 0;
  2086. {
  2087. int referenced = 0;
  2088. int UNUSED insn_referenced = abuf->written;
  2089. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  2090. }
  2091. return cycles;
  2092. #undef FLD
  2093. }
  2094. static int
  2095. model_or1200_lf_madd_d32 (SIM_CPU *current_cpu, void *sem_arg)
  2096. {
  2097. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  2098. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2099. const IDESC * UNUSED idesc = abuf->idesc;
  2100. int cycles = 0;
  2101. {
  2102. int referenced = 0;
  2103. int UNUSED insn_referenced = abuf->written;
  2104. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  2105. }
  2106. return cycles;
  2107. #undef FLD
  2108. }
  2109. static int
  2110. model_or1200_lf_cust1_s (SIM_CPU *current_cpu, void *sem_arg)
  2111. {
  2112. #define FLD(f) abuf->fields.sfmt_empty.f
  2113. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2114. const IDESC * UNUSED idesc = abuf->idesc;
  2115. int cycles = 0;
  2116. {
  2117. int referenced = 0;
  2118. int UNUSED insn_referenced = abuf->written;
  2119. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  2120. }
  2121. return cycles;
  2122. #undef FLD
  2123. }
  2124. static int
  2125. model_or1200_lf_cust1_d32 (SIM_CPU *current_cpu, void *sem_arg)
  2126. {
  2127. #define FLD(f) abuf->fields.sfmt_empty.f
  2128. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2129. const IDESC * UNUSED idesc = abuf->idesc;
  2130. int cycles = 0;
  2131. {
  2132. int referenced = 0;
  2133. int UNUSED insn_referenced = abuf->written;
  2134. cycles += or1k32bf_model_or1200_u_exec (current_cpu, idesc, 0, referenced);
  2135. }
  2136. return cycles;
  2137. #undef FLD
  2138. }
  2139. static int
  2140. model_or1200nd_l_j (SIM_CPU *current_cpu, void *sem_arg)
  2141. {
  2142. #define FLD(f) abuf->fields.sfmt_l_j.f
  2143. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2144. const IDESC * UNUSED idesc = abuf->idesc;
  2145. int cycles = 0;
  2146. {
  2147. int referenced = 0;
  2148. int UNUSED insn_referenced = abuf->written;
  2149. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2150. }
  2151. return cycles;
  2152. #undef FLD
  2153. }
  2154. static int
  2155. model_or1200nd_l_adrp (SIM_CPU *current_cpu, void *sem_arg)
  2156. {
  2157. #define FLD(f) abuf->fields.sfmt_l_adrp.f
  2158. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2159. const IDESC * UNUSED idesc = abuf->idesc;
  2160. int cycles = 0;
  2161. {
  2162. int referenced = 0;
  2163. int UNUSED insn_referenced = abuf->written;
  2164. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2165. }
  2166. return cycles;
  2167. #undef FLD
  2168. }
  2169. static int
  2170. model_or1200nd_l_jal (SIM_CPU *current_cpu, void *sem_arg)
  2171. {
  2172. #define FLD(f) abuf->fields.sfmt_l_j.f
  2173. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2174. const IDESC * UNUSED idesc = abuf->idesc;
  2175. int cycles = 0;
  2176. {
  2177. int referenced = 0;
  2178. int UNUSED insn_referenced = abuf->written;
  2179. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2180. }
  2181. return cycles;
  2182. #undef FLD
  2183. }
  2184. static int
  2185. model_or1200nd_l_jr (SIM_CPU *current_cpu, void *sem_arg)
  2186. {
  2187. #define FLD(f) abuf->fields.sfmt_l_sll.f
  2188. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2189. const IDESC * UNUSED idesc = abuf->idesc;
  2190. int cycles = 0;
  2191. {
  2192. int referenced = 0;
  2193. int UNUSED insn_referenced = abuf->written;
  2194. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2195. }
  2196. return cycles;
  2197. #undef FLD
  2198. }
  2199. static int
  2200. model_or1200nd_l_jalr (SIM_CPU *current_cpu, void *sem_arg)
  2201. {
  2202. #define FLD(f) abuf->fields.sfmt_l_sll.f
  2203. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2204. const IDESC * UNUSED idesc = abuf->idesc;
  2205. int cycles = 0;
  2206. {
  2207. int referenced = 0;
  2208. int UNUSED insn_referenced = abuf->written;
  2209. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2210. }
  2211. return cycles;
  2212. #undef FLD
  2213. }
  2214. static int
  2215. model_or1200nd_l_bnf (SIM_CPU *current_cpu, void *sem_arg)
  2216. {
  2217. #define FLD(f) abuf->fields.sfmt_l_j.f
  2218. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2219. const IDESC * UNUSED idesc = abuf->idesc;
  2220. int cycles = 0;
  2221. {
  2222. int referenced = 0;
  2223. int UNUSED insn_referenced = abuf->written;
  2224. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2225. }
  2226. return cycles;
  2227. #undef FLD
  2228. }
  2229. static int
  2230. model_or1200nd_l_bf (SIM_CPU *current_cpu, void *sem_arg)
  2231. {
  2232. #define FLD(f) abuf->fields.sfmt_l_j.f
  2233. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2234. const IDESC * UNUSED idesc = abuf->idesc;
  2235. int cycles = 0;
  2236. {
  2237. int referenced = 0;
  2238. int UNUSED insn_referenced = abuf->written;
  2239. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2240. }
  2241. return cycles;
  2242. #undef FLD
  2243. }
  2244. static int
  2245. model_or1200nd_l_trap (SIM_CPU *current_cpu, void *sem_arg)
  2246. {
  2247. #define FLD(f) abuf->fields.sfmt_empty.f
  2248. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2249. const IDESC * UNUSED idesc = abuf->idesc;
  2250. int cycles = 0;
  2251. {
  2252. int referenced = 0;
  2253. int UNUSED insn_referenced = abuf->written;
  2254. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2255. }
  2256. return cycles;
  2257. #undef FLD
  2258. }
  2259. static int
  2260. model_or1200nd_l_sys (SIM_CPU *current_cpu, void *sem_arg)
  2261. {
  2262. #define FLD(f) abuf->fields.sfmt_empty.f
  2263. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2264. const IDESC * UNUSED idesc = abuf->idesc;
  2265. int cycles = 0;
  2266. {
  2267. int referenced = 0;
  2268. int UNUSED insn_referenced = abuf->written;
  2269. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2270. }
  2271. return cycles;
  2272. #undef FLD
  2273. }
  2274. static int
  2275. model_or1200nd_l_msync (SIM_CPU *current_cpu, void *sem_arg)
  2276. {
  2277. #define FLD(f) abuf->fields.sfmt_empty.f
  2278. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2279. const IDESC * UNUSED idesc = abuf->idesc;
  2280. int cycles = 0;
  2281. {
  2282. int referenced = 0;
  2283. int UNUSED insn_referenced = abuf->written;
  2284. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2285. }
  2286. return cycles;
  2287. #undef FLD
  2288. }
  2289. static int
  2290. model_or1200nd_l_psync (SIM_CPU *current_cpu, void *sem_arg)
  2291. {
  2292. #define FLD(f) abuf->fields.sfmt_empty.f
  2293. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2294. const IDESC * UNUSED idesc = abuf->idesc;
  2295. int cycles = 0;
  2296. {
  2297. int referenced = 0;
  2298. int UNUSED insn_referenced = abuf->written;
  2299. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2300. }
  2301. return cycles;
  2302. #undef FLD
  2303. }
  2304. static int
  2305. model_or1200nd_l_csync (SIM_CPU *current_cpu, void *sem_arg)
  2306. {
  2307. #define FLD(f) abuf->fields.sfmt_empty.f
  2308. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2309. const IDESC * UNUSED idesc = abuf->idesc;
  2310. int cycles = 0;
  2311. {
  2312. int referenced = 0;
  2313. int UNUSED insn_referenced = abuf->written;
  2314. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2315. }
  2316. return cycles;
  2317. #undef FLD
  2318. }
  2319. static int
  2320. model_or1200nd_l_rfe (SIM_CPU *current_cpu, void *sem_arg)
  2321. {
  2322. #define FLD(f) abuf->fields.sfmt_empty.f
  2323. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2324. const IDESC * UNUSED idesc = abuf->idesc;
  2325. int cycles = 0;
  2326. {
  2327. int referenced = 0;
  2328. int UNUSED insn_referenced = abuf->written;
  2329. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2330. }
  2331. return cycles;
  2332. #undef FLD
  2333. }
  2334. static int
  2335. model_or1200nd_l_nop_imm (SIM_CPU *current_cpu, void *sem_arg)
  2336. {
  2337. #define FLD(f) abuf->fields.sfmt_l_mfspr.f
  2338. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2339. const IDESC * UNUSED idesc = abuf->idesc;
  2340. int cycles = 0;
  2341. {
  2342. int referenced = 0;
  2343. int UNUSED insn_referenced = abuf->written;
  2344. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2345. }
  2346. return cycles;
  2347. #undef FLD
  2348. }
  2349. static int
  2350. model_or1200nd_l_movhi (SIM_CPU *current_cpu, void *sem_arg)
  2351. {
  2352. #define FLD(f) abuf->fields.sfmt_l_mfspr.f
  2353. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2354. const IDESC * UNUSED idesc = abuf->idesc;
  2355. int cycles = 0;
  2356. {
  2357. int referenced = 0;
  2358. int UNUSED insn_referenced = abuf->written;
  2359. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2360. }
  2361. return cycles;
  2362. #undef FLD
  2363. }
  2364. static int
  2365. model_or1200nd_l_macrc (SIM_CPU *current_cpu, void *sem_arg)
  2366. {
  2367. #define FLD(f) abuf->fields.sfmt_l_adrp.f
  2368. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2369. const IDESC * UNUSED idesc = abuf->idesc;
  2370. int cycles = 0;
  2371. {
  2372. int referenced = 0;
  2373. int UNUSED insn_referenced = abuf->written;
  2374. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2375. }
  2376. return cycles;
  2377. #undef FLD
  2378. }
  2379. static int
  2380. model_or1200nd_l_mfspr (SIM_CPU *current_cpu, void *sem_arg)
  2381. {
  2382. #define FLD(f) abuf->fields.sfmt_l_mfspr.f
  2383. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2384. const IDESC * UNUSED idesc = abuf->idesc;
  2385. int cycles = 0;
  2386. {
  2387. int referenced = 0;
  2388. int UNUSED insn_referenced = abuf->written;
  2389. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2390. }
  2391. return cycles;
  2392. #undef FLD
  2393. }
  2394. static int
  2395. model_or1200nd_l_mtspr (SIM_CPU *current_cpu, void *sem_arg)
  2396. {
  2397. #define FLD(f) abuf->fields.sfmt_l_mtspr.f
  2398. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2399. const IDESC * UNUSED idesc = abuf->idesc;
  2400. int cycles = 0;
  2401. {
  2402. int referenced = 0;
  2403. int UNUSED insn_referenced = abuf->written;
  2404. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2405. }
  2406. return cycles;
  2407. #undef FLD
  2408. }
  2409. static int
  2410. model_or1200nd_l_lwz (SIM_CPU *current_cpu, void *sem_arg)
  2411. {
  2412. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  2413. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2414. const IDESC * UNUSED idesc = abuf->idesc;
  2415. int cycles = 0;
  2416. {
  2417. int referenced = 0;
  2418. int UNUSED insn_referenced = abuf->written;
  2419. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2420. }
  2421. return cycles;
  2422. #undef FLD
  2423. }
  2424. static int
  2425. model_or1200nd_l_lws (SIM_CPU *current_cpu, void *sem_arg)
  2426. {
  2427. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  2428. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2429. const IDESC * UNUSED idesc = abuf->idesc;
  2430. int cycles = 0;
  2431. {
  2432. int referenced = 0;
  2433. int UNUSED insn_referenced = abuf->written;
  2434. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2435. }
  2436. return cycles;
  2437. #undef FLD
  2438. }
  2439. static int
  2440. model_or1200nd_l_lwa (SIM_CPU *current_cpu, void *sem_arg)
  2441. {
  2442. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  2443. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2444. const IDESC * UNUSED idesc = abuf->idesc;
  2445. int cycles = 0;
  2446. {
  2447. int referenced = 0;
  2448. int UNUSED insn_referenced = abuf->written;
  2449. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2450. }
  2451. return cycles;
  2452. #undef FLD
  2453. }
  2454. static int
  2455. model_or1200nd_l_lbz (SIM_CPU *current_cpu, void *sem_arg)
  2456. {
  2457. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  2458. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2459. const IDESC * UNUSED idesc = abuf->idesc;
  2460. int cycles = 0;
  2461. {
  2462. int referenced = 0;
  2463. int UNUSED insn_referenced = abuf->written;
  2464. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2465. }
  2466. return cycles;
  2467. #undef FLD
  2468. }
  2469. static int
  2470. model_or1200nd_l_lbs (SIM_CPU *current_cpu, void *sem_arg)
  2471. {
  2472. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  2473. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2474. const IDESC * UNUSED idesc = abuf->idesc;
  2475. int cycles = 0;
  2476. {
  2477. int referenced = 0;
  2478. int UNUSED insn_referenced = abuf->written;
  2479. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2480. }
  2481. return cycles;
  2482. #undef FLD
  2483. }
  2484. static int
  2485. model_or1200nd_l_lhz (SIM_CPU *current_cpu, void *sem_arg)
  2486. {
  2487. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  2488. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2489. const IDESC * UNUSED idesc = abuf->idesc;
  2490. int cycles = 0;
  2491. {
  2492. int referenced = 0;
  2493. int UNUSED insn_referenced = abuf->written;
  2494. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2495. }
  2496. return cycles;
  2497. #undef FLD
  2498. }
  2499. static int
  2500. model_or1200nd_l_lhs (SIM_CPU *current_cpu, void *sem_arg)
  2501. {
  2502. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  2503. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2504. const IDESC * UNUSED idesc = abuf->idesc;
  2505. int cycles = 0;
  2506. {
  2507. int referenced = 0;
  2508. int UNUSED insn_referenced = abuf->written;
  2509. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2510. }
  2511. return cycles;
  2512. #undef FLD
  2513. }
  2514. static int
  2515. model_or1200nd_l_sw (SIM_CPU *current_cpu, void *sem_arg)
  2516. {
  2517. #define FLD(f) abuf->fields.sfmt_l_sw.f
  2518. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2519. const IDESC * UNUSED idesc = abuf->idesc;
  2520. int cycles = 0;
  2521. {
  2522. int referenced = 0;
  2523. int UNUSED insn_referenced = abuf->written;
  2524. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2525. }
  2526. return cycles;
  2527. #undef FLD
  2528. }
  2529. static int
  2530. model_or1200nd_l_sb (SIM_CPU *current_cpu, void *sem_arg)
  2531. {
  2532. #define FLD(f) abuf->fields.sfmt_l_sw.f
  2533. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2534. const IDESC * UNUSED idesc = abuf->idesc;
  2535. int cycles = 0;
  2536. {
  2537. int referenced = 0;
  2538. int UNUSED insn_referenced = abuf->written;
  2539. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2540. }
  2541. return cycles;
  2542. #undef FLD
  2543. }
  2544. static int
  2545. model_or1200nd_l_sh (SIM_CPU *current_cpu, void *sem_arg)
  2546. {
  2547. #define FLD(f) abuf->fields.sfmt_l_sw.f
  2548. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2549. const IDESC * UNUSED idesc = abuf->idesc;
  2550. int cycles = 0;
  2551. {
  2552. int referenced = 0;
  2553. int UNUSED insn_referenced = abuf->written;
  2554. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2555. }
  2556. return cycles;
  2557. #undef FLD
  2558. }
  2559. static int
  2560. model_or1200nd_l_swa (SIM_CPU *current_cpu, void *sem_arg)
  2561. {
  2562. #define FLD(f) abuf->fields.sfmt_l_sw.f
  2563. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2564. const IDESC * UNUSED idesc = abuf->idesc;
  2565. int cycles = 0;
  2566. {
  2567. int referenced = 0;
  2568. int UNUSED insn_referenced = abuf->written;
  2569. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2570. }
  2571. return cycles;
  2572. #undef FLD
  2573. }
  2574. static int
  2575. model_or1200nd_l_sll (SIM_CPU *current_cpu, void *sem_arg)
  2576. {
  2577. #define FLD(f) abuf->fields.sfmt_l_sll.f
  2578. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2579. const IDESC * UNUSED idesc = abuf->idesc;
  2580. int cycles = 0;
  2581. {
  2582. int referenced = 0;
  2583. int UNUSED insn_referenced = abuf->written;
  2584. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2585. }
  2586. return cycles;
  2587. #undef FLD
  2588. }
  2589. static int
  2590. model_or1200nd_l_slli (SIM_CPU *current_cpu, void *sem_arg)
  2591. {
  2592. #define FLD(f) abuf->fields.sfmt_l_slli.f
  2593. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2594. const IDESC * UNUSED idesc = abuf->idesc;
  2595. int cycles = 0;
  2596. {
  2597. int referenced = 0;
  2598. int UNUSED insn_referenced = abuf->written;
  2599. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2600. }
  2601. return cycles;
  2602. #undef FLD
  2603. }
  2604. static int
  2605. model_or1200nd_l_srl (SIM_CPU *current_cpu, void *sem_arg)
  2606. {
  2607. #define FLD(f) abuf->fields.sfmt_l_sll.f
  2608. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2609. const IDESC * UNUSED idesc = abuf->idesc;
  2610. int cycles = 0;
  2611. {
  2612. int referenced = 0;
  2613. int UNUSED insn_referenced = abuf->written;
  2614. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2615. }
  2616. return cycles;
  2617. #undef FLD
  2618. }
  2619. static int
  2620. model_or1200nd_l_srli (SIM_CPU *current_cpu, void *sem_arg)
  2621. {
  2622. #define FLD(f) abuf->fields.sfmt_l_slli.f
  2623. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2624. const IDESC * UNUSED idesc = abuf->idesc;
  2625. int cycles = 0;
  2626. {
  2627. int referenced = 0;
  2628. int UNUSED insn_referenced = abuf->written;
  2629. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2630. }
  2631. return cycles;
  2632. #undef FLD
  2633. }
  2634. static int
  2635. model_or1200nd_l_sra (SIM_CPU *current_cpu, void *sem_arg)
  2636. {
  2637. #define FLD(f) abuf->fields.sfmt_l_sll.f
  2638. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2639. const IDESC * UNUSED idesc = abuf->idesc;
  2640. int cycles = 0;
  2641. {
  2642. int referenced = 0;
  2643. int UNUSED insn_referenced = abuf->written;
  2644. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2645. }
  2646. return cycles;
  2647. #undef FLD
  2648. }
  2649. static int
  2650. model_or1200nd_l_srai (SIM_CPU *current_cpu, void *sem_arg)
  2651. {
  2652. #define FLD(f) abuf->fields.sfmt_l_slli.f
  2653. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2654. const IDESC * UNUSED idesc = abuf->idesc;
  2655. int cycles = 0;
  2656. {
  2657. int referenced = 0;
  2658. int UNUSED insn_referenced = abuf->written;
  2659. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2660. }
  2661. return cycles;
  2662. #undef FLD
  2663. }
  2664. static int
  2665. model_or1200nd_l_ror (SIM_CPU *current_cpu, void *sem_arg)
  2666. {
  2667. #define FLD(f) abuf->fields.sfmt_l_sll.f
  2668. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2669. const IDESC * UNUSED idesc = abuf->idesc;
  2670. int cycles = 0;
  2671. {
  2672. int referenced = 0;
  2673. int UNUSED insn_referenced = abuf->written;
  2674. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2675. }
  2676. return cycles;
  2677. #undef FLD
  2678. }
  2679. static int
  2680. model_or1200nd_l_rori (SIM_CPU *current_cpu, void *sem_arg)
  2681. {
  2682. #define FLD(f) abuf->fields.sfmt_l_slli.f
  2683. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2684. const IDESC * UNUSED idesc = abuf->idesc;
  2685. int cycles = 0;
  2686. {
  2687. int referenced = 0;
  2688. int UNUSED insn_referenced = abuf->written;
  2689. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2690. }
  2691. return cycles;
  2692. #undef FLD
  2693. }
  2694. static int
  2695. model_or1200nd_l_and (SIM_CPU *current_cpu, void *sem_arg)
  2696. {
  2697. #define FLD(f) abuf->fields.sfmt_l_sll.f
  2698. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2699. const IDESC * UNUSED idesc = abuf->idesc;
  2700. int cycles = 0;
  2701. {
  2702. int referenced = 0;
  2703. int UNUSED insn_referenced = abuf->written;
  2704. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2705. }
  2706. return cycles;
  2707. #undef FLD
  2708. }
  2709. static int
  2710. model_or1200nd_l_or (SIM_CPU *current_cpu, void *sem_arg)
  2711. {
  2712. #define FLD(f) abuf->fields.sfmt_l_sll.f
  2713. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2714. const IDESC * UNUSED idesc = abuf->idesc;
  2715. int cycles = 0;
  2716. {
  2717. int referenced = 0;
  2718. int UNUSED insn_referenced = abuf->written;
  2719. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2720. }
  2721. return cycles;
  2722. #undef FLD
  2723. }
  2724. static int
  2725. model_or1200nd_l_xor (SIM_CPU *current_cpu, void *sem_arg)
  2726. {
  2727. #define FLD(f) abuf->fields.sfmt_l_sll.f
  2728. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2729. const IDESC * UNUSED idesc = abuf->idesc;
  2730. int cycles = 0;
  2731. {
  2732. int referenced = 0;
  2733. int UNUSED insn_referenced = abuf->written;
  2734. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2735. }
  2736. return cycles;
  2737. #undef FLD
  2738. }
  2739. static int
  2740. model_or1200nd_l_add (SIM_CPU *current_cpu, void *sem_arg)
  2741. {
  2742. #define FLD(f) abuf->fields.sfmt_l_sll.f
  2743. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2744. const IDESC * UNUSED idesc = abuf->idesc;
  2745. int cycles = 0;
  2746. {
  2747. int referenced = 0;
  2748. int UNUSED insn_referenced = abuf->written;
  2749. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2750. }
  2751. return cycles;
  2752. #undef FLD
  2753. }
  2754. static int
  2755. model_or1200nd_l_sub (SIM_CPU *current_cpu, void *sem_arg)
  2756. {
  2757. #define FLD(f) abuf->fields.sfmt_l_sll.f
  2758. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2759. const IDESC * UNUSED idesc = abuf->idesc;
  2760. int cycles = 0;
  2761. {
  2762. int referenced = 0;
  2763. int UNUSED insn_referenced = abuf->written;
  2764. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2765. }
  2766. return cycles;
  2767. #undef FLD
  2768. }
  2769. static int
  2770. model_or1200nd_l_addc (SIM_CPU *current_cpu, void *sem_arg)
  2771. {
  2772. #define FLD(f) abuf->fields.sfmt_l_sll.f
  2773. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2774. const IDESC * UNUSED idesc = abuf->idesc;
  2775. int cycles = 0;
  2776. {
  2777. int referenced = 0;
  2778. int UNUSED insn_referenced = abuf->written;
  2779. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2780. }
  2781. return cycles;
  2782. #undef FLD
  2783. }
  2784. static int
  2785. model_or1200nd_l_mul (SIM_CPU *current_cpu, void *sem_arg)
  2786. {
  2787. #define FLD(f) abuf->fields.sfmt_l_sll.f
  2788. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2789. const IDESC * UNUSED idesc = abuf->idesc;
  2790. int cycles = 0;
  2791. {
  2792. int referenced = 0;
  2793. int UNUSED insn_referenced = abuf->written;
  2794. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2795. }
  2796. return cycles;
  2797. #undef FLD
  2798. }
  2799. static int
  2800. model_or1200nd_l_muld (SIM_CPU *current_cpu, void *sem_arg)
  2801. {
  2802. #define FLD(f) abuf->fields.sfmt_l_sll.f
  2803. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2804. const IDESC * UNUSED idesc = abuf->idesc;
  2805. int cycles = 0;
  2806. {
  2807. int referenced = 0;
  2808. int UNUSED insn_referenced = abuf->written;
  2809. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2810. }
  2811. return cycles;
  2812. #undef FLD
  2813. }
  2814. static int
  2815. model_or1200nd_l_mulu (SIM_CPU *current_cpu, void *sem_arg)
  2816. {
  2817. #define FLD(f) abuf->fields.sfmt_l_sll.f
  2818. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2819. const IDESC * UNUSED idesc = abuf->idesc;
  2820. int cycles = 0;
  2821. {
  2822. int referenced = 0;
  2823. int UNUSED insn_referenced = abuf->written;
  2824. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2825. }
  2826. return cycles;
  2827. #undef FLD
  2828. }
  2829. static int
  2830. model_or1200nd_l_muldu (SIM_CPU *current_cpu, void *sem_arg)
  2831. {
  2832. #define FLD(f) abuf->fields.sfmt_l_sll.f
  2833. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2834. const IDESC * UNUSED idesc = abuf->idesc;
  2835. int cycles = 0;
  2836. {
  2837. int referenced = 0;
  2838. int UNUSED insn_referenced = abuf->written;
  2839. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2840. }
  2841. return cycles;
  2842. #undef FLD
  2843. }
  2844. static int
  2845. model_or1200nd_l_div (SIM_CPU *current_cpu, void *sem_arg)
  2846. {
  2847. #define FLD(f) abuf->fields.sfmt_l_sll.f
  2848. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2849. const IDESC * UNUSED idesc = abuf->idesc;
  2850. int cycles = 0;
  2851. {
  2852. int referenced = 0;
  2853. int UNUSED insn_referenced = abuf->written;
  2854. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2855. }
  2856. return cycles;
  2857. #undef FLD
  2858. }
  2859. static int
  2860. model_or1200nd_l_divu (SIM_CPU *current_cpu, void *sem_arg)
  2861. {
  2862. #define FLD(f) abuf->fields.sfmt_l_sll.f
  2863. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2864. const IDESC * UNUSED idesc = abuf->idesc;
  2865. int cycles = 0;
  2866. {
  2867. int referenced = 0;
  2868. int UNUSED insn_referenced = abuf->written;
  2869. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2870. }
  2871. return cycles;
  2872. #undef FLD
  2873. }
  2874. static int
  2875. model_or1200nd_l_ff1 (SIM_CPU *current_cpu, void *sem_arg)
  2876. {
  2877. #define FLD(f) abuf->fields.sfmt_l_slli.f
  2878. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2879. const IDESC * UNUSED idesc = abuf->idesc;
  2880. int cycles = 0;
  2881. {
  2882. int referenced = 0;
  2883. int UNUSED insn_referenced = abuf->written;
  2884. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2885. }
  2886. return cycles;
  2887. #undef FLD
  2888. }
  2889. static int
  2890. model_or1200nd_l_fl1 (SIM_CPU *current_cpu, void *sem_arg)
  2891. {
  2892. #define FLD(f) abuf->fields.sfmt_l_slli.f
  2893. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2894. const IDESC * UNUSED idesc = abuf->idesc;
  2895. int cycles = 0;
  2896. {
  2897. int referenced = 0;
  2898. int UNUSED insn_referenced = abuf->written;
  2899. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2900. }
  2901. return cycles;
  2902. #undef FLD
  2903. }
  2904. static int
  2905. model_or1200nd_l_andi (SIM_CPU *current_cpu, void *sem_arg)
  2906. {
  2907. #define FLD(f) abuf->fields.sfmt_l_mfspr.f
  2908. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2909. const IDESC * UNUSED idesc = abuf->idesc;
  2910. int cycles = 0;
  2911. {
  2912. int referenced = 0;
  2913. int UNUSED insn_referenced = abuf->written;
  2914. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2915. }
  2916. return cycles;
  2917. #undef FLD
  2918. }
  2919. static int
  2920. model_or1200nd_l_ori (SIM_CPU *current_cpu, void *sem_arg)
  2921. {
  2922. #define FLD(f) abuf->fields.sfmt_l_mfspr.f
  2923. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2924. const IDESC * UNUSED idesc = abuf->idesc;
  2925. int cycles = 0;
  2926. {
  2927. int referenced = 0;
  2928. int UNUSED insn_referenced = abuf->written;
  2929. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2930. }
  2931. return cycles;
  2932. #undef FLD
  2933. }
  2934. static int
  2935. model_or1200nd_l_xori (SIM_CPU *current_cpu, void *sem_arg)
  2936. {
  2937. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  2938. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2939. const IDESC * UNUSED idesc = abuf->idesc;
  2940. int cycles = 0;
  2941. {
  2942. int referenced = 0;
  2943. int UNUSED insn_referenced = abuf->written;
  2944. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2945. }
  2946. return cycles;
  2947. #undef FLD
  2948. }
  2949. static int
  2950. model_or1200nd_l_addi (SIM_CPU *current_cpu, void *sem_arg)
  2951. {
  2952. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  2953. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2954. const IDESC * UNUSED idesc = abuf->idesc;
  2955. int cycles = 0;
  2956. {
  2957. int referenced = 0;
  2958. int UNUSED insn_referenced = abuf->written;
  2959. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2960. }
  2961. return cycles;
  2962. #undef FLD
  2963. }
  2964. static int
  2965. model_or1200nd_l_addic (SIM_CPU *current_cpu, void *sem_arg)
  2966. {
  2967. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  2968. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2969. const IDESC * UNUSED idesc = abuf->idesc;
  2970. int cycles = 0;
  2971. {
  2972. int referenced = 0;
  2973. int UNUSED insn_referenced = abuf->written;
  2974. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2975. }
  2976. return cycles;
  2977. #undef FLD
  2978. }
  2979. static int
  2980. model_or1200nd_l_muli (SIM_CPU *current_cpu, void *sem_arg)
  2981. {
  2982. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  2983. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2984. const IDESC * UNUSED idesc = abuf->idesc;
  2985. int cycles = 0;
  2986. {
  2987. int referenced = 0;
  2988. int UNUSED insn_referenced = abuf->written;
  2989. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  2990. }
  2991. return cycles;
  2992. #undef FLD
  2993. }
  2994. static int
  2995. model_or1200nd_l_exths (SIM_CPU *current_cpu, void *sem_arg)
  2996. {
  2997. #define FLD(f) abuf->fields.sfmt_l_slli.f
  2998. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  2999. const IDESC * UNUSED idesc = abuf->idesc;
  3000. int cycles = 0;
  3001. {
  3002. int referenced = 0;
  3003. int UNUSED insn_referenced = abuf->written;
  3004. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3005. }
  3006. return cycles;
  3007. #undef FLD
  3008. }
  3009. static int
  3010. model_or1200nd_l_extbs (SIM_CPU *current_cpu, void *sem_arg)
  3011. {
  3012. #define FLD(f) abuf->fields.sfmt_l_slli.f
  3013. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3014. const IDESC * UNUSED idesc = abuf->idesc;
  3015. int cycles = 0;
  3016. {
  3017. int referenced = 0;
  3018. int UNUSED insn_referenced = abuf->written;
  3019. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3020. }
  3021. return cycles;
  3022. #undef FLD
  3023. }
  3024. static int
  3025. model_or1200nd_l_exthz (SIM_CPU *current_cpu, void *sem_arg)
  3026. {
  3027. #define FLD(f) abuf->fields.sfmt_l_slli.f
  3028. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3029. const IDESC * UNUSED idesc = abuf->idesc;
  3030. int cycles = 0;
  3031. {
  3032. int referenced = 0;
  3033. int UNUSED insn_referenced = abuf->written;
  3034. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3035. }
  3036. return cycles;
  3037. #undef FLD
  3038. }
  3039. static int
  3040. model_or1200nd_l_extbz (SIM_CPU *current_cpu, void *sem_arg)
  3041. {
  3042. #define FLD(f) abuf->fields.sfmt_l_slli.f
  3043. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3044. const IDESC * UNUSED idesc = abuf->idesc;
  3045. int cycles = 0;
  3046. {
  3047. int referenced = 0;
  3048. int UNUSED insn_referenced = abuf->written;
  3049. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3050. }
  3051. return cycles;
  3052. #undef FLD
  3053. }
  3054. static int
  3055. model_or1200nd_l_extws (SIM_CPU *current_cpu, void *sem_arg)
  3056. {
  3057. #define FLD(f) abuf->fields.sfmt_l_slli.f
  3058. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3059. const IDESC * UNUSED idesc = abuf->idesc;
  3060. int cycles = 0;
  3061. {
  3062. int referenced = 0;
  3063. int UNUSED insn_referenced = abuf->written;
  3064. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3065. }
  3066. return cycles;
  3067. #undef FLD
  3068. }
  3069. static int
  3070. model_or1200nd_l_extwz (SIM_CPU *current_cpu, void *sem_arg)
  3071. {
  3072. #define FLD(f) abuf->fields.sfmt_l_slli.f
  3073. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3074. const IDESC * UNUSED idesc = abuf->idesc;
  3075. int cycles = 0;
  3076. {
  3077. int referenced = 0;
  3078. int UNUSED insn_referenced = abuf->written;
  3079. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3080. }
  3081. return cycles;
  3082. #undef FLD
  3083. }
  3084. static int
  3085. model_or1200nd_l_cmov (SIM_CPU *current_cpu, void *sem_arg)
  3086. {
  3087. #define FLD(f) abuf->fields.sfmt_l_sll.f
  3088. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3089. const IDESC * UNUSED idesc = abuf->idesc;
  3090. int cycles = 0;
  3091. {
  3092. int referenced = 0;
  3093. int UNUSED insn_referenced = abuf->written;
  3094. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3095. }
  3096. return cycles;
  3097. #undef FLD
  3098. }
  3099. static int
  3100. model_or1200nd_l_sfgts (SIM_CPU *current_cpu, void *sem_arg)
  3101. {
  3102. #define FLD(f) abuf->fields.sfmt_l_sll.f
  3103. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3104. const IDESC * UNUSED idesc = abuf->idesc;
  3105. int cycles = 0;
  3106. {
  3107. int referenced = 0;
  3108. int UNUSED insn_referenced = abuf->written;
  3109. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3110. }
  3111. return cycles;
  3112. #undef FLD
  3113. }
  3114. static int
  3115. model_or1200nd_l_sfgtsi (SIM_CPU *current_cpu, void *sem_arg)
  3116. {
  3117. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  3118. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3119. const IDESC * UNUSED idesc = abuf->idesc;
  3120. int cycles = 0;
  3121. {
  3122. int referenced = 0;
  3123. int UNUSED insn_referenced = abuf->written;
  3124. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3125. }
  3126. return cycles;
  3127. #undef FLD
  3128. }
  3129. static int
  3130. model_or1200nd_l_sfgtu (SIM_CPU *current_cpu, void *sem_arg)
  3131. {
  3132. #define FLD(f) abuf->fields.sfmt_l_sll.f
  3133. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3134. const IDESC * UNUSED idesc = abuf->idesc;
  3135. int cycles = 0;
  3136. {
  3137. int referenced = 0;
  3138. int UNUSED insn_referenced = abuf->written;
  3139. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3140. }
  3141. return cycles;
  3142. #undef FLD
  3143. }
  3144. static int
  3145. model_or1200nd_l_sfgtui (SIM_CPU *current_cpu, void *sem_arg)
  3146. {
  3147. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  3148. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3149. const IDESC * UNUSED idesc = abuf->idesc;
  3150. int cycles = 0;
  3151. {
  3152. int referenced = 0;
  3153. int UNUSED insn_referenced = abuf->written;
  3154. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3155. }
  3156. return cycles;
  3157. #undef FLD
  3158. }
  3159. static int
  3160. model_or1200nd_l_sfges (SIM_CPU *current_cpu, void *sem_arg)
  3161. {
  3162. #define FLD(f) abuf->fields.sfmt_l_sll.f
  3163. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3164. const IDESC * UNUSED idesc = abuf->idesc;
  3165. int cycles = 0;
  3166. {
  3167. int referenced = 0;
  3168. int UNUSED insn_referenced = abuf->written;
  3169. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3170. }
  3171. return cycles;
  3172. #undef FLD
  3173. }
  3174. static int
  3175. model_or1200nd_l_sfgesi (SIM_CPU *current_cpu, void *sem_arg)
  3176. {
  3177. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  3178. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3179. const IDESC * UNUSED idesc = abuf->idesc;
  3180. int cycles = 0;
  3181. {
  3182. int referenced = 0;
  3183. int UNUSED insn_referenced = abuf->written;
  3184. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3185. }
  3186. return cycles;
  3187. #undef FLD
  3188. }
  3189. static int
  3190. model_or1200nd_l_sfgeu (SIM_CPU *current_cpu, void *sem_arg)
  3191. {
  3192. #define FLD(f) abuf->fields.sfmt_l_sll.f
  3193. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3194. const IDESC * UNUSED idesc = abuf->idesc;
  3195. int cycles = 0;
  3196. {
  3197. int referenced = 0;
  3198. int UNUSED insn_referenced = abuf->written;
  3199. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3200. }
  3201. return cycles;
  3202. #undef FLD
  3203. }
  3204. static int
  3205. model_or1200nd_l_sfgeui (SIM_CPU *current_cpu, void *sem_arg)
  3206. {
  3207. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  3208. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3209. const IDESC * UNUSED idesc = abuf->idesc;
  3210. int cycles = 0;
  3211. {
  3212. int referenced = 0;
  3213. int UNUSED insn_referenced = abuf->written;
  3214. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3215. }
  3216. return cycles;
  3217. #undef FLD
  3218. }
  3219. static int
  3220. model_or1200nd_l_sflts (SIM_CPU *current_cpu, void *sem_arg)
  3221. {
  3222. #define FLD(f) abuf->fields.sfmt_l_sll.f
  3223. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3224. const IDESC * UNUSED idesc = abuf->idesc;
  3225. int cycles = 0;
  3226. {
  3227. int referenced = 0;
  3228. int UNUSED insn_referenced = abuf->written;
  3229. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3230. }
  3231. return cycles;
  3232. #undef FLD
  3233. }
  3234. static int
  3235. model_or1200nd_l_sfltsi (SIM_CPU *current_cpu, void *sem_arg)
  3236. {
  3237. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  3238. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3239. const IDESC * UNUSED idesc = abuf->idesc;
  3240. int cycles = 0;
  3241. {
  3242. int referenced = 0;
  3243. int UNUSED insn_referenced = abuf->written;
  3244. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3245. }
  3246. return cycles;
  3247. #undef FLD
  3248. }
  3249. static int
  3250. model_or1200nd_l_sfltu (SIM_CPU *current_cpu, void *sem_arg)
  3251. {
  3252. #define FLD(f) abuf->fields.sfmt_l_sll.f
  3253. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3254. const IDESC * UNUSED idesc = abuf->idesc;
  3255. int cycles = 0;
  3256. {
  3257. int referenced = 0;
  3258. int UNUSED insn_referenced = abuf->written;
  3259. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3260. }
  3261. return cycles;
  3262. #undef FLD
  3263. }
  3264. static int
  3265. model_or1200nd_l_sfltui (SIM_CPU *current_cpu, void *sem_arg)
  3266. {
  3267. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  3268. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3269. const IDESC * UNUSED idesc = abuf->idesc;
  3270. int cycles = 0;
  3271. {
  3272. int referenced = 0;
  3273. int UNUSED insn_referenced = abuf->written;
  3274. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3275. }
  3276. return cycles;
  3277. #undef FLD
  3278. }
  3279. static int
  3280. model_or1200nd_l_sfles (SIM_CPU *current_cpu, void *sem_arg)
  3281. {
  3282. #define FLD(f) abuf->fields.sfmt_l_sll.f
  3283. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3284. const IDESC * UNUSED idesc = abuf->idesc;
  3285. int cycles = 0;
  3286. {
  3287. int referenced = 0;
  3288. int UNUSED insn_referenced = abuf->written;
  3289. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3290. }
  3291. return cycles;
  3292. #undef FLD
  3293. }
  3294. static int
  3295. model_or1200nd_l_sflesi (SIM_CPU *current_cpu, void *sem_arg)
  3296. {
  3297. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  3298. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3299. const IDESC * UNUSED idesc = abuf->idesc;
  3300. int cycles = 0;
  3301. {
  3302. int referenced = 0;
  3303. int UNUSED insn_referenced = abuf->written;
  3304. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3305. }
  3306. return cycles;
  3307. #undef FLD
  3308. }
  3309. static int
  3310. model_or1200nd_l_sfleu (SIM_CPU *current_cpu, void *sem_arg)
  3311. {
  3312. #define FLD(f) abuf->fields.sfmt_l_sll.f
  3313. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3314. const IDESC * UNUSED idesc = abuf->idesc;
  3315. int cycles = 0;
  3316. {
  3317. int referenced = 0;
  3318. int UNUSED insn_referenced = abuf->written;
  3319. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3320. }
  3321. return cycles;
  3322. #undef FLD
  3323. }
  3324. static int
  3325. model_or1200nd_l_sfleui (SIM_CPU *current_cpu, void *sem_arg)
  3326. {
  3327. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  3328. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3329. const IDESC * UNUSED idesc = abuf->idesc;
  3330. int cycles = 0;
  3331. {
  3332. int referenced = 0;
  3333. int UNUSED insn_referenced = abuf->written;
  3334. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3335. }
  3336. return cycles;
  3337. #undef FLD
  3338. }
  3339. static int
  3340. model_or1200nd_l_sfeq (SIM_CPU *current_cpu, void *sem_arg)
  3341. {
  3342. #define FLD(f) abuf->fields.sfmt_l_sll.f
  3343. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3344. const IDESC * UNUSED idesc = abuf->idesc;
  3345. int cycles = 0;
  3346. {
  3347. int referenced = 0;
  3348. int UNUSED insn_referenced = abuf->written;
  3349. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3350. }
  3351. return cycles;
  3352. #undef FLD
  3353. }
  3354. static int
  3355. model_or1200nd_l_sfeqi (SIM_CPU *current_cpu, void *sem_arg)
  3356. {
  3357. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  3358. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3359. const IDESC * UNUSED idesc = abuf->idesc;
  3360. int cycles = 0;
  3361. {
  3362. int referenced = 0;
  3363. int UNUSED insn_referenced = abuf->written;
  3364. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3365. }
  3366. return cycles;
  3367. #undef FLD
  3368. }
  3369. static int
  3370. model_or1200nd_l_sfne (SIM_CPU *current_cpu, void *sem_arg)
  3371. {
  3372. #define FLD(f) abuf->fields.sfmt_l_sll.f
  3373. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3374. const IDESC * UNUSED idesc = abuf->idesc;
  3375. int cycles = 0;
  3376. {
  3377. int referenced = 0;
  3378. int UNUSED insn_referenced = abuf->written;
  3379. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3380. }
  3381. return cycles;
  3382. #undef FLD
  3383. }
  3384. static int
  3385. model_or1200nd_l_sfnei (SIM_CPU *current_cpu, void *sem_arg)
  3386. {
  3387. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  3388. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3389. const IDESC * UNUSED idesc = abuf->idesc;
  3390. int cycles = 0;
  3391. {
  3392. int referenced = 0;
  3393. int UNUSED insn_referenced = abuf->written;
  3394. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3395. }
  3396. return cycles;
  3397. #undef FLD
  3398. }
  3399. static int
  3400. model_or1200nd_l_mac (SIM_CPU *current_cpu, void *sem_arg)
  3401. {
  3402. #define FLD(f) abuf->fields.sfmt_l_sll.f
  3403. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3404. const IDESC * UNUSED idesc = abuf->idesc;
  3405. int cycles = 0;
  3406. {
  3407. int referenced = 0;
  3408. int UNUSED insn_referenced = abuf->written;
  3409. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3410. }
  3411. return cycles;
  3412. #undef FLD
  3413. }
  3414. static int
  3415. model_or1200nd_l_maci (SIM_CPU *current_cpu, void *sem_arg)
  3416. {
  3417. #define FLD(f) abuf->fields.sfmt_l_lwz.f
  3418. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3419. const IDESC * UNUSED idesc = abuf->idesc;
  3420. int cycles = 0;
  3421. {
  3422. int referenced = 0;
  3423. int UNUSED insn_referenced = abuf->written;
  3424. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3425. }
  3426. return cycles;
  3427. #undef FLD
  3428. }
  3429. static int
  3430. model_or1200nd_l_macu (SIM_CPU *current_cpu, void *sem_arg)
  3431. {
  3432. #define FLD(f) abuf->fields.sfmt_l_sll.f
  3433. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3434. const IDESC * UNUSED idesc = abuf->idesc;
  3435. int cycles = 0;
  3436. {
  3437. int referenced = 0;
  3438. int UNUSED insn_referenced = abuf->written;
  3439. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3440. }
  3441. return cycles;
  3442. #undef FLD
  3443. }
  3444. static int
  3445. model_or1200nd_l_msb (SIM_CPU *current_cpu, void *sem_arg)
  3446. {
  3447. #define FLD(f) abuf->fields.sfmt_l_sll.f
  3448. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3449. const IDESC * UNUSED idesc = abuf->idesc;
  3450. int cycles = 0;
  3451. {
  3452. int referenced = 0;
  3453. int UNUSED insn_referenced = abuf->written;
  3454. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3455. }
  3456. return cycles;
  3457. #undef FLD
  3458. }
  3459. static int
  3460. model_or1200nd_l_msbu (SIM_CPU *current_cpu, void *sem_arg)
  3461. {
  3462. #define FLD(f) abuf->fields.sfmt_l_sll.f
  3463. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3464. const IDESC * UNUSED idesc = abuf->idesc;
  3465. int cycles = 0;
  3466. {
  3467. int referenced = 0;
  3468. int UNUSED insn_referenced = abuf->written;
  3469. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3470. }
  3471. return cycles;
  3472. #undef FLD
  3473. }
  3474. static int
  3475. model_or1200nd_l_cust1 (SIM_CPU *current_cpu, void *sem_arg)
  3476. {
  3477. #define FLD(f) abuf->fields.sfmt_empty.f
  3478. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3479. const IDESC * UNUSED idesc = abuf->idesc;
  3480. int cycles = 0;
  3481. {
  3482. int referenced = 0;
  3483. int UNUSED insn_referenced = abuf->written;
  3484. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3485. }
  3486. return cycles;
  3487. #undef FLD
  3488. }
  3489. static int
  3490. model_or1200nd_l_cust2 (SIM_CPU *current_cpu, void *sem_arg)
  3491. {
  3492. #define FLD(f) abuf->fields.sfmt_empty.f
  3493. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3494. const IDESC * UNUSED idesc = abuf->idesc;
  3495. int cycles = 0;
  3496. {
  3497. int referenced = 0;
  3498. int UNUSED insn_referenced = abuf->written;
  3499. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3500. }
  3501. return cycles;
  3502. #undef FLD
  3503. }
  3504. static int
  3505. model_or1200nd_l_cust3 (SIM_CPU *current_cpu, void *sem_arg)
  3506. {
  3507. #define FLD(f) abuf->fields.sfmt_empty.f
  3508. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3509. const IDESC * UNUSED idesc = abuf->idesc;
  3510. int cycles = 0;
  3511. {
  3512. int referenced = 0;
  3513. int UNUSED insn_referenced = abuf->written;
  3514. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3515. }
  3516. return cycles;
  3517. #undef FLD
  3518. }
  3519. static int
  3520. model_or1200nd_l_cust4 (SIM_CPU *current_cpu, void *sem_arg)
  3521. {
  3522. #define FLD(f) abuf->fields.sfmt_empty.f
  3523. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3524. const IDESC * UNUSED idesc = abuf->idesc;
  3525. int cycles = 0;
  3526. {
  3527. int referenced = 0;
  3528. int UNUSED insn_referenced = abuf->written;
  3529. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3530. }
  3531. return cycles;
  3532. #undef FLD
  3533. }
  3534. static int
  3535. model_or1200nd_l_cust5 (SIM_CPU *current_cpu, void *sem_arg)
  3536. {
  3537. #define FLD(f) abuf->fields.sfmt_empty.f
  3538. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3539. const IDESC * UNUSED idesc = abuf->idesc;
  3540. int cycles = 0;
  3541. {
  3542. int referenced = 0;
  3543. int UNUSED insn_referenced = abuf->written;
  3544. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3545. }
  3546. return cycles;
  3547. #undef FLD
  3548. }
  3549. static int
  3550. model_or1200nd_l_cust6 (SIM_CPU *current_cpu, void *sem_arg)
  3551. {
  3552. #define FLD(f) abuf->fields.sfmt_empty.f
  3553. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3554. const IDESC * UNUSED idesc = abuf->idesc;
  3555. int cycles = 0;
  3556. {
  3557. int referenced = 0;
  3558. int UNUSED insn_referenced = abuf->written;
  3559. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3560. }
  3561. return cycles;
  3562. #undef FLD
  3563. }
  3564. static int
  3565. model_or1200nd_l_cust7 (SIM_CPU *current_cpu, void *sem_arg)
  3566. {
  3567. #define FLD(f) abuf->fields.sfmt_empty.f
  3568. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3569. const IDESC * UNUSED idesc = abuf->idesc;
  3570. int cycles = 0;
  3571. {
  3572. int referenced = 0;
  3573. int UNUSED insn_referenced = abuf->written;
  3574. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3575. }
  3576. return cycles;
  3577. #undef FLD
  3578. }
  3579. static int
  3580. model_or1200nd_l_cust8 (SIM_CPU *current_cpu, void *sem_arg)
  3581. {
  3582. #define FLD(f) abuf->fields.sfmt_empty.f
  3583. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3584. const IDESC * UNUSED idesc = abuf->idesc;
  3585. int cycles = 0;
  3586. {
  3587. int referenced = 0;
  3588. int UNUSED insn_referenced = abuf->written;
  3589. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3590. }
  3591. return cycles;
  3592. #undef FLD
  3593. }
  3594. static int
  3595. model_or1200nd_lf_add_s (SIM_CPU *current_cpu, void *sem_arg)
  3596. {
  3597. #define FLD(f) abuf->fields.sfmt_l_sll.f
  3598. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3599. const IDESC * UNUSED idesc = abuf->idesc;
  3600. int cycles = 0;
  3601. {
  3602. int referenced = 0;
  3603. int UNUSED insn_referenced = abuf->written;
  3604. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3605. }
  3606. return cycles;
  3607. #undef FLD
  3608. }
  3609. static int
  3610. model_or1200nd_lf_add_d32 (SIM_CPU *current_cpu, void *sem_arg)
  3611. {
  3612. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  3613. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3614. const IDESC * UNUSED idesc = abuf->idesc;
  3615. int cycles = 0;
  3616. {
  3617. int referenced = 0;
  3618. int UNUSED insn_referenced = abuf->written;
  3619. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3620. }
  3621. return cycles;
  3622. #undef FLD
  3623. }
  3624. static int
  3625. model_or1200nd_lf_sub_s (SIM_CPU *current_cpu, void *sem_arg)
  3626. {
  3627. #define FLD(f) abuf->fields.sfmt_l_sll.f
  3628. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3629. const IDESC * UNUSED idesc = abuf->idesc;
  3630. int cycles = 0;
  3631. {
  3632. int referenced = 0;
  3633. int UNUSED insn_referenced = abuf->written;
  3634. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3635. }
  3636. return cycles;
  3637. #undef FLD
  3638. }
  3639. static int
  3640. model_or1200nd_lf_sub_d32 (SIM_CPU *current_cpu, void *sem_arg)
  3641. {
  3642. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  3643. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3644. const IDESC * UNUSED idesc = abuf->idesc;
  3645. int cycles = 0;
  3646. {
  3647. int referenced = 0;
  3648. int UNUSED insn_referenced = abuf->written;
  3649. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3650. }
  3651. return cycles;
  3652. #undef FLD
  3653. }
  3654. static int
  3655. model_or1200nd_lf_mul_s (SIM_CPU *current_cpu, void *sem_arg)
  3656. {
  3657. #define FLD(f) abuf->fields.sfmt_l_sll.f
  3658. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3659. const IDESC * UNUSED idesc = abuf->idesc;
  3660. int cycles = 0;
  3661. {
  3662. int referenced = 0;
  3663. int UNUSED insn_referenced = abuf->written;
  3664. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3665. }
  3666. return cycles;
  3667. #undef FLD
  3668. }
  3669. static int
  3670. model_or1200nd_lf_mul_d32 (SIM_CPU *current_cpu, void *sem_arg)
  3671. {
  3672. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  3673. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3674. const IDESC * UNUSED idesc = abuf->idesc;
  3675. int cycles = 0;
  3676. {
  3677. int referenced = 0;
  3678. int UNUSED insn_referenced = abuf->written;
  3679. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3680. }
  3681. return cycles;
  3682. #undef FLD
  3683. }
  3684. static int
  3685. model_or1200nd_lf_div_s (SIM_CPU *current_cpu, void *sem_arg)
  3686. {
  3687. #define FLD(f) abuf->fields.sfmt_l_sll.f
  3688. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3689. const IDESC * UNUSED idesc = abuf->idesc;
  3690. int cycles = 0;
  3691. {
  3692. int referenced = 0;
  3693. int UNUSED insn_referenced = abuf->written;
  3694. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3695. }
  3696. return cycles;
  3697. #undef FLD
  3698. }
  3699. static int
  3700. model_or1200nd_lf_div_d32 (SIM_CPU *current_cpu, void *sem_arg)
  3701. {
  3702. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  3703. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3704. const IDESC * UNUSED idesc = abuf->idesc;
  3705. int cycles = 0;
  3706. {
  3707. int referenced = 0;
  3708. int UNUSED insn_referenced = abuf->written;
  3709. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3710. }
  3711. return cycles;
  3712. #undef FLD
  3713. }
  3714. static int
  3715. model_or1200nd_lf_rem_s (SIM_CPU *current_cpu, void *sem_arg)
  3716. {
  3717. #define FLD(f) abuf->fields.sfmt_l_sll.f
  3718. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3719. const IDESC * UNUSED idesc = abuf->idesc;
  3720. int cycles = 0;
  3721. {
  3722. int referenced = 0;
  3723. int UNUSED insn_referenced = abuf->written;
  3724. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3725. }
  3726. return cycles;
  3727. #undef FLD
  3728. }
  3729. static int
  3730. model_or1200nd_lf_rem_d32 (SIM_CPU *current_cpu, void *sem_arg)
  3731. {
  3732. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  3733. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3734. const IDESC * UNUSED idesc = abuf->idesc;
  3735. int cycles = 0;
  3736. {
  3737. int referenced = 0;
  3738. int UNUSED insn_referenced = abuf->written;
  3739. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3740. }
  3741. return cycles;
  3742. #undef FLD
  3743. }
  3744. static int
  3745. model_or1200nd_lf_itof_s (SIM_CPU *current_cpu, void *sem_arg)
  3746. {
  3747. #define FLD(f) abuf->fields.sfmt_l_slli.f
  3748. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3749. const IDESC * UNUSED idesc = abuf->idesc;
  3750. int cycles = 0;
  3751. {
  3752. int referenced = 0;
  3753. int UNUSED insn_referenced = abuf->written;
  3754. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3755. }
  3756. return cycles;
  3757. #undef FLD
  3758. }
  3759. static int
  3760. model_or1200nd_lf_itof_d32 (SIM_CPU *current_cpu, void *sem_arg)
  3761. {
  3762. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  3763. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3764. const IDESC * UNUSED idesc = abuf->idesc;
  3765. int cycles = 0;
  3766. {
  3767. int referenced = 0;
  3768. int UNUSED insn_referenced = abuf->written;
  3769. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3770. }
  3771. return cycles;
  3772. #undef FLD
  3773. }
  3774. static int
  3775. model_or1200nd_lf_ftoi_s (SIM_CPU *current_cpu, void *sem_arg)
  3776. {
  3777. #define FLD(f) abuf->fields.sfmt_l_slli.f
  3778. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3779. const IDESC * UNUSED idesc = abuf->idesc;
  3780. int cycles = 0;
  3781. {
  3782. int referenced = 0;
  3783. int UNUSED insn_referenced = abuf->written;
  3784. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3785. }
  3786. return cycles;
  3787. #undef FLD
  3788. }
  3789. static int
  3790. model_or1200nd_lf_ftoi_d32 (SIM_CPU *current_cpu, void *sem_arg)
  3791. {
  3792. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  3793. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3794. const IDESC * UNUSED idesc = abuf->idesc;
  3795. int cycles = 0;
  3796. {
  3797. int referenced = 0;
  3798. int UNUSED insn_referenced = abuf->written;
  3799. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3800. }
  3801. return cycles;
  3802. #undef FLD
  3803. }
  3804. static int
  3805. model_or1200nd_lf_sfeq_s (SIM_CPU *current_cpu, void *sem_arg)
  3806. {
  3807. #define FLD(f) abuf->fields.sfmt_l_sll.f
  3808. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3809. const IDESC * UNUSED idesc = abuf->idesc;
  3810. int cycles = 0;
  3811. {
  3812. int referenced = 0;
  3813. int UNUSED insn_referenced = abuf->written;
  3814. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3815. }
  3816. return cycles;
  3817. #undef FLD
  3818. }
  3819. static int
  3820. model_or1200nd_lf_sfeq_d32 (SIM_CPU *current_cpu, void *sem_arg)
  3821. {
  3822. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  3823. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3824. const IDESC * UNUSED idesc = abuf->idesc;
  3825. int cycles = 0;
  3826. {
  3827. int referenced = 0;
  3828. int UNUSED insn_referenced = abuf->written;
  3829. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3830. }
  3831. return cycles;
  3832. #undef FLD
  3833. }
  3834. static int
  3835. model_or1200nd_lf_sfne_s (SIM_CPU *current_cpu, void *sem_arg)
  3836. {
  3837. #define FLD(f) abuf->fields.sfmt_l_sll.f
  3838. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3839. const IDESC * UNUSED idesc = abuf->idesc;
  3840. int cycles = 0;
  3841. {
  3842. int referenced = 0;
  3843. int UNUSED insn_referenced = abuf->written;
  3844. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3845. }
  3846. return cycles;
  3847. #undef FLD
  3848. }
  3849. static int
  3850. model_or1200nd_lf_sfne_d32 (SIM_CPU *current_cpu, void *sem_arg)
  3851. {
  3852. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  3853. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3854. const IDESC * UNUSED idesc = abuf->idesc;
  3855. int cycles = 0;
  3856. {
  3857. int referenced = 0;
  3858. int UNUSED insn_referenced = abuf->written;
  3859. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3860. }
  3861. return cycles;
  3862. #undef FLD
  3863. }
  3864. static int
  3865. model_or1200nd_lf_sfge_s (SIM_CPU *current_cpu, void *sem_arg)
  3866. {
  3867. #define FLD(f) abuf->fields.sfmt_l_sll.f
  3868. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3869. const IDESC * UNUSED idesc = abuf->idesc;
  3870. int cycles = 0;
  3871. {
  3872. int referenced = 0;
  3873. int UNUSED insn_referenced = abuf->written;
  3874. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3875. }
  3876. return cycles;
  3877. #undef FLD
  3878. }
  3879. static int
  3880. model_or1200nd_lf_sfge_d32 (SIM_CPU *current_cpu, void *sem_arg)
  3881. {
  3882. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  3883. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3884. const IDESC * UNUSED idesc = abuf->idesc;
  3885. int cycles = 0;
  3886. {
  3887. int referenced = 0;
  3888. int UNUSED insn_referenced = abuf->written;
  3889. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3890. }
  3891. return cycles;
  3892. #undef FLD
  3893. }
  3894. static int
  3895. model_or1200nd_lf_sfgt_s (SIM_CPU *current_cpu, void *sem_arg)
  3896. {
  3897. #define FLD(f) abuf->fields.sfmt_l_sll.f
  3898. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3899. const IDESC * UNUSED idesc = abuf->idesc;
  3900. int cycles = 0;
  3901. {
  3902. int referenced = 0;
  3903. int UNUSED insn_referenced = abuf->written;
  3904. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3905. }
  3906. return cycles;
  3907. #undef FLD
  3908. }
  3909. static int
  3910. model_or1200nd_lf_sfgt_d32 (SIM_CPU *current_cpu, void *sem_arg)
  3911. {
  3912. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  3913. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3914. const IDESC * UNUSED idesc = abuf->idesc;
  3915. int cycles = 0;
  3916. {
  3917. int referenced = 0;
  3918. int UNUSED insn_referenced = abuf->written;
  3919. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3920. }
  3921. return cycles;
  3922. #undef FLD
  3923. }
  3924. static int
  3925. model_or1200nd_lf_sflt_s (SIM_CPU *current_cpu, void *sem_arg)
  3926. {
  3927. #define FLD(f) abuf->fields.sfmt_l_sll.f
  3928. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3929. const IDESC * UNUSED idesc = abuf->idesc;
  3930. int cycles = 0;
  3931. {
  3932. int referenced = 0;
  3933. int UNUSED insn_referenced = abuf->written;
  3934. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3935. }
  3936. return cycles;
  3937. #undef FLD
  3938. }
  3939. static int
  3940. model_or1200nd_lf_sflt_d32 (SIM_CPU *current_cpu, void *sem_arg)
  3941. {
  3942. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  3943. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3944. const IDESC * UNUSED idesc = abuf->idesc;
  3945. int cycles = 0;
  3946. {
  3947. int referenced = 0;
  3948. int UNUSED insn_referenced = abuf->written;
  3949. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3950. }
  3951. return cycles;
  3952. #undef FLD
  3953. }
  3954. static int
  3955. model_or1200nd_lf_sfle_s (SIM_CPU *current_cpu, void *sem_arg)
  3956. {
  3957. #define FLD(f) abuf->fields.sfmt_l_sll.f
  3958. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3959. const IDESC * UNUSED idesc = abuf->idesc;
  3960. int cycles = 0;
  3961. {
  3962. int referenced = 0;
  3963. int UNUSED insn_referenced = abuf->written;
  3964. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3965. }
  3966. return cycles;
  3967. #undef FLD
  3968. }
  3969. static int
  3970. model_or1200nd_lf_sfle_d32 (SIM_CPU *current_cpu, void *sem_arg)
  3971. {
  3972. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  3973. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3974. const IDESC * UNUSED idesc = abuf->idesc;
  3975. int cycles = 0;
  3976. {
  3977. int referenced = 0;
  3978. int UNUSED insn_referenced = abuf->written;
  3979. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3980. }
  3981. return cycles;
  3982. #undef FLD
  3983. }
  3984. static int
  3985. model_or1200nd_lf_sfueq_s (SIM_CPU *current_cpu, void *sem_arg)
  3986. {
  3987. #define FLD(f) abuf->fields.sfmt_l_sll.f
  3988. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  3989. const IDESC * UNUSED idesc = abuf->idesc;
  3990. int cycles = 0;
  3991. {
  3992. int referenced = 0;
  3993. int UNUSED insn_referenced = abuf->written;
  3994. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  3995. }
  3996. return cycles;
  3997. #undef FLD
  3998. }
  3999. static int
  4000. model_or1200nd_lf_sfueq_d32 (SIM_CPU *current_cpu, void *sem_arg)
  4001. {
  4002. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  4003. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  4004. const IDESC * UNUSED idesc = abuf->idesc;
  4005. int cycles = 0;
  4006. {
  4007. int referenced = 0;
  4008. int UNUSED insn_referenced = abuf->written;
  4009. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  4010. }
  4011. return cycles;
  4012. #undef FLD
  4013. }
  4014. static int
  4015. model_or1200nd_lf_sfune_s (SIM_CPU *current_cpu, void *sem_arg)
  4016. {
  4017. #define FLD(f) abuf->fields.sfmt_l_sll.f
  4018. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  4019. const IDESC * UNUSED idesc = abuf->idesc;
  4020. int cycles = 0;
  4021. {
  4022. int referenced = 0;
  4023. int UNUSED insn_referenced = abuf->written;
  4024. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  4025. }
  4026. return cycles;
  4027. #undef FLD
  4028. }
  4029. static int
  4030. model_or1200nd_lf_sfune_d32 (SIM_CPU *current_cpu, void *sem_arg)
  4031. {
  4032. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  4033. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  4034. const IDESC * UNUSED idesc = abuf->idesc;
  4035. int cycles = 0;
  4036. {
  4037. int referenced = 0;
  4038. int UNUSED insn_referenced = abuf->written;
  4039. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  4040. }
  4041. return cycles;
  4042. #undef FLD
  4043. }
  4044. static int
  4045. model_or1200nd_lf_sfugt_s (SIM_CPU *current_cpu, void *sem_arg)
  4046. {
  4047. #define FLD(f) abuf->fields.sfmt_l_sll.f
  4048. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  4049. const IDESC * UNUSED idesc = abuf->idesc;
  4050. int cycles = 0;
  4051. {
  4052. int referenced = 0;
  4053. int UNUSED insn_referenced = abuf->written;
  4054. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  4055. }
  4056. return cycles;
  4057. #undef FLD
  4058. }
  4059. static int
  4060. model_or1200nd_lf_sfugt_d32 (SIM_CPU *current_cpu, void *sem_arg)
  4061. {
  4062. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  4063. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  4064. const IDESC * UNUSED idesc = abuf->idesc;
  4065. int cycles = 0;
  4066. {
  4067. int referenced = 0;
  4068. int UNUSED insn_referenced = abuf->written;
  4069. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  4070. }
  4071. return cycles;
  4072. #undef FLD
  4073. }
  4074. static int
  4075. model_or1200nd_lf_sfuge_s (SIM_CPU *current_cpu, void *sem_arg)
  4076. {
  4077. #define FLD(f) abuf->fields.sfmt_l_sll.f
  4078. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  4079. const IDESC * UNUSED idesc = abuf->idesc;
  4080. int cycles = 0;
  4081. {
  4082. int referenced = 0;
  4083. int UNUSED insn_referenced = abuf->written;
  4084. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  4085. }
  4086. return cycles;
  4087. #undef FLD
  4088. }
  4089. static int
  4090. model_or1200nd_lf_sfuge_d32 (SIM_CPU *current_cpu, void *sem_arg)
  4091. {
  4092. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  4093. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  4094. const IDESC * UNUSED idesc = abuf->idesc;
  4095. int cycles = 0;
  4096. {
  4097. int referenced = 0;
  4098. int UNUSED insn_referenced = abuf->written;
  4099. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  4100. }
  4101. return cycles;
  4102. #undef FLD
  4103. }
  4104. static int
  4105. model_or1200nd_lf_sfult_s (SIM_CPU *current_cpu, void *sem_arg)
  4106. {
  4107. #define FLD(f) abuf->fields.sfmt_l_sll.f
  4108. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  4109. const IDESC * UNUSED idesc = abuf->idesc;
  4110. int cycles = 0;
  4111. {
  4112. int referenced = 0;
  4113. int UNUSED insn_referenced = abuf->written;
  4114. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  4115. }
  4116. return cycles;
  4117. #undef FLD
  4118. }
  4119. static int
  4120. model_or1200nd_lf_sfult_d32 (SIM_CPU *current_cpu, void *sem_arg)
  4121. {
  4122. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  4123. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  4124. const IDESC * UNUSED idesc = abuf->idesc;
  4125. int cycles = 0;
  4126. {
  4127. int referenced = 0;
  4128. int UNUSED insn_referenced = abuf->written;
  4129. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  4130. }
  4131. return cycles;
  4132. #undef FLD
  4133. }
  4134. static int
  4135. model_or1200nd_lf_sfule_s (SIM_CPU *current_cpu, void *sem_arg)
  4136. {
  4137. #define FLD(f) abuf->fields.sfmt_l_sll.f
  4138. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  4139. const IDESC * UNUSED idesc = abuf->idesc;
  4140. int cycles = 0;
  4141. {
  4142. int referenced = 0;
  4143. int UNUSED insn_referenced = abuf->written;
  4144. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  4145. }
  4146. return cycles;
  4147. #undef FLD
  4148. }
  4149. static int
  4150. model_or1200nd_lf_sfule_d32 (SIM_CPU *current_cpu, void *sem_arg)
  4151. {
  4152. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  4153. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  4154. const IDESC * UNUSED idesc = abuf->idesc;
  4155. int cycles = 0;
  4156. {
  4157. int referenced = 0;
  4158. int UNUSED insn_referenced = abuf->written;
  4159. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  4160. }
  4161. return cycles;
  4162. #undef FLD
  4163. }
  4164. static int
  4165. model_or1200nd_lf_sfun_s (SIM_CPU *current_cpu, void *sem_arg)
  4166. {
  4167. #define FLD(f) abuf->fields.sfmt_l_sll.f
  4168. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  4169. const IDESC * UNUSED idesc = abuf->idesc;
  4170. int cycles = 0;
  4171. {
  4172. int referenced = 0;
  4173. int UNUSED insn_referenced = abuf->written;
  4174. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  4175. }
  4176. return cycles;
  4177. #undef FLD
  4178. }
  4179. static int
  4180. model_or1200nd_lf_sfun_d32 (SIM_CPU *current_cpu, void *sem_arg)
  4181. {
  4182. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  4183. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  4184. const IDESC * UNUSED idesc = abuf->idesc;
  4185. int cycles = 0;
  4186. {
  4187. int referenced = 0;
  4188. int UNUSED insn_referenced = abuf->written;
  4189. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  4190. }
  4191. return cycles;
  4192. #undef FLD
  4193. }
  4194. static int
  4195. model_or1200nd_lf_madd_s (SIM_CPU *current_cpu, void *sem_arg)
  4196. {
  4197. #define FLD(f) abuf->fields.sfmt_l_sll.f
  4198. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  4199. const IDESC * UNUSED idesc = abuf->idesc;
  4200. int cycles = 0;
  4201. {
  4202. int referenced = 0;
  4203. int UNUSED insn_referenced = abuf->written;
  4204. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  4205. }
  4206. return cycles;
  4207. #undef FLD
  4208. }
  4209. static int
  4210. model_or1200nd_lf_madd_d32 (SIM_CPU *current_cpu, void *sem_arg)
  4211. {
  4212. #define FLD(f) abuf->fields.sfmt_lf_add_d32.f
  4213. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  4214. const IDESC * UNUSED idesc = abuf->idesc;
  4215. int cycles = 0;
  4216. {
  4217. int referenced = 0;
  4218. int UNUSED insn_referenced = abuf->written;
  4219. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  4220. }
  4221. return cycles;
  4222. #undef FLD
  4223. }
  4224. static int
  4225. model_or1200nd_lf_cust1_s (SIM_CPU *current_cpu, void *sem_arg)
  4226. {
  4227. #define FLD(f) abuf->fields.sfmt_empty.f
  4228. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  4229. const IDESC * UNUSED idesc = abuf->idesc;
  4230. int cycles = 0;
  4231. {
  4232. int referenced = 0;
  4233. int UNUSED insn_referenced = abuf->written;
  4234. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  4235. }
  4236. return cycles;
  4237. #undef FLD
  4238. }
  4239. static int
  4240. model_or1200nd_lf_cust1_d32 (SIM_CPU *current_cpu, void *sem_arg)
  4241. {
  4242. #define FLD(f) abuf->fields.sfmt_empty.f
  4243. const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg);
  4244. const IDESC * UNUSED idesc = abuf->idesc;
  4245. int cycles = 0;
  4246. {
  4247. int referenced = 0;
  4248. int UNUSED insn_referenced = abuf->written;
  4249. cycles += or1k32bf_model_or1200nd_u_exec (current_cpu, idesc, 0, referenced);
  4250. }
  4251. return cycles;
  4252. #undef FLD
  4253. }
  4254. /* We assume UNIT_NONE == 0 because the tables don't always terminate
  4255. entries with it. */
  4256. /* Model timing data for `or1200'. */
  4257. static const INSN_TIMING or1200_timing[] = {
  4258. { OR1K32BF_INSN_X_INVALID, 0, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4259. { OR1K32BF_INSN_X_AFTER, 0, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4260. { OR1K32BF_INSN_X_BEFORE, 0, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4261. { OR1K32BF_INSN_X_CTI_CHAIN, 0, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4262. { OR1K32BF_INSN_X_CHAIN, 0, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4263. { OR1K32BF_INSN_X_BEGIN, 0, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4264. { OR1K32BF_INSN_L_J, model_or1200_l_j, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4265. { OR1K32BF_INSN_L_ADRP, model_or1200_l_adrp, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4266. { OR1K32BF_INSN_L_JAL, model_or1200_l_jal, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4267. { OR1K32BF_INSN_L_JR, model_or1200_l_jr, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4268. { OR1K32BF_INSN_L_JALR, model_or1200_l_jalr, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4269. { OR1K32BF_INSN_L_BNF, model_or1200_l_bnf, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4270. { OR1K32BF_INSN_L_BF, model_or1200_l_bf, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4271. { OR1K32BF_INSN_L_TRAP, model_or1200_l_trap, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4272. { OR1K32BF_INSN_L_SYS, model_or1200_l_sys, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4273. { OR1K32BF_INSN_L_MSYNC, model_or1200_l_msync, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4274. { OR1K32BF_INSN_L_PSYNC, model_or1200_l_psync, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4275. { OR1K32BF_INSN_L_CSYNC, model_or1200_l_csync, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4276. { OR1K32BF_INSN_L_RFE, model_or1200_l_rfe, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4277. { OR1K32BF_INSN_L_NOP_IMM, model_or1200_l_nop_imm, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4278. { OR1K32BF_INSN_L_MOVHI, model_or1200_l_movhi, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4279. { OR1K32BF_INSN_L_MACRC, model_or1200_l_macrc, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4280. { OR1K32BF_INSN_L_MFSPR, model_or1200_l_mfspr, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4281. { OR1K32BF_INSN_L_MTSPR, model_or1200_l_mtspr, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4282. { OR1K32BF_INSN_L_LWZ, model_or1200_l_lwz, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4283. { OR1K32BF_INSN_L_LWS, model_or1200_l_lws, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4284. { OR1K32BF_INSN_L_LWA, model_or1200_l_lwa, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4285. { OR1K32BF_INSN_L_LBZ, model_or1200_l_lbz, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4286. { OR1K32BF_INSN_L_LBS, model_or1200_l_lbs, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4287. { OR1K32BF_INSN_L_LHZ, model_or1200_l_lhz, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4288. { OR1K32BF_INSN_L_LHS, model_or1200_l_lhs, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4289. { OR1K32BF_INSN_L_SW, model_or1200_l_sw, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4290. { OR1K32BF_INSN_L_SB, model_or1200_l_sb, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4291. { OR1K32BF_INSN_L_SH, model_or1200_l_sh, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4292. { OR1K32BF_INSN_L_SWA, model_or1200_l_swa, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4293. { OR1K32BF_INSN_L_SLL, model_or1200_l_sll, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4294. { OR1K32BF_INSN_L_SLLI, model_or1200_l_slli, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4295. { OR1K32BF_INSN_L_SRL, model_or1200_l_srl, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4296. { OR1K32BF_INSN_L_SRLI, model_or1200_l_srli, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4297. { OR1K32BF_INSN_L_SRA, model_or1200_l_sra, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4298. { OR1K32BF_INSN_L_SRAI, model_or1200_l_srai, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4299. { OR1K32BF_INSN_L_ROR, model_or1200_l_ror, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4300. { OR1K32BF_INSN_L_RORI, model_or1200_l_rori, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4301. { OR1K32BF_INSN_L_AND, model_or1200_l_and, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4302. { OR1K32BF_INSN_L_OR, model_or1200_l_or, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4303. { OR1K32BF_INSN_L_XOR, model_or1200_l_xor, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4304. { OR1K32BF_INSN_L_ADD, model_or1200_l_add, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4305. { OR1K32BF_INSN_L_SUB, model_or1200_l_sub, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4306. { OR1K32BF_INSN_L_ADDC, model_or1200_l_addc, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4307. { OR1K32BF_INSN_L_MUL, model_or1200_l_mul, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4308. { OR1K32BF_INSN_L_MULD, model_or1200_l_muld, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4309. { OR1K32BF_INSN_L_MULU, model_or1200_l_mulu, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4310. { OR1K32BF_INSN_L_MULDU, model_or1200_l_muldu, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4311. { OR1K32BF_INSN_L_DIV, model_or1200_l_div, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4312. { OR1K32BF_INSN_L_DIVU, model_or1200_l_divu, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4313. { OR1K32BF_INSN_L_FF1, model_or1200_l_ff1, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4314. { OR1K32BF_INSN_L_FL1, model_or1200_l_fl1, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4315. { OR1K32BF_INSN_L_ANDI, model_or1200_l_andi, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4316. { OR1K32BF_INSN_L_ORI, model_or1200_l_ori, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4317. { OR1K32BF_INSN_L_XORI, model_or1200_l_xori, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4318. { OR1K32BF_INSN_L_ADDI, model_or1200_l_addi, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4319. { OR1K32BF_INSN_L_ADDIC, model_or1200_l_addic, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4320. { OR1K32BF_INSN_L_MULI, model_or1200_l_muli, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4321. { OR1K32BF_INSN_L_EXTHS, model_or1200_l_exths, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4322. { OR1K32BF_INSN_L_EXTBS, model_or1200_l_extbs, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4323. { OR1K32BF_INSN_L_EXTHZ, model_or1200_l_exthz, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4324. { OR1K32BF_INSN_L_EXTBZ, model_or1200_l_extbz, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4325. { OR1K32BF_INSN_L_EXTWS, model_or1200_l_extws, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4326. { OR1K32BF_INSN_L_EXTWZ, model_or1200_l_extwz, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4327. { OR1K32BF_INSN_L_CMOV, model_or1200_l_cmov, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4328. { OR1K32BF_INSN_L_SFGTS, model_or1200_l_sfgts, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4329. { OR1K32BF_INSN_L_SFGTSI, model_or1200_l_sfgtsi, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4330. { OR1K32BF_INSN_L_SFGTU, model_or1200_l_sfgtu, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4331. { OR1K32BF_INSN_L_SFGTUI, model_or1200_l_sfgtui, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4332. { OR1K32BF_INSN_L_SFGES, model_or1200_l_sfges, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4333. { OR1K32BF_INSN_L_SFGESI, model_or1200_l_sfgesi, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4334. { OR1K32BF_INSN_L_SFGEU, model_or1200_l_sfgeu, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4335. { OR1K32BF_INSN_L_SFGEUI, model_or1200_l_sfgeui, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4336. { OR1K32BF_INSN_L_SFLTS, model_or1200_l_sflts, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4337. { OR1K32BF_INSN_L_SFLTSI, model_or1200_l_sfltsi, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4338. { OR1K32BF_INSN_L_SFLTU, model_or1200_l_sfltu, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4339. { OR1K32BF_INSN_L_SFLTUI, model_or1200_l_sfltui, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4340. { OR1K32BF_INSN_L_SFLES, model_or1200_l_sfles, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4341. { OR1K32BF_INSN_L_SFLESI, model_or1200_l_sflesi, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4342. { OR1K32BF_INSN_L_SFLEU, model_or1200_l_sfleu, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4343. { OR1K32BF_INSN_L_SFLEUI, model_or1200_l_sfleui, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4344. { OR1K32BF_INSN_L_SFEQ, model_or1200_l_sfeq, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4345. { OR1K32BF_INSN_L_SFEQI, model_or1200_l_sfeqi, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4346. { OR1K32BF_INSN_L_SFNE, model_or1200_l_sfne, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4347. { OR1K32BF_INSN_L_SFNEI, model_or1200_l_sfnei, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4348. { OR1K32BF_INSN_L_MAC, model_or1200_l_mac, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4349. { OR1K32BF_INSN_L_MACI, model_or1200_l_maci, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4350. { OR1K32BF_INSN_L_MACU, model_or1200_l_macu, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4351. { OR1K32BF_INSN_L_MSB, model_or1200_l_msb, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4352. { OR1K32BF_INSN_L_MSBU, model_or1200_l_msbu, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4353. { OR1K32BF_INSN_L_CUST1, model_or1200_l_cust1, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4354. { OR1K32BF_INSN_L_CUST2, model_or1200_l_cust2, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4355. { OR1K32BF_INSN_L_CUST3, model_or1200_l_cust3, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4356. { OR1K32BF_INSN_L_CUST4, model_or1200_l_cust4, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4357. { OR1K32BF_INSN_L_CUST5, model_or1200_l_cust5, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4358. { OR1K32BF_INSN_L_CUST6, model_or1200_l_cust6, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4359. { OR1K32BF_INSN_L_CUST7, model_or1200_l_cust7, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4360. { OR1K32BF_INSN_L_CUST8, model_or1200_l_cust8, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4361. { OR1K32BF_INSN_LF_ADD_S, model_or1200_lf_add_s, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4362. { OR1K32BF_INSN_LF_ADD_D32, model_or1200_lf_add_d32, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4363. { OR1K32BF_INSN_LF_SUB_S, model_or1200_lf_sub_s, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4364. { OR1K32BF_INSN_LF_SUB_D32, model_or1200_lf_sub_d32, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4365. { OR1K32BF_INSN_LF_MUL_S, model_or1200_lf_mul_s, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4366. { OR1K32BF_INSN_LF_MUL_D32, model_or1200_lf_mul_d32, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4367. { OR1K32BF_INSN_LF_DIV_S, model_or1200_lf_div_s, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4368. { OR1K32BF_INSN_LF_DIV_D32, model_or1200_lf_div_d32, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4369. { OR1K32BF_INSN_LF_REM_S, model_or1200_lf_rem_s, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4370. { OR1K32BF_INSN_LF_REM_D32, model_or1200_lf_rem_d32, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4371. { OR1K32BF_INSN_LF_ITOF_S, model_or1200_lf_itof_s, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4372. { OR1K32BF_INSN_LF_ITOF_D32, model_or1200_lf_itof_d32, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4373. { OR1K32BF_INSN_LF_FTOI_S, model_or1200_lf_ftoi_s, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4374. { OR1K32BF_INSN_LF_FTOI_D32, model_or1200_lf_ftoi_d32, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4375. { OR1K32BF_INSN_LF_SFEQ_S, model_or1200_lf_sfeq_s, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4376. { OR1K32BF_INSN_LF_SFEQ_D32, model_or1200_lf_sfeq_d32, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4377. { OR1K32BF_INSN_LF_SFNE_S, model_or1200_lf_sfne_s, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4378. { OR1K32BF_INSN_LF_SFNE_D32, model_or1200_lf_sfne_d32, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4379. { OR1K32BF_INSN_LF_SFGE_S, model_or1200_lf_sfge_s, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4380. { OR1K32BF_INSN_LF_SFGE_D32, model_or1200_lf_sfge_d32, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4381. { OR1K32BF_INSN_LF_SFGT_S, model_or1200_lf_sfgt_s, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4382. { OR1K32BF_INSN_LF_SFGT_D32, model_or1200_lf_sfgt_d32, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4383. { OR1K32BF_INSN_LF_SFLT_S, model_or1200_lf_sflt_s, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4384. { OR1K32BF_INSN_LF_SFLT_D32, model_or1200_lf_sflt_d32, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4385. { OR1K32BF_INSN_LF_SFLE_S, model_or1200_lf_sfle_s, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4386. { OR1K32BF_INSN_LF_SFLE_D32, model_or1200_lf_sfle_d32, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4387. { OR1K32BF_INSN_LF_SFUEQ_S, model_or1200_lf_sfueq_s, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4388. { OR1K32BF_INSN_LF_SFUEQ_D32, model_or1200_lf_sfueq_d32, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4389. { OR1K32BF_INSN_LF_SFUNE_S, model_or1200_lf_sfune_s, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4390. { OR1K32BF_INSN_LF_SFUNE_D32, model_or1200_lf_sfune_d32, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4391. { OR1K32BF_INSN_LF_SFUGT_S, model_or1200_lf_sfugt_s, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4392. { OR1K32BF_INSN_LF_SFUGT_D32, model_or1200_lf_sfugt_d32, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4393. { OR1K32BF_INSN_LF_SFUGE_S, model_or1200_lf_sfuge_s, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4394. { OR1K32BF_INSN_LF_SFUGE_D32, model_or1200_lf_sfuge_d32, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4395. { OR1K32BF_INSN_LF_SFULT_S, model_or1200_lf_sfult_s, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4396. { OR1K32BF_INSN_LF_SFULT_D32, model_or1200_lf_sfult_d32, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4397. { OR1K32BF_INSN_LF_SFULE_S, model_or1200_lf_sfule_s, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4398. { OR1K32BF_INSN_LF_SFULE_D32, model_or1200_lf_sfule_d32, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4399. { OR1K32BF_INSN_LF_SFUN_S, model_or1200_lf_sfun_s, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4400. { OR1K32BF_INSN_LF_SFUN_D32, model_or1200_lf_sfun_d32, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4401. { OR1K32BF_INSN_LF_MADD_S, model_or1200_lf_madd_s, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4402. { OR1K32BF_INSN_LF_MADD_D32, model_or1200_lf_madd_d32, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4403. { OR1K32BF_INSN_LF_CUST1_S, model_or1200_lf_cust1_s, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4404. { OR1K32BF_INSN_LF_CUST1_D32, model_or1200_lf_cust1_d32, { { (int) UNIT_OR1200_U_EXEC, 1, 1 } } },
  4405. };
  4406. /* Model timing data for `or1200nd'. */
  4407. static const INSN_TIMING or1200nd_timing[] = {
  4408. { OR1K32BF_INSN_X_INVALID, 0, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4409. { OR1K32BF_INSN_X_AFTER, 0, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4410. { OR1K32BF_INSN_X_BEFORE, 0, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4411. { OR1K32BF_INSN_X_CTI_CHAIN, 0, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4412. { OR1K32BF_INSN_X_CHAIN, 0, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4413. { OR1K32BF_INSN_X_BEGIN, 0, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4414. { OR1K32BF_INSN_L_J, model_or1200nd_l_j, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4415. { OR1K32BF_INSN_L_ADRP, model_or1200nd_l_adrp, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4416. { OR1K32BF_INSN_L_JAL, model_or1200nd_l_jal, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4417. { OR1K32BF_INSN_L_JR, model_or1200nd_l_jr, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4418. { OR1K32BF_INSN_L_JALR, model_or1200nd_l_jalr, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4419. { OR1K32BF_INSN_L_BNF, model_or1200nd_l_bnf, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4420. { OR1K32BF_INSN_L_BF, model_or1200nd_l_bf, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4421. { OR1K32BF_INSN_L_TRAP, model_or1200nd_l_trap, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4422. { OR1K32BF_INSN_L_SYS, model_or1200nd_l_sys, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4423. { OR1K32BF_INSN_L_MSYNC, model_or1200nd_l_msync, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4424. { OR1K32BF_INSN_L_PSYNC, model_or1200nd_l_psync, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4425. { OR1K32BF_INSN_L_CSYNC, model_or1200nd_l_csync, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4426. { OR1K32BF_INSN_L_RFE, model_or1200nd_l_rfe, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4427. { OR1K32BF_INSN_L_NOP_IMM, model_or1200nd_l_nop_imm, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4428. { OR1K32BF_INSN_L_MOVHI, model_or1200nd_l_movhi, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4429. { OR1K32BF_INSN_L_MACRC, model_or1200nd_l_macrc, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4430. { OR1K32BF_INSN_L_MFSPR, model_or1200nd_l_mfspr, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4431. { OR1K32BF_INSN_L_MTSPR, model_or1200nd_l_mtspr, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4432. { OR1K32BF_INSN_L_LWZ, model_or1200nd_l_lwz, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4433. { OR1K32BF_INSN_L_LWS, model_or1200nd_l_lws, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4434. { OR1K32BF_INSN_L_LWA, model_or1200nd_l_lwa, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4435. { OR1K32BF_INSN_L_LBZ, model_or1200nd_l_lbz, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4436. { OR1K32BF_INSN_L_LBS, model_or1200nd_l_lbs, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4437. { OR1K32BF_INSN_L_LHZ, model_or1200nd_l_lhz, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4438. { OR1K32BF_INSN_L_LHS, model_or1200nd_l_lhs, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4439. { OR1K32BF_INSN_L_SW, model_or1200nd_l_sw, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4440. { OR1K32BF_INSN_L_SB, model_or1200nd_l_sb, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4441. { OR1K32BF_INSN_L_SH, model_or1200nd_l_sh, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4442. { OR1K32BF_INSN_L_SWA, model_or1200nd_l_swa, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4443. { OR1K32BF_INSN_L_SLL, model_or1200nd_l_sll, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4444. { OR1K32BF_INSN_L_SLLI, model_or1200nd_l_slli, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4445. { OR1K32BF_INSN_L_SRL, model_or1200nd_l_srl, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4446. { OR1K32BF_INSN_L_SRLI, model_or1200nd_l_srli, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4447. { OR1K32BF_INSN_L_SRA, model_or1200nd_l_sra, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4448. { OR1K32BF_INSN_L_SRAI, model_or1200nd_l_srai, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4449. { OR1K32BF_INSN_L_ROR, model_or1200nd_l_ror, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4450. { OR1K32BF_INSN_L_RORI, model_or1200nd_l_rori, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4451. { OR1K32BF_INSN_L_AND, model_or1200nd_l_and, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4452. { OR1K32BF_INSN_L_OR, model_or1200nd_l_or, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4453. { OR1K32BF_INSN_L_XOR, model_or1200nd_l_xor, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4454. { OR1K32BF_INSN_L_ADD, model_or1200nd_l_add, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4455. { OR1K32BF_INSN_L_SUB, model_or1200nd_l_sub, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4456. { OR1K32BF_INSN_L_ADDC, model_or1200nd_l_addc, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4457. { OR1K32BF_INSN_L_MUL, model_or1200nd_l_mul, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4458. { OR1K32BF_INSN_L_MULD, model_or1200nd_l_muld, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4459. { OR1K32BF_INSN_L_MULU, model_or1200nd_l_mulu, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4460. { OR1K32BF_INSN_L_MULDU, model_or1200nd_l_muldu, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4461. { OR1K32BF_INSN_L_DIV, model_or1200nd_l_div, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4462. { OR1K32BF_INSN_L_DIVU, model_or1200nd_l_divu, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4463. { OR1K32BF_INSN_L_FF1, model_or1200nd_l_ff1, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4464. { OR1K32BF_INSN_L_FL1, model_or1200nd_l_fl1, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4465. { OR1K32BF_INSN_L_ANDI, model_or1200nd_l_andi, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4466. { OR1K32BF_INSN_L_ORI, model_or1200nd_l_ori, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4467. { OR1K32BF_INSN_L_XORI, model_or1200nd_l_xori, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4468. { OR1K32BF_INSN_L_ADDI, model_or1200nd_l_addi, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4469. { OR1K32BF_INSN_L_ADDIC, model_or1200nd_l_addic, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4470. { OR1K32BF_INSN_L_MULI, model_or1200nd_l_muli, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4471. { OR1K32BF_INSN_L_EXTHS, model_or1200nd_l_exths, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4472. { OR1K32BF_INSN_L_EXTBS, model_or1200nd_l_extbs, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4473. { OR1K32BF_INSN_L_EXTHZ, model_or1200nd_l_exthz, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4474. { OR1K32BF_INSN_L_EXTBZ, model_or1200nd_l_extbz, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4475. { OR1K32BF_INSN_L_EXTWS, model_or1200nd_l_extws, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4476. { OR1K32BF_INSN_L_EXTWZ, model_or1200nd_l_extwz, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4477. { OR1K32BF_INSN_L_CMOV, model_or1200nd_l_cmov, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4478. { OR1K32BF_INSN_L_SFGTS, model_or1200nd_l_sfgts, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4479. { OR1K32BF_INSN_L_SFGTSI, model_or1200nd_l_sfgtsi, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4480. { OR1K32BF_INSN_L_SFGTU, model_or1200nd_l_sfgtu, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4481. { OR1K32BF_INSN_L_SFGTUI, model_or1200nd_l_sfgtui, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4482. { OR1K32BF_INSN_L_SFGES, model_or1200nd_l_sfges, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4483. { OR1K32BF_INSN_L_SFGESI, model_or1200nd_l_sfgesi, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4484. { OR1K32BF_INSN_L_SFGEU, model_or1200nd_l_sfgeu, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4485. { OR1K32BF_INSN_L_SFGEUI, model_or1200nd_l_sfgeui, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4486. { OR1K32BF_INSN_L_SFLTS, model_or1200nd_l_sflts, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4487. { OR1K32BF_INSN_L_SFLTSI, model_or1200nd_l_sfltsi, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4488. { OR1K32BF_INSN_L_SFLTU, model_or1200nd_l_sfltu, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4489. { OR1K32BF_INSN_L_SFLTUI, model_or1200nd_l_sfltui, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4490. { OR1K32BF_INSN_L_SFLES, model_or1200nd_l_sfles, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4491. { OR1K32BF_INSN_L_SFLESI, model_or1200nd_l_sflesi, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4492. { OR1K32BF_INSN_L_SFLEU, model_or1200nd_l_sfleu, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4493. { OR1K32BF_INSN_L_SFLEUI, model_or1200nd_l_sfleui, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4494. { OR1K32BF_INSN_L_SFEQ, model_or1200nd_l_sfeq, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4495. { OR1K32BF_INSN_L_SFEQI, model_or1200nd_l_sfeqi, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4496. { OR1K32BF_INSN_L_SFNE, model_or1200nd_l_sfne, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4497. { OR1K32BF_INSN_L_SFNEI, model_or1200nd_l_sfnei, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4498. { OR1K32BF_INSN_L_MAC, model_or1200nd_l_mac, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4499. { OR1K32BF_INSN_L_MACI, model_or1200nd_l_maci, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4500. { OR1K32BF_INSN_L_MACU, model_or1200nd_l_macu, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4501. { OR1K32BF_INSN_L_MSB, model_or1200nd_l_msb, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4502. { OR1K32BF_INSN_L_MSBU, model_or1200nd_l_msbu, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4503. { OR1K32BF_INSN_L_CUST1, model_or1200nd_l_cust1, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4504. { OR1K32BF_INSN_L_CUST2, model_or1200nd_l_cust2, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4505. { OR1K32BF_INSN_L_CUST3, model_or1200nd_l_cust3, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4506. { OR1K32BF_INSN_L_CUST4, model_or1200nd_l_cust4, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4507. { OR1K32BF_INSN_L_CUST5, model_or1200nd_l_cust5, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4508. { OR1K32BF_INSN_L_CUST6, model_or1200nd_l_cust6, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4509. { OR1K32BF_INSN_L_CUST7, model_or1200nd_l_cust7, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4510. { OR1K32BF_INSN_L_CUST8, model_or1200nd_l_cust8, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4511. { OR1K32BF_INSN_LF_ADD_S, model_or1200nd_lf_add_s, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4512. { OR1K32BF_INSN_LF_ADD_D32, model_or1200nd_lf_add_d32, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4513. { OR1K32BF_INSN_LF_SUB_S, model_or1200nd_lf_sub_s, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4514. { OR1K32BF_INSN_LF_SUB_D32, model_or1200nd_lf_sub_d32, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4515. { OR1K32BF_INSN_LF_MUL_S, model_or1200nd_lf_mul_s, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4516. { OR1K32BF_INSN_LF_MUL_D32, model_or1200nd_lf_mul_d32, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4517. { OR1K32BF_INSN_LF_DIV_S, model_or1200nd_lf_div_s, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4518. { OR1K32BF_INSN_LF_DIV_D32, model_or1200nd_lf_div_d32, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4519. { OR1K32BF_INSN_LF_REM_S, model_or1200nd_lf_rem_s, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4520. { OR1K32BF_INSN_LF_REM_D32, model_or1200nd_lf_rem_d32, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4521. { OR1K32BF_INSN_LF_ITOF_S, model_or1200nd_lf_itof_s, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4522. { OR1K32BF_INSN_LF_ITOF_D32, model_or1200nd_lf_itof_d32, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4523. { OR1K32BF_INSN_LF_FTOI_S, model_or1200nd_lf_ftoi_s, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4524. { OR1K32BF_INSN_LF_FTOI_D32, model_or1200nd_lf_ftoi_d32, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4525. { OR1K32BF_INSN_LF_SFEQ_S, model_or1200nd_lf_sfeq_s, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4526. { OR1K32BF_INSN_LF_SFEQ_D32, model_or1200nd_lf_sfeq_d32, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4527. { OR1K32BF_INSN_LF_SFNE_S, model_or1200nd_lf_sfne_s, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4528. { OR1K32BF_INSN_LF_SFNE_D32, model_or1200nd_lf_sfne_d32, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4529. { OR1K32BF_INSN_LF_SFGE_S, model_or1200nd_lf_sfge_s, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4530. { OR1K32BF_INSN_LF_SFGE_D32, model_or1200nd_lf_sfge_d32, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4531. { OR1K32BF_INSN_LF_SFGT_S, model_or1200nd_lf_sfgt_s, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4532. { OR1K32BF_INSN_LF_SFGT_D32, model_or1200nd_lf_sfgt_d32, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4533. { OR1K32BF_INSN_LF_SFLT_S, model_or1200nd_lf_sflt_s, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4534. { OR1K32BF_INSN_LF_SFLT_D32, model_or1200nd_lf_sflt_d32, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4535. { OR1K32BF_INSN_LF_SFLE_S, model_or1200nd_lf_sfle_s, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4536. { OR1K32BF_INSN_LF_SFLE_D32, model_or1200nd_lf_sfle_d32, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4537. { OR1K32BF_INSN_LF_SFUEQ_S, model_or1200nd_lf_sfueq_s, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4538. { OR1K32BF_INSN_LF_SFUEQ_D32, model_or1200nd_lf_sfueq_d32, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4539. { OR1K32BF_INSN_LF_SFUNE_S, model_or1200nd_lf_sfune_s, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4540. { OR1K32BF_INSN_LF_SFUNE_D32, model_or1200nd_lf_sfune_d32, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4541. { OR1K32BF_INSN_LF_SFUGT_S, model_or1200nd_lf_sfugt_s, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4542. { OR1K32BF_INSN_LF_SFUGT_D32, model_or1200nd_lf_sfugt_d32, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4543. { OR1K32BF_INSN_LF_SFUGE_S, model_or1200nd_lf_sfuge_s, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4544. { OR1K32BF_INSN_LF_SFUGE_D32, model_or1200nd_lf_sfuge_d32, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4545. { OR1K32BF_INSN_LF_SFULT_S, model_or1200nd_lf_sfult_s, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4546. { OR1K32BF_INSN_LF_SFULT_D32, model_or1200nd_lf_sfult_d32, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4547. { OR1K32BF_INSN_LF_SFULE_S, model_or1200nd_lf_sfule_s, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4548. { OR1K32BF_INSN_LF_SFULE_D32, model_or1200nd_lf_sfule_d32, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4549. { OR1K32BF_INSN_LF_SFUN_S, model_or1200nd_lf_sfun_s, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4550. { OR1K32BF_INSN_LF_SFUN_D32, model_or1200nd_lf_sfun_d32, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4551. { OR1K32BF_INSN_LF_MADD_S, model_or1200nd_lf_madd_s, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4552. { OR1K32BF_INSN_LF_MADD_D32, model_or1200nd_lf_madd_d32, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4553. { OR1K32BF_INSN_LF_CUST1_S, model_or1200nd_lf_cust1_s, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4554. { OR1K32BF_INSN_LF_CUST1_D32, model_or1200nd_lf_cust1_d32, { { (int) UNIT_OR1200ND_U_EXEC, 1, 1 } } },
  4555. };
  4556. #endif /* WITH_PROFILE_MODEL_P */
  4557. static void
  4558. or1200_model_init (SIM_CPU *cpu)
  4559. {
  4560. CPU_MODEL_DATA (cpu) = (void *) zalloc (sizeof (MODEL_OR1200_DATA));
  4561. }
  4562. static void
  4563. or1200nd_model_init (SIM_CPU *cpu)
  4564. {
  4565. CPU_MODEL_DATA (cpu) = (void *) zalloc (sizeof (MODEL_OR1200ND_DATA));
  4566. }
  4567. #if WITH_PROFILE_MODEL_P
  4568. #define TIMING_DATA(td) td
  4569. #else
  4570. #define TIMING_DATA(td) 0
  4571. #endif
  4572. static const SIM_MODEL or32_models[] =
  4573. {
  4574. { "or1200", & or32_mach, MODEL_OR1200, TIMING_DATA (& or1200_timing[0]), or1200_model_init },
  4575. { 0 }
  4576. };
  4577. static const SIM_MODEL or32nd_models[] =
  4578. {
  4579. { "or1200nd", & or32nd_mach, MODEL_OR1200ND, TIMING_DATA (& or1200nd_timing[0]), or1200nd_model_init },
  4580. { 0 }
  4581. };
  4582. /* The properties of this cpu's implementation. */
  4583. static const SIM_MACH_IMP_PROPERTIES or1k32bf_imp_properties =
  4584. {
  4585. sizeof (SIM_CPU),
  4586. #if WITH_SCACHE
  4587. sizeof (SCACHE)
  4588. #else
  4589. 0
  4590. #endif
  4591. };
  4592. static void
  4593. or1k32bf_prepare_run (SIM_CPU *cpu)
  4594. {
  4595. if (CPU_IDESC (cpu) == NULL)
  4596. or1k32bf_init_idesc_table (cpu);
  4597. }
  4598. static const CGEN_INSN *
  4599. or1k32bf_get_idata (SIM_CPU *cpu, int inum)
  4600. {
  4601. return CPU_IDESC (cpu) [inum].idata;
  4602. }
  4603. static void
  4604. or32_init_cpu (SIM_CPU *cpu)
  4605. {
  4606. CPU_REG_FETCH (cpu) = or1k32bf_fetch_register;
  4607. CPU_REG_STORE (cpu) = or1k32bf_store_register;
  4608. CPU_PC_FETCH (cpu) = or1k32bf_h_pc_get;
  4609. CPU_PC_STORE (cpu) = or1k32bf_h_pc_set;
  4610. CPU_GET_IDATA (cpu) = or1k32bf_get_idata;
  4611. CPU_MAX_INSNS (cpu) = OR1K32BF_INSN__MAX;
  4612. CPU_INSN_NAME (cpu) = cgen_insn_name;
  4613. CPU_FULL_ENGINE_FN (cpu) = or1k32bf_engine_run_full;
  4614. #if WITH_FAST
  4615. CPU_FAST_ENGINE_FN (cpu) = or1k32bf_engine_run_fast;
  4616. #else
  4617. CPU_FAST_ENGINE_FN (cpu) = or1k32bf_engine_run_full;
  4618. #endif
  4619. }
  4620. const SIM_MACH or32_mach =
  4621. {
  4622. "or32", "or1k", MACH_OR32,
  4623. 32, 32, & or32_models[0], & or1k32bf_imp_properties,
  4624. or32_init_cpu,
  4625. or1k32bf_prepare_run
  4626. };
  4627. static void
  4628. or32nd_init_cpu (SIM_CPU *cpu)
  4629. {
  4630. CPU_REG_FETCH (cpu) = or1k32bf_fetch_register;
  4631. CPU_REG_STORE (cpu) = or1k32bf_store_register;
  4632. CPU_PC_FETCH (cpu) = or1k32bf_h_pc_get;
  4633. CPU_PC_STORE (cpu) = or1k32bf_h_pc_set;
  4634. CPU_GET_IDATA (cpu) = or1k32bf_get_idata;
  4635. CPU_MAX_INSNS (cpu) = OR1K32BF_INSN__MAX;
  4636. CPU_INSN_NAME (cpu) = cgen_insn_name;
  4637. CPU_FULL_ENGINE_FN (cpu) = or1k32bf_engine_run_full;
  4638. #if WITH_FAST
  4639. CPU_FAST_ENGINE_FN (cpu) = or1k32bf_engine_run_fast;
  4640. #else
  4641. CPU_FAST_ENGINE_FN (cpu) = or1k32bf_engine_run_full;
  4642. #endif
  4643. }
  4644. const SIM_MACH or32nd_mach =
  4645. {
  4646. "or32nd", "or1knd", MACH_OR32ND,
  4647. 32, 32, & or32nd_models[0], & or1k32bf_imp_properties,
  4648. or32nd_init_cpu,
  4649. or1k32bf_prepare_run
  4650. };