ChangeLog-2021 242 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849
  1. 2021-07-01 Mike Frysinger <vapier@gentoo.org>
  2. * Makefile.in (RESERVED_CFLAGS): Delete.
  3. * configure.ac: Delete sim-reserved-bits.
  4. * std-config.h (WITH_RESERVED_BITS): Delete.
  5. * configure: Regenerate.
  6. 2021-06-30 Mike Frysinger <vapier@gentoo.org>
  7. * configure.ac: Add -W flags from ../m4/sim_ac_option_warnings.m4.
  8. Run compile tests against each flag.
  9. * configure: Regenerate.
  10. 2021-06-29 Mike Frysinger <vapier@gentoo.org>
  11. * main.c (sim_io_error): Add comment
  12. * sim_calls.c (sim_io_error): Likewise. Change "" to " ".
  13. (error): Likewise.
  14. 2021-06-20 Mike Frysinger <vapier@gentoo.org>
  15. * Makefile.in (INLINE_CFLAGS): Change to $(SIM_INLINE).
  16. * configure.ac: Delete sim-inline logic.
  17. * configure: Regenerate.
  18. 2021-06-19 Mike Frysinger <vapier@gentoo.org>
  19. * configure.ac: Replace ALL_INLINE with ALL_C_INLINE and
  20. PSIM_INLINE_LOCALS with INLINE_LOCALS.
  21. * inline.h: Likewise.
  22. * options.c: Likewise.
  23. * std-config.h: Likewise. Include sim-inline.h explicitly.
  24. (REVEAL_MODULE): Define to H_REVEALS_MODULE.
  25. (INLINE_MODULE): Define to C_REVEALS_MODULE.
  26. (PSIM_INLINE_LOCALS): Delete.
  27. (ALL_INLINE): Delete.
  28. * configure: Regenerate.
  29. 2021-06-19 Mike Frysinger <vapier@gentoo.org>
  30. * Makefile.in: Move intl vars to ../arch-subdir.mk.in.
  31. * configure.ac: Delete ZW_GNU_GETTEXT_SISTER_DIR call.
  32. * config.in, configure: Regenerate.
  33. 2021-06-19 Mike Frysinger <vapier@gentoo.org>
  34. * Makefile.in: Delete toolchain vars.
  35. * configure.ac: Likewise.
  36. * configure: Regenerate.
  37. 2021-06-19 Mike Frysinger <vapier@gentoo.org>
  38. * Makefile.in (LIBS): Add $(COMMON_LIBS).
  39. (ZLIB): Use $(zlibdir).
  40. * configure.ac: Delete AM_ZLIB & AC_PLUGINS calls.
  41. * aclocal.m4, config.in, configure: Regenerate.
  42. 2021-06-18 Mike Frysinger <vapier@gentoo.org>
  43. * Makefile.in (WERROR_CFLAGS): Delete.
  44. * configure.ac: Delete werror configure option.
  45. * configure: Regenerate.
  46. 2021-06-18 Mike Frysinger <vapier@gentoo.org>
  47. * Makefile.in: Include ../arch-subdir.mk.
  48. 2021-06-18 Mike Frysinger <vapier@gentoo.org>
  49. * sim-main.h: Delete sim-signal.h include.
  50. 2021-06-17 Mike Frysinger <vapier@gentoo.org>
  51. * Makefile.in (ENDIAN_CFLAGS): Delete.
  52. * configure.ac: Delete sim-endian.
  53. * configure: Regenerate.
  54. 2021-06-17 Mike Frysinger <vapier@gentoo.org>
  55. * igen.c (gen_semantics_h): Rename PAGE_SIZE to MPC860C0_PAGE_SIZE.
  56. * ppc-instructions: Likewise.
  57. 2021-06-16 Mike Frysinger <vapier@gentoo.org>
  58. * configure.ac: Delete AC_EXEEXT call.
  59. * configure: Regenerate.
  60. 2021-06-16 Mike Frysinger <vapier@gentoo.org>
  61. * configure.ac: Delete sim-assert logic.
  62. * config.in, configure: Regenerate.
  63. 2021-06-16 Mike Frysinger <vapier@gentoo.org>
  64. * altivec.igen: Change BIG_ENDIAN to BFD_ENDIAN_BIG.
  65. * configure.ac: Change LITTLE_ENDIAN, BIG_ENDIAN, & 0 to
  66. BFD_ENDIAN_LITTLE, BFD_ENDIAN_BIG, & BFD_ENDIAN_UNKNOWN respectively.
  67. * emul_generic.c: Likewise.
  68. * options.c (options_byte_order): Likewise. Change int to bfd_endian.
  69. * psim.c (current_target_byte_order): Change type to bfd_endian.
  70. (psim_create): Change LITTLE_ENDIAN & BIG_ENDIAN to BFD_ENDIAN_LITTLE
  71. & BFD_ENDIAN_BIG respectively.
  72. * sim-endian-n.h: Likewise.
  73. * sim-endian.c: Likewise.
  74. * std-config.h: Include bfd.h.
  75. (LITTLE_ENDIAN, BIG_ENDIAN): Delete.
  76. (HOST_BYTE_ORDER): Change to BFD_ENDIAN_BIG & BFD_ENDIAN_LITTLE.
  77. (WITH_TARGET_BYTE_ORDER): Change to BFD_ENDIAN_UNKNOWN.
  78. (current_target_byte_order): Change type to bfd_endian.
  79. (CURRENT_TARGET_BYTE_ORDER): Compare to BFD_ENDIAN_UNKNOWN.
  80. * vm.c (vm_synchronize_context): Change LITTLE_ENDIAN & BIG_ENDIAN to
  81. BFD_ENDIAN_LITTLE & BFD_ENDIAN_BIG respectively.
  82. * configure: Regenerate.
  83. 2021-06-16 Mike Frysinger <vapier@gentoo.org>
  84. * basics.h (__attribute__): Delete.
  85. * misc.h (__attribute__): Likewise.
  86. Include ansidecl.h.
  87. 2021-06-16 Mike Frysinger <vapier@gentoo.org>
  88. * cpu.h: Include ansidecl.h.
  89. (cpu_error): Change __attribute__ ((format (printf... to
  90. ATTRIBUTE_PRINTF_3.
  91. * device.h (device_error): Change __attribute__ ((format (printf...
  92. to ATTRIBUTE_PRINTF_2.
  93. * lf.h: Include ansidecl.h.
  94. (lf_printf): Change __attribute__ ((format (printf... to
  95. ATTRIBUTE_PRINTF_2.
  96. * sim_callbacks.h (sim_io_printf_filtered): Change __attribute__
  97. ((format (printf... to ATTRIBUTE_PRINTF_1.
  98. * tree.h (tree_parse): Change __attribute__ ((format (printf... to
  99. ATTRIBUTE_PRINTF_2.
  100. 2021-06-16 Mike Frysinger <vapier@gentoo.org>
  101. * double.c: Include ansidecls.h.
  102. * dp-bit.c: Change __attribute__ ((packed)) to ATTRIBUTE_PACKED.
  103. 2021-06-16 Mike Frysinger <vapier@gentoo.org>
  104. * basics.h (NORETURN): Delete.
  105. * sim_callbacks.h: Include ansidecl.h. Change NORETURN to
  106. ATTRIBUTE_NORETURN.
  107. * sim_calls.c: Likewise.
  108. 2021-06-16 Mike Frysinger <vapier@gentoo.org>
  109. * basics.h (UNUSED): Delete.
  110. * gen-icache.c (print_icache_extraction): Change UNUSED to
  111. ATTRIBUTE_UNUSED.
  112. * idecode_expression.h: Likewise. Include ansidecl.h.
  113. * inline.h: Likewise.
  114. 2021-06-16 Mike Frysinger <vapier@gentoo.org>
  115. * basics.h: Delete CONCAT* and XCONCAT* macros.
  116. * corefile.c: Include symcat.h.
  117. * idecode_fields.h: Likewise.
  118. * sim-endian.c: Likewise.
  119. * vm.c: Likewise.
  120. 2021-06-16 Mike Frysinger <vapier@gentoo.org>
  121. * device.h (device_add_boolean_property): Rename bool arg to boolean.
  122. 2021-06-16 Mike Frysinger <vapier@gentoo.org>
  123. * Makefile.in (HOSTENDIAN_CFLAGS): Delete.
  124. * configure.ac: Delete sim-hostendian logic.
  125. * altivec_registers.h (WITH_HOST_BYTE_ORDER): Rename to ...
  126. (HOST_BYTE_ORDER): ... this.
  127. * options.c: Likewise.
  128. * sim-endian.c: Likewise.
  129. * psim.c (current_host_byte_order): Delete.
  130. (CURRENT_HOST_BYTE_ORDER): Rename to ...
  131. (HOST_BYTE_ORDER): ... this.
  132. * sim-endian-n.h: Likewise.
  133. * sim-endian.h: Delete all custom endian include & define logic.
  134. * std-config.h (WITH_HOST_BYTE_ORDER): Delete.
  135. (LITTLE_ENDIAN): Define fallback.
  136. (BIG_ENDIAN): Likewise.
  137. (HOST_BYTE_ORDER): Define based on WORDS_BIGENDIAN.
  138. (current_host_byte_order, CURRENT_HOST_BYTE_ORDER): Delete.
  139. * config.in, configure: Regenerate.
  140. 2021-06-13 Mike Frysinger <vapier@gentoo.org>
  141. * Makefile.in (COMMON_OBJS_NAMES, +COMMON_OBJS): New variables.
  142. (LIB_OBJ): Replace version.o with $(COMMON_OBJS).
  143. (version.c, version.o): Delete rules.
  144. 2021-06-12 Mike Frysinger <vapier@gentoo.org>
  145. * Makefile.in: Add $(EXEEXT) to run and psim.
  146. 2021-06-12 Mike Frysinger <vapier@gentoo.org>
  147. * Makefile.in: Delete ALIGNMENT_CFLAGS.
  148. * configure.ac: Delete sim-alignment.
  149. * configure: Regenerate.
  150. 2021-06-12 Mike Frysinger <vapier@gentoo.org>
  151. * configure.ac: Delete calls to ACX_PKGVERSION & ACX_BUGURL.
  152. * aclocal.m4, config.in, configure: Regenerate.
  153. 2021-06-12 Mike Frysinger <vapier@gentoo.org>
  154. * configure.ac: Delete sim-stdio & sim-trace.
  155. * debug.h: Define TRACE_* defines.
  156. * config.in, configure: Regenerate.
  157. 2021-06-12 Mike Frysinger <vapier@gentoo.org>
  158. * configure.ac: Delete AC_STRUCT_*, AC_TYPE_*, AC_CHECK_FUNCS,
  159. AC_CHECK_HEADERS, and AC_HEADER_DIRENT calls.
  160. * config.in, configure: Regenerate.
  161. 2021-06-12 Mike Frysinger <vapier@gentoo.org>
  162. * configure.ac: Delete sim-env configure option.
  163. * defs.h: Include ../config.h. Undefine PACKAGE* defines.
  164. * std-config.h (ALL_ENVIRONMENT): Define.
  165. * config.in, configure: Regenerate.
  166. 2021-06-09 Mike Frysinger <vapier@gentoo.org>
  167. * basics.h (NULL): Delete.
  168. * gen-itable.c (NULL): Likewise.
  169. * gen-model.c (NULL): Likewise.
  170. * ld-cache.c (NULL): Likewise.
  171. * ld-decode.c (NULL): Likewise.
  172. 2021-05-29 Mike Frysinger <vapier@gentoo.org>
  173. * configure.ac (WERROR_CFLAGS): Add -Wno-format for mingw32 hosts.
  174. * configure: Regenerate.
  175. 2021-05-29 Mike Frysinger <vapier@gentoo.org>
  176. * emul_generic.c (emul_write_status): Rename errno to err.
  177. (emul_write2_status): Likewise.
  178. * emul_generic.h (emul_write_status, emul_write2_status): Likewise.
  179. * emul_netbsd.c (errno): Delete.
  180. * emul_unix.c (errno): Delete.
  181. 2021-05-29 Mike Frysinger <vapier@gentoo.org>
  182. * Makefile.in (INCLUDES): Add -I../..
  183. 2021-05-16 Mike Frysinger <vapier@gentoo.org>
  184. * Makefile.in (gentmap): Pass -DUSE_CONFIG_H.
  185. * basics.h, debug.c, filter_filename.c, inline.c, sim-endian.c,
  186. words.h: Replace config.h include with defs.h.
  187. * defs.h: New file.
  188. 2021-05-15 Mike Frysinger <vapier@gentoo.org>
  189. * Makefile.in (WERROR_CFLAGS): Define.
  190. (STD_CFLAGS): Add $(WERROR_CFLAGS).
  191. * configure.ac: Add --enable-werror.
  192. * device.c (device_full_name): Delete full_name variable.
  193. (device_clean): Delete system variable.
  194. * emul_chirp.c (chirp_emul_getprop): Cast vars to unsigned long.
  195. (chirp_emul_seek): Likewise.
  196. * hw_glue.c (hw_glue_init_address): Use %zu format.
  197. * hw_ide.c (hw_ide_io_read_buffer): Cast vars to unsigned long.
  198. (hw_ide_io_write_buffer): Likewise.
  199. * hw_init.c (update_for_binary_section): Cast vars to unsigned long.
  200. * hw_phb.c (hw_phb_dma_read_buffer): Likewise.
  201. (hw_phb_dma_write_buffer): Likewise.
  202. * hw_shm.c (hw_shm_init_data): Delete d variable.
  203. (hw_shm_attach_address_callback): Delete shm variable.
  204. * igen.c (gen_semantics_c): Include tree.h.
  205. * interrupts.c (alignment_interrupt): Cast vars to unsigned long.
  206. * ld-insn.c (dump_insn_field): Cast vars to unsigned long.
  207. * main.c (main): Add const to argv.
  208. * options.c (print_options): Cast var to int.
  209. * ppc-instructions: Add %s to format. Delete shifted variable. Add
  210. parenthesis to binary operations.
  211. * psim.c (find_arg): Add const to return and argv.
  212. (is_num): Add const to string.
  213. (psim_options): Add const to return and argv, and p & param.
  214. (psim_command): Add const to argv, device, and media.
  215. (psim_stack): Add const to argv and envp.
  216. * psim.h: Add const to psim_options, psim_command, and psim_stack.
  217. * tree.c (parse_reg_property): Delete & from sizeof.
  218. * vm.c (om_virtual_to_real): Const vars to long.
  219. * vm_n.h (vm_data_map_read_N): Change format to %zu.
  220. (vm_data_map_write_N): Likewise.
  221. * configure: Regenerate.
  222. 2021-05-14 Mike Frysinger <vapier@gentoo.org>
  223. * Makefile.in: Update path.
  224. * gdb-sim.c: Update include path.
  225. * main.c: Likewise.
  226. * psim.h: Likewise.
  227. * sim_calls.c: Likewise.
  228. 2021-04-22 Tom Tromey <tom@tromey.com>
  229. * mon.c: Update includes.
  230. * emul_unix.c: Update includes.
  231. (do_unix_gettimeofday): Update condition.
  232. 2021-04-22 Tom Tromey <tom@tromey.com>
  233. * Makefile.in (stamp-vals, stamp-map): New targets.
  234. (targ-vals.h, targ-map.c): Update.
  235. (clean): Remove files.
  236. 2021-04-08 Tom Tromey <tom@tromey.com>
  237. * emul_unix.c: Include time.h.
  238. 2021-04-08 Simon Marchi <simon.marchi@polymtl.ca>
  239. * Makefile.in: Set ASAN_OPTIONS when running igen.
  240. 2021-04-03 Mike Frysinger <vapier@gentoo.org>
  241. * Makefile.in (install): Install as run-ppc when not the primary arch.
  242. (install-strip): Likewise.
  243. 2021-03-13 Mike Frysinger <vapier@gentoo.org>
  244. * Makefile.in (BUILD_LDFLAGS): Rename to ...
  245. (LDFLAGS_FOR_BUILD): ... this.
  246. (LINK_FOR_BUILD): Change BUILD_LDFLAGS to LDFLAGS_FOR_BUILD.
  247. 2021-03-13 Mike Frysinger <vapier@gentoo.org>
  248. * Makefile.in (COMPILE_FOR_BUILD, LINK_FOR_BUILD): Define.
  249. Change $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) to
  250. $(LINK_FOR_BUILD). Change $(CC_FOR_BUILD) $(BUILD_CFLAGS) to
  251. $(COMPILE_FOR_BUILD).
  252. 2021-03-08 Mike Frysinger <vapier@gentoo.org>
  253. * Makefile.in (gentmap, dgen, igen, tmp-filter, tmp-ld-decode,
  254. tmp-ld-cache, tmp-ld-insn): Delete $(BUILD_LIBS).
  255. 2021-03-07 Mike Frysinger <vapier@gentoo.org>
  256. * Makefile.in (check): Define.
  257. 2021-02-13 Mike Frysinger <vapier@gentoo.org>
  258. * configure.ac: Replace sinclude with AC_CONFIG_MACRO_DIRS.
  259. * aclocal.m4, configure: Regenerate.
  260. 2021-02-06 Mike Frysinger <vapier@gentoo.org>
  261. * Makefile.in (STD_CFLAGS): Delete $(HDEFINES) $(TDEFINES).
  262. (NOWARN_CFLAGS): Likewise.
  263. (HDEFINES, TDEFINES): Delete.
  264. * configure.ac: Delete AC_SUBST(HDEFINES) and bfd/configure.host
  265. sourcing.
  266. * configure: Regenerate.
  267. 2021-01-19 Mike Frysinger <vapier@gentoo.org>
  268. * Makefile.in (version.c): Simplifiy args and call move-if-change.
  269. 2021-01-11 Mike Frysinger <vapier@gentoo.org>
  270. * configure.ac: Delete checks for stdlib.h, string.h,
  271. strings.h, and time.h.
  272. * config.in, configure: Regenerate.
  273. * cpu.c, debug.c, device.c, device_table.c, device_table.h,
  274. dgen.c, emul_bugapi.c, emul_chirp.c, emul_netbsd.c, emul_unix.c,
  275. filter.c, hw_com.c, hw_eeprom.c, hw_nvram.c, hw_opic.c, hw_pal.c,
  276. hw_phb.c, hw_sem.c, hw_shm.c, lf.c, main.c, misc.c, misc.h,
  277. mon.c, pk_disklabel.c, psim.c, registers.c, sim_calls.c, table.c,
  278. tree.c: Delete HAVE_ERRNO_H, HAVE_STDLIB_H, HAVE_STRING_H,
  279. HAVE_STRINGS_H, HAVE_LIMITS_H, HAVE_TIME_H, and strings.h include.
  280. * hw_nvram.c: Likewise.
  281. (_hw_nvram_device): Always define host_time as time_t.
  282. (hw_nvram_update_clock): Delete error fallback.
  283. * gen-model.c (gen_model_c): Delete HAVE_STDLIB_H output.
  284. 2021-01-09 Mike Frysinger <vapier@gentoo.org>
  285. * configure: Regenerate.
  286. 2021-01-08 Mike Frysinger <vapier@gentoo.org>
  287. * sim_calls.c (sim_memory_map): Define.
  288. 2021-01-04 Mike Frysinger <vapier@gentoo.org>
  289. * gen-icache.c, igen.c: Include stdlib.h.
  290. 2021-01-04 Mike Frysinger <vapier@gentoo.org>
  291. * acinclude.m4 (ACX_BUGURL): Change http:// to https://.
  292. * configure: Regenerate.
  293. 2020-10-20 Dr. David Alan Gilbert <dgilbert@redhat.com>
  294. * emul_netbsd.c (do_sigprocmask): Fix printf format.
  295. 2020-07-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
  296. * ld-insn.h (last_model, last_model_data, last_model_function,
  297. last_model_internal, last_model_macro, last_model_static):
  298. Delete.
  299. (max_model_fields_len, model_data, model_functions,
  300. model_internal, model_macros, model_static, models): Declare, but do not
  301. define.
  302. * ld-insn.c (last_model, last_model_data, last_model_function,
  303. last_model_internal, last_model_macro, last_model_static,
  304. max_model_fields_len, model_data, model_functions,
  305. model_internal, model_macros, model_static, models): Define.
  306. 2020-03-12 Kamil Rytarowski <n54@gmx.com>
  307. * emul_netbsd.c (netbsd_signal_names): Sync with NetBSD 9.99.49.
  308. 2020-03-12 Kamil Rytarowski <n54@gmx.com>
  309. * emul_netbsd.c (netbsd_error_names): Sync with NetBSD 9.99.49.
  310. 2019-12-19 Tom Tromey <tromey@adacore.com>
  311. PR build/24572:
  312. * Makefile.in (install-strip): New target.
  313. 2019-09-20 Alan Modra <amodra@gmail.com>
  314. * emul_generic.c (emul_add_tree_options): Delete old bfd code.
  315. 2019-01-26 Tom Tromey <tom@tromey.com>
  316. * Makefile.in (version.c): Use sim's create-version.sh.
  317. 2018-05-09 Sebastian Rasmussen <sebras@gmail.com>
  318. * e500_registers.h: Comment typo fix.
  319. * ppc-instructions (ppc_insn_mfcr): Likewise.
  320. 2017-09-05 John Baldwin <jhb@FreeBSD.org>
  321. PR sim/20863
  322. * sim_calls.c (error): New function.
  323. 2017-02-13 Mike Frysinger <vapier@gentoo.org>
  324. * cpu.h: Include libiberty.h.
  325. * emul_bugapi.c (emul_bugapi_instruction_name): Use ARRAY_SIZE.
  326. * emul_generic.h: Include libiberty.h.
  327. * emul_netbsd.c (emul_netbsd_syscalls): Use ARRAY_SIZE.
  328. * emul_unix.c (convert_to_solaris_stat): Likewise.
  329. (emul_solaris_syscalls): Likewise.
  330. (emul_linux_syscalls): Likewise.
  331. * options.c (print_options): Likewise.
  332. * ppc-instructions: Likewise.
  333. 2016-01-10 Mike Frysinger <vapier@gentoo.org>
  334. * configure.ac (sim-assert): Call AC_MSG_CHECKING,
  335. AC_DEFINE_UNQUOTED, and AC_MSG_RESULT
  336. (sim-env, sim-stdio, sim-trace): Delete.
  337. * config.in, configure: Regenerate.
  338. * Make-common.in (ENV_CFLAGS, TRACE_CFLAGS, ASSERT_CFLAGS,
  339. STDIO_CFLAGS): Delete.
  340. (CONFIG_CFLAGS): Delete $(ENV_CFLAGS), $(TRACE_CFLAGS),
  341. $(ASSERT_CFLAGS), and $(STDIO_CFLAGS).
  342. * std-config.h (WITH_ENVIRONMENT, WITH_TRACE, WITH_ASSERT,
  343. WITH_STDIO): Delete.
  344. 2016-01-10 Mike Frysinger <vapier@gentoo.org>
  345. * configure: Regenerate.
  346. 2016-01-10 Mike Frysinger <vapier@gentoo.org>
  347. * configure: Regenerate.
  348. 2016-01-10 Mike Frysinger <vapier@gentoo.org>
  349. * configure.ac: Delete --enable-sim-regparm and sim_regparm,
  350. and --enable-sim-stdcall and sim_stdcall.
  351. * configure: Regenerate.
  352. * Makefile.in (REGPARM_CFLAGS, STDCALL_CFLAGS): Delete.
  353. (CONFIG_CFLAGS): Delete $(REGPARM_CFLAGS) and $(STDCALL_CFLAGS).
  354. * inline.h: Delete REGPARM everywhere.
  355. * options.c (print_options): Delete WITH_REGPARM and
  356. WITH_STDCALL.
  357. * std-config.h (WITH_REGPARM, WITH_STDCALL, REGPARM): Delete.
  358. 2016-01-10 Mike Frysinger <vapier@gentoo.org>
  359. * configure.ac: Delete --enable-sim-cflags and sim_cflags.
  360. * configure: Regenerate.
  361. * INSTALL: Delete all mention of --enable-sim-cflags.
  362. * Makefile.in (SIM_CFLAGS): Delete.
  363. (STD_CFLAGS, NOWARN_CFLAGS): Delete $(SIM_CFLAGS).
  364. (psim): Likewise.
  365. 2016-01-06 Mike Frysinger <vapier@gentoo.org>
  366. * sim_calls.c (sim_open): Mark argv const.
  367. (sim_create_inferior): Mark argv and env const.
  368. 2016-01-04 Mike Frysinger <vapier@gentoo.org>
  369. * configure.ac (sim-bswap): Delete.
  370. * configure: Regenerate.
  371. * INSTALL: Delete --enable-sim-bswap docs.
  372. * Makefile.in (BSWAP_CFLAGS): Delete.
  373. (CONFIG_CFLAGS): Delete $(BSWAP_CFLAGS).
  374. * options.c (print_options): Delete WITH_BSWAP.
  375. * sim-endian.h (htonl, ntohl): Delete.
  376. * std-config.h (WITH_BSWAP): Delete.
  377. 2016-01-02 Mike Frysinger <vapier@gentoo.org>
  378. * main.c (main): Pass SIM_OPEN_STANDALONE to psim_options and
  379. psim_usage.
  380. * psim.c (psim_usage): Add new kind arg. Only show bug URL and
  381. exit when kind is SIM_OPEN_STANDALONE.
  382. (psim_options): Add new kind arg. Pass kind down to all psim_usage
  383. calls. Replace error/break calls after psim_usage with return NULL.
  384. Only exit with version case when kind is SIM_OPEN_STANDALONE.
  385. * psim.h: Include gdb/remote-sim.h.
  386. (psim_options): Add new kind arg.
  387. (psim_usage): Likewise.
  388. * sim_calls.c (sim_open): Pass kind to psim_options. Return NULL
  389. when it returns NULL.
  390. 2015-12-29 Kevin Buettner <kevinb@redhat.com>
  391. * emul_netbsd.c (fd_closed): New static array.
  392. (fdbad): New function.
  393. (do_read, do_write, do_close, do_dup, do_ioctl, do_dup2, do_fcntl)
  394. (do_fstatfs, do_fstat, do_lseek): Call `fdbad'.
  395. (emul_netbsd_init): Initialize `fd_closed'.
  396. * emul_unix.c (fd_closed): New static array.
  397. (fdbad): New function.
  398. (do_unix_read, do_unix_write, do_unix_close, do_unix_dup)
  399. (do_unix_dup2, do_unix_lseek, do_solaris_fstat, do_solaris_ioctl)
  400. (do_linux_fstat, do_linux_ioctl): Call `fdbad'.
  401. (emul_solaris_init, emul_linux_init): Initialize `fd_closed'.
  402. 2015-12-26 Mike Frysinger <vapier@gentoo.org>
  403. * Makefile.in (TCONFIG_H): Delete.
  404. (sim-fpu.o): Delete $(TCONFIG_H).
  405. (tconfig.h): Delete rule.
  406. 2015-11-21 Mike Frysinger <vapier@gentoo.org>
  407. PR sim/13834
  408. * Makefile.in (gentmap): Change $< to $(srcdir)/../common/gentmap.c.
  409. (callback.o): Change $< to $(srcdir)/../common/callback.c.
  410. (options.o): Change $< to $(srcdir)/options.c.
  411. 2015-11-17 Pedro Alves <palves@redhat.com>
  412. * debug.h (TRACE, ITRACE, DTRACE, DITRACE, PTRACE): Call
  413. sim_io_printf_filtered instead of printf_filtered.
  414. 2015-06-12 Mike Frysinger <vapier@gentoo.org>
  415. * configure: Regenerate.
  416. 2015-04-29 Nick Clifton <nickc@redhat.com>
  417. PR 18273
  418. * hw_htab.c (htab_map_binary): Fix overlap check.
  419. 2015-04-13 Mike Frysinger <vapier@gentoo.org>
  420. * Makefile.in (version.o): Change to using create-version.sh from gdb.
  421. (create-version.sh): Delete.
  422. 2015-03-31 Mike Frysinger <vapier@gentoo.org>
  423. * config.in, configure: Regenerate.
  424. * Makefile.in (INCLUDES): Add $(ZLIBINC).
  425. (ZLIB, ZLIBINC): Define.
  426. (BFD_LIB): Add $(ZLIB).
  427. 2014-11-23 Joel Sherrill <joel.sherrill@oarcorp.com>
  428. * ChangeLog, ChangeLog.00, hw_com.c, ld-cache.h, ppc-instructions:
  429. Change immediatly to immediately.
  430. 2014-08-27 Joel Sherrill <joel.sherrill@oarcorp.com>
  431. * basics.h, device.c, device.h, hw_htab.c, hw_memory.c:
  432. Correct spelling in comments.
  433. 2014-08-19 Alan Modra <amodra@gmail.com>
  434. * configure.ac: Invoke AC_PLUGINS.
  435. * configure: Regenerate.
  436. * config.in: Regenerate.
  437. 2014-03-10 Mike Frysinger <vapier@gentoo.org>
  438. * sim_calls.c (sim_do_command): Add const to cmd.
  439. 2014-03-05 Mike Frysinger <vapier@gentoo.org>
  440. * sim_calls.c (sim_load): Add const to prog.
  441. 2014-02-17 Aaro Koskinen <aaro.koskinen@iki.fi>
  442. PR gdb/12202
  443. * Makefile.in (psim): Delete $(LIBS) from dependency.
  444. 2013-10-15 Hans-Peter Nilsson <hp@axis.com>
  445. * Makefile.in (srcsim): New variable.
  446. (version.c): Adjust call to $(srccom)/create-version.sh as per change.
  447. 2013-06-28 Tom Tromey <tromey@redhat.com>
  448. * Make-common.in (version.c): Use version.in, not
  449. common/version.in.
  450. 2013-06-24 Joel Brobecker <brobecker@adacore.com>
  451. * Makefile.in (srccom): New variable.
  452. (version.c): Update rule dependencies, and re-implement using
  453. sim/common/create-version.sh.
  454. 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
  455. revert:
  456. 2013-04-19 Nathan Froyd <froydnj@codesourcery.com>
  457. * ppc-instructions (isel): New instruction.
  458. 2013-04-19 Nathan Froyd <froydnj@codesourcery.com>
  459. * ppc-instructions (isel): New instruction.
  460. 2012-12-19 Joel Brobecker <brobecker@adacore.com>
  461. * COPYING: Update to GPL version 3.
  462. 2012-06-15 Joel Brobecker <brobecker@adacore.com>
  463. * configure: Regenerate.
  464. 2012-05-24 Pedro Alves <palves@redhat.com>
  465. PR gdb/7205
  466. * Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
  467. 2012-03-14 Michael Haubenwallner <michael.haubenwallner@salomon.at>
  468. * emul_unix.c (st_pad1, st_pad2, st_pad3): Undefine.
  469. 2012-01-02 Joel Brobecker <brobecker@adacore.com>
  470. * dp-bit.c: Reformat copyright header.
  471. 2011-02-11 Ben Golding <ben_golding@yahoo.co.uk>
  472. * events.c: add #include <stdlib.h> for free(). Fix PR build/13372.
  473. 2011-10-17 Mike Frysinger <vapier@gentoo.org>
  474. * configure.ac: Change include to common/acinclude.m4.
  475. 2011-10-17 Mike Frysinger <vapier@gentoo.org>
  476. * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
  477. call. Replace common.m4 include with SIM_AC_COMMON.
  478. * configure: Regenerate.
  479. 2011-06-09 Joel Brobecker <brobecker@adacore.com>
  480. * psim.c (psim_options): Fix length of comparison when checking
  481. for --sysroot= option.
  482. 2011-06-08 Joel Brobecker <brobecker@adacore.com>
  483. * psim.c (psim_options): Add option that cause the error
  484. in invalid-option error messages. Print the usage when
  485. detecting an invalid long-name option.
  486. 2011-06-08 Joel Brobecker <brobecker@adacore.com>
  487. * psim.c (psim_options): Accept and ignore `--sysroot=...'.
  488. 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
  489. From Stephen Kitt <steve@sk2.org>
  490. * vm.c (vm_synchronize_context): Spelling fix in function
  491. documentation.
  492. 2011-04-16 Mike Frysinger <vapier@gentoo.org>
  493. * sim_calls.c (sim_complete_command): New stub function.
  494. 2011-02-14 Mike Frysinger <vapier@gentoo.org>
  495. * cap.c (cap_remove): Change zfree to free.
  496. * corefile.c (core_init): Likewise.
  497. * device.c (detach_device_interrupt_edge): Likewise.
  498. (clean_device_interrupt_edges): Likewise.
  499. (device_instance_delete): Likewise.
  500. (device_set_property): Likewise.
  501. (clean_device_properties): Likewise.
  502. (device_add_range_array_property): Likewise.
  503. (device_add_reg_array_property): Likewise.
  504. * emul_bugapi.c (emul_bugapi_do_read): Likewise.
  505. (emul_bugapi_do_write)
  506. * emul_netbsd.c (write_direntries): Likewise.
  507. (do_read): Likewise.
  508. (do_write): Likewise.
  509. (do_getdirentries): Likewise.
  510. * emul_unix.c (do_unix_read): Likewise.
  511. (do_unix_write): Likewise.
  512. * events.c (event_queue_init): Likewise.
  513. (event_queue_deschedule): Likewise.
  514. (event_queue_process): Likewise.
  515. * hw_disk.c (open_disk_image): Likewise.
  516. (hw_disk_instance_delete): Likewise.
  517. * hw_eeprom.c (hw_eeprom_instance_delete): Likewise.
  518. * hw_htab.c (htab_dma_binary): Likewise.
  519. * hw_init.c (update_for_binary_section): Likewise.
  520. * hw_memory.c (hw_memory_set_available): Likewise.
  521. (hw_memory_init_address): Likewise.
  522. (hw_memory_instance_release): Likewise.
  523. * pk_disklabel.c (disklabel_delete): Likewise.
  524. * table.c (table_push): Likewise.
  525. * tree.c (parse_reg_property): Likewise.
  526. (parse_ranges_property): Likewise.
  527. (parse_string_property): Likewise.
  528. * main.c (zfree): Delete.
  529. * sim_calls.c (zfree): Likewise.
  530. * sim_callbacks.h (zfree): Likewise.
  531. 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
  532. * gdb-sim.c (sim_store_register): Update return value to
  533. match new API.
  534. 2011-01-05 Joel Brobecker <brobecker@adacore.com>
  535. * psim.texinfo: Copyright year update.
  536. 2010-04-14 Mike Frysinger <vapier@gentoo.org>
  537. * sim_calls.c (sim_write): Add const to buf arg.
  538. 2010-02-14 Andreas Schwab <schwab@linux-m68k.org>
  539. * ppc-instructions: Fix missing assignment in last change.
  540. 2010-02-05 Andreas Schwab <schwab@linux-m68k.org>
  541. * ppc-instructions: Fix aliasing bugs when calling
  542. invalid_arithemetic_operation.
  543. 2009-11-13 Nathan Froyd <froydnj@codesourcery.com>
  544. * configure.ac: If build != host, create a separate build-config.h
  545. file desecribing the build machine.
  546. * configure: Regenerate.
  547. * lf.c: Include build-config.h instead of config.h.
  548. * dgen.c: Likewise.
  549. * igen.c: Likewise.
  550. * misc.c: Likewise.
  551. * misc.h: Likewise.
  552. * filter.c: Likewise.
  553. * table.c: Likewise.
  554. 2009-10-15 Joel Sherrill <joel.sherrill@oarcorp.com>
  555. * std-config.h: Fix spelling error.
  556. 2009-09-22 Joel Sherrill <joel.sherrill@oarcorp.com>
  557. * main.c: Fix spelling error.
  558. 2009-09-15 Andreas Tobler <andreast-list@fgznet.ch>
  559. Doug Evans <dje@google.com>
  560. * configure.ac (sim_hwflags): Use AC_DEFINE to define HAVE_UNION_SEMUN.
  561. * configure: Regenerate.
  562. * config.in: Regenerate.
  563. * hw_sem.c: (HAVE_UNION_SEMUN): Renamed from HAS_UNION_SEMUN.
  564. 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  565. * config.in: Regenerate.
  566. * configure: Likewise.
  567. * configure: Regenerate.
  568. 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  569. * Makefile.in (datarootdir): New variable.
  570. 2009-01-12 Nathan Froyd <froydnj@codesourcery.com>
  571. * ppc-instructions (sync): Add L field.
  572. 2008-12-15 Joel Sherrill <joel.sherrill@oarcorp.com>
  573. * ppc-instructions, ppc-spr-table: Add ability
  574. to read tbrl and tbru special registers.
  575. 2008-11-18 Joel Sherrill <joel.sherrill@oarcorp.com>
  576. * configure: Regenerated.
  577. * configure.ac: Add test for System V shared memory and semaphore.
  578. * debug.c, debug.h: Add trace support for new devices.
  579. * hw_sem.c, hw_shm.c: New files.
  580. * Makefile.in: Add hw_sem.c and hw_shm.c.
  581. 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
  582. * configure.ac: Add test for libz and zlib.h.
  583. * Makefile.in (LIBS): Set from @LIBS@.
  584. * configure: Regenerate.
  585. * config.in: Ditto.
  586. 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
  587. Daniel Jacobowitz <dan@codesourcery.com>
  588. Joseph Myers <joseph@codesourcery.com>
  589. * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
  590. * configure, config.in: Regenerated.
  591. * Makefile.in (LIB_OBJ): Add version.o.
  592. (version.c, version.o): New rules.
  593. * psim.c (psim_usage): Add help parameter. Print the bug URL.
  594. Exit with code 0 for help.
  595. (psim_options): Update calls to psim_usage. Handle --help and
  596. --version.
  597. * psim.h (psim_usage): Update prototype.
  598. * main.c (main): Update psim_usage call.
  599. 2008-03-14 Nick Hudson <nick.hudson@dsl.pipex.com
  600. * configure.ac: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR.
  601. * configure: Regenerate.
  602. 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
  603. * gdb-sim.c (regnum2spr): Rename to...
  604. (sim_spr_register_name): ... this. Make global.
  605. 2007-09-04 Jerome Guitton <guitton@adacore.com>
  606. * sim/ppc/emul_bugapi.c (emul_bugapi_create): quote the file
  607. name property before parsing it.
  608. 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
  609. * acconfig.h: Remove.
  610. * config.in: Regenerate.
  611. 2006-11-22 Tom Marn <tom.marn@telargo.com>
  612. Committed by Andrew Cagney.
  613. * ppc-instructions: Implement optional PowerPC stfiwx instruction.
  614. 2006-07-12 Fred Fish <fnf@specifix.com>
  615. * sim-endian.h (asm/byteorder.h): Don't include private kernel
  616. header.
  617. 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
  618. * configure: Regenerated.
  619. 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
  620. * Makefile.in: Replace INTLLIBS and INTLDEPS with LIBINTL
  621. and LIBINTL_DEP everywhere.
  622. (INTL_DIR, INTL_SRC): Remove.
  623. (INTL_CFLAGS): Use INCINTL.
  624. * configure.ac: Use ZW_GNU_GETTEXT_SISTER_DIR.
  625. * configure: Regenerated.
  626. 2006-05-05 Andreas Schwab <schwab@suse.de>
  627. * configure.ac (CFLAGS_FOR_BUILD): Set and substitute.
  628. * configure: Regenerate.
  629. * Makefile.in (CFLAGS_FOR_BUILD): Define.
  630. (BUILD_CFLAGS): Use it instead of hardcoding "-g -O".
  631. (gentmap): Fix typo BUILD_FLAGS -> BUILD_CFLAGS.
  632. 2006-04-23 Andreas Schwab <schwab@suse.de>
  633. * Makefile.in (tmp-ld-decode): Fix dependencies.
  634. (tmp-ld-cache): Likewise.
  635. (tmp-ld-insn): Likewise.
  636. 2006-02-01 Mark Mitchell <mark@codesourcery.com>
  637. * emul_netbsd.c (emul_netbsd_create): Quote file-name property.
  638. * emul_unix.c (emul_unix_create): Likewise.
  639. * tree.c (libiberty.h): Include it.
  640. (tree_quote_property): New function.
  641. * tree.h (tree_quote_property): Declare.
  642. 2006-01-25 Mark Mitchell <mark@codesourcery.com>
  643. * words.h (natural32): Define as "int".
  644. 2006-01-23 Mark Mitchell <mark@codesourcery.com>
  645. * words.h (signed32): Define as "int".
  646. (unsigned32): Define as "unsigned int".
  647. 2005-11-28 Mark Mitchell <mark@codesourcery.com>
  648. * configure.ac (USE_WIN32API): Define it.
  649. * configure.in: Regenerate.
  650. * config.in: Likewise.
  651. * emul_netbsd.c (write_timezone): Guard with HAVE_GETTIMEOFDAY.
  652. * emul_unix.c (do_unix_mkdir): Handle Win32 1-argument mkdir.
  653. 2005-11-28 Mark Mitchell <mark@codesourcery.com>
  654. * psim.c: Include gdb/signals.h.
  655. * sim_calls.c (gdb/signals.h): Include it.
  656. (sim_stop_reason): Use TARGET_SIGNAL_*.
  657. * psim.c (cntrl_c_simulation): Use TARGET_SIGNAL_*.
  658. 2005-07-15 Ben Elliston <bje@au.ibm.com>
  659. * hw_htab.c (bfd_get_section_lma): Remove macro; use BFD's.
  660. 2005-07-15 Ben Elliston <bje@au.ibm.com>
  661. * hw_init.c: Comment out tokens after #endif directive.
  662. * hw_register.c: Likewise.
  663. * hw_trace.c: Likewise.
  664. * hw_vm.c: Likewise.
  665. 2005-04-20 Manoj Iyer <manjo@austin.ibm.com>
  666. * psim.c: Added libiberty.h header file.
  667. 2005-04-18 Manoj Iyer <manjo@austin.ibm.com>
  668. * configure.ac: Added check for long long.
  669. * config.in: Regenerated.
  670. * configure: Regenerated.
  671. * words.h: Modified logic to check for HAVE_LONG_LONG instead of
  672. __GNUC__, added config.h header file.
  673. 2005-03-25 Anthony Green <green@redhat.com>
  674. * tree.c (parse_reg_property): Fix memset usage.
  675. 2005-03-23 Mark Kettenis <kettenis@gnu.org>
  676. * configure: Regenerate.
  677. 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
  678. * configure.ac: Delete AC_CONFIG_AUX_DIR.
  679. * configure: Re-generate.
  680. 2005-01-07 Andrew Cagney <cagney@gnu.org>
  681. * configure.ac: Rename configure.in, require autoconf 2.59.
  682. * configure: Re-generate.
  683. 2005-01-03 Andreas Schwab <schwab@suse.de>
  684. * Makefile.in (hw_com.o, hw_eeprom.o): Depend on
  685. $(DEVICE_TABLE_H).
  686. 2004-11-16 Andreas Schwab <schwab@suse.de>
  687. * Makefile.in (defines.h): Depend on tmp-defines.
  688. (hw.c hw.h): Depend on tmp-hw.
  689. (pk.h): Depend on tmp-pk.
  690. 2004-11-11 Andreas Schwab <schwab@suse.de>
  691. * sim_calls.c: Include "libiberty.h".
  692. 2004-09-24 Ian Lance Taylor <ian@wasabisystems.com>
  693. Committed by Andrew Cagney.
  694. * configure.in: Check for sys/mount.h, sys/vfs.h, sys/statfs.h.
  695. Check for struct statfs.
  696. * emul_netbsd.c: If not HAVE_STRUCT_STATFS, #undef HAVE_FSTATFS.
  697. * configure, config.in: Regenerate.
  698. 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
  699. * Makefile.in (GDB_INCLUDES): Remove bogus reference to mmalloc.
  700. 2004-08-04 Andrew Cagney <cagney@gnu.org>
  701. Jim Blandy <jimb@redhat.com>
  702. * sim_callbacks.h (simulator): Declare.
  703. * Makefile.in (gdb-sim.o): New rule.
  704. (MAIN_SRC, GDB_OBJ): Add gdb-sim.o, gdb-sim.c.
  705. (DEFS_H): Delete.
  706. (GDB_SIM_PPC_H): Define.
  707. * gdb-sim.c: New file.
  708. * sim_calls.c: Do not include "defs.h".
  709. (simulator): Drop static.
  710. (sim_store_register, sim_fetch_register): Delete.
  711. 2004-08-04 Andrew Cagney <cagney@gnu.org>
  712. * Back out accidently committed change.
  713. 2004-08-04 Jim Blandy <jimb@redhat.com>
  714. Use a fixed register numbering when communicating with the PowerPC
  715. simulator.
  716. * sim_calls.c: #include "registers.h" and "gdb/sim-ppc.h"; do not
  717. include GDB's "defs.h".
  718. (gdb_register_name_table): New variable.
  719. (gdb_register_name_table_size): New enum constant.
  720. (gdb_register_name): New function.
  721. (sim_fetch_register, sim_store_register): Use gdb_register_name,
  722. instead of calling gdbarch_register_name.
  723. * Makefile.in (GDB_SIM_PPC_H): New variable.
  724. (DEFS_H): Delete variable.
  725. (sim_calls.o): Update dependencies.
  726. 2004-07-26 Andrew Cagney <cagney@gnu.org>
  727. Problem from Olaf Hering <olh@suse.de>.
  728. * Makefile.in (install, installdirs): Add DESTDIR.
  729. 2004-07-10 Ben Elliston <bje@au.ibm.com>
  730. * tree.c (parse_integer_property): Comment typo fix.
  731. 2004-07-06 Jim Blandy <jimb@redhat.com>
  732. * Makefile.in: Update all dependency information.
  733. (BASICS_H, CPU_H, IDECODE_H, PSIM_H, REGISTERS_H, DEVICE_TABLE_H)
  734. (EMUL_GENERIC_H): Values updated.
  735. (ACCONFIG_H, ALTIVEC_EXPRESSION_H, ALTIVEC_REGISTERS_H)
  736. (ANSIDECL_H, BFD_H, BITS_H, CAP_H, COMMON_SIM_BASE_H)
  737. (COMMON_SIM_BASICS_H, COMMON_SIM_FPU_H, COMMON_SIM_INLINE_H)
  738. (COMMON_SIM_SIGNAL_H, CONFIG_H, COREFILE_H, COREFILE_N_H, DEBUG_H)
  739. (DEFINES_H, DEFS_H, DEVICE_H, E500_EXPRESSION_H, E500_REGISTERS_H)
  740. (EMUL_BUGAPI_H, EMUL_CHIRP_H, EMUL_NETBSD_H, EMUL_UNIX_H, EVENTS_H)
  741. (FILTER_FILENAME_H, FILTER_H, GDB_CALLBACK_H, GDB_REMOTE_SIM_H)
  742. (GEN_ICACHE_H, GEN_IDECODE_H, GEN_ITABLE_H, GEN_MODEL_H)
  743. (GEN_SEMANTICS_H, GEN_SUPPORT_H, HW_CPU_H, HW_H, HW_PHB_H)
  744. (ICACHE_H, IDECODE_BRANCH_H, IDECODE_EXPRESSION_H)
  745. (IDECODE_FIELDS_H, IGEN_H, INLINE_H, INTERRUPTS_H, ITABLE_H)
  746. (LD_CACHE_H, LD_DECODE_H, LD_INSN_H, LF_H, MISC_H, MODEL_H, MON_H)
  747. (OPTIONS_H, OS_EMUL_H, PK_H, PPC_CONFIG_H, SEMANTICS_H)
  748. (SIM_CALLBACKS_H, SIM_ENDIAN_H, SIM_ENDIAN_N_H, SIM_MAIN_H)
  749. (SPREG_H, STD_CONFIG_H, SUPPORT_H, TABLE_H, TARG_VALS_H, TCONFIG_H)
  750. (TREE_H, VM_H, VM_N_H, WORDS_H): New variables.
  751. (callback.o, cap.o, corefile.o, debug.o, device.o, device_table.o)
  752. (dgen.o, emul_bugapi.o, emul_chirp.o, emul_netbsd.o, emul_unix.o)
  753. (events.o, filter.o, filter_filename.o, filter_host.o)
  754. (gen-icache.o, gen-idecode.o, gen-itable.o, gen-model.o)
  755. (gen-semantics.o, gen-support.o, hw_core.o, hw_cpu.o, hw_disk.o)
  756. (hw_htab.o, hw_init.o, hw_phb.o, hw_register.o, icache.o)
  757. (idecode.o, igen.o, interrupts.o, itable.o, ld-cache.o)
  758. (ld-decode.o, ld-insn.o, lf.o, main.o, misc.o, model.o, mon.o)
  759. (options.o, os_emul.o, pk_disklabel.o, psim.o, registers.o)
  760. (semantics.o, sim-endian.o, sim-fpu.o, sim_calls.o, spreg.o)
  761. (support.o, table.o, targ-map.o, tree.o, vm.o): Update dependencies.
  762. 2004-06-28 Jim Blandy <jimb@redhat.com>
  763. * e500_registers.h (EVR): Cast the 32-bit value of the GPR to an
  764. unsigned type before or-ing it with a 64-bit value.
  765. 2004-06-15 Alan Modra <amodra@bigpond.net.au>
  766. * hw_htab.c (htab_sum_binary(bfd): Use bfd_get_section_size
  767. instead of bfd_get_section_size_before_reloc.
  768. (htab_dma_binary(bfd): Likewise.
  769. * hw_init.c (update_for_binary_section(bfd): Likewise.
  770. 2004-05-10 Daniel Jacobowitz <dan@debian.org>
  771. * configure.in (sim_fpu_cflags): Add -I../common.
  772. * configure: Regenerated.
  773. 2004-01-27 Andrew Cagney <cagney@redhat.com>
  774. * ppc-instructions: Update copyright.
  775. (convert_to_integer): Add trailing ";" to label.
  776. 2003-10-16 Michael Snyder <msnyder@redhat.com>
  777. * emul_netbsd.c: Only a comment may follow an #endif.
  778. 2003-10-15 Michael Snyder <msnyder@redhat.com>
  779. * Makefile.in (sim_calls.o): No longer depends on gdb/tm.h.
  780. 2003-06-22 Andrew Cagney <cagney@redhat.com>
  781. Written by matthew green <mrg@redhat.com>, with fixes from Aldy
  782. Hernandez <aldyh@redhat.com>, Jim Wilson <wilson@redhat.com>, and
  783. Nick Clifton <nickc@redhat.com>.
  784. * ppc-instructions: Include altivec.igen and e500.igen.
  785. (model_busy, model_data): Add vr_busy and vscr_busy.
  786. (model_trace_release): Trace vr_busy and vscr_busy.
  787. (model_new_cycle): Update vr_busy and vscr_busy.
  788. (model_make_busy): Update vr_busy and vscr_busy.
  789. * registers.c (register_description): Add Altivec and e500
  790. registers.
  791. * psim.c (psim_read_register, psim_read_register): Handle Altivec
  792. and e500 registers.
  793. * ppc-spr-table (SPEFSCR): Add VRSAVE and SPEFSCR registers.
  794. * configure.in (sim_filter): When *altivec* add "av". When *spe*
  795. or *simd* add e500.
  796. (sim_float): When *altivec* define WITH_ALTIVEC. When *spe* add
  797. WITH_E500.
  798. * configure: Re-generate.
  799. * e500.igen, altivec.igen: New files.
  800. * e500_expression.h, altivec_expression.h: New files.
  801. * idecode_expression.h: Update copyright. Include
  802. "e500_expression.h" and "altivec_expression.h".
  803. * e500_registers.h, altivec_registers.h: New files.
  804. * registers.h: Update copyright. Include "e500_registers.h" and
  805. "altivec_registers.h".
  806. (registers): Add Altivec and e500 specific registers.
  807. * Makefile.in (IDECODE_H): Add "idecode_e500.h" and
  808. "idecode_altivec.h".
  809. (REGISTERS_H): Add "e500_registers.h" and "altivec_registers.h".
  810. (tmp-igen): Add dependencies on altivec.igen and e500.igen .
  811. 2003-06-22 Andrew Cagney <cagney@redhat.com>
  812. Problems reported by Joshua LeVasseur.
  813. * emul_chirp.c: Update copyright.
  814. (chirp_emul_nextprop): Return the first property.
  815. * hw_htab.c: Update copyright.
  816. (htab_decode_hash_table): Fix check for htab size.
  817. 2003-06-21 Andrew Cagney <cagney@redhat.com>
  818. * interrupts.c: Update copyright.
  819. (external_interrupt): Fix test for already pending interrupt.
  820. Problem found by Joshua LeVasseur.
  821. * ppc-instructions: Add missing +8 line. Found by blofeldus at
  822. yahoo.com.
  823. 2003-06-21 Andrew Cagney <cagney@redhat.com>
  824. From Ian Lance Taylor <ian@airs.com>: * hw_nvram.c
  825. (hw_nvram_init_address): Correct call to memset--swap second and
  826. third arguments.
  827. 2003-06-21 Andrew Cagney <cagney@redhat.com>
  828. * hw_com.c (hw_com_device_init_data): Check that the output, and
  829. not input file opened. Pointed out by masahino tky3.3web.ne.jp.
  830. 2003-06-20 Andrew Cagney <cagney@redhat.com>
  831. * sim_calls.c (sim_create_inferior): Assert that
  832. psim_write_register succeeded.
  833. (sim_fetch_register, sim_store_register): Make "regname" constant.
  834. Delete Altivec hack. Return result from psim_read_register /
  835. psim_write_register.
  836. * psim.h (psim_read_register, psim_write_register): Change return
  837. type to int. Update comments.
  838. * psim.c: Update copyright.
  839. (psim_stack): Assert that the psim_read_register worked.
  840. (psim_read_register, psim_read_register): Return the register's
  841. size. Allocate the cooked buffer dynamically.
  842. * hw_register.c: Update copyright.
  843. (do_register_init): Check that psim_write_register succeeded.
  844. * hw_init.c: Update copyright.
  845. (create_ppc_elf_stack_frame, create_ppc_aix_stack_frame): Assert
  846. that the register transfer worked.
  847. 2003-06-19 Andrew Cagney <cagney@redhat.com>
  848. * ld-insn.h: Update copyright.
  849. (cache_fields): Define.
  850. (insn_table_fields): Add insn_field_6 and insn_field_7.
  851. (load_insn_table): Pass in the "cache_rules".
  852. * ld-insn.c: Update copyright.
  853. (load_insn_table): Add parameter "cache_rules". Handle "cache",
  854. "computed" and "scratch" fields.
  855. (main): Pass "cache_rules" to load_insn_table.
  856. * ld-cache.h: Update copyright.
  857. (append_cache_table): Declare.
  858. * ld-cache.c: Update copyright.
  859. (append_cache_table): New function.
  860. (load_cache_table): Call.
  861. * gen-model.c: Include "ld-cache.h".
  862. * gen-itable.c: Include "ld-cache.h".
  863. * igen.c: Move #include "ld-cache.h" to earlier. Update
  864. copyright.
  865. (main): Permit a NULL "cache_rules". Pass address of
  866. "cache_rules" to load_insn_table.
  867. * Makefile.in (tmp-ld-insn): Add "ld-cache.o".
  868. (tmp-igen): Do not include ppc-cache-rules.
  869. (gen-itable.o, gen-model.o): Add "ld-cache.h".
  870. * ppc-cache-rules: Delete file.
  871. * ppc-instructions: Add cache rules.
  872. 2003-06-19 Andrew Cagney <cagney@redhat.com>
  873. * Makefile.in (ICACHE_CFLAGS, SEMANTICS_CFLAGS): Delete.
  874. (SIM_FPU_FLAGS): Define.
  875. (icache.o): Delete explicit compile command.
  876. (semantics.o, idecode.o): Delete explicit compile command.
  877. (NOWARN_CFLAGS, STD_CFLAGS): Append SIM_FPU_CFLAGS.
  878. * gen-support.c (gen_support_c): Generate #include of
  879. "sim-inline.h" and "sim-fpu.h", but conditional on
  880. HAVE_COMMON_FPU.
  881. * gen-idecode.c (gen_idecode_c): Ditto.
  882. * igen.c (gen_icache_c, gen_semantics_c): Wrap #include of
  883. "sim-inline.h" and "sim-fpu.h" in HAVE_COMMON_FPU conditional.
  884. Move to before "support.h".
  885. * Makefile.in, gen-support.c, gen-idecode.c, igen.c: Update
  886. copyright.
  887. 2003-05-16 Ian Lance Taylor <ian@airs.com>
  888. * Makefile.in (various): Use $(SHELL) whenever we invoke
  889. move-if-change.
  890. 2003-02-27 Andrew Cagney <cagney@redhat.com>
  891. * sim_calls.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
  892. 2002-09-27 Andrew Cagney <ac131313@redhat.com>
  893. * hw_disk.c (hw_disk_init_address): Set device type to "block",
  894. not "disk".
  895. 2002-06-22 Andrew Cagney <ac131313@redhat.com>
  896. * Makefile.in (INTL_SRC): Define.
  897. (INTL_CFLAGS): Define.
  898. (INTL_DIR): Define.
  899. (STD_CFLAGS): Add INTL_CFLAGS.
  900. 2002-06-17 Elena Zannoni <ezannoni@redhat.com>
  901. * psim.c (psim_options): Don't choke when gdb invokes us with
  902. the --architecture option, just ignore it.
  903. 2002-06-16 Andrew Cagney <ac131313@redhat.com>
  904. * configure: Regenerated to track ../common/aclocal.m4 changes.
  905. 2002-06-08 Andrew Cagney <cagney@redhat.com>
  906. * main.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
  907. * sim_calls.c: Ditto.
  908. 2002-05-30 DJ Delorie <dj@redhat.com>
  909. * lf.c (lf_print__gnu_copyleft): Convert multiline strings to
  910. compatible format.
  911. * gen-idecode.c (print_run_until_stop_body): Likewise.
  912. * gen-model.c (gen_model_c): Likewise.
  913. 2002-04-15 Elena Zannoni <ezannoni@redhat.com>
  914. * sim_calls.c (sim_fetch_register, sim_store_register): Return -1 for
  915. AltiVec registers as a temporary stopgap.
  916. 2002-03-24 David O'Brien <obrien@FreeBSD.org>
  917. * ppc/hw_disk.c: Export a disk device property.
  918. 2002-03-23 Andrew Cagney <ac131313@redhat.com>
  919. From 2001-12-09 Julien Ducourthial <jducourt@noos.fr>:
  920. * ppc-instructions (lswx): Do the register control with the
  921. register count. Initialize the right register in the loop.
  922. (mtfsfi) : Correct prefix for the instruction.
  923. 2002-02-24 Andrew Cagney <ac131313@redhat.com>
  924. From wiz at danbala:
  925. * std-config.h: Fix grammar and typos. Update copyright.
  926. Fix PR gdb/287.
  927. 2002-01-12 matthew green <mrg@redhat.com>
  928. * Makefile.in (tmp-igen): Pass -I $(srcdir) to igen.
  929. * igen.c (main): Change -I to add include paths for :include:
  930. files.
  931. Implement -G as per sim/igen, with just gen-icache=N support.
  932. Call load_insn_table() with the built include path.
  933. * ld-insn.c (parse_include_entry): New. Load an :include: file.
  934. (load_insn_table): New `includes' argument. Look for :include:
  935. entries and call parse_include_entry() for them.
  936. (main): Adjust load_insn_table() call.
  937. * ld-insn.h (model_include_fields): New enum.
  938. (load_insn_table): Update prototype.
  939. * table.c (struct _open_table, struct _table): Rework
  940. structures to handle included files.
  941. (table_push): Move the guts of table_open() here.
  942. * table.c (struct _open table, struct table): Make table object an
  943. indirect ptr to the current table file.
  944. (current_line, new_table_entry, next_line): Make file arg type
  945. open_table.
  946. (table_open): Use table_push.
  947. (table_entry_read): Point variable file at current table, at eof, pop
  948. last open table.
  949. * misc.h (NZALLOC): New macro. From sim/igen.
  950. * table.h, table.c (table_push): New function.
  951. 2002-01-04 matthew green <mrg@redhat.com>
  952. * bits.c (LSMASKED64): New inline function.
  953. (LSEXTRACTED64): Likewise.
  954. * bits.h (_LSB_POS, _LSMASKn, LSMASK64): New macros from
  955. sim/common/sim-bits.h
  956. (LSMASKED64, LSEXTRACTED64): New functions definitions.
  957. * Makefile.in (sim-bits.o): Remove target.
  958. * main.c (zalloc): Fix typo in error message.
  959. 2001-12-16 Andrew Cagney <ac131313@redhat.com>
  960. * configure.in (sim_fpu): Don't add sim-bits.o.
  961. * configure: Re-generate.
  962. 2001-12-15 matthew green <mrg@redhat.com>
  963. * main.c: Include "defs.h", "bfd.h", "callback.h" and "remote-sim.h".
  964. (sim_io_error): New function.
  965. * sim_calls.c: (sim_io_error): New function.
  966. 2001-12-14 matthew green <mrg@redhat.com>
  967. * Makefile.in (LIB_OBJ): Add @sim_fpu@.
  968. (ICACHE_CFLAGS, SEMANTICS_CFLAGS): New variables.
  969. (icache.o, semantics.o): Add new ICACHE_FLAGS & SEMANTICS_FLAGS.
  970. (sim-fpu.o, sim-bits.o, tconfig.h): New targets.
  971. * configure.in: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS. Add a
  972. check for sim/common/sim-fpu.c. Output sim_fpu and sim_fpu_cflags.
  973. * configure: Regenerate.
  974. * device.h (device_find_integer_array_property): Match function definition.
  975. * gen-icache.c (print_icache_internal_function_declaration): Rename
  976. INLINE_ICACHE to PSIM_INLINE_ICACHE.
  977. * gen-idecode.c (print_idecode_run_function_header): Rename INLINE_IDECODE
  978. to PSIM_INLINE_IDECODE.
  979. * gen-semantics.c (print_semantic_function_header): Rename
  980. EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS.
  981. * gen-support.c (print_support_function_name): Rename INLINE_SUPPORT to
  982. PSIM_INLINE_SUPPORT.
  983. * igen.c (print_function_name): Also escape `(' and `)'.
  984. (gen_semantics_h): Rename EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS.
  985. (gen_semantics_c): Likewise. Also output includes for "sim-fpu.h"
  986. * inline.h (INLINE_SIM_ENDIAN): Renamed INLINE_PSIM_ENDIAN.
  987. (EXTERN_SIM_ENDIAN): Renamed EXTERN_PSIM_ENDIAN.
  988. (STATIC_INLINE_SIM_ENDIAN): Renamed STATIC_INLINE_PSIM_ENDIAN.
  989. (INLINE_LOCALS): Renamed PSIM_INLINE_LOCALS.
  990. (EXTERN_SUPPORT): Renamed PSIM_EXTERN_SUPPORT.
  991. (INLINE_SUPPORT): Renamed PSIM_INLINE_SUPPORT.
  992. (EXTERN_SEMANTICS): Renamed PSIM_EXTERN_SEMANTICS.
  993. (INLINE_SEMANTICS): Renamed PSIM_INLINE_SEMANTICS.
  994. (EXTERN_IDECODE): Renamed PSIM_EXTERN_IDECODE.
  995. (INLINE_IDECODE): Renamed PSIM_INLINE_IDECODE.
  996. (EXTERN_ICACHE): Renamed PSIM_EXTERN_ICACHE.
  997. (INLINE_ICACHE): Renamed PSIM_INLINE_ICACHE.
  998. * options.c (options_inline): Fix names.
  999. * sim-endian-n.h: Change INLINE_SIM_ENDIAN to INLINE_PSIM_ENDIAN.
  1000. * sim-endian.h: Likewise.
  1001. * sim-main.h: New file.
  1002. * std-config.h: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS.
  1003. 2001-12-01 Andrew Cagney <ac131313@redhat.com>
  1004. From Mark Peek.
  1005. * ppc-spr-table: Add SDA and PIR.
  1006. 2001-10-29 Andrew Cagney <ac131313@redhat.com>
  1007. * tree.c (parse_size): Assert #size-cells > 0.
  1008. (parse_address): Ditto for #address-cells.
  1009. (parse_reg_property): Only parse the size when #size-cells is
  1010. non-zero.
  1011. 2001-10-25 Andrew Cagney <ac131313@redhat.com>
  1012. * emul_generic.c (OEA_MEMORY_SIZE): Increase to 4mb.
  1013. * hw_htab.c (htab_map_binary): Don't try to map the text section
  1014. when it is empty.
  1015. * emul_chirp.c (map_over_chirp_note): Default load-base to -1 not
  1016. CHIRP_LOAD_BASE.
  1017. (emul_chirp_create): Map in the interrupt table.
  1018. 2001-07-16 Daniel Jacobowitz <drow@mvista.com>
  1019. * Makefile.in: Add dependencies on $(CPU_H).
  1020. Wed Mar 7 10:45:12 HST 2001 Glen Nakamura <gen@lava.net>
  1021. * hw_init.c (dma_file): Fixed problem with loading last 1KB of
  1022. file.
  1023. 2001-03-04 Andrew Cagney <ac131313@redhat.com>
  1024. * emul_netbsd.c [WITH_NetBSD_HOST]: Include <sys/mount.h> and
  1025. <errno.h>.
  1026. (do_stat): Only do SYS test when SYS_stat defined.
  1027. (do_sigprocmask): Ditto for SYS_sigprocmask.
  1028. (do_fstat): Ditto for SYS_fstat.
  1029. (do_getdirentries): Ditto for SYS_getdirentries.
  1030. (do_lstat): Ditto for SYS_lstat.
  1031. 2001-01-15 Geoffrey Keating <geoffk@redhat.com>
  1032. * emul_netbsd.c (do_open): Translate the flag parameter to the
  1033. open syscall to the numbers supported by the host.
  1034. 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
  1035. * sim-endian.h: Don't have parameters on macro definitions which
  1036. are simply renaming functions, to permit use of XCONCAT2 in both
  1037. the macro name and the arguments in a use of such a definition.
  1038. 2000-11-15 Jim Blandy <jimb@redhat.com>
  1039. * sim_calls.c: Doc fix.
  1040. (sim_fetch_register, sim_store_register): Call
  1041. gdbarch_register_name directly, instead of going through
  1042. REGISTER_NAME macro.
  1043. 2000-10-24 Geoff Keating <geoffk@cygnus.com>
  1044. * ppc-instructions (lfsux): Correct XO field of lfsux instruction.
  1045. Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
  1046. * configure: Regenerated to track ../common/aclocal.m4 changes.
  1047. Fri Apr 28 15:59:27 2000 Andrew Cagney <cagney@b1.cygnus.com>
  1048. * events.c (event_queue_process): Call update_time_from_event
  1049. every time an event is removed from the queue.
  1050. (update_time_from_event): Delete assertion that a negative
  1051. time_from_event implies an empty event queue.
  1052. Fri Apr 28 15:53:54 2000 Andrew Cagney <cagney@b1.cygnus.com>
  1053. * interrupts.c (deliver_hardware_interrupt): Print time trace in
  1054. decimal.
  1055. * events.c (event_queue_process): Cleanup trace message.
  1056. (update_time_from_event): Trace full event queue.
  1057. 2000-03-25 Geoff Keating <geoffk@cygnus.com>
  1058. * ppc-instructions (Disabled_Exponent_Underflow): Increment
  1059. the exponent when denormalizing.
  1060. Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1061. * configure: Regenerated to track ../common/aclocal.m4 changes.
  1062. 1999-05-08 Felix Lee <flee@cygnus.com>
  1063. * configure.in: Use AC_EXEEXT instead of AM_EXEEXT.
  1064. * configure: Regenerated to track ../common/aclocal.m4 changes.
  1065. 1999-04-02 Keith Seitz <keiths@cygnus.com>
  1066. * sim_calls.c (POLL_QUIT_INTERVAL): Define. Used to tweak
  1067. the frequency at which the poll_quit callback is called.
  1068. (poll_quit_count): New global.
  1069. (sim_io_poll_quit): Only call the poll_quit callback
  1070. after the specified POLL_QUIT_INTERVAL.
  1071. 1999-02-22 Jim Lemke <jlemke@cygnus.com>
  1072. * dc-complex: Force expansion on all bits of field BO.
  1073. Previously, the least-significant (prediction) bit was ignored.
  1074. * ppc-instructions (conditional branches): Implement mpc860c0 option.
  1075. * igen.c (gen_semantics_[ch]): Setup for mpc860c0 option.
  1076. * psim.c (is_num, psim_options): Added parsing for mpc860c0 option.
  1077. * interrupts.h: Added "mpc860c0_instruction_program_interrupt".
  1078. * interrupts.c (program_interrupt): Added handling for above interrupt.
  1079. 1999-02-01 Jim Blandy <jimb@zwingli.cygnus.com>
  1080. Make the simulator compatible with the MPC750. It would be nicer
  1081. to make this a real multi-sim, but that's more work than we have
  1082. time for.
  1083. * emul_generic.c (emul_add_tree_options): Only require strict
  1084. alignment if it was explicitly requested at configuration time.
  1085. Don't make it the default for little-endian machines.
  1086. * ppc-spr-table (UMMCR0, UMMCR1, UPMC1, UPMC2, USIA, UPMC3, UPMC4,
  1087. MMCR0, PMC1, PMC2, SIA, MMCR1, PMC3, PMC4, L2CR, ICTC, THRM1,
  1088. THRM2, THRM3): Plop in the MPC750 SPR registers.
  1089. (DABR): This is weird. This was HID5, but the PPC spec says this
  1090. should be DABR; why did some random processor use it for something
  1091. else? The HID5 entry dates back to the original checkin of the
  1092. simulator code in 1995, so remove it.
  1093. * sim_calls.c (register_names): Delete this; since the user can
  1094. now change GDB's list of register names dynamically, we can't
  1095. pretend there's a static mapping here.
  1096. (sim_fetch_register, sim_store_register): Call GDB's REGISTER_NAME
  1097. function to get the register name. That ought to be accurate.
  1098. However, we're changing a compile-time dependency (using the
  1099. REGISTER_NAMES macro) into a link- and run-time dependency
  1100. (calling REGISTER_NAME, which happens to be a function call on the
  1101. PPC).
  1102. 1999-01-22 Jim Lemke <jlemke@cygnus.com>
  1103. * igen.c(gen_semantics_[ch]): setup/use of new option
  1104. (-o mpc860c0[=n]).
  1105. interrupts.[ch](mpc860c0_instruction_program_interrupt): added.
  1106. ppc-instructions(the four branch insn groups): detect problematic br's.
  1107. psim.c(is_num - added, psim_options): Parse and init new option.
  1108. These changes are currently under #ifdef WITH_OPTION_MPC860C0.
  1109. 1998-12-01 Ken Raeburn <raeburn@cygnus.com>
  1110. * hw_nvram.c (hw_nvram_bcd): Force value to fit in 0..99.
  1111. Fri Nov 20 12:17:28 1998 Andrew Cagney <cagney@b1.cygnus.com>
  1112. * main.c (sim_io_poll_quit): Stub function.
  1113. * events.c (SIM_EVENTS_POLL_RATE): Define.
  1114. (sim_events_poll): Copy function from common/sim-events.c.
  1115. (event_queue_init): Copy scheduling of sim_events_poll from same.
  1116. * sim_callbacks.h, sim_calls.c (sim_io_poll_quit): New function,
  1117. poll the external environment.
  1118. 1998-11-19 Michael Meissner <meissner@cygnus.com>
  1119. * ppc-instructions (is_{NaN,inf}): Use unsigned64 to get the
  1120. fractional type, so that quiet NaN's aren't treated like
  1121. Infinities.
  1122. Mon Sep 28 09:42:45 1998 Drew Moseley <dmoseley@cygnus.com>
  1123. * table.c (table_open): For cygwin hosts, we need to use the
  1124. return value from the read routine as the number of bytes to
  1125. process. This apparently is due to text-mode vs binary-mode. If
  1126. the mounts are done text-mode, then the size returnedby fstat()
  1127. may be different than the number of bytes "read" in text mode.
  1128. Sun Oct 4 00:50:47 1998 Felix Lee <flee@cygnus.com>
  1129. * emul_netbsd.c (do_open): fix order-of-evaluation problem.
  1130. (do_close): ditto.
  1131. (do_fstat): ditto.
  1132. (do_lstat): ditto.
  1133. 1998-09-03 Michael Meissner <meissner@cygnus.com>
  1134. * emul_{netbsd,unix}.c: Update copyright year.
  1135. Mon Jun 29 10:57:36 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
  1136. * sim_calls.c (sim_fetch_register, sim_store_register):
  1137. return zero when nothing to do.
  1138. 1998-06-26 Michael Meissner <meissner@cygnus.com>
  1139. * configure.in (AC_CHECK_HEADERS): Don't check for sys/mount.h.
  1140. * configure: Regenerate.
  1141. * emul_{netbsd,unix}.c (toplevel): No longer try to include
  1142. sys/mount.h. It conflicts on Linux when gnu libc2 is used.
  1143. Tue May 12 12:10:33 PDT 1998 James Ingham <jingham@leda.cygnus.com>
  1144. * Makefile.in: The run target depended on a target psim$(EXEEXT),
  1145. but there was no such target, only plain psim. So I changed the
  1146. run target to depend on psim.
  1147. Sat May 2 01:10:12 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
  1148. * aclocal.m4: Remove defs of AM_EXEEXT and AM_CYGWIN32. These are
  1149. now defined in ../common/aclocal.m4, and the double definition causes
  1150. problems with AC_SUBST of EXEEXT.
  1151. * configure: Regenerate.
  1152. Wed Apr 29 15:44:52 1998 Geoffrey Noer <noer@cygnus.com>
  1153. * aclocal.m4: new file for AM_EXEEXT macro
  1154. * configure.in: call AM_EXEEXT
  1155. * configure: regenerate with autoconf 2.12.1.
  1156. * Makefile.in: add EXEEXT support
  1157. Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
  1158. * configure: Regenerated to track ../common/aclocal.m4 changes.
  1159. * config.in: Ditto.
  1160. Sun Apr 26 15:19:51 1998 Tom Tromey <tromey@cygnus.com>
  1161. * acconfig.h: New file.
  1162. * configure.in: Reverted change of Apr 24; use sinclude again.
  1163. Don't call AC_C_CROSS.
  1164. Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
  1165. * configure: Regenerated to track ../common/aclocal.m4 changes.
  1166. * config.in: Ditto.
  1167. Fri Apr 24 11:18:46 1998 Tom Tromey <tromey@cygnus.com>
  1168. * Makefile.in (top_builddir): New macro.
  1169. (INTLLIBS): New macro.
  1170. (INTLDEPS): Likewise.
  1171. (psim): Depend on INTLDEPS; link against INTLLIBS.
  1172. * configure.in: Call CY_GNU_GETTEXT.
  1173. Wed Apr 22 14:28:48 1998 Michael Meissner <meissner@cygnus.com>
  1174. * configure: Regenerate with autoconf 2.12.1.
  1175. Fri Mar 13 09:25:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
  1176. * psim.c (psim_read_register, psim_write_register): Handle updates
  1177. for FPSCR.
  1178. * registers.c (register_description): Reconize "FPSCR".
  1179. * emul_netbsd.c (emul_netbsd_create): When FP available, enable
  1180. MSR FP exception mode. Do not enable FPSCR bits.
  1181. * emul_unix.c (emul_unix_create): Ditto.
  1182. Tue Feb 17 12:48:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
  1183. * sim_calls.c (sim_store_register, sim_fetch_register): Pass in
  1184. length parameter. Return -1.
  1185. Mon Feb 9 14:13:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
  1186. * ppc-instructions (fdiv, fdivs): Check for divide by zero.
  1187. (is_invalid_zero_divide, invalid_zero_divide_operation): New
  1188. functions.
  1189. Wed Dec 10 17:38:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
  1190. * sim_calls.c (sim_load): Do not parse PROG using buildargv, use
  1191. raw value instead.
  1192. 1997-11-05 Felix Lee <flee@cygnus.com>
  1193. * emul_chirp.c: #ifdef HAVE_UNISTD_H
  1194. Wed Oct 15 08:50:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
  1195. * corefile.c (core_attach): Pad out allocated memory regions so
  1196. that they are always correctly aligned.
  1197. (struct _core_mapping, core_map_attach, core_init,
  1198. new_core_mapping): Change free_buffer to type void*.
  1199. Mon Oct 6 18:09:26 1997 Michael Meissner <meissner@cygnus.com>
  1200. * sim_calls.c (zfree): Call free correctly.
  1201. Mon Sep 29 10:05:01 1997 Andrew Cagney <cagney@b1.cygnus.com>
  1202. * sim_calls.c (zfree): Use free, not mfree.
  1203. (sim_io_flush_stdoutput): Replace gdb_flush with callback ->
  1204. flush_stdout.
  1205. Fri Sep 26 09:50:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
  1206. * ppc-instructions (sraw, slw, srw): From Charles Lefurgy, Fix
  1207. mask extracting shift amount. Correctly condition for setting XER
  1208. in sraw.
  1209. (ldhau): From Johannes Reisinger, update rA after load.
  1210. Tue Sep 9 22:13:23 1997 Felix Lee <flee@cygnus.com>
  1211. * basics.h (CONCAT*): token-pasting macros, if ALMOST_STDC,
  1212. for MSVC.
  1213. * words.h: __int64 instead of long long for MSVC.
  1214. Wed Aug 27 10:24:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
  1215. * sim_calls.c (sim_create_inferior): Check the simulator was
  1216. initialized before creating inferior.
  1217. * idecode_expression.h (ALU_END): From Charles Lefurgy - Extract
  1218. sign bit using 64 bit and not a 32 bit mask.
  1219. Wed Aug 27 10:15:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
  1220. * sim_calls.c (sim_load): From Ian Lance Taylor - free argv after
  1221. it has been used, not before.
  1222. Tue Aug 26 10:41:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
  1223. * sim_calls.c (sim_kill): Delete.
  1224. (sim_create_inferior): Add ABFD argument.
  1225. (entry_point): Delete variable.
  1226. (sim_load): Move setting of PC from here.
  1227. (sim_create_inferior): To here.
  1228. Mon Aug 25 16:17:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
  1229. * sim_calls.c (sim_open): Add ABFD argument.
  1230. Thu Jul 3 10:18:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
  1231. * ppc-instructions (PPC_INSN_INT): From Michael Thies - Monitoring
  1232. CR register updates dependant on RC value had logic backwards.
  1233. * ppc-instructions (Load String Word Immediate): From Brad Parker
  1234. - sense of wrap test in check for overwriting RA wrong.
  1235. (Load String Word Indexed): Ditto.
  1236. * configure.in: From Erik Landry - set sim_default_model not
  1237. sim_model for sim-default-model option.
  1238. * configure: Regenerate.
  1239. * interrupts.c (check_masked_interrupts): Schedule a hardware
  1240. interrupt delivery when FP interrupts get enabled.
  1241. (program_interrupt): Generate FP exceptions instead of aborting.
  1242. (deliver_hardware_interrupt): Deliver a FP exception if so
  1243. enabled.
  1244. * registers.h: Add definition of fpscr_vx_bits.
  1245. * idecode_expression.h (FPSCR_END): Always update FEX and VX bits
  1246. in FPSCR.
  1247. (FPSCR_END): Explicitly check for possible floating point
  1248. exception conditions.
  1249. (FPSCR_BEGIN): Simplify.
  1250. * ppc-instructions (Move From FPSCR): Enable.
  1251. (Move To FPSCR Bit 1): Ditto.
  1252. (Move To FPSCR Bit 0): Ditto.
  1253. (Move To FPSCR Field Immediate): Ditto.
  1254. (Move to Condition Register from FPSCR): Simplify.
  1255. (invalid_arithemetic_operation): Generate a QNaN when invalid
  1256. operation exception disabled.
  1257. Tue May 20 10:22:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
  1258. * sim_calls.c (sim_open): Add callback argument.
  1259. (sim_set_callbacks): Delete.
  1260. Tue Apr 22 22:36:57 1997 Mike Meissner <meissner@cygnus.com>
  1261. * sim_callbacks.h (error): Make declaration match gdb's.
  1262. * main.c (error): Ditto.
  1263. Fri Apr 18 17:03:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
  1264. * sim_calls.c (sim_stop_reason): Simplify. Was running implies
  1265. stopped/SIGINT. Exit implies a status code.
  1266. * psim.c (cntrl_c_simulation): From main.c. Event function that
  1267. halts the simulator.
  1268. (psim_stop): New. Asynchronously schedule a stop simulator event.
  1269. (psim_run_until_stop): Delete. Made redundant by psim_stop.
  1270. * main.c (cntrl_c): Update.
  1271. (cntrl_c_simulation): Moved to psim.c.
  1272. * sim_calls.c (sim_stop): New function. Use psim_stop which
  1273. schedules a stop event.
  1274. (sim_resume): Drop SIGINT handler, now in gdb/main.c.
  1275. (sim_resume): Use psim_run as stop variable no longer needed.
  1276. Fri Apr 18 17:03:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
  1277. * psim.c (psim_options): Handle -E option correctly.
  1278. (psim_usage): Document.
  1279. Thu Apr 17 03:28:03 1997 Doug Evans <dje@canuck.cygnus.com>
  1280. * psim.c (psim_options): Ignore -E option (sets endianness).
  1281. * sim_calls.c: #include bfd.h.
  1282. (entry_point): New static local.
  1283. (sim_load): Return SIM_RC. New arg abfd. Set start address from bfd.
  1284. (sim_create_inferior): Return SIM_RC. Delete arg start_address.
  1285. Tue Apr 15 14:57:18 1997 Ian Lance Taylor <ian@cygnus.com>
  1286. * Makefile.in (INSTALL): Set to @INSTALL@.
  1287. (INSTALL_XFORM, INSTALL_XFORM1): Remove.
  1288. (install): Depend upon installdirs. Use $(program_transform_name)
  1289. directly, rather than using $(INSTALL_XFORM).
  1290. (installdirs): New target.
  1291. Fri Apr 4 17:54:36 1997 Jim Wilson <wilson@cygnus.com>
  1292. * Makefile.in (tmp-hw, tmp-pk): Use for loop to eliminate duplicates
  1293. rather than the non-portable cat -n.
  1294. Mon Apr 14 16:29:51 1997 Ian Lance Taylor <ian@cygnus.com>
  1295. * Makefile.in (INSTALL): Change install.sh to install-sh.
  1296. Tue Apr 1 18:15:14 1997 Jim Wilson <wilson@cygnus.com>
  1297. * ppc-instructions: Change milhwu to mulhwu.
  1298. Wed Apr 2 15:38:08 1997 Doug Evans <dje@canuck.cygnus.com>
  1299. * sim_calls.c (sim_open): New arg `kind'.
  1300. Wed Apr 2 14:51:17 1997 Ian Lance Taylor <ian@cygnus.com>
  1301. * COPYING: Update FSF address.
  1302. Tue Mar 25 16:17:59 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
  1303. * main.c (sim_io_read_stdin): Only compile unbuffered IO code if
  1304. all the required features are supported by the host OS.
  1305. Tue Mar 25 12:13:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
  1306. * emul_bugapi.c (emul_bugapi_create): Guard against NULL images.
  1307. * configure.in (enable-sim-endain): Correct typo in usage (from
  1308. Erik Landry <landry@ENGR.ORST.EDU>).
  1309. * configure: Re-generate.
  1310. Fri Mar 14 18:23:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
  1311. * Makefile.in (targ-vals.def): Re-do rule so that it works with
  1312. FreeBSD's make. Didn't like $<.
  1313. Thu Mar 13 12:55:48 1997 Doug Evans <dje@canuck.cygnus.com>
  1314. * sim_calls.c (sim_open): New SIM_DESC result. Argument is now
  1315. in argv form.
  1316. (other sim_*): New SIM_DESC argument.
  1317. Thu Feb 13 10:35:14 1997 Andrew Cagney <cagney@phydeaux.cygnus.com>
  1318. * ppc-opcode-simple-array, ppc-opcode-simple-goto,
  1319. ppc-opcode-simple-switch, ppc-opcode-complex-array,
  1320. ppc-opcode-complex-goto, ppc-opcode-complex-switch,
  1321. ppc-opcode-jump, ppc-opcode-goto, ppc-opcode-flat: Delete,
  1322. superseeded by --sim-decode-mechanism option.
  1323. * ppc-opcode-simple, dc-simple: Rename to be 8.3
  1324. * ppc-opcode-complex, dc-complex: Ditto.
  1325. * ppc-opcode-stupid, dc-stupid: Ditto.
  1326. * ppc-opcode-test-1, dc-test.01: Ditto.
  1327. * ppc-opcode-test-2, dc-test.02: Ditto.
  1328. * configure.in (--enable-sim-opcode): Change prefix to dc- instead
  1329. of ppc-opcode-.
  1330. Wed Feb 12 19:33:45 1997 Andrew Cagney <cagney@phydeaux.cygnus.com>
  1331. * Many of the ppc-opcode-* files are identical baring the type of
  1332. lookup table. Instead of having multiple tables, igen can do this
  1333. via an additional option.
  1334. * ld-decode.h, ld-decode.c (force_decode_gen_type): New function,
  1335. allow the type of generated table specified in the decode file to
  1336. be overridden.
  1337. * ld-decode.c (load_decode_table): Allow the table type to be
  1338. overridden.
  1339. * igen.c (main): Add -T <mechanism> option so that an overriding
  1340. instruction decode mechanism can be specified.
  1341. * configure.in: New option --sim-decode-mechanism to control
  1342. igen's new -T <mechanism> flag.
  1343. * Makefile.in (IGEN_FLAGS): Add IGEN_IDECODE_MECHANISM set by the
  1344. configure script.
  1345. * configure: Regenerate.
  1346. Tue Feb 11 13:49:10 1997 Michael Meissner <meissner@tiktok.cygnus.com>
  1347. * events.c (event_queue_create): Don't use NULL to initialize an
  1348. integer field.
  1349. (even_queue_{init,schedule_after_signal,tick}): Conditionalize use
  1350. of sigprocmask to appropriate autoconf test.
  1351. * main.c ({cntrl_c,main}): Use RETSIGTYPE for signal return type,
  1352. don't assume void.
  1353. * sim_calls.c (sim_{ctrl_c,resume}): Ditto.
  1354. * Makefile.in (callback.o): Define HAVE_CONFIG_H, so callback.c
  1355. includes our config.h.
  1356. Tue Feb 4 13:42:59 1997 Doug Evans <dje@canuck.cygnus.com>
  1357. * configure.in: Fix typo in test for callback.c.
  1358. * configure: Regenerated.
  1359. Fri Feb 7 10:04:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1360. * emul_chirp.c (emul_chirp_create): Handle a virtbase of -1 being
  1361. found in the device tree.
  1362. Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1363. * Property create/initialization still wasn't correctly ordered.
  1364. Should be delaying everything related to ihandle creation until
  1365. after the rest of the tree has been established.
  1366. * device.c (device_find_ihandle_runtime_property): Update.
  1367. (device_add_ihandle_runtime_property): Update.
  1368. * tree.c (parse_ihandle_property): Delay lookup of the device to
  1369. be opened until the ihandle initialization phase.
  1370. * tree.c (print_properties): Update.
  1371. Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1372. * gen-icache.c (print_icache_extraction): Add a reason parameter.
  1373. Augment each extracted field with a comment citing the codes
  1374. origin. Should simplify tracking down incorrect cache
  1375. extractions.
  1376. Tue Feb 4 17:44:51 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1377. * gen-icache.c: Generalize code handling XXX_is_NNN so that it
  1378. works for normal and boolean table entries.
  1379. * psim.c (psim_write_memory): last_cpu == -1 or nr_cpus is now
  1380. valid. Handle this just like *_{read,write}_register now handles
  1381. it.
  1382. Mon Feb 3 17:18:16 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1383. * events.c (insert_event_entry): Correct loop termination
  1384. assertions.
  1385. Fri Jan 31 16:20:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1386. * psim.c (psim_options): Add new option -c for max-iterations or
  1387. count.
  1388. (psim_usage): Document.
  1389. (psim_max_iterations_exceeded): New function, abort simulation if
  1390. max iterations exceeded.
  1391. * gen-idecode.c: Re-work the table lookup code so that it assumes
  1392. that the entry is a leaf by default. Simplify the boolean table
  1393. entry code so that it involves a mask + test instead of shift +
  1394. shift + mask + test.
  1395. * gen-idecode.c: Correct generated igen body so that it no drops
  1396. or doubles clock interrupts.
  1397. Thu Jan 30 11:23:20 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1398. * Makefile.in (BUILT_SRC_WO_CONFIG): Change targ-vals.* to
  1399. @sim_targ_vals@
  1400. * configure.in (sim_callback, sim_targ_vals): Set sim_targ_valls
  1401. if common callback is present.
  1402. Wed Jan 29 12:32:41 1997 Michael Meissner <meissner@tiktok.cygnus.com>
  1403. * configure.in (sim_callback): If the gdb is post 4.16, configure
  1404. callback support from the common directory.
  1405. * configure: Regenerate.
  1406. * Makefile.in (BUILT_SRC_WO_CONFIG): Add targ-vals.{h,def} and
  1407. targ-map.c.
  1408. (GDB_OBJ): Add callback support configured in.
  1409. (gentmap,targ-vals.def): Build from common directory.
  1410. (targ-vals.h,targ-map.c): Build by running gentmap.
  1411. (callback.o): Build from source in common directory.
  1412. (targ-map.o): Add dependency.
  1413. (clean): Remove gentmap.
  1414. Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1415. * igen wasn't aborting if the opcode table contained no valid
  1416. fields.
  1417. * misc.c (name2i): Possibly abort if an invalid name is
  1418. encountered.
  1419. * ld-decode.c: Abort if the table type isn't found.
  1420. Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1421. * When performance monitoring is disabled, it is still possible to
  1422. determine the simulation speed by looking at the number of elapsed
  1423. ticks recorded by the event queue.
  1424. * psim.c (psim_write_register, psim_read_register): Force the cpu
  1425. to zero when it is either of `-1' or `nr_cpus'. In both cases the
  1426. next cpu would be zero any way.
  1427. * mon.c (mon_print_info): If possible, print the system cycle
  1428. performance. This is an indication of the number of instructions
  1429. per second.
  1430. Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1431. * The code to allow an event queue to be updated during a signal
  1432. was missing. For main.c, a cntrl-c simulation termination wasn't
  1433. handled cleanly.
  1434. * The simulation would not correctly restart if an event requested
  1435. that the simulation be halted.
  1436. * psim.c (psim_options): Add hack to -i option to optionally
  1437. include a level vis -i2.
  1438. (psim_usage): Document.
  1439. * main.c (cntrl_c, cntrl_c_simulation): New functions. When a
  1440. cntrl-c occures schedule an event to halt the simulation.
  1441. (main): Catch CNTRL-C signals with the function cntrl_c.
  1442. * events.c (event_queue_process): Mask interrupts while
  1443. manipulating the async event queue.
  1444. (event_queue_init): Ditto.
  1445. (event_queue_schedule_after_signal): Ditto.
  1446. * events.c (event_queue_process): Mark the event queue as being in
  1447. the processing state when processing has started. Adjust code
  1448. so that it is tolerant of halts.
  1449. (event_queue_init): Start the event queue out with processing
  1450. false.
  1451. (event_queue_tick): Check that processing isn't still being
  1452. performed.
  1453. * gen-idecode.c (print_run_until_stop_body): Call
  1454. event_queue_process_events to clear possibly pending events before
  1455. starting a simulation run. Re-arange main loop so that simulator
  1456. is correctly restarted when an event halts the simulation.
  1457. * psim.c (psim_halt): Handle an event halting the simulation.
  1458. * psim.c (psim_init): Adjust initial cpu - == -1 - to match
  1459. reworked idecode.
  1460. Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1461. * ppc-opcode-complex: Correct typo - was expanding ORA instead of
  1462. RA. Based on instruction frequency stats, expand additional
  1463. instructions.
  1464. * ppc-instructions: Change all `RA == 0' to RA_is_0.
  1465. * ppc-opcode-stupid: Move all but the basic table in -complex into
  1466. here. Update to new format.
  1467. * Makefile.in (tmp-defines): New target. Force defines.h to always
  1468. be built. Hence get ppc-opcode-goto to build.
  1469. Tue Jan 28 13:00:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1470. * hw_com.c (hw_com_instance_read, hw_com_instance_write):
  1471. Implement.
  1472. Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1473. * hw_trace.c (hw_trace_init_data): Delete. The trace options need
  1474. to be initialized independant of the rest of the simulation
  1475. initalization. Otherwize a trace option explictly set from gdb
  1476. could be overridden by hw_trace.
  1477. * psim.c (psim_options): Clarify reason why the trace ioctl occures.
  1478. * FIXME: The trace code is too scattered - hw_trace.c, psim.c,
  1479. debug.c. It could be much simpler.
  1480. Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1481. * Some devices support removable media. Add hooks to the disk
  1482. device so that it supports this.
  1483. * device.c (device_add_string_array_property,
  1484. device_find_string_array_property): New functions, manipulate
  1485. properties containing an array of strings.
  1486. (device_find_string_property): Allow a string array.
  1487. (device_init_static_properties): Update.
  1488. (device_init_runtime_properties): Update.
  1489. * hw_disk.c (hw_disk_ioctl): Add ioctl for changing the disk
  1490. media. If no file image is specified, use the next one in the
  1491. image property list.
  1492. (hw_disk_init_address): Change the file property so that it is a
  1493. string array - use the first entry for the initial file image.
  1494. * tree.c (print_string_aray_property): New function - print a
  1495. string array.
  1496. (print_properties): Adjust.
  1497. (print_string): Write a string, handling double quotes.
  1498. * device.h: Define an ioctl to `change-media' with an optional new
  1499. media image.
  1500. * hw_disk.c: Allow floppy disk devices to be specified.
  1501. * psim.c (psim_command): New function, parse more complex psim
  1502. commands such as "change-media" and "trace".
  1503. * sim_calls.c (sim_do_command): Use.
  1504. Wed Jan 22 09:38:33 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1505. * For expressions like (RA == 0) that are entered in to the cache
  1506. as RA_is_0. If possible generate the result of the expression so
  1507. that the compiler gets a better chance of eliminating dead
  1508. branches.
  1509. * gen-icache.c (print_icache_extraction): For a cache entry of
  1510. the form <name>_is_<const> where it is a boolean field, generate
  1511. the result of the expression instead of the expression its self.
  1512. (print_icache_body): Remove code that was looking for *_is_0 and
  1513. then generating corresponding definitions.
  1514. * gen-icache.c (print_icache_struct): If there is no cache, do not
  1515. output expressions in idecode.h file.
  1516. * gen-icache.c (print_icache_body): Output them here.
  1517. * ppc-opcode-complex: Clarify constant values for SPR==LR register
  1518. expansion.
  1519. * ppc-cache-rules (RA_is_0, SPR_is_256): Two new cache entries.
  1520. Wed Jan 22 12:24:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1521. * The code that put values in and extracted values from the cache
  1522. was too compilicated. The cache table did not allow values to be
  1523. computed from cache entries. #defines could only be used when a
  1524. cache was present, remove the restriction.
  1525. * ld-cache.h, ld-cache.c: Add a new cache entry type - SCRATCH. A
  1526. scratch variable is defined when a cache entry is beinf
  1527. filled. Change the definition of a COMPUTE variable to be defined
  1528. when the cache entry is being used.
  1529. * gen-icache.c: Update.
  1530. * ld-cache.h, ld-cache.c: Change field names so that their meaning
  1531. is more obvious. old_name->field_name, new_name->derived_name.
  1532. * gen-icache.c: Update
  1533. * gen-icache.h, gen-icache.c (print_icache_body): Make the three
  1534. different types of cache code - put into cache, extract from
  1535. cache, no cache - an explicit argument to print_icache_body.
  1536. * gen-icache.c (print_icache_extraction): Ditto.
  1537. * gen-semantics.c (print_c_semantic): Update use.
  1538. * gen-idecode.c (print_jump_insn): Update use.
  1539. * gen-icache.c (print_icache_function): Update use.
  1540. * igen.c (main): Change 'R' option so that it does not force the
  1541. cache.
  1542. * configure.in (enable-sim-icache): Clarify description. Make
  1543. #define one of the defaults regardless of the cache. Probably
  1544. should revamp and add a separate option.
  1545. Tue Jan 21 13:26:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1546. * pk_disklabel.c (block_is_fdisk): Tidy up traces - use dos
  1547. partition numbering.
  1548. (pk_disklabel_create_instance): Partition 1..4 are valid - not
  1549. 1..3.
  1550. (is_iso9660): New function, verify a CD9660 File system.
  1551. (pk_disklabel_create_instance): Start expanding so that active
  1552. partition selection is supported.
  1553. Mon Jan 20 11:20:15 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1554. * The cap object was retaining a reference to the instance of a
  1555. device after it was deleted. Instead add and remove cap's from the
  1556. cap db as they are created and deleted. This ensuring that a
  1557. capibility is only used during the lifetime of the corresponding
  1558. object.
  1559. * cap.h, cap.c: Correct cap type - was signed32 should be
  1560. signed_cell.
  1561. * cap.c (cap_add, cap_remove): New methods for cap object that
  1562. allow the explicit addition and removal of internal objects that
  1563. the cap knows about.
  1564. * cap.c (cap_init): Rewrite. Verify that the only objects
  1565. remaining in the cap data base are those that were entered first.
  1566. Thse objects will be the permenant ones.
  1567. * device.c (device_init_address): Remember to initialize the cap
  1568. database.
  1569. * device.c (device_create_instance_from): Explicitly add device
  1570. instances to the cap database. Simplify create code.
  1571. (device_instance_delete): Explicitly remove device instances from
  1572. the cap database.
  1573. * device.c (device_create_from): Explicitly add a device to the
  1574. cap data base.
  1575. * device.c (device_create_from): Always set the cap members.
  1576. * hw_disk.c: Output the instance when tracing.
  1577. Sun Jan 19 16:44:29 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1578. * tree.c (split_device_specifier): Add support for aliases when
  1579. looking up a device. Now needs a device as an argument.
  1580. (split_property_specifier): Ditto.
  1581. Sun Jan 19 15:28:23 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1582. * The memory "claim" and "release" methods take an address and
  1583. size as arguments. These may be multi cell values. Initially fix
  1584. the memory code so that they check/detect this. Leave the
  1585. adjustment of any clients to later.
  1586. * hw_memory.c (hw_memory_instance_claim,
  1587. hw_memory_instance_release): Handle multi-cell memory devices.
  1588. * hw_memory.c (hw_memory_instance_claim): Be tolerant towards the
  1589. release of memory regions that were not claimed.
  1590. Fri Jan 17 12:01:07 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1591. * device.h, device.c (device_instance_call_method): Correct return
  1592. type - can return either 0 or -1, hence should be a signed type.
  1593. * device_table.h: Ditto.
  1594. * hw_memory.c (hw_memory_instance_claim,
  1595. hw_memory_instance_release): Update.
  1596. * hw_disk.c (hw_disk_max_transfer, hw_disk_block_size,
  1597. hw_disk_nr_blocks): Ditto.
  1598. Fri Jan 17 11:50:13 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1599. * emul_chirp.c (chirp_emul_claim): Implement using the "claim"
  1600. method belonging to "/chosen/memory".
  1601. (chirm_emul_release): Ditto.
  1602. * Makefile.in (LIB_INLINE_SRC): Remove emul_* from list of files
  1603. that are inlined. These modules are called via a table and are
  1604. not made inline.
  1605. * hw_init.c (update_for_binary_section): Fix failure to allocate
  1606. memory used by the binary in real-mode executions. If "claim"
  1607. property is present, allocate memory from the "/chosen/memory"
  1608. device.
  1609. * emul_chirp.c (emul_chirp_create): Specify that memory should be
  1610. claimed when loading a real image.
  1611. * hw_memory.c (hw_memory_instance_claim): Don't page align memory
  1612. allocations.
  1613. * hw_memory.c (hw_memory_instance_release): Avoid infinite loop
  1614. when merging adjacent memory chunks.
  1615. Thu Jan 16 08:51:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1616. * vm.h (vm_data_map_read_buffer, vm_data_map_write_buffer): Add
  1617. optional PROCESSOR & CIA args so that this routine also abort an
  1618. access.
  1619. * vm_n.h (vm_data_map_read_N, vm_data_map_write_N): For a
  1620. miss-aligned access when a transfer fails abort.
  1621. * emul_bugapi.c (emul_bugapi_do_write): Use emul_read_buffer
  1622. instead of the vm_read_buffer.
  1623. * emul_netbsd.c (do_write): Ditto.
  1624. * emul_unix.c (do_unix_write): Ditto.
  1625. Wed Jan 15 14:38:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1626. * configure.in (--enable-sim-jump): Default is NULL and not -E.
  1627. * configure: Regenerate.
  1628. * basics.h (__attribute__): Enable attributes if GCC >= 2.6.
  1629. (UNUSED): Only enable UNUSED if GCC >= 2.7.
  1630. * gen-icache.c (print_icache_extraction): Print UNUSED macro
  1631. instead of explicit __unused__ attribute.
  1632. (print_icache_body): Ditto.
  1633. * idecode_expression.h (FPSCR_BEGIN): Use UNUSED.
  1634. Wed Jan 15 13:54:50 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1635. * cpu.h, cpu.c (cpu_synchronize_context): Add CIA argument as
  1636. reference point.
  1637. * vm.c (vm_synchronize_context): Add PROCESSOR and CIA as
  1638. arguments so that there is a reference point for recovery.
  1639. (vm_synchronize_context): Pass processor+cia for errors.
  1640. (om_unpack_sr): Ditto.
  1641. (om_unpack_srs): Ditto.
  1642. * vm.c (vm_create): Review error messages.
  1643. * vm.c: Include "cpu.h" so that cpu_error is visible.
  1644. * ppc-instructions (Return From Interrupt): Pass CIA.
  1645. (Instruction Synchronize): Ditto.
  1646. * psim.c (psim_init): Ditto.
  1647. Wed Jan 15 12:25:11 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1648. * cpu.h, cpu.c (cpu_error): Aborts simulation with error message,
  1649. but also saves current processor state.
  1650. * basics.h: Move #include <stdarg.h> to here from device_table.h.
  1651. * interrupts.c (perform_oea_interrupt): Use. No longer loose CIA
  1652. when simulation aborted.
  1653. (program_interrupt): Ditto.
  1654. (floating_point_unavailable_interrupt): Ditto.
  1655. (alignment_interrupt): Ditto.
  1656. (floating_point_assist_interrupt): Ditto.
  1657. (perform_oea_interrupt): Ditto.
  1658. (machine_check_interrupt): Ditto.
  1659. Tue Jan 14 12:19:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1660. * ppc-instructions (Move from Special Purpose Register): Support
  1661. move from DEC.
  1662. Mon Jan 13 16:58:12 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1663. * debug.h, debug.c: Add "interrupts" trace option.
  1664. * interrupts.c (data_storage_interrupt): Add tracing.
  1665. (machine_check_interrupt): Ditto.
  1666. (instruction_storage_interrupt): Ditto.
  1667. (alignment_interrupt): Ditto.
  1668. (program_interrupt): Ditto.
  1669. (floating_point_unavailable_interrupt): Ditto.
  1670. (system_call_interrupt): Ditto.
  1671. (floating_point_assist_interrupt): Ditto.
  1672. (deliver_hardware_interrupt): Ditto.
  1673. * interrupts.c (program_interrupt): For UEA mode, halt the
  1674. processor - so that the current state is saved - instead of
  1675. aborting.
  1676. (floating_point_unavailable_interrupt): Ditto.
  1677. (floating_point_assist_interrupt): Ditto.
  1678. Thu Jan 2 09:10:41 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1679. * interrupts.c (perform_oea_interrupt): Halt rather than abort on
  1680. a double interrupt.
  1681. Wed Jan 1 22:54:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1682. * ppc-instructions (Store Multiple Word, Load Multiple Word):
  1683. Enable.
  1684. * tree.c (print_properties): For an array consider printing it out
  1685. as an integer array.
  1686. * hw_memory.c (hw_memory_init_address): If an "available" property
  1687. is present, use that to initialize the available memory instead of
  1688. using the reg property.
  1689. * emul_generic.c (emul_add_tree_hardware): Add "available"
  1690. property to memory device.
  1691. Fri Dec 20 13:19:07 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1692. * ppc-instructions (Rotate Left Word then AND with Mask): Enable.
  1693. * device.c (device_instance_call_method): Was only looking at the
  1694. first method.
  1695. * hw_disk.c (hw_disk_nr_blocks): Implement #blocks method.
  1696. (hw_disk_block_size): Implement block-size method.
  1697. (hw_disk_max_transfer): Implement max-transfer method.
  1698. * hw_phb.c (hw_phb_init_address): Reinit the rest of the PHB.
  1699. * emul_chirp.c (chirp_emul_instance_to_path): Recover from an
  1700. invalid ihandle.
  1701. (chirp_emul_instance_to_package): Ditto.
  1702. (chirp_emul_method): Ditto.
  1703. (chirp_emul_read): Ditto.
  1704. (chirp_emul_write): Ditto.
  1705. (chirp_emul_close): Ditto.
  1706. (chirp_emul_seek): Ditto.
  1707. (chirp_emul_package_to_path): Ditto (for phandle).
  1708. (chirp_emul_package_to_path): Return the length.
  1709. * psim.c (psim_merge_device_file): Allow continuation lines.
  1710. Thu Dec 19 11:09:43 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1711. * emul_chirp.c (chirp_emul_boot): Implement. Well report the new
  1712. string and exit.
  1713. * emul_chirp.c (chirp_emul_exit): Correct type of args struct
  1714. members - *_cell not host dependant int.
  1715. Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1716. * interrupts.c (perform_oea_interrupt): Print additional
  1717. information if a double interrupt is encountered.
  1718. Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1719. * psim.c (psim_merge_device_file): Tolerate an incorrect file-name
  1720. being specified with the -f option.
  1721. (psim_merge_device_file): Correct check for end of string.
  1722. Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1723. * emul_chirp.c (chirp_emul_peer): Was falling off the end of the
  1724. list of devices. Return zero to the client instead.
  1725. * emul_chirp.c (chirp_emul_child): Ditto
  1726. * emul_chirp.c (chirp_emul_parent): Ditto
  1727. * device.c (device_root): Assert assumption about the device being
  1728. valid.
  1729. Tue Dec 17 15:12:38 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1730. * emul_chirp.c (emul_chirp_create): Add description property to
  1731. each significant node in the device tree.
  1732. * emul_bugapi.c (emul_bugapi_create): Ditto.
  1733. Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1734. * main.c (sim_io_read_stdin): For a single byte STDIO read, use a
  1735. tempoary two byte buffer. Single byte read with fgets will not
  1736. work.
  1737. * main.c: Include errno.h.
  1738. (sim_io_read_stdin): For non-STDIO, make it work.
  1739. * emul_chirp.c (chirp_emul_read): Return the correct error status.
  1740. Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1741. * std-config.h (WITH_STDIO): Don't hard-wire the STDIO mechanism.
  1742. Instead have each emulation default it to DO_USE_STDIO.
  1743. * emul_generic.c (emul_add_tree_options): Select the STDIO I/O
  1744. mechanism as the default if enabled or if nothing selected.
  1745. * sim_calls.c (sim_io_read_stdin): Passify GCC's desire for a
  1746. return value.
  1747. (sim_io_write_stdout): Ditto.
  1748. (sim_io_write_stderr): Ditto.
  1749. * main.c (sim_io_write_stdout): Ditto.
  1750. (sim_io_write_stderr): Ditto.
  1751. (sim_io_read_stdin): Ditto.
  1752. Tue Dec 10 10:31:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  1753. * emul_chirp.c (emul_chirp_instruction_call): Make *printf calls
  1754. type correct.
  1755. * vm.c (om_effective_to_virtual): Ditto.
  1756. * events.c (event_queue_schedule{,_after_signal}): Ditto.
  1757. (event_queue_{deschedule,process}): Ditto.
  1758. * hw_htab.c (htab_decode_hash_table): Ditto.
  1759. (htab_map_{page,binary}): Ditto.
  1760. * hw_opic.c (hw_opic_init_data): Ditto.
  1761. (handle_interrupt): Ditto.
  1762. (do_processor_init_register_{read,write}): Ditto.
  1763. (write_vector_priority_register): Ditto.
  1764. ({read,write}_destination_register): Ditto.
  1765. (do_suprious_vector_register_{read,write}): Ditto.
  1766. (do_current_task_priority_register_N_{read,write}): Ditto.
  1767. (do_timer_frequency_reporting_register_{read,write}): Ditto.
  1768. (do_timer_N_{current,base}_count_register_{read,write}): Ditto.
  1769. (do_ipi_N_dispatch_register_write): Ditto.
  1770. (do_vendor_identification_register_read): Ditto.
  1771. (do_feature_reporting_register_N_read): Ditto.
  1772. (do_global_configuration_register_N_{read,write}): Ditto.
  1773. * hw_phb.c (hw_phb_attach_address): Ditto.
  1774. (hw_phb_unit_decode): Ditto.
  1775. (hw_phb_address_to_attach_address): Ditto.
  1776. (hw_phb_io_{read,write}_buffer): Ditto.
  1777. * hw_ide.c (setup_fifo): Ditto.
  1778. * sim_calls.c ({defs,callback,remote-sim}.h): Find gdb include
  1779. files via -I<dir> instead of using "../../gdb/" prefixes.
  1780. Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1781. * debug.h: Add tracing for the pal device.
  1782. * hw_pal.c: Update.
  1783. * emul_chirp.c (chirp_emul_getprop): More tracing.
  1784. Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1785. * device.h, device.c (device_find_ihandle_runtime_property): New
  1786. function. Reverse of add_ihandle_runtime property.
  1787. (device_init_runtime_properties): Use it.
  1788. * device.c (find_property_entry): New function returns the
  1789. internal property spec.
  1790. (device_set_property): Use.
  1791. (device_find_property): Use.
  1792. Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1793. * psim.c (psim_merge_device_file): Strip newline from device
  1794. specs.
  1795. Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1796. * hw_htab.c (htab_map_binary): For overlapping text / data maps
  1797. merge the two. Also check that the merge is safe.
  1798. * emul_chirp.c (emul_chirp_create): Add a description property to
  1799. the pte's so that they are easier to identify.
  1800. (emul_chirp_create): Don't specify a load address for the CHRP
  1801. image. Always use the values specified by the executable.
  1802. * hw_htab.c (htab_map_page): Abort if a duplicate map is
  1803. encountered.
  1804. Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1805. * hw_htab.c (htab_map_page): Formatting.
  1806. * emul_chirp.c (emul_chirp_instruction_call): Check for a NULL
  1807. method name when handling the client call. Also check for other
  1808. bad call arguments.
  1809. * emul_chirp.c (emul_chirp_create): Allow real-mode?, real-base,
  1810. etc to be overriden.
  1811. Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1812. * os_emul.c (os_emul_create): Use tree find property instead of
  1813. device find property - sigh.
  1814. Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1815. * 961205: Release snapshot 961205.
  1816. Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1817. * configure.in (hostbitsize, bitsize): Fix typo in error message -
  1818. cannot contain a comma.
  1819. (sim-warnings): Check for more potential errors.
  1820. * psim.c (psim_usage): Add -f <file> option. Specifies a file
  1821. containing device tree specifications that should be merged into
  1822. the device tree.
  1823. * configure.in: Sort options.
  1824. * configure: Rebuild
  1825. Wed Dec 4 13:57:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1826. * psim.c (psim_usage): Add -n option - specify number of
  1827. processors.
  1828. * emul_chirp.c: Add description.
  1829. * emul_bugapi.c: Ditto.
  1830. * emul_unix.c: Ditto.
  1831. * emul_netbsd.c: Ditto.
  1832. Fri Nov 29 11:12:22 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1833. * hw_pal.c (hw_pal_attach_address): New function, if an attach is
  1834. encountered, assume that it is the single disk.
  1835. * hw_pal.c: Add generic device/size decode methods.
  1836. * hw_nvram.c (hw_nvram_init_address): Use the first nonzero reg
  1837. property entry when determining the nvram size.
  1838. * hw_core.c: Add generic address/size decode methods.
  1839. * emul_chirp.c (emul_chirp_instruction_call): Return and trace
  1840. nonzero status from client functions.
  1841. * main.c (error): Always include a cariage return when writing out
  1842. errors.
  1843. Wed Nov 20 00:36:55 1996 Doug Evans <dje@canuck.cygnus.com>
  1844. * sim_calls.c (sim_resume): Reset sim_should_run if single
  1845. stepping.
  1846. Thu Nov 28 13:19:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
  1847. * emul_bugapi.c (emul_bugapi_do_diskio): Add support for multiple
  1848. optional disks.
  1849. * emul_generic.c (emul_add_tree_hardware): Drop the dummy eeprom.
  1850. Attach the pal - for I/O - as a pseudo device haning from the
  1851. firmware sub tree.
  1852. * emul_bugapi.c (emul_bugapi_create): Add a small memory device to
  1853. the device tree at the address of the hi-mem interrupt vector
  1854. addreses. Used by bugapi to establish its trap instructions.
  1855. * debug.h: Add a new macro DITRACE for tracing device instances.
  1856. * debug.h: Extend the DTRACE macro so that it can also tests for
  1857. device specific tracint.
  1858. * device.h, device.c (device_trace): Add method to determine
  1859. device specific tracing.
  1860. (device_init_address): Set the devices tracing level.
  1861. Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  1862. * tree.h, tree.c (tree_device): New files - separate out the
  1863. device parser and other tree operations from the device.
  1864. * inline.h, inline.c (INLINE_TREE): Add.
  1865. * device.h, device.c (device_tree_add_parsed): Delete.
  1866. * Makefile.in (tree.c): Add rules for new file.
  1867. * Makefile.in: Better order the emul_* files.
  1868. * emul_generic.c (emul_add_tree_hardware): Update.
  1869. * emul_netbsd.c (emul_netbsd_create): Update.
  1870. * emul_unix.c (emul_unix_create): Ditto.
  1871. * emul_chirp.c (emul_chirp_create): Ditto.
  1872. * emul_bugapi.c (emul_bugapi_create): Ditto.
  1873. * psim.c (psim_tree): Ditto.
  1874. * hw_init.c: Ditto.
  1875. * emul_generic.h: Include tree.h
  1876. * Makefile.in: Add to EMUL_GENERIC_H dependencies.
  1877. * device.h, device.c (device_root): New function - returns the
  1878. root of the tree.
  1879. * corefile.c: Use.
  1880. * device.h, device.c (device_clean): New function, clean up device
  1881. ready for next simulation run. This includes things like deleting
  1882. interrupt edges and properties created during the simulation and
  1883. also scrubbing any pre-defined properties.
  1884. * tree.c (tree_init): Use.
  1885. * device.h, device.c (device_init_static_properties): New
  1886. function. Initialize any static predefined properties. By static
  1887. we mean those that have values that can be determined before the
  1888. device tree initialization has started.
  1889. * tree.c (tree_init): Use.
  1890. * device.h, device.c (device_init_address): Add code to
  1891. check/verify the devices #address-cells and #size-cells.
  1892. (device_add_integer_property): Delete corresponding code.
  1893. (device_nr_address_cells, device_nr_data_cells): Check for
  1894. property when returning value.
  1895. * device.h, device.c (device_init_runtime_properties): New
  1896. function. Initialize those properties that are not `static'. At
  1897. present the only such property is the ihandle.
  1898. * tree.c (tree_init): Use.
  1899. * device.h, device.c (reg, ranges): Rework these so that they use
  1900. an array of the fundamental type - single reg or single range
  1901. entry.
  1902. * device.h, device.c (device_add_ihandle_runtime_property):
  1903. Re-implement the adding of an ihandle during tree construction so
  1904. that it better fits in with device initialization.
  1905. Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  1906. * device.h, device.c (device_ioctl): Add additional argument -
  1907. request - so that the caller must always specify the type of
  1908. the ioctl request.
  1909. * device_table.h: Update.
  1910. * hw_trace.c (hw_trace_ioctl): Ditto.
  1911. * hw_vm.c (hw_vm_ioctl_callback): Ditto.
  1912. * hw_init.c (hw_stack_ioctl_callback): Ditto.
  1913. * psim.c (psim_options): Ditto.
  1914. Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  1915. * BUGS: Updated a bit.
  1916. Wed Nov 20 14:06:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  1917. * hw_opic.c: Finish - third round.
  1918. Wed Nov 20 12:02:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  1919. * hw_glue.c (hw_glue_io_read_buffer_callback): Fix miscalc of glue
  1920. reg index.
  1921. (hw_glue_io_write_buffer_callback): Ditto.
  1922. Tue Nov 19 21:17:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  1923. * events.c (event_queue_process): Was incorrectly consuming future
  1924. events on the queue when they should be left alone.
  1925. * debug.h, debug.c (events): Add support for event queue tracing.
  1926. * events.c: Add event tracing.
  1927. * debug.h, debug.c: Order device trace options.
  1928. Fri Nov 15 15:23:39 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  1929. * pk_disklabel.c (pk_disklabel_create_instance): Fix up some
  1930. warnings generated by GCC.
  1931. Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  1932. * sim-endian.h: Add LE versions of byte swap macros. Needed for
  1933. PCI devices which are little-endian.
  1934. * sim-endian-n.h (endian_le2h_N, endian_h2le_N): Ditto
  1935. Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  1936. * hw_iobus.c (hw_iobus_attach_address_callback): Change the iobus
  1937. so that it is implementing a 1-1 address map.
  1938. * emul_generic.c (emul_add_tree_hardware): Adjust.
  1939. * emul_generic.c (emul_add_tree_hardware): Don't add the nvram as
  1940. a default.
  1941. Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  1942. * device.c (split_find_device): Be tolerant of missing unit
  1943. addresses.
  1944. Fri Nov 15 16:49:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  1945. * basics.h (port_direction): New type, specify the direction of
  1946. any `port'.
  1947. * device.h, device.c (device_interrupt_decode): Include
  1948. specification of port direction in operations.
  1949. (device_interrupt_encode): Ditto.
  1950. * device_table.h: Add a direction field to the interrupt port
  1951. table.
  1952. * device.c (device_tree_add_parsed): Specify port direction.
  1953. Thu Nov 14 21:38:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  1954. * hw_opic.c: Finish - second round.
  1955. Thu Nov 7 00:18:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  1956. * hw_htab.c (htab_init_data_callback): Allow the virtual-address
  1957. to be specified as an array which allows 64bit addresses.
  1958. * device.c (device_find_integer_array_property): New function.
  1959. Simplify the querying of elements of an integer array.
  1960. (device_add_integer_property, device_find_integer_property):
  1961. Update to correctly use the cell type.
  1962. * vm.c (om_unpack_sr): Clarify shifting comment.
  1963. (om_pte_0_masked_vsid): Ditto. Add 64bit version.
  1964. * emul_chirp.c (emul_chirp_create): Initialize the segment
  1965. registers.
  1966. * vm.c (om_effective_to_virtual): Trace segment register use.
  1967. * hw_htab.c (htab_map_page): Print out the pteg base address to
  1968. simplify cross checking between vm and the htab.
  1969. (htab_decode_hash_table): Use device_error instead of error.
  1970. (htab_map_page): Ditto.
  1971. (htab_dma_binary): Ditto.
  1972. (htab_map_binary): Ditto.
  1973. (htab_init_data_callback): Ditto.
  1974. Wed Nov 6 20:20:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  1975. * interrupts.h: Clarify what the optional instruction program
  1976. interrupt is - a subset of illegal instruction program interrupt.
  1977. * interrupts.c (program_interrupt): For UEA mode, clarify what an
  1978. optional instruction program interrupt is.
  1979. (program_interrupt): For OEA mode, as per spec, generate an
  1980. illegal instruction program interrupt when an optional instruction
  1981. is encountered.
  1982. * gen-semantics.c (print_semantic_body): Delete code
  1983. differentiating between an unimplemented floating point and normal
  1984. instruction. Instead, such a case can be handled explicitly.
  1985. * ppc-instructions (store floating-point as integer word indexed):
  1986. Mark as optional.
  1987. (Floating Convert to Integer Doubleword): Make the floating point
  1988. assist interrupt explicit.
  1989. (Floating Convert To Integer Doubleword with round towards Zero):
  1990. Ditto.
  1991. (Floating Convert To Integer Word): Ditto
  1992. (Move From FPSCR): Ditto.
  1993. (Move to Condition Register from FPSCR): Ditto.
  1994. (Move To FPSCR Fields): Ditto.
  1995. (Move To FPSCR Field Immediate): Ditto.
  1996. (Move To FPSCR Bit 0): Ditto.
  1997. (Move To FPSCR Bit 1): Ditto.
  1998. Mon Nov 4 12:49:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  1999. * corefile.c (core_map_read_buffer, core_map_write_buffer): Avoid
  2000. breaking up transfers.
  2001. * corefile.c: Adjust arguments so that the client server
  2002. relationship is clarified.
  2003. * hw_glue.c (hw_glue_init_address): Update so it can be attached
  2004. to a PCI bus.
  2005. * hw_disk.c (hw_disk_instance_write): Add more checks to disk IO -
  2006. looking for things like overflow/underflow.
  2007. Sun Nov 3 18:45:20 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2008. * emul_generic.c (emul_add_tree_hardware): Hang the disk off the
  2009. PAL device instead of the IOBUS. The disk must be attached to a
  2010. logical bus.
  2011. * hw_disk.c (hw_disk_init_address): Just use the unit address
  2012. directly in the attach - the rest isn't relevant.
  2013. Sat Nov 2 21:48:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2014. * configure.in (sim-hardware, sim-packages): Allow additional
  2015. hardware and packages to be prefixed as well as appended.
  2016. * Makefile.in (tmp-hw, tmp-pk): Retain the user specified order of
  2017. packages when building them. Consequently, a user can override a
  2018. standard device by prefixing their own version.
  2019. * Makefile.in (hw_opic.o, hw_pci.o, hw_ide.o): Add dependencies.
  2020. Fri Nov 1 14:42:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2021. * mon.c (_cpu_mon): Add fields for counting 1, 2, 4, and 8 byte
  2022. reads and writes.
  2023. (mon_{read,write}): Count 1, 2, 4, and 8 byte reads/writes.
  2024. (mon_print_info): Correct typo regarding # of unaligned reads and
  2025. writes. Print out how many 1, 2, 4, and 8 byte reads/writes there
  2026. are.
  2027. Tue Oct 29 17:55:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2028. * configure.in (AC_CHECK_FUNCS): Add access.
  2029. * config{.in,ure}: Regenerate.
  2030. * emul_unix.c (do_unix_nop): System call that always succeeds.
  2031. (do_unix_access): Support access system call.
  2032. (solaris_descriptors): Make sigaltstack and sigaction nops.
  2033. ({solaris,linux}_descriptors): Add support for access.
  2034. Tue, 8 Oct 18:42:26 1996 Jason Molenda <crash@cygnus.co.jp>
  2035. * Makefile.in (clean): Move config.log to distclean.
  2036. Fri Nov 1 16:44:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2037. * corefile-n.h (core_map_write_N): Improve abort messages.
  2038. * device.h, device.c (device_attach_address): Remove unused name
  2039. parameter.
  2040. (device_detach_address): Ditto.
  2041. * device_table.h, device_table.c: Update.
  2042. * hw_iobus.c (hw_iobus_attach_address_callback): Ditto.
  2043. * hw_nvram.c (hw_nvram_init_address): Ditto.
  2044. * hw_memory.c (hw_memory_init_address): Ditto.
  2045. * hw_vm.c (hw_vm_init_address_callback): Ditto.
  2046. (hw_vm_attach_address): Ditto.
  2047. (hw_vm_add_space): Ditto.
  2048. * hw_init.c (update_for_binary_section): Ditto.
  2049. * hw_core.c (hw_core_attach_address_callback): Ditto.
  2050. * hw_iobus.c (hw_iobus_attach_address_callback): Rewrite to handle
  2051. configurable parent busses.
  2052. Wed Oct 30 18:46:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2053. * device_table.c (generic_device_size_to_attach_size): Provide
  2054. limited support for multi-cell sizes.
  2055. (generic_device_address_to_attach_address): Ditto for addresses.
  2056. Tue Oct 29 02:01:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2057. * device.c (device_add_integer_property): Check for setting of
  2058. #address-cells and #size-cells properties. For these, update the
  2059. corresponding device values.
  2060. (device_nr_address_cells, device_nr_size_cells): Use the value
  2061. from the device instead of the property.
  2062. * hw_core.c: Use generic address and size conversions for the top
  2063. bus.
  2064. * hw_memory.c (hw_memory_init_address): Tolerate case where
  2065. #address and #size cells is greater than 1.
  2066. * device.c (device_tree_print_device): Clean out printing of
  2067. properties.
  2068. * device.c (split_device_specifier): Don't detect comments here -
  2069. "#" can be a valid prefix - eg #size-cells.
  2070. * psim.c (psim_merge_device_file): Suppress comments and blank
  2071. lines here.
  2072. * emul_generic.c (emul_add_tree_hardware): Fix typo of incorrect
  2073. pal unit address. Add the property /#address-cells to the root of
  2074. the tree.
  2075. * device.c (device_template_create_device): Check that the unit
  2076. address was successfully parsed.
  2077. * device_table.c (generic_device_unit_decode): Rewrite to better
  2078. handle multi-cell addresses.
  2079. (generic_device_unit_encode): Ditto.
  2080. * emul_generic.c (emul_add_tree_hardware): "reg" properties no
  2081. longer need the explicit array type - the parser takes care of it.
  2082. * pk_disklabel.c (pk_disklabel_create_instance): Add NULL return
  2083. to keep GCC happy.
  2084. Mon Oct 28 22:55:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2085. * hw_ide.c: New file. Model of a basic IDE interface attached to
  2086. a PCI bus.
  2087. * configure.in (hardware): Add the ide device to the default
  2088. configuration.
  2089. * configure: Regenerate.
  2090. * debug.h, debug.c: Add tracing option for the IDE device.
  2091. Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2092. * hw_phb.c, hw_phb.h: New files - implement a PHB.
  2093. * configure.in (hardware): Add the phb to the list of devices to
  2094. build by default.
  2095. Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2096. * hw_com.c: Review description.
  2097. * hw_disk.c: Ditto.
  2098. * hw_htab.c: Ditto.
  2099. * hw_eeprom.c: Ditto.
  2100. * hw_init.c: Ditto.
  2101. * hw_cpu.c: Ditto.
  2102. * hw_com.c: Update event handling.
  2103. * hw_disk.c: Implement tracing.
  2104. Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2105. * device_table.c (generic_device_init_address): Use
  2106. assigned-addresses property in preference to any other reg
  2107. property.
  2108. Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2109. * device.h, device.c (device_find_ranges_property): New function.
  2110. Simplify the manipulation of "ranges" properties.
  2111. * device.c (device_add_parsed): Extend to include support for the
  2112. ranges property.
  2113. * device.c (device_add_parsed): Add assigned-addresses to the list
  2114. of reg type properties.
  2115. * device.c (device_tree_print_device): Add code to format and
  2116. print a ranges property.
  2117. * device.h, device.c (device_nr_address_cells,
  2118. device_nr_size_cells): New functions. Determine the values of the
  2119. standard properties #address-cells and #size-cells. Both of which
  2120. are optional and have default values of two and one respectfuly.
  2121. Previously, code that determined #address-cells was incorrectly
  2122. using a value of one.
  2123. Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2124. * debug.h, debug.c: Sort debug options, Add entries for the
  2125. comming PHB device.
  2126. Fri Oct 18 12:12:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2127. * ppc-instructions (Floating Select): Add support for fsel unless
  2128. model is 601. Allow user to filter out instruction unless -Fs is
  2129. passed to igen.
  2130. (Store Floating-Point as Integer Word Indexed): Raise optional
  2131. instruction program abort. Allow user to filter out instruction
  2132. unless -Fs is passed to igen.
  2133. (Floating Square Root{, Single}): Ditto.
  2134. (Floating Reciprocal Estimate Single): Ditto.
  2135. (Floating Reciprocal Square Root Estimate): Ditto.
  2136. * configure.in (--enable-sim-filter): If not passed, pass 32,f,s
  2137. to igen.
  2138. * configure: Regenerate.
  2139. * interrupts.h (program_interrupt_reasons): Add
  2140. optional_instruction_program_interrupt.
  2141. * interrupts.c (program_interrupt): Call error with more detailed
  2142. information on program interrupts, particularly in user mode. Add
  2143. support for optional_instruction_program_interrupt.
  2144. Wed Sep 25 10:20:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2145. * hw_glue.c: New device. Hooks for manipulating interrupt ports.
  2146. * debug.h, debug.c (trace_glue_device): Add tracing support for
  2147. the interrupt glue logic device.
  2148. * configure.in (hardware): Add glue device.
  2149. * configure: Regenerate.
  2150. Tue Sep 24 20:55:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2151. * device.c (device_tree_parse_integer_property): New function,
  2152. parse a list of integers as an array property.
  2153. (device_tree_add_parsed): Call it.
  2154. * device.c (device_tree_parse_string_property): New function,
  2155. parse a list of strings as a string property (with embeded
  2156. null's). For moment, don't try to implement a complext string
  2157. parser.
  2158. (device_tree_add_parsed): Call it.
  2159. Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2160. * hw_opic.c: New file. OpenPIC interrupt controller.
  2161. * configure.in (hardware): Add opic device.
  2162. * configure: re-generate.
  2163. * hw_pic.c: Delete, replaced with hw_opic.c.
  2164. * debug.h, debug.c: Add debug option for OpenPIC device. -
  2165. opic-device.
  2166. Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2167. * Makefile.in (psim.o, idecode.o): Since idecode and not psim is
  2168. now the file that does all the inlining.
  2169. * Makefile.in (LIB_SRC, LIB_INLINE_SRC, idecode.o): Break out the
  2170. library source code that could be involved in an inlining. Make
  2171. idecode.o only dependant on the inlined library source code.
  2172. * Makefile.in (LIB_OBJ): Put options last on the list so that it
  2173. is compiled last.
  2174. * std-config.h (DEVICE_INLINE): Only inline locals when the
  2175. default is to inline.
  2176. Mon Sep 23 00:37:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2177. * hw_htab.c (htab_sum_binary): Determine the real-base for the
  2178. binary.
  2179. * hw_htab.c (htab_map_binary): Depending on the value of the
  2180. load-base, either map the program in as a contiguous section or as
  2181. separate sections controled by th binaries lma values.
  2182. (htab_init_data_callback): Ditto.
  2183. Sun Sep 22 15:56:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2184. * emul_generic.c (emul_add_tree_options): Remove load-base option.
  2185. * emul_chirp.c (map_over_chirp_note): Add load_base field to note
  2186. struct. Don't require the load_base field to be present - just
  2187. issue warning - it is a recent addition.
  2188. (emul_chirp_create): Support both virtual and physical modes.
  2189. * emul_chirp.c (emul_chirp_create): Add a stack initialization
  2190. property so that any arguments specified on the command line can
  2191. be passed on to user programs.
  2192. * hw_init.c (create_ppc_chirp_bootargs): Add support for chirp
  2193. argument passing to the pseudo device stack.
  2194. Sat Sep 21 19:39:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2195. * device.c (device_error): Make it more tolerant to incomplete
  2196. devices.
  2197. * hw_init.c (hw_data_init_data_callback): Extend the data device
  2198. so that it can perform initialization operations either dma or a
  2199. more complex instance open, seek, write operation.
  2200. * hw_init.c: Update the description of the data device to reflect
  2201. this.
  2202. Sat Sep 21 00:13:02 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2203. * device.c (device_event_queue_schedule,
  2204. device_event_queue_deschedule, device_event_queue_time): Have the
  2205. device object export the event operations. Making these available
  2206. from the device object should hopefully simplify writing device
  2207. models.
  2208. Fri Sep 20 14:04:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2209. * configure.in (sim-hardware): Add eeprom device to default build.
  2210. * hw_eeprom.c: Rewrite so it works.
  2211. * debug.h, debug.c: Add tracing support for the eeprom and com
  2212. devices.
  2213. Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2214. * debug.h: Add disklabel-package and disk-device trace options.
  2215. debug.h (PTRACE): Add macro to simplify tracing in packages.
  2216. Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2217. * device.c (device_create_instance_from): Tighten up loop
  2218. searching for device instances.
  2219. (device_instance_delete): Ditto.
  2220. (device_instance_delete): Only leaf instances need to be removed
  2221. from a devices list of active instances.
  2222. Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2223. * hw_disk.c: Add the cdrom as an alias.
  2224. * pk_disklabel.c (disklabel_delete): Implement, remembering to
  2225. delete the raw disk instance while we're at it.
  2226. * pk_disklabel.c (pk_disklabel_create_instance): Implement a
  2227. little bit more - still a long way to go.
  2228. * pk_disklabel.c (disklabel_write, disklabel_read): Remember the
  2229. new head position after a read or write.
  2230. Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2231. * emul_chirp.c (chirp_emul_read): Allow reads to be longer then
  2232. the internal buffer.
  2233. Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2234. * emul_chirp.c (chirp_read_t2h_args): Call memset-0 with the args
  2235. in the correct order.
  2236. * emul_chirp.c (chirp_emul_call_method): Correct computation for
  2237. the address of the first stack argument passed in from the client
  2238. program.
  2239. Wed Sep 18 19:33:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2240. * words.h: Add new types signed_cell and unsigned_cell which
  2241. correspond to the signed and unsigned IEEE 1275 memory locations.
  2242. * device.h, device.c, emul_chirp.c: Where refering to an IEEE 1275
  2243. memory cell, replace uses of unsigned32 with unsigned_cell.
  2244. * device_table.h: Ditto.
  2245. * sim-endian.h: Add new macros H2BE_cell and BE2H_cell which
  2246. convert cell sized values to from big endian.
  2247. * device.c, emul_chirp.c: Where refering to IEEE 1275 memory cells
  2248. use these new macros.
  2249. Tue Sep 17 15:57:44 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2250. * device.c (device_tree_add_parsed): Detect and report an
  2251. interrupt being attached to an invalid device. Was dumping core.
  2252. Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2253. * device.h, device.c (device_address_to_attach_address,
  2254. device_size_to_attach_size): New functions. Convert a devices
  2255. unit address or unit size structure into a form suitable for
  2256. passing on to the attach and detach functions.
  2257. * device_table.h: Add extra methods to device table.
  2258. * device.h, device.c (device_find_reg_property): New function.
  2259. For a reg type property, return the selected address + size
  2260. tupple, along with a positive success status. Add a reg_property
  2261. to the list of property types.
  2262. * (device_tree_add_parsed): Make array properties with the name
  2263. reg or alternate-reg of type reg_property.
  2264. * hw_memory.c (hw_memory_init_address): Rewrite to use new
  2265. find_reg_property method.
  2266. * hw_nvram.c (hw_nvram_init_address): Ditto.
  2267. * device.c (device_tree_print_device): Add code to print out a reg
  2268. property.
  2269. * device_table.c (generic_device_address_to_attach_address,
  2270. generic_device_size_to_attach_size ): New functions. Generic
  2271. functions for converting between unit and attach address or size.
  2272. * device_table.c (generic_device_init_address): Rewrite to use the
  2273. new find_reg and address convert functions. Look for both reg and
  2274. alternate-reg properties.
  2275. Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2276. * hw_com.c: New file. A '550 serial device that can quickly be
  2277. attached to any bus.
  2278. * configure.in (enable-sim-hardware): Add the com device.
  2279. * configure: re-generate.
  2280. Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2281. * device.c (device_tree_verify_reg_unit_address): New
  2282. function. Check that the unit address as specified by the reg
  2283. property correctly corresponds to any unit address previously
  2284. specified by the devices name.
  2285. (device_tree_add_parsed): When adding a reg property, verify
  2286. that the unit-address - first value of property - correctly
  2287. matches any previous value specified when creating the device
  2288. node.
  2289. Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2290. * mon.c (mon_event): Remove assertion that an unsigned is >= 0.
  2291. Fri Aug 16 12:05:24 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2292. * device.c (device_full_name): Cast strdup to char *, since AIX
  2293. 3.2.5 mistakenly declares the function to be const char *.
  2294. (device_create_from): Ditto.
  2295. (device_create_instance_from): Ditto.
  2296. (device_add_property): Ditto.
  2297. Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2298. * debug.c (trace_option): For -t all, do not set the
  2299. trace_dump_device_tree flag, so that the simulator is run.
  2300. Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2301. * Makefile.in (options.o): Depend on defines.h.
  2302. (defines.h): New rule, go through config.h and make strings of all
  2303. of the #define HAVE_xxx macros.
  2304. (distclean): Remove defines.h.
  2305. * options.c (print_options): Print whether many of the
  2306. configuration macros are defined.
  2307. * main.c (main): If -t options and no filename, just print the
  2308. options, and don't print the usage message.
  2309. Mon Aug 12 18:42:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2310. * configure.in: Test whether /dev/zero works on the system, and if
  2311. it does, define HAVE_DEVZERO.
  2312. * configure: Regenerate.
  2313. * emul_generic.c (emul_add_tree_hardware): Do not add /iobus/disk
  2314. if we don't have a working /dev/zero on the system.
  2315. * emul_bugapi.c (emul_bugapi_init): If HAVE_DEVZERO is not
  2316. defined, don't add disk support.
  2317. (emul_bugapi_do_diskio): Ditto.
  2318. (emul_bugapi_instruction_call): Ditto.
  2319. Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2320. * emul_unix.c (HAVE_TCGETATTR): If HAVE_TERMIOS_STRUCTURE is not
  2321. defined, make sure HAVE_TCGETATTR is #undef'ed
  2322. Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2323. * std-config.h (REGPARM): Only define REGPARM attributes if using
  2324. GNU C. Test for __i686__ in case GCC ever defines it. If not on
  2325. a x86 platform, define REGPARM as nothing.
  2326. * sim-endian.h (WITH_HOST_BYTE_ORDER): Test for i686 and __i686__
  2327. also.
  2328. Wed Aug 7 20:19:55 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2329. * ld-decode.h, ld-decode.c: Rename goto_gen to the more correct
  2330. goto_switch_gen.
  2331. * gen-idecode.c: Ditto.
  2332. * gen-idecode.c (print_idecode_table): Comment out check for
  2333. switch/table combination until a bug with it is fixed.
  2334. * ppc-opcode-goto: New file. Like complex and flat but uses
  2335. goto-switch instead of padded-switch for the tables.
  2336. * gen-idecode.c (print_goto_switch_name): New function.
  2337. (print_goto_switch_table_leaf): New function.
  2338. (print_goto_switch_break): New function.
  2339. (print_goto_switch_table): New function. Prints a jump table
  2340. that can be jumped into instead of a switch statement.
  2341. * gen-idecode.c (*switch_*): As an option output a switch that is
  2342. implemented using a jump table but only if the switch is not
  2343. boolean.
  2344. Tue Aug 6 09:28:22 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2345. * configure.in (--enable-sim-{hardware,packages}): Fix typos.
  2346. * configure: Regenerate.
  2347. * device.c (device_instance_call_method): Fixup format message in
  2348. error case. Return 0 in case of error to shut up compiler
  2349. warnings.
  2350. Wed Aug 7 00:17:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2351. * device_table.c (generic_device_unit_decode): Require a comma
  2352. between elements of a unit address.
  2353. * device.c (device_tree_print_device): For reg, alternate-reg and
  2354. ranges properties use special print functions.
  2355. (device_print_ranges_property): Print formatted ranges property.
  2356. (device_print_reg_property): Print formatted reg property.
  2357. Tue Aug 6 21:35:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2358. * device.c (device_tree_add_parsed): For reg, ranges and
  2359. alternate-reg properties use a special parser.
  2360. (device_tree_parse_reg_property): New function to parse a reg
  2361. property.
  2362. (device_tree_parse_ranges_property): New function to parse a
  2363. ranges property.
  2364. (device_encode_unit): Wrapper for encode_unit callback.
  2365. (device_decoce_unit): Wrapper for decode_unit callback.
  2366. Wed Jul 31 00:02:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2367. * device_table.h (device_instance_callbacks): Relace the claim and
  2368. release methods with a more general table mapping from method-name
  2369. to method-function.
  2370. * device.c (device_instance_call_method): New function. Implement
  2371. the OpenBoot call-method client interface. Attempts to locate the
  2372. instances method in the callback table.
  2373. (device_instance_claim, device_instance_release): Delete.
  2374. Replaced with call-method and a lookup table.
  2375. * emul_chirp.c (chirp_emul_call_method): Use the new device
  2376. instance call method and let that handle a client claim call.
  2377. * hw_htab.c (claim_memory): Wrapper function to call the memory
  2378. devices "claim" method using the new device-instance call-method
  2379. interface. Replaces the previous direct calls to claim.
  2380. (htab_map_region): Use claim_memory.
  2381. (htab_init_data_callback): Ditto.
  2382. * hw_memory.c (hw_memory_instance_claim): Update function
  2383. interface so that it is compatible with call-method.
  2384. (hw_memory_instance_release): Ditto.
  2385. (hw_memory_instance_methods): New table of memory specific
  2386. methods claim and release. Add to the hw_memory_callback
  2387. table.
  2388. Tue Jul 30 21:26:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2389. * psim.c (psim_init): Back out of change to initial value of
  2390. system->last_cpu.
  2391. Tue Jul 30 21:12:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2392. * sim_callbacks.h (sim_io_printf_filtered): Replace
  2393. printf_filtered with a local simulator specific version. Add
  2394. #define printf_filtered to simplify updating of existing code.
  2395. * sim_callbacks.h (sim_io_write_stdout, sim_io_read_stdin,
  2396. sim_io_write_stderr): New functions. Read / write to the
  2397. simulations stdin and stdout and stderr interfaces. Merge in code
  2398. from hw_pal that previously handled async I/O.
  2399. (sim_io_flush_stdoutput): Rename flush_stdoutput. Add #define
  2400. flush_stdoutput to simplify updating of existing code.
  2401. * hw_pal.c (scan_hw_pal, write_hw_pal,
  2402. hw_pal_instance_write_callback): Use the new sim_io functions.
  2403. * main.c: Implement standalone versions of the new sim_io
  2404. functions. Include support for async I/O.
  2405. * sim_calls.c: Ditto. This time using the gdb callback table.
  2406. * std-config.h (CURRENT_STDIO, current_stdio): New macro. Set up
  2407. stdio configuration so that it works in the same way as the rest
  2408. of the simulation.
  2409. * psim.c (psim_create): Initialize current_stdio from the device
  2410. tree.
  2411. * emul_generic.c (emul_add_tree_options): Enter a default value
  2412. for use-stdio in the device tree.
  2413. Fri Jul 26 19:43:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2414. * gen-idecode.c (print_jump): Was always generating a jump back to
  2415. idecode. Only necessary at tail of semantic code.
  2416. (print_jump): Was always setting the processor's cia, even during
  2417. startup when the processor was still undefined.
  2418. (print_jump): For safety, restart smp loop when cpu_nr >= nr_cpus,
  2419. not just equal.
  2420. * options.c (print_options): Add printing of WITH_REGPARM and
  2421. WITH_STDCALL.
  2422. * std-config.h (WITH_REGPARM, WITH_STDCALL): Provide default
  2423. (disabled) values if not defined.
  2424. Fri Jul 26 00:36:35 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2425. * ppc-cache-rules (cache): Change RS and RB to cache instead of
  2426. compute. The block move instructions use them.
  2427. * idecode_expression.h (FPSCR_SET): New macro, set specific FPSCR
  2428. register.
  2429. (CR_FIELD): New macro, extract specific CR register.
  2430. (FPSCR_FIELD): New macro, extract specific FPSCR register.
  2431. * registers.h (GPR): New macro, simplify accesses to GPR[i].
  2432. * bits.c (INSERTED): Covert INSERTED macro into a function.
  2433. (EXTRACTED): Conditionally compile on correct bit size macro.
  2434. * bits.h (BIT8): New macro, set a single bit in an 8 bit byte.
  2435. * ppc-instructions: With hints from Paul Martin, type in missing
  2436. some instruction semantics. Leave disabled for the moment.
  2437. (Load Multiple Word): Ditto.
  2438. (Store Multiple Word): Ditto.
  2439. (Load String Word Immediate): Ditto.
  2440. (Load String Word Indexed): Ditto.
  2441. (Store String Word Immedate): Ditto.
  2442. (Store String Word Indexed): Ditto.
  2443. (Move to Condition Register from XER): Ditto.
  2444. (Move From Condition Register): Ditto.
  2445. (Move From FPSCR): Ditto.
  2446. (Move to Condition Register from FPSCR): Ditto.
  2447. (Move To FPSCR Field Immediate): Ditto.
  2448. (Move To FPSCR Fields): Ditto.
  2449. (Move To FPSCR Bit 0): Ditto.
  2450. (Move To FPSCR Bit 1): Ditto.
  2451. Thu Jul 25 22:10:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2452. * std-config.h (SEMANTICS_INLINE): By default, mask out the
  2453. inlining of semantic functions from DEFAULT_INLINE. Almost all
  2454. configurations call the semantic code via a pointer so there is
  2455. little benefit.
  2456. * std-config.h (ICACHE_INLINE): Ditto.
  2457. Thu Jul 25 20:07:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2458. * configure.in (sim_regparm): Add configuration option for
  2459. enabling GCC's regparm attribute.
  2460. * (sim_stdcall): Add configuration option for enabling GCC's
  2461. stdcall attribute.
  2462. * Makefile.in (REGPARM_CFLAGS): Pass regparam configuration onto
  2463. compilations.
  2464. * (STDCALL_CFLAGS): Pass stdcall configuration onto compilations.
  2465. * std-config.h (REGPARM): Extend construction of REGPARM macro so
  2466. that it can include __stdcall__ function attribute.
  2467. Wed Jul 24 19:04:20 1996 Andrew Cagney <cagney@sawnoff>
  2468. * options.c (print_options): Include SUPPORT_INLINE in information
  2469. dump.
  2470. * gen-idecode.c (print_run_until_stop_body): Only generate loop
  2471. termination test if creating idecode_run_until_stop. Push the
  2472. loop termination test back into each alternative branch.
  2473. Wed Jul 24 15:47:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2474. * gen-icache.c (print_icache_function): Have the cache function
  2475. always update the cache_entries semantic and address fields.
  2476. * gen-idecode.c (print_idecode_switch_illegal): Include a break
  2477. when generating illegal instructions. This was commented out
  2478. which is a hangover from looking a at switch statements generated
  2479. using indirect jumps.
  2480. Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2481. * igen.c (print_my_defines): Replaces print_define_my_index.
  2482. Print both a definition for MY_INDEX and MY_PREFIX.
  2483. * gen-icache.c (print_icache_function): Adjust.
  2484. * gen-idecode.c (print_jump_insn): Adjust.
  2485. * gen-semantics.c (print_c_semantic): Adjust.
  2486. * gen-support.c (gen_support_h): Add optional include to created
  2487. support.h so that, like cpu, it is optionally inlined for all
  2488. modules that include it.
  2489. * inline.h, inline.c: Adjust so that support.[hc] is handled the
  2490. same as cpu.[hc].
  2491. * idecode_fields.h (LABEL, GOTO): Macro's that create a unique
  2492. name for a lable and then branch to it.
  2493. * ppc-instructions (convert_to_integer, Floating Round to
  2494. Single-Precision, Floating Convert from Integer Doubleword): Use
  2495. LABEL and GOTO instead of the recently added switch statements.
  2496. Wed Jul 24 14:02:42 1996 Andrew Cagney <cagney@sawnoff.highland.com.au>
  2497. * gen-idecode.c (print_run_until_stop_body): Too many rparen in
  2498. generated code.
  2499. Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2500. * configure.in (--enable-sim-line-nr): Typo - sim_line-nr.
  2501. * (--enable-sim-inline): Reorder patern matching of arguments so
  2502. that SUPPORT=ALL_INLINE is reconized as *=* and not *_INLINE.
  2503. * configure: rebuild.
  2504. Mon Jul 22 23:25:08 1996 Andrew Cagney <cagney@highland.com.au>
  2505. * configure.in (--enable-sim-hardware, --enable-sim-packages): New
  2506. configuration options. Let the user specify the packages or
  2507. hardware devices that are to be included in the build. Makes it
  2508. possible for user packages to be specified.
  2509. * Makefile.in (tmp-pk, tmp-hw): Just use the list of packages and
  2510. hardware instead of checking it using ls. configure.in should
  2511. have taken care of any problems.
  2512. (HW_SRC, HW_OBJ, PACKAGE_SRC, PACKAGE_OBJ): Set by configure.
  2513. Mon Jul 22 22:38:59 1996 Andrew Cagney <cagney@highland.com.au>
  2514. * psim.c (psim_options): Enter the argument to the memory size
  2515. option directly into the device tree. Was using atol() which is
  2516. dangerously non portable.
  2517. Mon Jul 22 22:17:08 1996 Andrew Cagney <cagney@highland.com.au>
  2518. * configure.in (icache): Extend icache flag to include an insn
  2519. option. If specifyed the insn - aka instruction - is included in
  2520. the instruction cache. Make this the default.
  2521. * configure: re-generate.
  2522. * igen.c (main), igen.h: Add option -S - inSn - for specifying
  2523. that the instruction should be included in the icache.
  2524. * gen-icache.c (print_icache_body): If enabled, output code to put
  2525. the instruction into the icache.
  2526. (print_icache_struct): If enabled, add insn to the icache struct.
  2527. Mon Jul 22 20:46:12 1996 Andrew Cagney <cagney@highland.com.au>
  2528. * Makefile.in (BUILD_CFLAGS): Include -g when building the
  2529. generators.
  2530. Mon Jul 22 20:00:25 1996 Andrew Cagney <cagney@highland.com.au>
  2531. * emul_generic.c (emul_add_tree_options): Was incorrectly setting
  2532. the strict-alignment option when hardwired for non-strict
  2533. alignment.
  2534. Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2535. * gen-semantics.c: Make the my_index variable a macro MY_INDEX.
  2536. * ppc-instructions: Adjust so that references are to MY_INDEX and
  2537. not my_index.
  2538. Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2539. * gen-idecode.c: Output the complete run_until_stop function
  2540. instead of just the code to handle a single instruction issue.
  2541. * : Have the generated idecode.c include inline.c (instead of psim.c).
  2542. * std-config.h: Change psim.c so that it isn't inlined (as this is
  2543. no longer needed).
  2544. * psim.c (run_until_stop): Delete the old run_until_stop function
  2545. instead calling the idecode_run and idecode_run_until_stop
  2546. functions that gen-idecode.c is now creating.
  2547. Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2548. * dgen.c: Maintenance - update to use new features found in lf.c.
  2549. * filter_filename.c (filter_filename): Maintenance - make the
  2550. string constant.
  2551. Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2552. * debug.c (TRACE, ITRACE, DTRACE): Have GCC instead of CPP
  2553. eliminate trace statements.
  2554. * debug.c: Change trace format so that it is consistent
  2555. (file:line-nr) with CC's error output.
  2556. * gen-itable.c (itable_c_insn): Add the source file name and
  2557. source line number to the instruction's informational entry.
  2558. * debug.c (ITRACE): Use the itable (and my_index) to get the
  2559. current instructions name and source line number.
  2560. * gen-semantics.c, gen-icache.c: Adjust generated ITRACE calls to
  2561. match new interface.
  2562. * emul_bugapi.c (emul_bugapi_instruction_call): Adjust
  2563. corresponding call to ITRACE so that it still matches.
  2564. * idecode_expression.h (ALU_END, CR0_COMPARE): Use TRACE instead
  2565. of ITRACE. The CPP line directives would have previously set the
  2566. line-nr and file name so ITRACE isn't needed.
  2567. Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2568. * gen-idecode.c (print_jump_until_stop_body): New function and
  2569. idecode generation option. Instead of generating and calling
  2570. separate functions containing the semantic and icache code
  2571. generate a single monolythic function and use goto's (and GCC's
  2572. indirect jump) to move between code blocks.
  2573. * Makefile.in: Add sim_jump flag to those passed to igen.
  2574. * configure.in: New option --enable-sim-jump (default disabled)
  2575. * ppc-instructions: Eliminate any uses of labels and goto's.
  2576. These result in duplicate declarations when a single flat function
  2577. is being create.
  2578. * ppc-opcode-jump: New file. Set of opcode rules useful when
  2579. testing jumping idecodes.
  2580. Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2581. * gen-idecode.c: Optionally include the semantic code for an
  2582. instruction in the function that is doing the decoding.
  2583. * igen.c: Add option (-C) to generate semantics in the instruction
  2584. decode functions.
  2585. * configure.in (--enable-sim-icache): Accept an option list such
  2586. as 1024,define. Add a new choice to the list - semantic - which
  2587. will cause igen to generate instruction decode functions that
  2588. include the corresponding semantic code.
  2589. Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2590. * configure.in: New option --enable-sim-line-nr (default enabled).
  2591. Enable/disable the inclusion of CPP line directives in the
  2592. generated files. Such directives refer back to the source files
  2593. used when generating the simulator code.
  2594. * Makefile.in (sim_line_nr): Pass to igen.
  2595. Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2596. * igen.c (main): Revamp the options so that more letters are
  2597. available.
  2598. * configure.in: Adjust to match igen's revamped options
  2599. Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2600. * Makefile.in (pk.h, hw.h): Rewrite depenencies for hw.h (etc) so
  2601. that they use the same technique as igen (ie a dummy targets
  2602. tmp-pk and tmp-hw are created).
  2603. Mon Jun 24 22:28:00 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2604. * Makefile.in (BUILD_CFLAGS): Include WARNING_CFLAGS.
  2605. Wed Jun 19 21:45:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2606. * ld-cache.[hc], ld-decode.[hc], ld-insn.[hc]: New files. Separate
  2607. out the loading of each of the tables from the rest of igen.
  2608. * Makefile.in: Adjust.
  2609. * igen.c: Adjust.
  2610. * gen-icache.[hc], gen-idecode.[hc], gen-itable.[hc],
  2611. gen-model.[hc], gen-semantics.[hc]: New files. Separate out the
  2612. code creating each separate set of generated files.
  2613. * Makefile.in: Adjust.
  2614. * igen.c: Adjust.
  2615. * gen-support.[ch]: New files. Output the support functions (found
  2616. in the ppc-instructions file) into a separate file.
  2617. * Makefile.in: Add.
  2618. * inline.h, inline.c: Add.
  2619. * std-config.h: Add.
  2620. * ld-cache.c: Re-design the cache table format.
  2621. * ppc-cache-rules: Update to new format.
  2622. * ld-decode.c: Re-design the decode table format.
  2623. * ppc-opcode-simple: Update to new format
  2624. * ppc-opcode-complex: Ditto
  2625. * ppc-opcode-flat: Ditto
  2626. * filter.h, filter.c: New files. Separate the opcode filter table
  2627. reading code from the rest of igen.c. Re-design the filter so that
  2628. it works inclusivly not exclusivly.
  2629. * igen.c: Remove the opcode filter table loading code.
  2630. * Makefile.in (filter.o): Adjust
  2631. * configure.in: Adjust filter flag so that default includes 32bit
  2632. and floating point.
  2633. * ppc-instructions: Clean up filter fields so that only in use
  2634. entries are specified (ie delete `be').
  2635. * misc.c (name2i, i2name): New function. Map between a string and
  2636. an integer value.
  2637. Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2638. * sim_calls.c (sim_close): If simulator not created, skip printing
  2639. of run information.
  2640. Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2641. * registers.c (register_description): Typo, insns not insn.
  2642. * ppc-instructions (model_get_number_of_stalls): New model function,
  2643. returns number of stalls for the specified processor.
  2644. * psim.c (psim_read_register): Add call to new function
  2645. model_get_number_of_stalls().
  2646. * ppc-instructions (model_get_number_of_cycles): New model function,
  2647. returns number of stalls for the specified processor.
  2648. * psim.c (psim_read_register): Add call to new function
  2649. model_get_number_of_cycles().
  2650. Fri Jun 14 00:11:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2651. * device_table.h: Don't pass the parent device into a devices
  2652. create function. This makes the create function consistent with
  2653. the documentation.
  2654. * device.c (device_template_create_device): Ditto
  2655. * hw_pal.c (hw_pal_create): Ditto
  2656. * hw_core.c (hw_core_create): Ditto
  2657. * hw_vm.c (hw_vm_create): Ditto
  2658. * hw_disk.c (hw_disk_create): Ditto
  2659. * hw_nvram.c (hw_nvram_create): Ditto
  2660. * hw_memory.c (hw_memory_create): Ditto
  2661. * hw_cpu.c (hw_cpu_create): Ditto.
  2662. * device.c (split_find_device): Allow a null initial parent device.
  2663. (device_template_create_device): Ditto.
  2664. * device.c (device_create_from): Make local (static) only used
  2665. within device.c.
  2666. * device_table.h: typedef device_callbacks moved here (from
  2667. device.h) where it belongs.
  2668. * hw_core.c: New file. Implements just the core device using the
  2669. core object.
  2670. * corefile.c: Moved all core device functions into the new
  2671. hw_core.c file. core_device_create() disapears.
  2672. * psim.c (psim_tree): Use device_tree_add_parsed() to create the
  2673. core device.
  2674. Thu Jun 13 00:09:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2675. * hw_init.c: Correct typo in comment.
  2676. * corefile.c (core_init): Remove any remaining references to a
  2677. default map.
  2678. (core_map_find_mapping): Ditto.
  2679. Wed Jun 12 22:30:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2680. * corefile.c (core_init): Make function global so that other
  2681. devices are able to use the full core object.
  2682. * corefile.c (core_create, core_from_device): Break core_create
  2683. into two functions. The first creates a core object, the second
  2684. returns the core object associated with a core device.
  2685. * corefile.c (core_device_create): Use core_create to make the
  2686. core object.
  2687. * psim.c (psim_create): Use core_from_device() instead of
  2688. core_create().
  2689. * device.c (device_template_create_device): Make static as only
  2690. needed by functions internal to device.c.
  2691. Fri Jun 7 23:47:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2692. * ppc-opcode-test-2: Remove description of fields.
  2693. * ppc-opcode-complex: Ditto
  2694. * ppc-opcode-flat: Ditto
  2695. * ppc-opcode-simple: Ditto
  2696. * ppc-opcode-stupid: Ditto
  2697. * ppc-opcode-test-1: Ditto
  2698. * ppc-cache-rules: Ditto
  2699. * igen.c: Add description of files as a comment at the front.
  2700. Wed Jun 26 12:50:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2701. * configure.in: Check for whether the termios and termio
  2702. structures are really defined, and whether or not, they define the
  2703. c_line field.
  2704. * configure: Regenerate.
  2705. * Makefile.in ({,TERMIO_}CFLAGS): Add TERMIO_CFLAGS options set by
  2706. configure.
  2707. * emul_unix.c: Various changes to allow for building on systems
  2708. with different termio and termios structures. If host has both
  2709. termio and termios, just use termios. No longer include
  2710. sys/ioctl.h.
  2711. Wed Jun 26 12:26:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
  2712. * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
  2713. INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
  2714. (docdir): Removed.
  2715. * configure.in (AC_PREREQ): autoconf 2.5 or higher.
  2716. (AC_PROG_INSTALL): Added.
  2717. * configure: Rebuilt.
  2718. Wed Jun 5 23:53:42 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2719. * corefile.h: Rewrite documentation so that it can be extracted and
  2720. converted into texinfo (and hence ready for translation into html,
  2721. tex or nroff).
  2722. * device.h: Ditto
  2723. Thu Jun 6 09:52:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2724. * hw_disk.c (SEEK_SET): If SEEK_SET is not defined, define as 0.
  2725. Wed Jun 5 11:46:52 1996 Andrew Cagney <cagney@puddin>
  2726. * hw_disk.c: Include <unistd.h> if available. Under SunOS, that
  2727. is the source of SEEK_SET.
  2728. Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2729. * psim.c (psim_options): Correct type of dummy arguments being
  2730. passed to a device_ioctl call.
  2731. * hw_init.c (hw_data_init_data_callback): Adjust printf arguments.
  2732. (write_stack_arguments): Ditto.
  2733. * hw_trace.c: Instance callback entry no longer a table.
  2734. Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2735. * emul_unix.c (do_unix_umask): Cast printf argument.
  2736. (convert_to_linux_termios): Use LINUX_VSWTC not LINUX_VSWCH
  2737. Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2738. * hw_init.c (update_for_binary_section): Abort if we find an
  2739. .interp section, which indicates the need for shared libraries to
  2740. be loaded.
  2741. Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2742. * emul_unix.c (do_unix_{time,gettimeofday,getrusage}): Add support
  2743. for time, gettimeofday, and getrusage system calls.
  2744. ({solaris,linux}_descriptors): Add new system calls.
  2745. (do_get{,e}{uid,gid}): Use gid_t/uid_t types.
  2746. (do_get{,p}pid): Use pic_t types.
  2747. * configure.in (AC_TYPE_{GETGROUPS,SIGNAL}): Define.
  2748. (AC_TYPE_{MODE,OFF,PID,SIZE,UID}_T): Define.
  2749. * config{.in,ure}: Regenerate.
  2750. Mon Jun 3 23:19:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2751. * emul_netbsd.c (emul_netbsd_create): Use the more specific names
  2752. `ppc-elf' and `ppc-xcoff' for the stack-type.
  2753. * emul_unix.c (emul_unix_create): Ditto.
  2754. * emul_bugapi.c (emul_bugapi_create): Ditto.
  2755. * hw_init.c: Reconize the new names.
  2756. * emul_unix.c (do_unix_break): Adjust so that the updated ioctl
  2757. call is used (no system parameter).
  2758. Sun Jun 2 11:21:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2759. * emul_unix.{h,c}: New files to provide Solaris and Linux system
  2760. call emulations.
  2761. * Makefile.in (LIB_{SRC,OBJ}): Add emul_unix.{c,o}.
  2762. (os_emul.o): Depend on emul_unix.h.
  2763. (emul_unix.o): New dependency.
  2764. * configure.in (--enable-sim-alignment): Add 0|default to mean set
  2765. alignment to 0, which means use appropriate alignment for mode.
  2766. (AC_CHECK_FUNCS): Add new functions needed by emul_unix.c.
  2767. (AC_CHECK_HEADERS): Add new include files needed by emul_unix.c.
  2768. * config.in: Regenerate.
  2769. * configure: Regenerate.
  2770. * emul_generic.c (emul_write2_status): New function to return
  2771. results in r3 and r4 for Solaris system calls.
  2772. (emul_do_system_call): If the system call is not support, but
  2773. there is a string for the system call name, print out the string
  2774. instead of the system call number.
  2775. * emul_generic.h (emul_write2_status): Declare it.
  2776. * emul_netbsd.c: Use /* */ around comment on #endif.
  2777. * os_emul.c: Include emul_unix.h.
  2778. (os_emulations): Add emulations for Solaris, and Linux.
  2779. * psim.c (psim_usage): Add message about solaris, linux
  2780. emulations.
  2781. Thu May 30 00:00:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2782. * hw_iobus.c: Tidy up notes so that they can be auto-extracted.
  2783. * README: Correct PSIM's title
  2784. Wed May 29 23:50:26 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2785. * basics.h: New global type object_disposition, used to indicate
  2786. the status of objects when things are restarted.
  2787. Fri May 17 17:28:52 1996 Andrew Cagney <cagney@benjimen.highland.com.au>
  2788. * device_table.h: Change the interrupt descriptor structure so
  2789. that it includes an additional member - an upper bound on the
  2790. interrupts by that name.
  2791. * device.c (device_interrupt_decode): Allow a range of interrupt
  2792. ports (eg rst0 .. rst6) if the port descriptors bound is non zero.
  2793. * device.c (device_tree_print_device): Include a list of valid
  2794. interrupt ports when listing supported devices.
  2795. * device.h, device.c (device_child_interrupt_*): Delete. Not used.
  2796. * emul_generic.c (emul_add_tree_hardware): Modify the creation of
  2797. the interrupt net so that it uses int0 .. intN.
  2798. Tue May 14 23:03:53 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2799. * device.h, device.c (device_ioctl): Drop the system argument.
  2800. Devices can not obtain this using the device_system() call.
  2801. * device_table.h: Adjust accordingly.
  2802. * hw_*.c: Adjust accordingly.
  2803. * emul_netbsd.c (do_break): Adjust call to vm device accordingly.
  2804. * psim.c (psim_options): Use a device_ioctl call to force the
  2805. hw_trace device to update the trace options.
  2806. * hw_trace.c: Replace the init function with an ioctl call. Adjust
  2807. doc accordingly.
  2808. * psim.c (psim_init): Re-order initialization so that the
  2809. os-emulation is initialized after the device tree. Without this,
  2810. os-emul's are not able to create instances or access properties
  2811. that contain an instance handle.
  2812. * device.h, device.c (device_add_*_property): Make these functions
  2813. internal to device.c. The user has access to the more generic
  2814. device_tree_add_parsed function. Differentiate between the initial
  2815. and current value for each property.
  2816. * (clean_device_properties): New function that deletes any
  2817. properties created after the start of a simulation and restores
  2818. the initial value of any others (ignoring ihandles).
  2819. * (init_device_properties): (Re)Initialize any properties that
  2820. contain ihandles. create
  2821. * (device_tree_init): Include calls to clean the device tree's
  2822. properties and then initialize them. Document this in the device.h
  2823. file.
  2824. Mon May 6 17:36:15 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2825. * interrupts.c (decrementer_interrupt): Always pend a decrementer
  2826. interrupt even if it is not yet possible to deliver it.
  2827. Wed May 1 12:26:51 1996 Andrew Cagney <cagney@benjimen>
  2828. * mon.h, mon.c (mon_get_number_of_insns): Make this externally
  2829. visable adjusting the arguments so that the interface is correct.
  2830. (mon_print_info): Adjust calls.
  2831. * registers.h, registers.c (register_description): Add phony
  2832. cycle, insn and stall registers.
  2833. * psim.c (psim_read_register): Return nr of instructions for given
  2834. processor.
  2835. Tue Apr 30 22:09:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2836. * hw_htab.c: New file. Extract contents from disk_table.c.
  2837. Contains a device that, during initialization will create a
  2838. PowerPC htab in memory.
  2839. * hw_register.c: New file. Extract contents from disk_table.c.
  2840. Contains a device that, during initialization, will parse its
  2841. property list and use that to initialize various processor
  2842. registers (not target specific).
  2843. * hw_vm.c: New file. Extract contents from disk_table.c. Contains
  2844. a device that handles accesses to invalid virtual memory addresses
  2845. (in user mode).
  2846. * hw_init.c: New file. Extract contents from disk_table.c. Misc
  2847. devices that can initialize memory from a file.
  2848. * hw_trace.c: New file. Extract contents from disk_table.c.
  2849. Configure trace options from property values.
  2850. * Makefile.in (hw_htab.o, hw_register.o, hw_vm.o, hw_init.o,
  2851. hw_trace.c): Add new device files.
  2852. * device_table.c: Remove above code, now in separate independant
  2853. files.
  2854. Fri Apr 26 00:00:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2855. * hw_disk.c: New file. Disk and CDROM device.
  2856. * Makefile.in (hw_disk.o): Add device hw_disk.c.
  2857. * pk_disklabel.c: New file. Implement the miss-named disk-label
  2858. package.
  2859. * Makefile.in (pk.h): Create the file pk.h that contains a list of all
  2860. the packages.
  2861. * Makefile.in (hw.h, hw.c): Add dependancy on Makefile so that
  2862. they are re-created when the makefile is updated.
  2863. * emul_generic.c (emul_add_tree_hardware): Add a disk device
  2864. (below the iobus) to the device tree. Include an ihandle of
  2865. the disk as /chosen/disk.
  2866. * emul_bugapi.c (emul_bugapi_create): Don't initialize the input,
  2867. output and (new) disk handles yet.
  2868. * (emul_bugapi_init): Initialize the input, output (and just added)
  2869. disk ihandles here.
  2870. * (emul_bugapi_do_diskio): New. Performs disk i/o (well at least
  2871. what I think the behavour is).
  2872. * emul_bugapi.c (emul_bugapi_instruction_call): Add hook to disk
  2873. i/o bug call. For RETURN call, exit using gpr[3]'s status even
  2874. though this isn't part of the spec - makes it possible for machine
  2875. code to signal the aporting of a simulation run.
  2876. * emul_chirp.c (chirp_emul_call_method): Add support for the
  2877. claim/release methods.
  2878. * (chirp_emul_exit): Add an optional exit status argument to
  2879. the exit method. Makes it possible for chirp emul simulations
  2880. to abort upon an error.
  2881. * device.h, device.c (device_instance_claim,
  2882. device_instance_release): New methods for claiming and releasing
  2883. memory.
  2884. * hw_memory.c: add claim and release memory methods.
  2885. * hw_*: Use the claim memory method when allocating physical
  2886. memory.
  2887. Thu Apr 18 23:38:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2888. * hw_nvram.c (hw_nvram_update_clock): Use the current not previous
  2889. time when updating the clock.
  2890. * hw_nvram.c: Tidy up documentation
  2891. Fri May 24 10:08:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2892. * configure.in (AC_STRUCT_ST_{BLKSIZE,BLOCKS,RDEV}): Use these
  2893. macros to determine whether or not the appropriate st_<xxx> fields
  2894. exist in the stat structure.
  2895. (AC_CHECK_FUNCS): Check for all unix system calls used, except for
  2896. the real basic ones like open, read, write, etc.
  2897. * config{.in,ure}: Regenerate.
  2898. * emul_netbsd.c: Add support for missing system calls, and/or
  2899. missing stat fields.
  2900. (MAXPATHLEN): Undefine if including unistd.h, since sys/param.h
  2901. might define it.
  2902. * hw_pal.c (WITH_STDIO): Redefine if O_NDELAY, F_GETFL, or F_SETFL
  2903. are not defined.
  2904. (scan_hw_pal): Do not cause syntax error if O_NDELAY, F_GETFL, or
  2905. F_SETFL not defined.
  2906. Tue May 21 17:24:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2907. * emul_netbsd.c (write_stat): Don't convert st_blocks unless the
  2908. host is netbsd.
  2909. Thu May 16 10:56:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2910. * configure.in (AC_CHECK_HEADERS): Add sys/ioctl.h.
  2911. * config{.in,ure}: Regenerate.
  2912. * emul_netbsd.c: If HAVE_SYS_IOCTL_H is not defined, don't include
  2913. sys/ioctl.h.
  2914. Tue May 7 17:28:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2915. * hw_pal.c (hw_pal_instance_read_callback): Remove unused
  2916. variable.
  2917. * misc.c ({,target_}a2i): Rewrite to not use strtoul.
  2918. * Makefile.in ({spreg,misc}.o): Add dependency on .c file.
  2919. ({i,d}gen): Don't link in liberity. Use BUILD_LIBS instead of
  2920. LIBS.
  2921. Mon May 6 11:31:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2922. * hw_pal.c (hw_pal_instance_read_callback): If using stdio, use
  2923. fgets to read line. If not using stdio, do a simple blocking read
  2924. of len bytes.
  2925. Fri May 3 15:07:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2926. * Makefile.in: Correctly build simulator for build machine != host
  2927. machine.
  2928. Tue Apr 30 18:46:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2929. * configure.in (--enable-hostendian): Rework so the default uses
  2930. the AC_C_BIGENDIAN results. Only run AC_C_BIGENDIAN if not cross
  2931. compiling.
  2932. * configure: Regenerate.
  2933. * sim-endian.h: Add more tests for host endian to support more
  2934. platforms in a cross compilation environment.
  2935. Wed Apr 17 14:38:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  2936. * hw_pal.c ({scan,write}_hw_pal): If WITH_STDIO == DO_USE_STDIO,
  2937. use stdio, instead of unpended read/printf_filtered.
  2938. (hw_pal_instance_write_callback): If WITH_STDIO == DO_USE_STDIO,
  2939. flush stdout after writing the characters.
  2940. * options.c (print_options): Print out WITH_STDIO.
  2941. * Makefile.in (STDIO_CFLAGS): Pass on result of @sim_stdio@
  2942. configuration variable.
  2943. (CONFIG_CFLAGS): Include STDIO_CFLAGS.
  2944. (hw.{c,h}): Allow for source dir != build dir, and for HW_SRC
  2945. files to contain directory pieces.
  2946. * std-config.h (DO{,NT}_USE_STDIO): New flags for whether we
  2947. should use stdio for console input.
  2948. (WITH_STDIO): If not defined, define as DONT_USE_STDIO.
  2949. * configure.in (--enable-sim-stdio): Add new switch to control
  2950. whether stdio is used for console I/O.
  2951. * configure: Regenerate.
  2952. * interrupts.c (external_interrupt): Declare it to be
  2953. INLINE_INTERRUPTS, not INLINE_CPU.
  2954. Mon Apr 15 23:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2955. * events.c (insert_event_entry): Allow events to be scheduled
  2956. *NOW* (at delta time 0). Add assertions to clarify behavour of
  2957. event queue.
  2958. * events.c (update_time_from_event): New function. Calculates the
  2959. number of ticks from the next event. Use this.
  2960. Sun Apr 14 21:39:45 1996 Andrew Cagney <cagney@highland.com.au>
  2961. * emul_netbsd.c (do_break): Return 0 if success (instead of
  2962. adjusted break).
  2963. * device_table.c (vm_ioctl_callback): Don't return adjusted break
  2964. (isn't needed).
  2965. Sun Apr 14 21:32:41 1996 Andrew Cagney <cagney@highland.com.au>
  2966. * device_table.h: Change type of the device ioctl so that it
  2967. returns an int (status).
  2968. * device.h (device_ioctl): Ditto.
  2969. * device.c (device_ioctl): Ditto.
  2970. * device_table.c (stack_ioctl_callback): Return 0 status.
  2971. (vm_ioctl_callback): Ditto
  2972. Sat Apr 13 00:00:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2973. * emul_netbsd.c (do_read): Correctly set the return value.
  2974. (do_getpid): Ditto.
  2975. (do_getuid): Ditto.
  2976. (do_geteuid): Ditto.
  2977. (do_dup): Ditto.
  2978. (do_getegid): Ditto.
  2979. (do_getgid): Ditto.
  2980. (do_sigprocmask): Ditto.
  2981. (do_umask): Ditto.
  2982. (do_dup2): Ditto.
  2983. (do_gettimeofday): Ditto.
  2984. (do_getrusage): Ditto.
  2985. (do_fstat): Ditto.
  2986. (do_stat): Ditto.
  2987. (do_lseek): Ditto.
  2988. (do___sysctl): Ditto.
  2989. Fri Apr 12 20:56:47 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2990. * device_table.c (vm_ioctl_callback): Don't access the processor
  2991. registers directly, instead leave it to the caller to handle this.
  2992. * emul_netbsd.c (do_break): Which calls vm_ioctl_callback to
  2993. perform a break. Pass in the new break value and set the
  2994. registers according to the result.
  2995. * emul_generic.c (emul_write_status): Change so that r3 contains
  2996. either status or errno and failure is indicated by SO.
  2997. Thu Apr 4 23:03:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2998. * emul_bugapi.c (emul_bugapi_create): More strict check of OEA
  2999. address.
  3000. Thu Apr 4 20:58:05 1996 Andrew Cagney <cagney@highland.com.au>
  3001. * interrupts.h (interrupts): New structure contains state of
  3002. pending interrupts.
  3003. * cpu.c (cpu_interrupts): New function. Pending interrupt status
  3004. in the cpu and grant access to it. Add interrupts to cpu
  3005. structure.
  3006. Fri Mar 29 22:09:25 1996 Andrew Cagney <cagney@highland.com.au>
  3007. * device.c (device_tree_add_parsed): Check that the creation of a
  3008. device instance worked before using it.
  3009. * psim.c (psim_halt): Remove cia argument from psim_halt. This
  3010. function does not save the CIA so do not pass it in.
  3011. Fri Mar 29 21:30:56 1996 Andrew Cagney <cagney@highland.com.au>
  3012. * hw_pal.c (hw_pal): Merge the halt and icu and console devices
  3013. found in device_table.c into a single hack pal.
  3014. * device_table.c (halt, icu, console): Delete.
  3015. * Makefile.in (hw_pal.o): New dependency.
  3016. * emul_generic.c (emul_add_tree_hardware): Re-arange device tree
  3017. so that it uses the pal instead of the icu/halt/console devices.
  3018. Wire the pal's interrupt ports up to the cpu nodes.
  3019. Fri Mar 29 20:17:17 1996 Andrew Cagney <cagney@highland.com.au>
  3020. * hw_iobus.c (hw_iobus_attach_address_callback): Move from
  3021. device_table.c to here.
  3022. * Makefile.in (hw_iobus.o): New dependency.
  3023. Fri Mar 29 12:17:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  3024. * emul_bugapi.c (_os_emul_data): Add fields for output, input.
  3025. (emul_bugapi_create): Create input, output from /chosen/stdin and
  3026. /chosen/stdout.
  3027. (emul_bugapi_do_{read,write}): Switch to use device_instance
  3028. interface.
  3029. (emul_bugapi_instruction_call): Change calls to
  3030. emul_bugapi_do_{read,write} to pass device instance argument.
  3031. Tue Mar 26 14:57:58 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  3032. * igen.c (idecode_switch_end): Fix 2/26 change so that an extra
  3033. default is not written out if a default was already written.
  3034. * psim.c (psim_{read,write}_register): Use sizeof unsigned_8 to
  3035. size cooked_buf, not sizeof natural_word, since floating point
  3036. registers are 8 bytes.
  3037. Mon Mar 25 22:07:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  3038. * configure: Regenerate with autoconf 2.9.
  3039. Thu Mar 21 00:14:26 1996 Andrew Cagney <cagney@highland.com.au>
  3040. * device_table.h: Always include string headers.
  3041. Thu Mar 21 00:06:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  3042. * main.c (error): Be careful to not try to print out statistics
  3043. when the simulation was never created.
  3044. Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
  3045. * basics.h: Move the event queue's definition to here so that it
  3046. can be refered to globally with out importing all of events.h.
  3047. * psim.h, psim.c (psim_event_queue): New function. Grant access
  3048. to the simulation event queue. Will make this the single point of
  3049. access (there is after all only one event queue in the
  3050. simulation).
  3051. * cpu.c (cpu_create): Use psim_event_queue to obtain the event
  3052. queue instead of it being passed in. No longer allow access to
  3053. the cpu's copy of the event queue.
  3054. Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
  3055. * events.h, events.c (event_handler): Remove event_queue from
  3056. arguments passed to an event handler. That argument is redundant
  3057. - the `data' should refer to a data structure that contains the
  3058. event queue if queing is needed.
  3059. * cpu.c (cpu_decrement_event): adjust
  3060. * events.c (event_queue_process): adjust
  3061. Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
  3062. * device.h, device.c (device_system): New, returns a handle for
  3063. the system given the device.
  3064. * device.c (device_address_init): Store a pointer back to the
  3065. system in each devices node.
  3066. * device_table.h: Don't pass `system' into each device when it is
  3067. being initialized, this is now available using device_system(me).
  3068. * device.c (device_address_init, device_data_init): Adjust.
  3069. * hw_cpu.c, hw_nvram.c, hw_memory.c, hw_eeprom.c, device_table.c:
  3070. Adjust.
  3071. Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
  3072. * interrupts.c (decrementer_interrupt, external_interrupt):
  3073. Remember that an interrupt wasn't delivered so that it can be
  3074. tried again later.
  3075. * interrupts.c (check_masked_interrupt): New function. (re)
  3076. checks for the posibility that a recent change to the MSR may have
  3077. made it possible to deliver an interrupt that was previously
  3078. masked be the EE bit.
  3079. * ppc-instructions (mtmsr, mfmsr, rfi): Check for posibility of
  3080. a pending interrupt being delivered using check_masked_interrupt().
  3081. * cpu.c (cpu_decrement_event): Just call decrementer_interrupt()
  3082. leaving it to that module to handle both interrupt synchronization
  3083. and masking.
  3084. * cpu.c (struct _cpu): remove variables that were going to record
  3085. pending decrementer and external interrupts.
  3086. Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
  3087. * hw_cpu.c, hw_cpu.h: New files. Implement a device that sits
  3088. between the interrupt controller and the simulators internal
  3089. processor model. Maps device interrupts onto the processor
  3090. interrupt function calls.
  3091. Mon Mar 4 06:06:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  3092. * hw_nvram.c: NVRAM device that includes a real-time clock that is
  3093. updated each second.
  3094. Mon Mar 4 04:18:50 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  3095. * device.h (attach_type): Remove attach_default type address
  3096. spaces. Will replace with levels of callback memory.
  3097. * corefile.h, corefile.c (new_core_mapping), corefile.c
  3098. (core_map_attach): Replace default attach with a layerd callback
  3099. approach.
  3100. Sun Mar 3 03:58:46 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  3101. * device.c (split_property_specifier): ensure that only a single
  3102. property is found.
  3103. (split_value): New function, parses the value part of a device
  3104. spec.
  3105. * device.c (device_tree_add_parsed): Use the interrupt conversion
  3106. functions to determine the interrupt port numbers.
  3107. * device_table.h: Add table that maps between an interrupts
  3108. symbolic name and its port number.
  3109. * device.h, device.c (device_interrupt_decode,
  3110. device_interrupt_encode): new functions use the recently added
  3111. interrupt port name/number tables to perform conversion.
  3112. Sun Mar 3 03:23:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  3113. * device.h, device.c (device_set_array_property,
  3114. device_set_boolean_property, device_set_ihandle_property,
  3115. device_set_integer_property, device_set_string_property): New
  3116. functions - allow the value of a given property to be changed.
  3117. * device.h, device.c: Re-order declaration and definition of
  3118. property functions.
  3119. Sun Mar 3 03:10:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  3120. * device.c (device_tree_print_device, device_tree_add_parsed):
  3121. Remove references to phandle properties.
  3122. Wed Feb 28 00:43:07 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
  3123. * Makefile.in (corefile.o): missing dependency on device_table.h
  3124. etc.
  3125. Tue Feb 27 23:59:35 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
  3126. * device_table.h: Revamp device init callbacks so that they are a
  3127. sub structure.
  3128. * device.c (device_init_data, device_init_address): If an init
  3129. callback is NULL assume it should do nothing.
  3130. * device_table.c (ignore_device_init, unimp_device_init): delete
  3131. as redundant.
  3132. * device_table.c, hw_memory.c: adjust.
  3133. * (io): ditto.
  3134. * (dma): ditto.
  3135. * (device_instance): ditto.
  3136. * (ioctl): ditto.
  3137. * (address nee config_address): ditto.
  3138. * (interrupt): ditto.
  3139. Mon Feb 26 21:11:20 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
  3140. * igen.c (idecode_switch_end): Output a default entry when the
  3141. switch statement is perfect. Firstly stops GCC complaining about
  3142. an incomplete switch and secondly it will be eliminated by a good
  3143. compiler any way.
  3144. Mon Feb 26 22:47:15 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
  3145. * Makefile.in (hw.h, hw.c): New targets. Create from the list of
  3146. hw_*.c files. hw.h declares a device descriptor table for each hw
  3147. device while hw.c lists those tables in a form suitable for the
  3148. construction of a top leveltable in device_table.c.
  3149. * Makefile.in (device_table.o): now depends on hw.c a generated
  3150. table of hw.
  3151. * device_table.c (device_table): Re-arange the table of devices so
  3152. that two levels are possible. Make use of hw.c.
  3153. * device_table.h: ditto.
  3154. * device.c (device_template_create_device): Handle new two level
  3155. device lookup table.
  3156. * device.c (device_usage): ditto.
  3157. Mon Feb 26 22:24:00 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
  3158. * device_table.c: Delete the memory device (moved to hw_memory.c).
  3159. * hw_memory.c: New file. Just an OpenBoot memory device.
  3160. Wed Jan 17 21:47:34 1996 Andrew Cagney <cagney@highland.com.au>
  3161. * device.c (device_init_address): New. Split initialization into
  3162. two stages, address and address spaces
  3163. * device.c (device_init_data): New. ... and data or other work.
  3164. With out this, devices try to modify memory before it as been
  3165. attached.
  3166. * device.c (device_tree_init): Update to perform staged
  3167. initialization.
  3168. * device.c (device_init): Delete.
  3169. Wed Jan 17 21:43:09 1996 Andrew Cagney <cagney@highland.com.au>
  3170. * device_table.c (data_*): Rewrite to make heaver use of property
  3171. nodes. Allow initialization by different data types.
  3172. * device_table.c (htab_* pte_*): Rewrite to use properties.
  3173. * emul_chirp.c (emul_chirp_create): Use
  3174. * emul_bugapi.c (emul_bugapi_create): Ditto
  3175. * emul_netbsd.c (emul_netbsd_create): Ditto
  3176. Wed Jan 17 21:24:50 1996 Andrew Cagney <cagney@highland.com.au>
  3177. * emul_generic.c (emul_add_tree_options): Annotate existing tree
  3178. with options that haven't yet been specified.
  3179. * emul_generic.c (emul_add_tree_hardware): Annotate existing tree
  3180. with demo devices and properties.
  3181. * emul_chirp.c (emul_chirp_create): Update to use new
  3182. device_tree_add_parsed call and additional information now
  3183. included in the device tree. Use emul_add_tree* functions to add
  3184. any missing details.
  3185. * emul_bugapi.c (emul_bugapi_create): Ditto
  3186. * emul_netbsd.c (emul_netbsd_create): Ditto
  3187. Wed Jan 17 21:18:27 1996 Andrew Cagney <cagney@highland.com.au>
  3188. * device.c (device_instance_create): New. Create/delete and
  3189. operate on instances of a device.
  3190. * device.c (device_instance_delete): Ditto
  3191. * device.c (device_instance_read): Ditto
  3192. * device.c (device_instance_write): Ditto
  3193. * device.c (device_instance_seek): Ditto
  3194. * device.c (device_instance_data): Ditto
  3195. * device.c (device_instance_name): Ditto
  3196. * device.c (device_instance_path): Ditto
  3197. * emul_chirp.c (chirp_emul_open): Implement using device_instance.
  3198. * emul_chirp.c (chirp_emul_close): Ditto
  3199. * emul_chirp.c (chirp_emul_read): Ditto
  3200. * emul_chirp.c (chirp_emul_write): Ditto
  3201. * emul_chirp.c (chirp_emul_seek): Ditto
  3202. * emul_chirp.c (chirp_read_t2h_args): Read arguments from device.
  3203. Being careful to convert all from target to host byte order.
  3204. * emul_chirp.c (chirp_write_h2t_args): Converse.
  3205. Wed Jan 17 20:07:15 1996 Andrew Cagney <cagney@highland.com.au>
  3206. * device.c (device_tree_add_parsed): New. Rewrite code to add
  3207. devices to the device tree so that a single printf style function
  3208. is used.
  3209. * device.c (device_tree_add_*): Delete. Replaced by above.
  3210. * device.c (split_device_specifier): Functions to manipulate a
  3211. device specifier (path) breaking it into its components
  3212. * device.c (split_property_specifier): Ditto
  3213. * device.c (split_device_name): Ditto
  3214. * device.c (split_find_device): Ditto
  3215. * device.c (scan_*): Delete
  3216. * device.c (device_tree_find_device): Rewrite to use above.
  3217. * device.c (device_add_property): Ditto
  3218. Wed Jan 17 19:51:56 1996 Andrew Cagney <cagney@highland.com.au>
  3219. * psim.c(psim_options): Parse the psim options, installing their
  3220. value in the device tree. Options are now first entered into a
  3221. device tree and then extracted out again when needed. This allows
  3222. greater flexability in configuration.
  3223. * psim.c (psim_tree): Returns a basic device tree ready for
  3224. parsing by psim_options.
  3225. * psim.c (psim_usage): New. Give usage to varing levels of detail
  3226. according to the verbosity. In turn output device and trace
  3227. usage.
  3228. * main.c (main): Update to use new system
  3229. * sim_calls.c (sim_open, sim_do_command): Ditto
  3230. * psim.c (psim_options): Add `r' option - ram size.
  3231. * psim.c (psim_options): Add `o' option - openboot tree entry.
  3232. * psim.c (psim_options): Add `h'/`H' options - more help.
  3233. * debug.c (trace_usage): Add more detailed help.
  3234. * device.c (device_usage): New. Output help including a list of
  3235. the devices currently available in the device table.
  3236. * device_table.c: Add usage operator to each device.
  3237. * corefile.c (core_create, core_device_create): Adjust so that the
  3238. core device is created earlier for psim_tree(). Core can later be
  3239. created from it.
  3240. * psim.c (psim_create): Update to handle above way of creating
  3241. things. Extract all information from the device tree.
  3242. * device_tree.c (trace_*): New device node, its properties are
  3243. used to set the value of the trace options. Init this device (in
  3244. psim_options) when ever the options are updated.
  3245. Wed Jan 17 19:46:07 1996 Andrew Cagney <cagney@highland.com.au>
  3246. * debug.h: Add trace_print_info, trace_print_device_tree and
  3247. trace_dump_device_tree. The first is a replacement for the
  3248. variable `print_info' found in main.c and sim_calls.c. The latter
  3249. two enable the dumping of the entire device tree.
  3250. * debug.c: Add to trace_description table.
  3251. * main.c (main): Use above trace instead of local variable
  3252. * sim_calls.c (sim_close): Ditto
  3253. * device.c (device_tree_print_device): New. Prints the device
  3254. tree in a format that is consistent with what can be parsed by the
  3255. device tree load from file code.
  3256. * psim.c (psim_create): Dump device tree if enabled. If nump
  3257. selected, exit psim immediately.
  3258. Wed Jan 17 19:36:52 1996 Andrew Cagney <cagney@highland.com.au>
  3259. * corefile-n.h (core_map_read_N): When mapping from an address to
  3260. a device, do not subtract the devices base. The device its self
  3261. can do this. Brings the behavour into line with OpenBoot.
  3262. * corefile-n.h (core_map_write_N): Ditto
  3263. * corefile.c (core_map_read_buffer): Ditto
  3264. * corefile.c (core_map_write_buffer): Ditto
  3265. * device_table.c (console_io_read_buffer_callback): Adjust to
  3266. handle biased address.
  3267. * device_table.c (console_io_write_buffer_callback): Ditto
  3268. Wed Jan 17 18:36:09 1996 Andrew Cagney <cagney@highland.com.au>
  3269. * device.c (attach_device_interrupt_edge): New. Interrupt model
  3270. did not allow interrupts to be wired up as a general net (edges).
  3271. Re-implement so that interrupt events can be passed to multiple
  3272. controllers and interrupt controllers can further propogate
  3273. interrupt events.
  3274. * device.c (attach_device_interrupt_edge) : New, Ditto
  3275. * device.c (detach_device_interrupt_edge) : New, Ditto
  3276. * device.c (clean_device_interrupt_edges) : New, Ditto
  3277. * device.c (device_interrupt_event) : New, Ditto
  3278. * device.c (device_interrupt_attach) : New, Ditto
  3279. * device.c (device_interrupt_detach) : New, Ditto
  3280. * device.c (device_child_interrupt_attach) : New, Ditto
  3281. * device.c (device_child_interrupt_detach) : New, Ditto
  3282. * device.c (device_attach_interrupt) : Delete old
  3283. * device.c (device_detach_interrupt) : Delete old
  3284. * device.c (device_interrupt) : Delete old
  3285. * device.c (device_interrupt_ack) : Delete old
  3286. * device_table.c (unimp_*) : Update to match
  3287. * device_table.c (icu_io_write_buffer_callback) : Update to use
  3288. interface.
  3289. * device_table.c (icu_interrupt_event_callback) : Ditto
  3290. Wed Jan 17 18:18:40 1996 Andrew Cagney <cagney@highland.com.au>
  3291. * device.c (external_to_device) : New function that provides a
  3292. standard mapping between a devices internal representation (a
  3293. pointer) and its external (or what is passed to a client)
  3294. representation (a phandle). Implement using the cap object
  3295. attached to the root node.
  3296. * device.c (device_to_external) : Ditto
  3297. * device.c (external_to_device_instance) : Ditto but for ihandle
  3298. and device instance.
  3299. * device.c (device_instance_to_external) : Ditto
  3300. * Makefile (device.o): Add dependency on cap.
  3301. * emul_chirp.c (struct _emul_chirp_data) : Elimate use of cap. Code
  3302. needing to translate between internal and external representations
  3303. changed to use the external_to_device et.al. device operations.
  3304. * emul_chirp.c (chirp_emul_*) : Ditto
  3305. * Makefile (emul_chirp.o): Remove dependency on cap
  3306. Sat Jan 6 10:13:26 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
  3307. * emul_chirp.c (map_over_chirp_note): Tighten up (and fix) checks
  3308. on OpenBoot note section.
  3309. Fri Jan 5 20:28:53 1996 Andrew Cagney <cagney@hignland.com.au>
  3310. * emul_generic.c (emul_write_buffer): Use vm faulting byte
  3311. read/write calls for buffer transfers. This will cause a fault to
  3312. occure if the transfer fails. CHRP catches the fault while the
  3313. others suffer the consequences.
  3314. (emul_read_buffer): Ditto.
  3315. (emul_write_word): Ditto.
  3316. (emul_read_word): Ditto.
  3317. (emul_read_string): Ditto.
  3318. Fri Jan 5 18:55:34 1996 Andrew Cagney <cagney@highland.com.au>
  3319. * emul_chirp.c (emul_chirp_create, emul_chirp_instruction_call),
  3320. emul_generic (emul_blr_instruction): Use a real blr instruction to
  3321. return from a client service call.
  3322. * emul_chirp.c (services): Add all OpenBoot services to table.
  3323. * emul_generic.h, emul_bugapi.c (emul_bugapi_create), emul_chirp.c
  3324. (emul_chirp_create) : Use names instead of numbers for
  3325. instructions being stored in memory.
  3326. Fri Jan 5 18:52:28 1996 Andrew Cagney <cagney@highland.com.au>
  3327. * Makefile.in (maintainer-clean): Remove .log, core and *.core
  3328. (From NetBSD) files.
  3329. Wed May 29 22:57:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  3330. * ChangeLog.00, ChangeLog: ChangeLog from gdb-4.16 becomes
  3331. ChangeLog.00
  3332. Wed May 29 22:57:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  3333. * ChangeLog.00, ChangeLog: ChangeLog from gdb-4.16 becomes
  3334. ChangeLog.00
  3335. Thu Apr 4 15:17:22 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  3336. * INSTALL: Fix some long lines and remove x86 specific options in
  3337. the examples.
  3338. Sun Mar 31 15:47:33 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  3339. * INSTALL: Update to reflect gdb-4.16.
  3340. * RUN: Update to reflect gdb-4.16. Review notes on building a BSD
  3341. runtime environment.
  3342. * README: Point out copyright status of simulator in introduction.
  3343. Thu Mar 7 19:53:49 1996 Michael Meissner <meissner@cygnus.com>
  3344. * emul_netbsd.c: Only include sys/mount.h if HAVE_SYS_MOUNT_H is
  3345. defined.
  3346. * configure.in: Test for sys/mount.h.
  3347. * configure,config.in: Regenerate.
  3348. Thu Feb 22 22:48:57 1996 Andrew Cagney <cagney@highland.com.au>
  3349. * README, RUN, INSTALL: Update to reflect announcement
  3350. * psim: PSIM 1.0.1 released
  3351. Thu Feb 22 14:01:56 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  3352. * emul_bugapi.c (emul_bugapi_do_read): New function to handle
  3353. reads.
  3354. (emul_bugapi_instruction_call): Add support for .INCHR/.INLN
  3355. system calls.
  3356. * emul_bugapi.c (emul_bugapi_do_write): Call flush_stdoutput.
  3357. * emul_netbsd.c (do_write): Call flush_stdoutput.
  3358. * main.c (flush_stdoutput): Do fflush (stdout).
  3359. * sim_calls.c (flush_stdoutput): Do gdb_flush (gdb_stdout);
  3360. * sim_callbacks.h (flush_stdoutput): Declare.
  3361. Wed Feb 21 10:39:35 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  3362. * emul_bugapi.c (bug_mapping): New structure to map bug system
  3363. call numbers to a string.
  3364. (toplevel): Add remaining bugapi system calls.
  3365. (emul_bugapi_instruction_name): Map bugapi system call number to a
  3366. string.
  3367. (emul_bugapi_do_write): Common code to process write system calls.
  3368. (emul_bugapi_instruction_call): If os-emul tracing is on, trace
  3369. the system call. Use the name to print unknown system call.
  3370. Correct implementation of _OUTLN. Add support for _OUTSTR and
  3371. _PCRLR system calls.
  3372. Wed Feb 21 17:07:27 1996 Andrew Cagney <cagney@highland.com.au>
  3373. * NOTES: New file. Ramblings on why things were done they way
  3374. they were.
  3375. * psim.c (psim_options): Didn't enter the model value into the
  3376. device tree as a string.
  3377. * cpu.c (cpu_synchronize_context): Wrong test for conditional
  3378. flush of cache.
  3379. * emul_generic.c (emul_add_tree_hardware): reg value didn't match
  3380. bus address.
  3381. * ppc-opcode-flat: new file. Generate an instruction decode
  3382. function like ppc-opcode-complex but use switch statements.
  3383. * INSTALL: document new opcode file, add example configurations.
  3384. Tue Feb 20 18:42:31 1996 Andrew Cagney <cagney@highland.com.au>
  3385. * main.c (main): rename psim instance (system) to simulation and
  3386. make global.
  3387. * main.c (error): print out performance even when an error occures.
  3388. * emul_bugapi.c (emul_bugapi_create): Fix argument passing.
  3389. * emul_generic.c (emul_add_tree_hardware): Move hardware devices
  3390. to 0x80000000 from 0x400000.
  3391. Mon Feb 19 22:54:40 1996 Andrew Cagney <cagney@highland.com.au>
  3392. * ppc-instructions (TLB Invalidate Entry, TLB Invalidate ALL):
  3393. Implement by passing on request to all processors.
  3394. * ppc-instructions (TLB Synchronize): Implement as empty, processor
  3395. tlb's are always in sync.
  3396. * cpu.c (cpu_page_tlb_invalidate_all): New function. Pass on TLB
  3397. invalidate request to processors VM sub-system.
  3398. * cpu.c (cpu_page_tlb_invalidate_entry): Ditto.
  3399. * vm.c (vm_page_tlb_invalidate_all): New function. Mark all page
  3400. TLB entries as invalid.
  3401. * vm.c (vm_page_tlb_invalidate_entry): New function. Ditt but only
  3402. invalidate one TLB entry.
  3403. * psim.c (psim_init): Invalidate TLB's before (re)starting.
  3404. Mon Feb 19 21:25:56 1996 Andrew Cagney <cagney@highland.com.au>
  3405. * emul_generic.c (emul_add_tree_options): Add argument
  3406. oea_interrupt_prefix (0 or 1) that specifies the prefix MSR[IP]
  3407. and hence the location of the interrupt vectors. Add this to the
  3408. device tree.
  3409. * emul_chirp.c (emul_chirp_create): Allow configuration of
  3410. floating-point and interrupt prefix (default 0) using the above.
  3411. * emul_netbsd.c (emul_netbsd_create): Pass dummy arg for
  3412. interrupt-prefix.
  3413. * emul_bugapi.c (emul_bugapi_create): Allow configuration of
  3414. interrupt prefix (default 1) and configure interrupt table traps
  3415. accordingly.
  3416. * emul_generic.c (emul_add_tree_hardware): Include a small eeprom
  3417. in the list of devices.
  3418. * device_table.c: For moment fake eeprom device by a memory
  3419. device. In future will need a proper eeprom device.
  3420. Tue Feb 20 17:01:26 1996 J.T. Conklin <jtc@rtl.cygnus.com>
  3421. * config.in: Regenerated.
  3422. Fri Feb 16 10:42:27 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  3423. * psim.c: Include options.h so print_options is declared.
  3424. Thu Feb 15 18:10:13 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  3425. * emul_netbsd.c (toplevel): Do not include sys/resource.h if the
  3426. system doesn't have it, and turn off getrusage processing.
  3427. (write_rusage): #ifdef out if we don't have getrusage.
  3428. (do_getrusage): Define as 0 if we don't have getrusage.
  3429. Wed Feb 14 17:38:12 1996 J. T. Conklin <jtc@cygnus.com>
  3430. * configure.in (AC_HEADER_DIRENT): Add, so that we can figure out
  3431. where the directory functions are declared.
  3432. * configure: Regenerate
  3433. * emul_netbsd.c: Use the macros defined by configure to find the
  3434. appropriate directory functions.
  3435. Thu Feb 8 00:53:13 1996 Andrew Cagney <cagney@highland.com.au>
  3436. * configure.in (xor_endian): Trace setting of xor-endian flag.
  3437. Wed Feb 7 18:20:56 1996 Andrew Cagney <cagney@highland.com.au>
  3438. * psim.c (psim_usage): Extend documentation.
  3439. * ppc-instructions (model-print): fix typo.
  3440. Sun Feb 4 23:58:02 1996 Andrew Cagney <cagney@highland.com.au>
  3441. * configure.in (with-smp): Default configuration allow up to
  3442. five processors (but enable only one).
  3443. * emul_bugapi.c (emul_bugapi_create): If floating-point is
  3444. allowed, enable the floating point instruction set in the
  3445. msr.
  3446. Tue Jan 30 22:52:32 1996 Andrew Cagney <cagney@highland.com.au>
  3447. * emul_chirp.c (chirp_emul_seek, chirp_emul_read,
  3448. chirp_emul_write): Tolerate invalid ihandles.
  3449. * device.c (device_instance_create, device_instance_delete):
  3450. init/delete instance name
  3451. * emul_chirp.c (emul_chirp_instruction_call): Read the nr args and
  3452. returns when determining the service.
  3453. * emul_chirp.c (chirp_read_t2h_args): Allow variable number of
  3454. args for the method "call-method".
  3455. * emul_chirp.c (chirp_emul_getprop): Tolerate a n_returns of zero
  3456. - should be one. Some OpenBoot code doesn't pass correct arg.
  3457. * emul_chirp.c (chirp_emul_getprop): Trace more property types.
  3458. Tue Jan 30 19:12:29 1996 Andrew Cagney <cagney@highland.com.au>
  3459. * RUN: New file. Describe how to run PSIM
  3460. * INSTALL: New file. Describe how to install PSIM
  3461. * README: New file. Overview PSIM.
  3462. * BUGS: New file. Briefly discuss bugs and limitations
  3463. Wed Jan 24 20:28:08 1996 Andrew Cagney <cagney@highland.com.au>
  3464. * emul_bugapi.c (OEA_START_ADDRESS): Put it back to 0x100000,
  3465. wasn't correctly using GLD.
  3466. Mon Jan 22 22:44:13 1996 Andrew Cagney <cagney@highland.com.au>
  3467. * emul_generic.c (emul_add_tree_options): Make default number of
  3468. active processors 1 (even when SMP enabled).
  3469. Mon Jan 22 22:37:34 1996 Andrew Cagney <cagney@highland.com.au>
  3470. * device_table.c (icu_io_read_buffer_callback): Add extra register
  3471. (at addr + 4) that returns number of processors.
  3472. * emul_generic.c (emul_add_tree_hardware): Update device node to
  3473. match.
  3474. Mon Jan 22 22:00:42 1996 Andrew Cagney <cagney@highland.com.au>
  3475. * emul_bugapi.c (OEA_START_ADDRESS): Change to 0x4000 so that it
  3476. matches gas-960116/ld.
  3477. Fri Jan 19 00:32:27 1996 Andrew Cagney <cagney@highland.com.au>
  3478. * psim-960119 released - psim-1.0b01.
  3479. Fri Jan 19 00:32:27 1996 Andrew Cagney - aka Noid <cagney@highland.au.com>
  3480. * psim.c (psim_create): Re-order so that all options are set
  3481. before the CPU's are created. Was breaking mon_create();
  3482. * psim.c (psim_create): Tidy up conflicting configuration errors.
  3483. * debug.c: Add missing print-info entry to trace table.
  3484. * os_emul.c (os_emul_create): Fix `-e' option. Was looking under
  3485. wrong name.
  3486. * psim.c (psim_options): Fix `-r' option. Was entering under wrong
  3487. name.
  3488. Thu Jan 18 20:33:48 1996 Andrew Cagney <cagney@highland.com.au>
  3489. * vm.c (om_unpack_bats): Fix checking of bat bits.
  3490. * emul_chirp.c (emul_chirp_create): Store address of OB in memory
  3491. in the os_emul_data structure.
  3492. * emul_bugapi.c (emul_bugapi_create): Store the address of the
  3493. bugapi code (in main memory) in the os_emul_data structure.
  3494. Thu Jan 18 01:14:55 1996 Andrew Cagney <cagney@highland.com.au>
  3495. * vm.c (om_translate_effective_to_real): Fix trace output.
  3496. Wed Jan 17 22:21:55 1996 Andrew Cagney <cagney@highland.com.au>
  3497. * device_table.c (generic_device_init_address): Create memory from
  3498. information obtained from `reg' property.
  3499. * device_table.c (vm_init_address_callback): Use information
  3500. obtained from properties.
  3501. * emul_netbsd.c (emul_netbsd_create): Update to create device and
  3502. property entries to match
  3503. Tue Jan 16 09:50:53 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  3504. * idecode_expression.h (ALU_END): Add ITRACE of the result.
  3505. * ppc-instructions (Equivalent): Enable this instruction.
  3506. (Add to Minus One Extended): Ditto.
  3507. (Subtract from Minus One Extended): Ditto.
  3508. (Add/And/Or/Xor Immediate): Add alu trace of result.
  3509. (Add/And/Or/Xor Shifted Immediate): Ditto.
  3510. (And/Or/Equivalent/Nand/Nor): Ditto.
  3511. (And/Or with Complement): Ditto.
  3512. (Extend Sign Byte/Half Word): Ditto.
  3513. (Count Leading Zeros): Ditto.
  3514. (Shift Right Algerbraic Word): Ditto.
  3515. (Shift Right Algerbraic Word Immediate): Ditto.
  3516. Tue Jan 9 15:10:27 1996 Andrew Cagney <cagney@highland.com.au>
  3517. * emul_bugapi.c (emul_bugapi_instruction_call) : Make format type
  3518. correct.
  3519. * emul_chirp.c (map_over_chirp_note) : Ditto
  3520. * emul_chirp.c (chirp_emul_test) : Ditto
  3521. * device_table.c (register_init): Ditto
  3522. Tue Jan 9 14:16:26 1996 Andrew Cagney <cagney@highland.com.au>
  3523. * configure.in: Make disable-sim-switch default. Switch only
  3524. useful if using --enable-sim-opcode=ppc-opcode-stupid and then
  3525. only marginally so.
  3526. Mon Jan 8 12:17:22 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  3527. * device_table.c (register_init): Make format type correct.
  3528. Wed Jan 3 19:21:46 1996 Andrew Cagney <cagney@highland.com.au>
  3529. * emul_bugapi.c (emul_bugapi_create): Add nodes to init the
  3530. system-call trap to the emul instruction call instruction (Along
  3531. with an rfi and infinate loop).
  3532. * emul_bugapi.c (emul_bugapi_instruction_call): Expand to include
  3533. a few real PPC bug calls. Test with simple hello world.
  3534. Tue Jan 2 20:51:19 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
  3535. * device.h, device.c (device_child, device_sibling): New
  3536. functions. Return corresponding device value.
  3537. * emul_chirp.c (chirp_emul_child, chirp_emul_peer,
  3538. chirp_emul_parent): New functions - emulate corresponding OpenBoot
  3539. interfaces.
  3540. * device_table.c (register_init): Extend properties attached to
  3541. register init node to allow a specific processor's register to be
  3542. specified.
  3543. * emul_chirp.c (emul_chirp_create): Init SMP correctly - the
  3544. initial PC for all processors is an infinate loop but then, for
  3545. processor zero, is quickly changed to be the correct code starting
  3546. address.
  3547. * emul_chirp.c (emul_chirp_create): Add fake bootpath
  3548. et.al. properties to tree.
  3549. * emul_chirp.c (chirp_emul_getproplen): New function. Emulate the
  3550. getproplen OpenBoot call.
  3551. * emul_chirp.c (emul_chirp_instruction_call): Document other
  3552. possible chirp emulation internal states.
  3553. * emul_chirp.c (emul_chirp_instruction_call): Trace failed lookups
  3554. as well as successful ones.
  3555. * emul_chirp.c (emul_chirp_open): New function - handle open
  3556. client call.
  3557. * Makefile.in (maintainer-clean): Proper rule that eliminates more
  3558. junk.
  3559. Tue Dec 19 13:00:11 1995 Andrew Cagney <cagney@highland.com.au>
  3560. * emul_chirp.c (chirp_emul_exit): Full out call.
  3561. * device_table.c (htab_map_page): Wasn't handling byte swap when
  3562. creating entries in the hash table.
  3563. * device.c (device_tree_find_node): Allow primative wild-card match
  3564. of device names with the path.
  3565. FIXME: As mentioned earlier, the device stuff needs work to bring
  3566. it into line with OpenBoot. Part of this work is rewriting the
  3567. find_node function so that it behaves as specified in p1275.
  3568. Mon Dec 18 19:58:56 1995 Andrew Cagney <cagney@highland.com.au>
  3569. * emul_chrp.c (chirp_emul_write, chirp_emul_finddevice): add
  3570. better tracing.
  3571. * emul_chrp.c: Change return type of emul functions to int. Emul
  3572. functions either return -1 or zero so unsigned was a bit
  3573. dangerous.
  3574. * inline.h (*), igen.c, dgen.c, *: Update INLINE macros so that
  3575. they are paramaterised with the type of the function. Gets around
  3576. the problem of `static' needing to come first with `attribute'
  3577. comming last. Format declarations and definitions so that emacs
  3578. doesn't get confused.
  3579. Fri Dec 15 17:06:44 1995 Andrew Cagney <cagney@highland.com.au>
  3580. * std-config.h (PSIM_INLINE): Add missing inline configuration
  3581. control for the main loop.
  3582. * mon.c (mon_print_info): If monitoring disabled still print out
  3583. the number seconds used.
  3584. * psim.c (run_until_stop): Don't monitor the cache misses when
  3585. monitoring is disabled.
  3586. * configure.in (sim_mon, sim_monitor): Correct typo - sim_mon ->
  3587. sim_monitor for shell variable (or should that have been the other
  3588. way around?).
  3589. * vm.c (vm_synchronize_context): Fix wrong test for unsuported
  3590. change in endian-mode.
  3591. * std-config.h (WITH_REGPARM), inline.h (IDECODE_INLINE,
  3592. SEMANTICS_INLINE): Add -DWITH_REGPARM=<n> option. Enables the
  3593. __attribute__((__regparm(WITH_REGPARM))) for some functions.
  3594. configure with --enable-sim-cflags="-DWITH_REGPARAM=3" (say).
  3595. Unfortunatly it tickles a bug (gcc?) and can't be used.
  3596. Mon Dec 18 13:36:06 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  3597. * device.c (device_tree_add_device): Make trace fprintf arguments
  3598. type correct.
  3599. * device_table.c (htab_decode_hash_table): Ditto.
  3600. (htab_map_binary): Ditto.
  3601. (htab_init_callback): Ditto.
  3602. * vm.c (om_virtual_to_real): Ditto.
  3603. Sat Dec 16 09:54:18 1995 Michael Meissner <meissner@wogglebug.tiac.net>
  3604. * emul_netbsd.c (emul_netbsd_create): Deal with new BFD that
  3605. changed how big/little endian support is recorded, while remaining
  3606. compatible with the old BFD with #ifdefs.
  3607. * emul_chirp.c (emul_chirp_create): Ditto.
  3608. * emul_bugapi.c (emul_bugapi_create): Ditto.
  3609. Fri Dec 15 15:55:56 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  3610. * std-config.h (MODEL_INLINE): Turn off INLINE_MODULE by default.
  3611. * corefile.h: Delete declarations for unknown functions.
  3612. * device.h: Ditto.
  3613. * interrupts.h: Ditto.
  3614. * interrupts.c: Ditto.
  3615. Thu Dec 14 18:49:34 1995 Andrew Cagney <cagney@highland.com.au>
  3616. * lf.c (lf_print_function_type): New function. Munges a function
  3617. type so that the prefix (eg INLINE...) is inserted after the type
  3618. but before any `*'.
  3619. * igen.c: Change to output functions using this.
  3620. Wed Dec 13 23:47:00 1995 Andrew Cagney <cagney@highland.com.au>
  3621. FIXME: Emul CHIRP does not correctly implement the find device
  3622. function.
  3623. FIXME: Emul CHIRP and device do not implement device instance
  3624. operations.
  3625. Wed Dec 13 23:47:00 1995 Andrew Cagney <cagney@highland.com.au>
  3626. * options.c (options_inline): Function to output meaningful
  3627. description of the INLINE options.
  3628. * configure.in (inline): Replace inline magic numbers with macro
  3629. names. Map 1->LOCALS_INLINE and 2->ALL_INLINE.
  3630. * inline.h, inline.c: update to use inline method.
  3631. * std-config.h (CPU_INLINE), cpu.h, inline.h, inline.c: make cpu.h
  3632. inline always.
  3633. * std-config.h (EVENTS_INLINE): Inline events in psim.
  3634. Wed Dec 13 22:01:21 1995 Andrew Cagney <cagney@highland.com.au>
  3635. * device_table.c (htab_sum_binary): DMA binaries to correct byte
  3636. within a page.
  3637. Tue Dec 12 22:51:18 1995 Andrew Cagney <cagney@highland.com.au>
  3638. * psim.c (psim_merge_device_file): Change `=' to `==', was this an
  3639. error?
  3640. Tue Dec 5 11:56:14 1995 Andrew Cagney <cagney@highland.com.au>
  3641. * ppc-instructions (ppc_nr_mtcrf_crs, ppc_branch_conditional_name,
  3642. ppc_function_unit_name): Simplify by declaring these arrays as
  3643. pure and simple static (instead of STATIC_MODEL).
  3644. Tue Dec 5 00:45:34 1995 Andrew Cagney <cagney@highland.com.au>
  3645. * sim_calls.c (sim_create, sim_load), main.c (main), psim.c: Pass
  3646. an options device into psim_create() so that options can be merged
  3647. into the tree.
  3648. * device.c (*add*): Change semantics so the add functions only add
  3649. when the new device (or property) doesn't already exist. This
  3650. allows merging of options and data.
  3651. Mon Dec 4 17:12:13 1995 Andrew Cagney <cagney@highland.com.au>
  3652. * Makefile.in (BASICS_H): Didn't include basics.h in the list of
  3653. header files to depend on.
  3654. Mon Dec 4 17:12:13 1995 Andrew Cagney <cagney@highland.com.au>
  3655. * std-config.h: (*_MODULE): Extend the <module>_inline macro's so
  3656. that they also allow control over static functions. Rewrite
  3657. document to reflect this.
  3658. * std-config.h: (INLINE): Simplify definition, the above and
  3659. earlier changes to igen.h eliminate the need to be defensive about
  3660. enabling the inline of static functions.
  3661. * std-config.h: (SIM_ENDIAN_INLINE, BITS_INLINE): Document limited
  3662. suport for inlineing of modules for all callers. Adjust relevant
  3663. macro's so that DEFAULT_INLINE will enable this.
  3664. * basics.h: Re-order #includes and definitions so that c-code for
  3665. basic include files does not call functions delcared in later
  3666. #includes.
  3667. * basics.h (__attribute__), sim_callbacks.h: Move attribute macro
  3668. to basics.h and add hack (include <stdio.h>) to try and bring that
  3669. and other possible conflicting macros into scope much earler.
  3670. * sim-endian.h,c (SIM_ENDIAN_INLINE) bits.h,c (BITS_INLINE):
  3671. Change to use the updated inline definitions. If enabled
  3672. immediately include the corresponding c-code so that it will inline
  3673. for all modules.
  3674. * inline.h, inline.c (SIM_ENDIAN_INLINE, BITS_INLINE): Remove
  3675. these cases, moved to module specific header files.
  3676. Sat Dec 2 18:37:51 1995 Andrew Cagney <cagney@highland.com.au>
  3677. * vm.c, vm_n.c: Fix htab code.
  3678. * vm.c (vm_data_map_read_buffer): Was using EA not RA when reading
  3679. the data from core.
  3680. * device.c: Fix htab create code.
  3681. Fri Nov 24 23:10:09 1995 Andrew Cagney <cagney@highland.com.au>
  3682. * bits.h, bits.c (EXTRACTED): Convert to function, fix - had &&
  3683. instead of &.
  3684. * sim-endian.h (SWAP_N), sim-endian-n.h, sim-endian.c: How
  3685. embarasing - fix yet another bug in the swap code! Simplify
  3686. everything by using more functions. Add host to big-endian byte
  3687. swapping support.
  3688. Fri Nov 24 23:10:09 1995 Andrew Cagney <cagney@highland.com.au>
  3689. * devices.h, devices.c: delete, replaced by the files
  3690. device_table.[ch] and device.[ch].
  3691. * device_tree.h, device_tree.c: ditto
  3692. * device_table.h, device_table.c: New files. Contain a table of
  3693. devices.
  3694. * device.h, device.c, Makefile.in, std-config.h (DEVICE_INLINE),
  3695. options.c (print_options): New files. Define the device object
  3696. along with any attached properties.
  3697. * device_tree.h, device_tree.c: Update to use new device object.
  3698. For convenience, change the printd functions into device_tree_add
  3699. functions.
  3700. * psim.c (create_*_tree): Use new device_tree create functions.
  3701. * corefile.h, corefile.c corefile-n.h (core_n.h): Update to use
  3702. the new device.h / device_table.h interface. Rename core_n.h to
  3703. corefile-n.h to be consistent with other n files.
  3704. * Makefile.in (run): add corefile-n.h to dependencies for
  3705. corefile.
  3706. * basics.h (device_instance), device.h, device.c, device_table.h,
  3707. device_table.c: Add the concept of a device instance and operators
  3708. on these instances - corresponds to ihandle in OpenBoot speak.
  3709. Don't yet implement it.
  3710. Tue Nov 14 12:27:08 1995 Andrew Cagney <cagney@highland.com.au>
  3711. * emul_generic.h, emul_generic.c (emul_syscall_enter,
  3712. emul_syscall_exit): rename from emul_enter_call /
  3713. emul_exit_call. As only used by emul_do_system_call simplify
  3714. associated code.
  3715. * os_emul.h, os_emul.c, emul_generic.h: Correct and fill an
  3716. os_emul interface.
  3717. * os_emul.c, emul_bugapi.h, emul_bugapi.c, Makefile.in: Add
  3718. preliminary hooks for a kernel mode rom emulation.
  3719. * cap.h (new), cap.c (new): Capability data base. Some emulations
  3720. pass object identifiers (capabilities?) to/from the simulated code
  3721. (for instance the phandle in OpenBoot). The cap object is able to
  3722. check/map between internal and external (target program)
  3723. representations of each identifier.
  3724. * os_emul.c, emul_chirp.h, emul_chirp.c, Makefile.in: Add
  3725. preliminary hooks for a kernel mode IEEE-1275 emulation.
  3726. * cpu.h, cpu.c (cpu_create, cpu_os_emulation, cpu): Add os_emul to
  3727. list of arguments passed in when creating a cpu. Grant access to
  3728. the element.
  3729. * std-config.h (OS_EMUL_INLINE), options.c (print_options),
  3730. inline.h, inline.c: New to allow control over inline of
  3731. corresponding code files.
  3732. * ppc-instructions (instruction_call): Add illegal instruction to
  3733. call the instruction-call emulation handler.
  3734. * interrupts.c (system_call_interrupt): Call renamed
  3735. os_emul_system_call function().
  3736. * emul_netbsd.c: Update to interface to generic emulation. Since
  3737. all its functions are called via a table don't worry about any
  3738. inline.
  3739. * emul_generic.h, emul_generic.c, spa-*(delete): Remove references
  3740. and code for spa, no longer to be used.
  3741. * psim.c (create_chirp_device_tree): Fill out what was previously
  3742. the openboot create function so that it starts to create a full
  3743. OpenBoot device tree.
  3744. Tue Nov 28 21:48:06 1995 Andrew Cagney <cagney@highland.com.au>
  3745. * debug.h, debug.c: pte trace is made redundant by htab trace,
  3746. delete it. Add vm to list of options. Simplify tracing output so
  3747. lines are not as long.
  3748. Tue Nov 14 12:27:08 1995 Andrew Cagney <cagney@highland.com.au>
  3749. * events.h, events.c (event_queue_init), psim.c (psim_init): (re)
  3750. initialize the event queue.
  3751. Tue Nov 28 13:38:26 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  3752. * sim-endian.h: Look at WORDS_BIGENDIAN to determine if the host
  3753. is big endian or little endian. For SWAP_n, use htonl/htons if
  3754. host is little endian, not big endian and if WITH_NTOH is defined.
  3755. * configure{,.in} (--enable-sim-model-issue): Instead of defining
  3756. 0/1, define it to be MODEL_ISSUE_{PROCESS,IGNORE}. Add
  3757. AC_C_BIGENDIAN to determine if the host is big endian or not.
  3758. * config.in: Regenerate.
  3759. * std-config.h (WITH_MODEL_ISSUE): Default to 0.
  3760. (CURRENT_MODEL_ISSUE): Reference WITH_MODEL_ISSUE, and if that is
  3761. 0, use current_model_issue.
  3762. (MODEL_ISSUE_{PROCESS,IGNORE}): Define as -1/1.
  3763. * psim.c (current_model_issue): New global variable.
  3764. * cpu.c (cpu_create): Use CURRENT_MODEL_ISSUE > 0 instead of
  3765. WITH_MODEL_ISSUE.
  3766. (cpu_{init,halt}): Ditto.
  3767. * mon.c (mon_print_info): Ditto.
  3768. * ppc-instructions (PPC_INSN_* macros, branch handling): Ditto.
  3769. * mon.c (mon_print_info): Print instructions/second if verbose > 0,
  3770. rather than > 1.
  3771. * main.c (main): Set current_model_issue to MODEL_ISSUE_PROCESS if
  3772. the -I switch is used.
  3773. * sim_calls (sim_open): Ditto.
  3774. * ppc-instructions (model support): Add support for determining
  3775. when we don't have enough writeback slots. Add tracing for the
  3776. beginning of each cycle.
  3777. Mon Nov 27 17:46:33 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  3778. * mon.c: Check for whether to include sys/types.h and sys/time.h.
  3779. * configure.in: Check for include files sys/types.h and
  3780. sys/time.h.
  3781. * configure: Regenerate.
  3782. * config.in: Regenerate.
  3783. * cpu.h (CONST_ATTRIBUTE): Define as __attribute__((__const__)) if
  3784. not already defined.
  3785. (cpu_system): Use CONST_ATTRIBUTE, so that when we're not inlining
  3786. the world, the optimizer has a fair chance of CSE'ing function
  3787. calls.
  3788. (cpu_{monitor,nr,registers,model}): Ditto.
  3789. * std-config.h (MODEL_INLINE): If not defined, define as 1 if
  3790. DEFAULT_INLINE is non-zero, 0 otherwise, rather than just the
  3791. value of DEFAULT_INLINE.
  3792. Fri Nov 24 11:24:34 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  3793. * lf.h (__attribute__): If not GCC and at least 2.7.0, define as
  3794. nothing.
  3795. (lf_printf): Add printf __attribute__, so the compiler will
  3796. automatically check the format string.
  3797. * configure{,.in} (--enable-sim-icache): If argument is define,
  3798. add -R to flags passed to igen.
  3799. * igen.c (stdlib.h): Include if the system supplies one.
  3800. (semantics_use_cache_struct): New global for -R flag to say
  3801. semantics is to use the cache structure directly rather than
  3802. putting the values into local variables.
  3803. (first_undef, last_undef): New structures to remember names to
  3804. #undef if -R.
  3805. (lf_print_c_extraction): If -R and this is semantics, emit names
  3806. as #defines pointing to the cache structure, rather than loading
  3807. the values into local variables.
  3808. (lf_print_c_semantic_function): If -R, #undef all of the names
  3809. defined in lf_print_c_extraction.
  3810. (main): Recognize -R.
  3811. * idecode_fields.h (SPR_*): Redefine spr_* macros as SPR_* to
  3812. avoid a name confict if -R passed to igen.
  3813. * ppc-instructions (mfspr, mtspr): Rename spr field to SPR.
  3814. (model_data): Add field to count the various # of CRs that the
  3815. mtcrf instruction used.
  3816. (model_mon_info): Return structures counting the # of CRs that the
  3817. mtcrf instruction used.
  3818. (branches, sync instructions): Do not call model functions if
  3819. WITH_MODEL_ISSUE is 0.
  3820. * mon.c (stdlib.h): Include if the system supplies one.
  3821. (mon_sort_instruction_names): New function to sort instruction
  3822. names alphabetically.
  3823. (mon_print_info): Call qsort with mon_sort_instruction_names to
  3824. sort instruction names. Don't abort if WITH_MODEL_ISSUE is 0.
  3825. * debug.h (ITRACE): Make printf_filtered arguments type correct.
  3826. * idecode_expression.h (CR0_COMPARE): Ditto.
  3827. * psim.c (psim_read_register): Ditto.
  3828. * igen.c (lf_print_my_prefix): Use __attribute__((__unused__)) to
  3829. silence compiler warnings about unused automatically generated
  3830. variables.
  3831. (lf_print_c_extraction): Ditto.
  3832. * idecode_expression.h (FPSCR_BEGIN): Ditto.
  3833. * ppc-cache-rules: Define rules for making a bitmask for all
  3834. registers.
  3835. * ppc-instructions: Rewrite model specific functions to use the
  3836. bitmask of the register number, instead of using the register
  3837. pointer to get the register number, and then making the bitmask.
  3838. Wed Nov 22 15:24:27 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  3839. * ppc-instructions (model_branches): Add conditional argument to
  3840. count the number of times each type of conditional branch is used.
  3841. (conditional branches): Pass B0 or -1 to model_branches.
  3842. (model_mon_info): Print out conditional branch counts.
  3843. (model-data): Add support for printing out conditional branch
  3844. types.
  3845. Tue Nov 21 16:31:25 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  3846. * igen.c (insn_table_load_insns): Add support for model-static for
  3847. internal functions that should not be inlined.
  3848. (lf_print_c_semantic): Remove model_cleanup.
  3849. (gen_model_{c,h}): Ditto.
  3850. * ppc-instructions: Redo model specific support once again. Add
  3851. floating point support to the model specific information. Flesh
  3852. out all of the floating mutiply add/subtract instructions. Add
  3853. better tracing support to the model specific information.
  3854. Sun Nov 19 23:00:52 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  3855. * ppc-instructions (model data, model_busy): Rather than using a
  3856. bit mask for the busy units, just use a char array. Also, only
  3857. support 2 function units an insn can use, rather than a loop.
  3858. Fri Nov 17 14:08:08 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  3859. * table.c (table_entry_read): Move setting entry->line_nr to after
  3860. the model specific fields so the line numbers for the annex are
  3861. correct.
  3862. * cpu.c (cpu_{create,init,halt}): Check for WITH_MODEL_ISSUE
  3863. before calling the model functions.
  3864. * debug.c (trace_descriptor): Add trace_model support.
  3865. * debug.h (trace_options): Ditto.
  3866. * igen.c (gen_icache_h): Create type idecode_cache as void if not
  3867. caching instructions.
  3868. (gen_model_{c,h}): Drop model_issue support. Add support for
  3869. model_cleanup.
  3870. (lf_print_my_prefix): Initialize a const itable_index with the
  3871. current index.
  3872. (lf_print_c_semantic): Call model_cleanup at the end of the
  3873. function to check for instructions that aren't supported yet by
  3874. the scheduling code.
  3875. * mon.h (count_type): New type for counters.
  3876. * mon.c: Use count_type instead of unsigned.
  3877. * ppc-instructions: Redo scheduling code once again. Make it all
  3878. inline friendly. Instead of having general code emitted by igen,
  3879. go the route of having each semantic routine call the appropriate
  3880. module.
  3881. Thu Nov 16 09:52:26 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  3882. * table.c (table_entry_read): Allow the annex to have blank lines.
  3883. * ppc-instructions: Change lines in model stuff that just have a
  3884. tab to just newline. Add 601 support. Document most instructions
  3885. in terms of model specific timing information. Drop 'FUNCTION'
  3886. from PPC_FUNCTION_UNIT_xxx enums. Change PPC_UNIT_UNKNOWN ->
  3887. PPC_UNIT_BAD. Add TRACE(trace_tbd) for all data cache
  3888. instruction.s. Signal illegal instruciton if data cache block
  3889. invalidate is issued from problem state.
  3890. * igen.c (max_model_fields_len): New static to keep track of the
  3891. max size for the model specific fields.
  3892. (model_c_insn): Use max_model_fields_len to size fields.
  3893. (insn_table_insert_insn): Set max_model_fields_len.
  3894. (model_table_insert): Ditto.
  3895. (gen_model_{c,h}): Model_issue is now called with a processor
  3896. argument.
  3897. * debug.c (trace_description): Add support for trace_tbd.
  3898. * mon.c (mon_issue): Pass processor argument to model_issue.
  3899. * Makefile.in: Delete all function unit support, since the newer
  3900. table driven model support replaces it.
  3901. * cpu.{c,h}: Ditto.
  3902. * mon.c: Ditto.
  3903. * inline.{c,h}: Ditto.
  3904. * std-config.h: Ditto.
  3905. * options.c: Ditto.
  3906. * configure{,.in}: Ditto.
  3907. * Makefile.in: Ditto.
  3908. * psim.c: Ditto.
  3909. * function_unit.{c,h}: Delete these now usused files.
  3910. * std-config.h (WITH_MODEL_ISSUE): Add new macro on whether to
  3911. trace instructions in a model specific manor.
  3912. * options.c (print_options): Print it out.
  3913. * configure{,.in}: Add --enable-sim-model-issue option.
  3914. * Makefile.in: Add --enable-sim-model-issue flags.
  3915. * igen.c (lf_print_c_semantic): Add call to mon_issue here. Check
  3916. for WITH_MODEL_ISSUE.
  3917. * mon.c (mon_issue): Remove call to mon_issue_here.
  3918. * ppc-instructions: Move branch tracing to the actual branch
  3919. instructions, rather than testing it in model_issue. Add code to
  3920. code successful/unsuccessful branch predictions, and the number of
  3921. conditional branches that fell through.
  3922. Wed Nov 15 17:32:13 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  3923. * cpu.h (cpu_model): Add declaration.
  3924. * cpu.c (struct _cpu): Add model_ptr to hold model specific
  3925. information.
  3926. (cpu_model): Return the model internal pointer.
  3927. (cpu_{create,init,halt}): Call the appropriate model function.
  3928. * inline.c (mon.c): Move include of mon.c after model.c.
  3929. * mon.c (_cpu_mon): Add fields to count unaligned memory
  3930. references.
  3931. (mon_issue): Call model_issue, not function_unit_issue.
  3932. (mon_{read,write}): Count # of unaligned memory accesses.
  3933. (mon_print_info): Switch to calling model_mon_info and
  3934. model_mon_info_free instead of function_unit version. Print out
  3935. number of unaligned reads/writes.
  3936. * {ppc-instructions,igen.c}: More global changes to add model
  3937. specific features.
  3938. * inline.{c,h}: Provide for inlining options.c.
  3939. * options.{c,h}: Ditto.
  3940. * std-config.h: Add OPTIONS_INLINE.
  3941. Tue Nov 14 04:47:25 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  3942. * Makefile.in (devices.o, main.o): Update dependency.
  3943. * igen.c (gen_model_h): Use correct variable in loop.
  3944. (gen_model_c): Use strcmp, strcasecmp.
  3945. (gen_model_c): Use EXTERN_MODEL for arrays.
  3946. (gen_model_h): Use STATIC_MODEL for arrays.
  3947. (lf_print_c_semantic_function_header): Delete unused function.
  3948. * main.c (cpu.h): Include cpu.h to get model.h.
  3949. * inline.h ({EXTERN,STATIC}_MODEL): Define.
  3950. Mon Nov 13 09:14:13 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  3951. * igen.c ({insn,model}_table_fields): Spell mnemonic correctly.
  3952. (gen_itable_h,itable_c_insn): Ditto.
  3953. (model support): Move model support around, add support for
  3954. model-data, model-internal. Use annex field for model-macros
  3955. now.
  3956. * configure.in (--enable-sim-inline): If --enable-sim-inline=no,
  3957. also define INLINE as nothing.
  3958. * configure: Regenerate.
  3959. * std-config.h (INLINE): Rather than nuking INLINE, only define it
  3960. as __inline__ if any of the INLINE flags are non-zero.
  3961. * options.c (print_options): Print out WITH_XOR_ENDAIN.
  3962. Mon Nov 13 23:03:45 1995 Andrew Cagney <cagneyhighland.com.au>
  3963. * ppc-instructions (rfi): Add missing code.
  3964. * cpu.c (cpu_get_time_base): Fix calculation of current value of
  3965. time base register.
  3966. * ppc-spr-table (TBL, TBU): Fix TBL/TBU entries - was confusing
  3967. m[tf]tb with m[tf]spr.
  3968. * ppc-instructions (mtspr, mfspr): Fix mttbl - wasn't storing
  3969. lower word.
  3970. Mon Nov 13 21:35:37 1995 Andrew Cagney <cagneyhighland.com.au>
  3971. * std-config.h (INLINE, STATIC_INLINE): Was being set to static
  3972. inline.. Only problem being that with ppc-opcode-simple this gave
  3973. it the chance to inline all the idecode functions with potentially
  3974. disasterous results on a 16mb PC. For moment hobble INLINE.
  3975. * configure.in, std-config.h (WITH_SMP): Make that 5 processors by
  3976. default ...
  3977. * configure.in: Tweek flags passed to gcc for --with-sim-warnings.
  3978. Firstly make them errors and secondly remove the options gcc-245
  3979. doesn't reconize.
  3980. Mon Nov 13 17:57:24 1995 Andrew Cagney <cagney@highland.com.au>
  3981. * misc.c (zalloc), cpu.c (cpu_init), devices
  3982. (console_io_read_buffer_callback, icu_io_read_buffer_callback,
  3983. vm_io_read_buffer_callback), main.c (zalloc), mon.c (memset),
  3984. sim_calls.c (zalloc) : replace bzero() with memset().
  3985. * emul_netbsd.c (write_direntries), psim.c (psim_read_register,
  3986. psim_write_register): replace bcopy() with memcpy().
  3987. Sun Nov 12 20:55:41 1995 Andrew Cagney <cagneyhighland.com.au>
  3988. * configure.in: for --disable-sim-inline (--enable-sim-inline=no),
  3989. force DEFAULT_INLINE to 0 rather then trusting the std
  3990. configuration.
  3991. Sun Nov 12 20:55:41 1995 Andrew Cagney <cagneyhighland.com.au>
  3992. * igen.c (lf_print_idecode_table, idecode_table_leaf): Fix
  3993. generation of switch entries in tables - treat the same as
  3994. cracking/semantic functions.
  3995. * igen.c (idecode_switch_end, idecode_switch_leaf): Fix generation
  3996. of a boolean switch statement (field zero or non-zero).
  3997. * ppc-opcode-test-1, ppc-opcode-test-2: New files. These test the
  3998. switch/table generation ability of igen.
  3999. * igen.c (idecode_switch_leaf): Fix code output when a switch
  4000. statement needs to look up a table.
  4001. * igen.c (idecode_declare_if_switch): New function called from
  4002. gen_idecode_c - need to declare any idecode switch functions
  4003. before they are used in idecode tables.
  4004. * igen.c (lf_print_c_cracker_function, idecode_crack_leaf,
  4005. idecode_crack_insn): Add is_inline_function argument to code
  4006. printing cracker functions which indicates if STATIC_IDECODE or
  4007. STATIC_INLINE_IDECODE should be used for definition. For
  4008. idecode_crack_insn (which implies not duplicating/expanding) don't
  4009. declare function as inline - we assume that the only time this is
  4010. code is generated is when things are being tested. For
  4011. idecode_crack_leaf, make static (instead of INLINE) if the
  4012. instructions parent is a table as function will always be called
  4013. via a table.
  4014. * igen.c (idecode_expand_if_switch): Declare as STATIC_IDECODE not
  4015. STATIC_INLINE_IDECODE. Only the outermost idecode switch will be
  4016. called directly, all others are called via a table.
  4017. * igen.c (lf_print_semantic_function_header, semantics_h_leaf,
  4018. semantics_h_insn, semantics_h_function,
  4019. lf_print_c_semantic_function, semantics_c_function): Add
  4020. is_inline_function argument to lf_print_semantic_function_header
  4021. to indicate if an inline or static function declaration/definition
  4022. should be output. Depending on situtation call accordingly:
  4023. functions (not instruction semantic routines) are always inline;
  4024. Semantic routines are made inline when there is no icache (cache
  4025. will contain the function address) and are duplicating (see above)
  4026. and the parent of the instruction is a switch statement.
  4027. * igen.c (opcode_field_new): Delete. Code changed to use ZALLOC
  4028. and moved to insn_table_find_opcode_field.
  4029. * table.c (table_open): Fix typo (nr_model_fields vs nr_fields).
  4030. * igen.c (model_c_insn): Suggestion - document the name of the
  4031. instruction on each line of the instruction model table.
  4032. Fri Nov 10 00:44:38 1995 Andrew Cagney <cagneyhighland.com.au>
  4033. * emul_netbsd.c (do_ioctl): Cleanup compilation.
  4034. * sim_callbacks.h (__attribute__): Only define if not defined (was
  4035. already defined on NetBSD host).
  4036. Wed Nov 8 21:49:52 1995 Andrew Cagney <cagneyhighland.com.au>
  4037. * std-config.h (WITH_XOR_ENDIAN), configure.in, Makefile.in: New
  4038. macro, indicates if the PowerPC's horrible XOR endian mode should
  4039. be suported. Add to configure and make.
  4040. * vm_n.h (vm_data_map_read_N, vm_data_map_write_N), vm.c
  4041. (vm_instruction_map_read): If XOR endian, xor the address
  4042. with a value from an xor table (indexed by size of access).
  4043. * vm.c (vm_synchronize_context), cpu.c (cpu_synchronize_context):
  4044. set up xor table to xor if there is a conflict between the
  4045. CURRENT_TARGET_ENDIAN and the endian indicated in the MSR. Move
  4046. check of suported change of endian mode from cpu.c to vm.c.
  4047. * vm.c (vm_data_map_write_buffer, vm_data_map_read_buffer):
  4048. Hopefully added correct hack to handle XOR endian mode.
  4049. FIXME: If NONSTRICT alignment and XOR ENDIAN and MSR indicates
  4050. little endian mode, the model accepts miss aligned transfers.
  4051. FIXME: Need to create an `init' device that, during
  4052. initializatioin for XOR mode, it mushes (XOR address) all the dma
  4053. data before passing it on to the core for storage. Just like the
  4054. real thing really.
  4055. Wed Nov 8 21:49:52 1995 Andrew Cagney <cagneyhighland.com.au>
  4056. * devices.c (halt_io_write_buffer_callback): Use value written to
  4057. halt device to determine exit status. Thus allowing
  4058. success/failure of OEA tests.
  4059. Wed Nov 8 00:10:38 1995 Andrew Cagney <cagneyhighland.com.au>
  4060. * ppc-instructions (icbi): If icache present flush it.
  4061. Tue Nov 7 23:36:31 1995 Andrew Cagney <cagneyhighland.com.au>
  4062. * devices.c (htab_init_callback): Add code to create htab/pte.
  4063. * devices.c (dma_file, file_init_callback, htab_init_callback):
  4064. New function - Dma the named file into memory at the specified
  4065. address. Use.
  4066. * device_tree.h, device_tree.c (scand_*): New functions.
  4067. Tue Nov 7 23:36:31 1995 Andrew Cagney <cagneyhighland.com.au>
  4068. * filter_filename.c, Makefile.in: Change so that only dependant on
  4069. a very limited nr of files. Stops an unnecessary dependency.
  4070. Tue Nov 7 15:44:33 1995 Andrew Cagney <cagney@highland.com.au>
  4071. * core.c (core_map_find_mapping): Use cpu_halt rather than error
  4072. to abort an access to an undefined address.
  4073. Sun Nov 12 07:58:09 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  4074. * igen.c (model_table_insert_{macro,function}): New functions.
  4075. (insn_table_load_insns): Call them.
  4076. (gen_model_h): Move section emiting model-macros to be first.
  4077. (model_{c,h}_function): New functions cloned from semantic
  4078. functions to print out the prototype and function for
  4079. model-functions.
  4080. (gen_model_{c,h}): Print out model-functions.
  4081. * ppc-instructions (model_{start,halt,print_info}): Add dummy
  4082. model-functions.
  4083. * options.c (print_options): Print out WITH_{,DEFAULT_}MODEL, not
  4084. WITH_PPC_{,DEFAULT_}_MODEL.
  4085. (options_ppc): Delete now unused function.
  4086. (cpu.h): Include cpu.h, not just basics.h.
  4087. * std-config.h (WITH_{,DEFAULT_}MODEL): Define.
  4088. * igen.c (model_macros, last_model_macro): New statics to keep
  4089. track of macros to go in model.h.
  4090. (insn_table_load_insns): Add model-macros to model_macros linked
  4091. list.
  4092. (model_table_fields): Add field for printable name.
  4093. (gen_model_h): If there are model macros defined, print them out.
  4094. Print out DEFAULT_MODEL as the first model if there any models
  4095. specified, otherwise MODEL_NONE. Print out external decl for
  4096. current_model. Print out decl for model_set.
  4097. (gen_model_c): Add function model_set. Switch to use printable
  4098. name for the model, not the internal identifier used.
  4099. * psim.c (current_model): New global variable.
  4100. * ppc-instructions: Add macros for flag defines. Switch first
  4101. model so 604 is first.
  4102. * main.c (main): Call model_set, not function_unit_model.
  4103. * sim_calls.c (sim_open): Ditto.
  4104. * sim_calls.c, Makefile.in: sim_calls.c now includes cpu.h.
  4105. Sat Nov 11 07:27:41 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  4106. * mon.h (mon_events): New enumeration for other events we want to
  4107. handle.
  4108. (mon_event): Add declaration for function.
  4109. * mon.c (mon_event): New function.
  4110. (mon_print_info): Print icache misses.
  4111. * psim.c (run_until_stop): Monitor icache misses.
  4112. * configure.in (--enable-sim-inline): Fix typos in handling comma
  4113. separated inline options.
  4114. (--enable-sim-icache): Echo icache size.
  4115. * configure: Regenerate.
  4116. * igen.c (semantics_h_print_function): Emit STATIC_SEMANTICS
  4117. instead of INLINE_SEMANTICS so that the compiler won't keep all of
  4118. the semantic functions as inline RTL, given that the address of
  4119. the function is taken which forces outline calls anyway.
  4120. (lf_print_c_semantic_function_header): Ditto.
  4121. (gen_semantics_h): Define STATIC_SEMANTICS as nothing if not
  4122. defined.
  4123. (lf_print_c_cracker_function): Emit STATIC_IDECODE instead of
  4124. STATIC_INLINE_IDECODE.
  4125. (gen_idecode_c): Define STATIC_IDECODE if not defined.
  4126. (gen_model_h): Use #ifdefs to define types to hold model units,
  4127. cycles, and flags.
  4128. (model_table_insert): Add a sentinel functional unit at the end to
  4129. simplify loop processing.
  4130. (model_c_insn): Use <function-unit>_SENTINAL instead of 0 for any
  4131. instruction not specifing a function unit for the current model.
  4132. (gen_model_{c,h}): Provide bounds for model_time_mapping.
  4133. * inline.h (STATIC_SEMANTICS): Define to be static if
  4134. SEMANTICS_INLINE is defined.
  4135. (STATIC_IDECODE): Define to be static if IDECODE_INLINE is
  4136. defined.
  4137. * options.c (print_options): Fix typo.
  4138. Fri Nov 10 06:39:46 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  4139. * configure.in (--enable-sim-{opcode,config}): Use $srcdir when
  4140. check for the existence of files.
  4141. * configure: Regenerate.
  4142. * table.c (table): New field nr_model_fields.
  4143. (table_open): New parameter nr_model_fields.
  4144. (table_entry_read): Parse model fields that begin with a '*' after
  4145. each instruction.
  4146. * igen.c, dgen.c: Change callers of table_open.
  4147. * igen.c: Add support for dumping model specific information in
  4148. model.h and model.c.
  4149. (insn_field_name): Delete unused array.
  4150. (global variables): Make global variables static, so we can tell
  4151. when they are no longer used.
  4152. (cache_semantic_actual): Delete unused variable.
  4153. (insn_table_load_insns): If the insn is really a machine model,
  4154. call model_table_insert instead of other processing.
  4155. (model_table_insert): New function to handle defining the
  4156. functional units of a particular machine model.
  4157. (insn_table): Add last_function field so we can add functions at
  4158. the end.
  4159. (insn_table_insert_function): Use last_function field when
  4160. appending new function.
  4161. * ppc-instructions: Add a few model specific information for 603,
  4162. 603e, and 604 for testing purposes.
  4163. * table.h (table_model_entry): New linked list to hold model
  4164. specific information, one per line.
  4165. (table_entry): Add model_first, model_last fields.
  4166. * configure.in (--enable-sim-inline): If gcc is found and
  4167. --enable-sim-inline is not specified, defaine DEFAULT_INLINE to 1,
  4168. not 2.
  4169. (--enable-sim-reserved-bits): New switch to check whether reserved
  4170. bits are set in the instruction.
  4171. (--enable-sim-opcode): Make complex the default.
  4172. (all switches): Add appropriate checks and error messages.
  4173. * configure: Regenerate.
  4174. * Makefile.in (RESERVED_CFLAGS): New variable set by
  4175. --enable-sim-reserved-bits.
  4176. (CONFIG_CFLAGS): Include RESERVED_CFLAGS.
  4177. (BUILT_SRC): igen now generates model.c and model.h.
  4178. (LIB_OBJ): Include table.o.
  4179. (tmp-igen): Add -m/-M options to write model.c/model.h.
  4180. (model.o): New object.
  4181. (CPU_H): Include model.h.
  4182. * cpu.h: Include model.h.
  4183. * std-config.h (WITH_RESERVED_BITS): Define.
  4184. (MODEL_INLINE): Ditto.
  4185. * options.c (print_options): Print out WITH_RESERVED_BITS.
  4186. Thu Nov 9 12:22:15 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  4187. * configure.in: If --silent, don't output information messages.
  4188. * configure: Regenerate.
  4189. * configure.in (--enable-sim-alignment): Fix typo in specifing non
  4190. strict alignment.
  4191. (--enable-sim-switch): Make default on.
  4192. (--enable-sim-duplicate): Make default on.
  4193. (--enable-sim-smp): Make default 0.
  4194. (--enable-sim-mon): Don't set sim_float if not set.
  4195. (--enable-sim-inline): If gcc is found and --enable-sim-inline is
  4196. not specified, define DEFAULT_INLINE to be 2.
  4197. (all --enable-sim-* rules): Echo rules set to non empty to file
  4198. descriptor 6.
  4199. * configure: Regenerate.
  4200. * options.c (options_env): Fix typo if WITH_ENV is 0.
  4201. (print_options): Print GCC compiler version if available and
  4202. date/time options was compiled. If OPCODE_RULES, IGEN_FLAGS,
  4203. and/or DGEN_FLAGS are defined, print them.
  4204. * Makefile.in (all link actions): Pass SIM_CFLAGS as well as
  4205. CFLAGS.
  4206. (options.o): Compile options.o with OPCODE_RULES, IGEN_FLAGS, and
  4207. DGEN_FLAGS defined, so they can be printed out.
  4208. * igen.c (lf_print_c_validate): Check for WITH_ASSERT, so that
  4209. this test can be compiled away if the user really wants a fast
  4210. simulator by not doing assertion failures.
  4211. Wed Nov 8 13:19:47 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  4212. * options.c: New file to print out all of the WITH_ options.
  4213. * options.h: New include file to declare print_options.
  4214. * debug.h (trace_options): Add trace_opts to call print_options.
  4215. * debug.c (trace_description): Add trace_opts support.
  4216. * main.c (main): If user requested options, print them.
  4217. * sim_calls.c (sim_open): Ditto.
  4218. * igen.c (opcode_field_new): Add void to make it a proper prototype.
  4219. * emul_generic.c (emul_enter_call): Make printf_filtered arguments
  4220. type correct.
  4221. * emul_netbsd.c (do_kill): Ditto.
  4222. * registers.c (registers_dump): Ditto.
  4223. * vm.c (om_translate_effective_to_real): Ditto.
  4224. * vm_n.h (vm_data_map_read_N): Ditto.
  4225. (vm_data_map_write_N): Ditto.
  4226. * devices.h (DTRACE_INIT): Ditto.
  4227. (DTRACE_{ATTACH,DETACH}_ADDRESS): Ditto.
  4228. (DTRACE_IO_{READ,WRITE}_BUFFER): Ditto.
  4229. (DTRACE_DMA_{READ,WRITE}_BUFFER): Ditto.
  4230. * devices.c (update_for_binary_section): Ditto.
  4231. (write_stack_arguments): Ditto.
  4232. (stack_ioctl_callback): Ditto.
  4233. * device_tree.c (device_tree_add_passthrough): Ditto.
  4234. (device_tree_{add,find}_device): Ditto.
  4235. (device_tree_{add,find}_integer): Ditto.
  4236. (device_tree_find_{string,boolean}): Ditto.
  4237. (device_tree_init{,_device}): Ditto.
  4238. (device_tree_dump): Ditto.
  4239. * sim_calls.c (sim_{read,write}): Ditto.
  4240. (sim_{fetch,store}_register): Ditto.
  4241. (sim_stop_reason): Ditto.
  4242. * sim_callbacks.h (printf_filtered): Declare with attribute
  4243. printf, so we can enable format checks.
  4244. * devices.c (console_io_{read,write}_buffer_callback): Cast swtich
  4245. argument to int, since ANSI doesn't allow long switch values.
  4246. * emul_netbsd.c (do___sysctl): Ditto.
  4247. * emul_netbsd.c (do___sysctl): Fix up printf call.
  4248. * corefile.c (core_translate): Don't do arithmetic with void *
  4249. pointers. Cast to char * first.
  4250. * function_unit.c (FUNC_{LOAD,STORE}): Rename from {LOAD,STORE}
  4251. and change all uses.
  4252. * Makefile.in ({FUNC,MODEL,WARNING}_CFLAGS): New flags set by
  4253. configure --enable switches.
  4254. (CONFIG_CFLAGS): Include FUNC_CFLAGS and MODE_CFLAGS.
  4255. (.c.o): Include WARNING_CFLAGS.
  4256. (CPU_H): Include function_unit.h.
  4257. (LIB_OBJ): Include function_unit.o.
  4258. (BUILT_SRC_WO_CONFIG): Split from BUILT_SRC and do not include
  4259. config.h or ppc-config.h.
  4260. (BUILT_SRC): Include BUILT_SRC_WO_CONFIG, config.h and
  4261. ppc-config.h.
  4262. (filter_filename.o): Include config.h/ppc-config.h dependencies.
  4263. (idecode.o, semantics.o, psim.o): Specify CC line without
  4264. WARNING_CFLAGS so that we don't get all of the unused variable
  4265. warnings that are generated.
  4266. (function_unit.o): Add rule to build.
  4267. (main.o, sim_calls.o): Add function_unit.h, itable.h dependencies.
  4268. (mon.o): Include mon.c dependency.
  4269. (TAGS): Depend on BUILT_SRC.
  4270. (clean): Don't delete config.h or ppc-config.h
  4271. * basics.h (sim_callbacks.h): Move include after the include of
  4272. config.h and ppc-config.h.
  4273. * bits.{h,c} (ROTL32,ROTL64): Move these functions to bits.c. Add
  4274. support for BITS_INLINE to inline these. Add declarations to
  4275. bits.h.
  4276. * configure.in (--enable-sim-warnings): Add new option to specify
  4277. compiler warnings for all modules except idecode.o and semantics.o
  4278. which have lots of unused variables because they are machine
  4279. generated.
  4280. (--enable-sim-function-unit): New switch to configure whether
  4281. function unit support is compiled in or not.
  4282. (--enable-sim-{,default-}mode): New switches to control which cpu
  4283. model is used.
  4284. * configure: Regenerate.
  4285. * corefile.c (core_attach_address_callback): Delete unused
  4286. variable device_address.
  4287. * cpu.c (struct _cpu): Add function unit pointer field func_unit.
  4288. (cpu_create): If WITH_FUNCTION_UNIT, call function_unit_create.
  4289. (cpu_init): If WITH_FUNCTION_UNIT, call function_unit_init.
  4290. (cpu_halt): If WITH_FUNCTION_UNIT, call function_unit_halt.
  4291. (cpu_function_unit): New function to return func_unit field.
  4292. * cpu.h (function_unit.h): Include new include file.
  4293. (cpu_function_unit): Declare.
  4294. * debug.c (stdlib.h): Test HAVE_STDLIB_H, not HAVE_STDLIB.
  4295. (config.h): Include config.h.
  4296. * devices.c (icu_io_write_buffer_callback): Delete unused variable
  4297. system.
  4298. * emul_generic.c (emul_exit_call): Print out status value.
  4299. * emul_netbsd.c (do_read): Delete unused variable nr_moved.
  4300. * filter_filename.h (includes): Include config.h, ppc-config.h,
  4301. not basics.h.
  4302. * inline.c: Include bits.c if BITS_INLINE. Include
  4303. function_unit.c if FUNCTION_UNIT_INLINE.
  4304. * inline.h (INLINE_BITS): Define if BITS_INLINE.
  4305. (INLINE_FUNCTION_UNIT): Define if FUNCTION_UNIT_INLINE.
  4306. * interrupts.c (instruction_storage_interrupt): Delete unused
  4307. variable nia.
  4308. * lf.h (config.h): Include config.h.
  4309. * main.c (includes): Include function_unit.c. If HAVE_UNISTD_H,
  4310. include unistd.h.
  4311. (usage): Update for -m model, -i, and -I options.
  4312. (main): Delete unused variables stack_pointer and i. Add support
  4313. for -i, -m model arguments. Call psim_print_info with verbose ==
  4314. 1 if -i, and verbose == 2 if -I.
  4315. * mon.c (stdio.h): Include stdio.h to pick up sprintf prototype.
  4316. (mon_issue): Call function_unit_issue if function units are
  4317. supported.
  4318. (mon_print_info): Take psim * argument. Print out information
  4319. from function_unit if available. Move read/write stats to always
  4320. print, instead of printing if verbose > 1. Fix up plural
  4321. vs. singular usage.
  4322. * mon.h (mon_print_info): Update prototype.
  4323. * psim.c (current_ppc_model): Add global variable.
  4324. (psim_print_info): Pass system argument to mon_print_info.
  4325. * sim_calls.c (function_unit.h): Include.
  4326. (sim_open): Add support for -i and -m model options. If -i call
  4327. psim_print_info with verbose == 1, if -I, with verbose == 2.
  4328. (sim_resume): Delete unused variable program_counter.
  4329. * std-config.h (WITH_FUNCTION_UNIT): Define.
  4330. (ppc_model): Add enumeration giving all PowerPC models currently
  4331. known about.
  4332. ({WITH,CURRENT}_PPC_MODEL): Define.
  4333. (FUNCTION_UNIT_INLINE): Define.
  4334. * table.c (config.h): Include config.h.
  4335. * vm.c (om_virtual_to_real): Print pte_word_{0,1} so the compiler
  4336. doesn't complain that they're unused.
  4337. * vm_n.h (vm_data_map_read_N): Delete unused variable rval.
  4338. Mon Nov 6 23:15:54 1995 Andrew Cagney <cagney@highland.com.au>
  4339. * sim-endian.c (ppc-endian.c), sim-endian.h (ppc-endian.h):
  4340. renameed. These files are target independant.
  4341. * Makefile.in, basics.h: update for new name.
  4342. * sim-endian.h (SWAP_N), sim-endian.c (_SWAP_1): Rename existing
  4343. SWAP_<N> to _SWAP_<N> so that sim-endian.h can contain SWAP_N
  4344. macro's as required.
  4345. * sim-endian.c, sim-endian-n.h (new file): Move endian code into a
  4346. debugable header file.
  4347. * ppc-instructions (Byte-Reverse): Enable byte reverse
  4348. instructions using SWAP_N macros.
  4349. Mon Nov 6 10:39:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  4350. * Makefile.in (config.status): Remove references to config.make
  4351. and config.hdr.
  4352. * config.{make,hdr}: Delete, no longer used.
  4353. * build-psim: Ditto.
  4354. Mon Nov 6 20:49:56 1995 Andrew Cagney <cagney@highland.com.au>
  4355. * sim_calls.c (sim_open): Fix parsing of `target sim' options.
  4356. * device_tree.c (device_tree_add_string): Wasn't saving the value
  4357. of the string being entered into the tree.
  4358. * psim.c (create_filed_device_tree): Not terminating string device
  4359. names with a null.
  4360. * psim.c (psim_create): Use `env' instead of
  4361. `environment-architecture' to be consistent with configure.
  4362. Reconize user/uea, virtual/vea and operating/oea.
  4363. Sat Nov 4 12:29:45 1995 Fred Fish <fnf@cygnus.com>
  4364. * core.c: Rename to corefile.c
  4365. * core.h: Rename to corefile.h
  4366. * inline.c: Include corefile.h, renamed from core.h.
  4367. * cpu.h: Include corefile.h, renamed from core.h
  4368. * vm.c: Include corefile.h, renamed from core.h
  4369. * corefile.c: Include corefile.h rather than core.h
  4370. * README.psim (KNOWN PROBLEMS): Change core.* references to corefile.*
  4371. references.
  4372. * Makefile.in (CPU_H): Change core.h to corefile.h
  4373. (vm.o): Change dependency to corefile.h
  4374. (LIB_SRC): Change core.c to corefile.c.
  4375. (LIB_OBJ): Change core.o to corefile.o.
  4376. (corefile.o): Change dependencies to corefile.c, corefile.h.
  4377. Fri Nov 3 11:37:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  4378. * ppc-instructions (data cache instructions): Make all data cache
  4379. instructions nops instead of invalid instructions.
  4380. * Makefile.in (CONFIG_CFLAGS): Add ALIGNMENT_CFLAGS and
  4381. TIMEBASE_CFLAGS which weren't included.
  4382. Thu Nov 2 08:54:04 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  4383. * Makefile.in: Uncomment built file dependencies.
  4384. * configure.in: Rewrite --enable-sim switch handling to use the
  4385. autoconf builtins so it works correctly if the configure or
  4386. Makefile.in files are modified and make decides to rebuild
  4387. Makefile. Also document all of the --enable-sim switches
  4388. supported. Check whether getrusage and sys/resource.h are
  4389. supported.
  4390. * config.in: Regenerate.
  4391. * configure: Regenerate.
  4392. * Makefile.in: Add support for all of the variables set with
  4393. --enable-sim switches.
  4394. * Makefile.in (clean): make clean now removes all built sources as
  4395. well.
  4396. * cpu.c: Use HAVE_STRING_H, HAVE_STRINGS_H, HAVE_UNISTD_H,
  4397. HAVE_TIME_H, HAVE_SYS_TIMES_H, HAVE_SYS_RESOURCE_H defined in
  4398. the generated config.h.
  4399. * debug.c: Ditto.
  4400. * device_tree.c: Ditto.
  4401. * devices.c: Ditto.
  4402. * dgen.c: Ditto.
  4403. * emul_netbsd.c: Ditto.
  4404. * igen.c: Ditto.
  4405. * lf.c: Ditto.
  4406. * misc.c: Ditto.
  4407. * psim.c: Ditto.
  4408. * registers.c: Ditto.
  4409. * sim_calls.c: Ditt.
  4410. * table.c: Ditto.
  4411. * main.c (main): Call psim_print_info with verbose == 2.
  4412. * mon.c (mon_print_info): Align the cpu number and number of
  4413. instructions fields. Do not print an instruction category if the
  4414. CPU did not execute any of those instructions. Print out number
  4415. of reads and writes. If getrusage is supported, print out number
  4416. of simulated instructins per second.
  4417. * configure.in: Add support for --enable-sim-opcode=stupid.
  4418. * configure: Regenerate.
  4419. Wed Nov 1 23:46:59 1995 Andrew Cagney <cagney@highland.com.au>
  4420. * std-config (INLINE_DEVICE_TREE): Don't inline either of
  4421. device_tree.c or devices.c. There is no significant gain.
  4422. * configure.in, Makefile.in: add --enable-sim-icache=[0-9]* and
  4423. IGEN_ICACHE macro.
  4424. Wed Nov 1 23:46:59 1995 Andrew Cagney <cagney@highland.com.au>
  4425. * igen.c (main), misc.h (target_a2i, i2target), misc.c: Add
  4426. functions to convert between target and igen internal bit numbers.
  4427. Make IO go through these functions. Add -b (bit size) and -h (high
  4428. bit nr) options to igen. Typical usage would be: ./igen -b 16 -h
  4429. 15 for a 16 bit instruction format with the msb given a number 15.
  4430. Wed Nov 1 22:17:32 1995 Andrew Cagney <cagney@highland.com.au>
  4431. * dgen.c (main): Was outputting optarg even when it was NULL.
  4432. Tue Oct 31 23:48:33 1995 Andrew Cagney <cagney@highland.com.au>
  4433. * vm_n.h (vm_data_map_load_N, vm_data_map_store_n), debug.h,
  4434. debug.c: Add tracing of load/store unit (virtual) with -t
  4435. load-store.
  4436. Tue Oct 31 21:44:01 1995 Andrew Cagney <cagney@highland.com.au>
  4437. * std-config.h (WITH_ENVIRONMENT): Add USER_ENVIRONMENT which does
  4438. not include things such as the time base and events.
  4439. * interrupt.c, sim_calls.c, cpu.h, vm.c, configure.in: Add UEA to
  4440. all environment switches for above.
  4441. * psim.c (psim_create): ditto - new device tree node name is
  4442. /options/environment-architecture with values user, virtual and
  4443. operating.
  4444. Tue Oct 31 21:31:32 1995 Andrew Cagney <cagney@highland.com.au>
  4445. * ppc-opcode-stupid: Third example of use of opcode table - this
  4446. one expands all mtspr/mfspr and branch instructions. Appears to
  4447. give about a 10% gain in performance if everything enabled. Also
  4448. takes about 150mb of swap to build.
  4449. Wed Nov 1 10:49:48 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  4450. * emul_netbsd.c (do_exit): Print arguments and close parenthesis
  4451. if tracing, since exit doesn't go through emul_exit_call.
  4452. (do_read): Print arguments if tracing.
  4453. (do_write): Ditto.
  4454. (do_open): Ditto.
  4455. (do_break): Ditto.
  4456. (do_kill): Ditto.
  4457. (do_dup): Ditto.
  4458. (do_sigprocmask): Replace trace with printing arguments if
  4459. tracing.
  4460. (do_ioctl): Print arguments if tracing.
  4461. (do_umask): Ditto.
  4462. (do_dup2): Ditto.
  4463. (do_fcntl): Ditto.
  4464. (do_gettimeofday): Ditto.
  4465. (do_getrusage): Ditto.
  4466. (do_fstatfs): Ditto.
  4467. * filter_filename.c: New file to provide filter_filename to strip
  4468. the directory prefix from a file.
  4469. * filter_filename.h: New include file to declare filter_filename.
  4470. * debug.h: Include filter_filename.h.
  4471. (TRACE,DTRACE,ERROR): Use filter_filename on __FILE__.
  4472. * misc.h: Include filter_filename.h.
  4473. (ASSERT): Use filter_filename on __FILE__.
  4474. * igen.c (lf_print_my_prefix): Use filter_filename on the filename
  4475. argument.
  4476. * Makefile.in: Add filter_filename support.
  4477. * ppc-instructions (dcbi, icbi): Make these NOPs rather than
  4478. invalid instructions.
  4479. * configure.in: Add support for more --enable-sim-* switches.
  4480. Use config.make and config.hdr to write to Makefile and config.h
  4481. respectively. Don't rewrite Makefile, just append to it.
  4482. * configure: Regenerate.
  4483. * config.{make,hdr}: New shell scripts.
  4484. * Makefile.in: Remove all variables set by configure.in.
  4485. (psim.o): Depend on $(BUILT_SRC) also.
  4486. * emul_netbsd.c (do_gettimeofday,do_getrusage): When comparing an
  4487. integer, use 0, not NULL.
  4488. Tue Oct 31 15:20:04 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  4489. * configure.in: Add support for --enable-sim-inline,
  4490. --enable-sim-bswap, --enable-sim-cflags, --enable-sim-complex,
  4491. --enable-sim-switch, --enable-sim-duplicate, --enable-sim-filter,
  4492. and --enable-sim-endian switch to control various Makefile
  4493. variables.
  4494. * configure: Regenerate from configure.in.
  4495. * Makefile.in: Add various Make variables that the various
  4496. switches alter.
  4497. * std-config.h (DEFAULT_INLINE): Don't set this to 2 if using GCC
  4498. and optimizing by default.
  4499. Fri Oct 27 19:26:27 1995 Andrew Cagney <cagney@highland.com.au>
  4500. * bits.h (ROTL32, ROTL64): Were functions, made them macros, now
  4501. make them functions again. Appears 2.6.3 is confused by just a
  4502. macro.
  4503. Thu Oct 26 18:31:58 1995 Andrew Cagney <cagney@highland.com.au>
  4504. * ppc-endian.c (SWAP_8): Fix 8 byte swap!
  4505. * psim.c (psim_create): Not correctly checking that runtime
  4506. configuration of things like ENDIAN, ENVIRONMENT and ALIGNMENT
  4507. matched the compiled in ones.
  4508. * debug.h (ITRACE), igen.c: Tidy up more tracing flags -
  4509. trace_semantics is now different to trace_idecode, the former
  4510. checks the cache.
  4511. Tue Oct 24 21:54:13 1995 Andrew Cagney <cagney@highland.com.au>
  4512. * ppc-instructions (mtsrin): Missing instruction
  4513. * ppc-instructions (mfsrin): Missing instruction
  4514. * ppc-instructions (eieio): Missing instruction
  4515. Tue Oct 24 20:55:29 1995 Andrew Cagney <cagney@highland.com.au>
  4516. * build-psim: New shell script - see internals for usage,
  4517. simplifies the process of building custom simulators.
  4518. Mon Oct 23 23:48:59 1995 Andrew Cagney <cagney@highland.com.au>
  4519. * std-config.h (SEMANTICS_INLINE): Tidy up notes on each of the
  4520. INLINE macros. Make SEMANTICS_INLINE == 1 if DEFAULT_INLINE == 2.
  4521. Don't use DEFAULT_INLINE to define REGISTERS_INLINE DEVICES_INLINE
  4522. DEVICE_TREE_INLINE or INTERRUPTS_INLINE as none of these are on
  4523. the instruction or data critical paths.
  4524. * FIXME: devices.c/emul_netbsd.c would benefit (slightly) from
  4525. the inclusion of device_tree.c/emul_generic.c.
  4526. Mon Oct 23 00:31:50 1995 Andrew Cagney <cagney@highland.com.au>
  4527. * os_emul.[hc], emul_generic.[hc], emul_netbsd.[hc]: replace
  4528. system.[hc]. Start of suport for multiple emulations and
  4529. emulation state (os_emul object).
  4530. * emul_generic.[hc]: Start of code to implement proper system call
  4531. tracing (from spy).
  4532. Sun Oct 22 21:33:51 1995 Andrew Cagney <cagney@highland.com.au>
  4533. * cpu.h, cpu.c (cpu_init): New function, zero the registers before
  4534. the processor is started. Fixes problem of registers being
  4535. undefined when restarting from within gdb.
  4536. * cpu.h, cpu.c (cpu_flush_icache): New function, flushes the
  4537. instruction cache (if present). Fixes problem of cpu caching gdb
  4538. breakpoint instructions.
  4539. FIXME: PSIM sometimes aborts calling error(), it should instead
  4540. call sim_error() say which takes care of housekeeping such as
  4541. saving the CIA before calling error.
  4542. * NOTE: cpu_flush_cache() instead of cpu_synchronize_context() is
  4543. used when restarting a simulation because the latter has the
  4544. unwanted side effect (well I as a kernel hacker think it is) of
  4545. performing an isync when the instruction stream doesn't contain
  4546. one.
  4547. Sun Oct 22 19:27:48 1995 Andrew Cagney <cagney@highland.com.au>
  4548. * mon.h (new), mon.c (new), std-config.h (WITH_MON): Performance
  4549. monitoring module. Counts both instructions issued and
  4550. load/stores.
  4551. * NOTE: mon does not contain to count instruction loads as this
  4552. information is already available from the mon_issue() hook.
  4553. * igen.c (lf_print_c_semantic), vm_n.h: Add counting code.
  4554. * psim.h, psim.c (psim_create), cpu.h, cpu.c (cpu_create): Attach
  4555. a common monitor to each of the cpus. Delete
  4556. cpu_increment_number_of_insns() and cpu_get_number_of_insns()
  4557. replaced by copied code in mon.[hc].
  4558. Sun Oct 22 18:42:45 1995 Andrew Cagney <cagney@highland.com.au>
  4559. * sim_calls.c, main.c, psim.c (psim_create): always create
  4560. `WITH_SMP' cpus. The actual number of CPU's active in a
  4561. simulation run is taken from the device node: /init/smp (an
  4562. integer). WITH_SMP changed to 2 (remember to put it back to 0).
  4563. Fri Oct 20 17:26:54 1995 Andrew Cagney <cagney@highland.com.au>
  4564. * system.c: More system call emulation. If code appears NetBSD
  4565. specific, make conditional to being compiled on a NetBSD system
  4566. (sigh).
  4567. Wed Oct 18 23:02:20 1995 Andrew Cagney <cagney@highland.com.au>
  4568. * Makefile.in, gen.c(delete), igen.c(new), dgen.c(new),
  4569. lf.[ch](new), table.[ch](new): Split into two generators - igen
  4570. that outputs the instruction tables and dgen that outputs the spr
  4571. tables. Add -f (filter out) flag to igen to filter out certain
  4572. instructions (ex 64 bit ones) from the created tables. Include
  4573. $(LIBIBERTY_LIB) in link options in case host lacks some libc
  4574. functions.
  4575. * NOTE: igen, since it was originally written for the
  4576. PowerPC/RS6000, things the MSB is 0 and the LSB is 63{31}.
  4577. * Makefile.in, std-config.h, ppc-cache-rules(new),
  4578. ppc-opcode-complex(new), ppc-opcode-simple(new): (for igen) Create
  4579. cache-rule and opcode-rule tables from macros found std-config.h.
  4580. Delete corresponding macro's from std-config.h.
  4581. * igen.c (gen_itable_c, gen_itable_h), Makefile.in: code to output
  4582. an table of all the instructions. Code to output a type
  4583. enumerating all the instructin names.
  4584. * igen.c(lf_print_c_semantic): Move call to increment instruction
  4585. counter so that it occures _after_ the instruction has been fully
  4586. validated, was double counting illegal/invalid instructions. Add
  4587. conditional so only compiled in when WITH_PROFILE enabled (enabled
  4588. by default).
  4589. * igen.c, cpu.h, cpu.c(cpu_increment_number_of_insns): Include
  4590. itable.h, count individual instruction types not just total,
  4591. adjust reporting functions to output this.
  4592. * ppc-instructions (64 bit Load Doubleword with Update Indexed):
  4593. Had 32./ instead of 31./
  4594. * ppc-instructions (64 bit Store Double Word Conditional Indexed):
  4595. bitrot - updated to use newer CR register operators.
  4596. * ppc-instructions (64bit Floating Convert from Integer
  4597. Doubleword): Correct call to Round_Float().
  4598. Mon Oct 16 00:31:20 1995 Andrew Cagney <cagney@highland.com.au>
  4599. * basics.h: #include "sim_callbacks.h" earlier so that its
  4600. prototypes are declared in all other header files.
  4601. * bits.h, bits.c, idecode_expression.h (ROTL32, ROTL64): Update
  4602. doc in bits.h, remove dead code in bits.c, move ROTL32/ROTL64 into
  4603. bits.h.
  4604. * cpu.c(cpu_add_commas), device_tree.h, device_tree.c(scand_*):
  4605. Add size of buffer argument to functions writing a string into a
  4606. buffer. Check for buffer overflow.
  4607. Sun Oct 15 22:16:11 1995 Andrew Cagney <cagney@highland.com.au>
  4608. * devices.h, devices.c, debug.h, debug.c: add macro's for tracing
  4609. of each device. Make parameter names consistent so macros work.
  4610. Use macro's in device functions.
  4611. * device_tree.c, devices.h, devices.c: include path to device in a
  4612. devices node when creating it.
  4613. * device_tree.c, debug.h, debug.c: Add tracing of `device-tree'.
  4614. * core.c: add tracing of core-device, adjust parameter names in
  4615. core functions to be consistent with those in devices*.
  4616. Sun Oct 15 20:33:20 1995 Andrew Cagney <cagney@highland.com.au>
  4617. * debug.h, debug.c (trace_option): New function. Parses the trace
  4618. option, updating the trace array.
  4619. * debug.h, debug.c (trace_usage): New function. Outputs the list
  4620. of all possible trace options.
  4621. * sim_calls.c (sim_open), main.c (main): Use new trace_option() to
  4622. parse trace options specified with the simpler -t flag. Adjust
  4623. usage.
  4624. * FIXME: basic parsing of command line options is still duplicated
  4625. by main.c and sim_calls.c
  4626. Thu Oct 26 10:42:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  4627. * Makefile.in (clean): Delete *.i and *.out files.
  4628. * ppc-endian.c (SWAP_n): Add SET argument to allow use of SWAP
  4629. macros for either assignment or return. Fix SWAP_8 to use a
  4630. union, and two SWAP_4's. Delete SWAP_N, since nobody uses it now.
  4631. (ENDIAN_N): Add SET argument to SWAP_n calls. Delete macro defs
  4632. that hardwired swapping on/off, let optimizer delete dead code.
  4633. * main.c (main): Add printf that we caught a signal and print out
  4634. the failing address.
  4635. Thu Oct 19 21:43:39 1995 Fred Fish <fnf@fishfood.amigalib.com>
  4636. * Makefile.in: Remove tabs from otherwise empty line.
  4637. Confuses many non-GNU versions of "make".
  4638. Wed Oct 18 08:51:25 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  4639. * Makefile.in (clean): Delete files produced by gen.
  4640. Mon Oct 16 17:34:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  4641. * gen.c (lf_print_c_semantic_function): Move counting # of
  4642. instructions here so it works with caching.
  4643. (gen_idecode_c): Move from here.
  4644. Wed Oct 11 17:13:15 1995 Andrew Cagney <cagney@highland.com.au>
  4645. * gen.c, ppc-instructions, psim.c: Fix code for generating
  4646. cracking instruction cache. Delete the code that cached just the
  4647. result from doing an instruction lookup - this ran slower than no
  4648. cache at all.
  4649. Fri Oct 13 09:58:43 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  4650. * Makefile.in (gen.o): Include $(INLINE_CFLAGS).
  4651. * debug.h (ppc_trace): Rename from trace, to avoid a conflict with
  4652. TCL when gdb is linked with the simulator.
  4653. * debug.c (ppc_trace): Ditto.
  4654. * sim_calls.c (sim_open): Change trace -> ppc_trace.
  4655. * main.c (main): Ditto.
  4656. * cpu.c (cpu_add_commas): Remove extra static.
  4657. Thu Oct 12 11:35:53 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  4658. * Makefile.in (psim.o): Now that inlines are turned on, make
  4659. psim.o depend on all sources.
  4660. * cpu.c (cpu_add_commas): New function to format a long with
  4661. commas.
  4662. (cpu_print_info): Use it to print number_of_insns.
  4663. * ppc-endian.c (SWAP_n): New macros to speed up byte swapping for
  4664. 2, 4, and 8 bytes.
  4665. (ENDIAN_N): If both target and host byte orders are known, don't
  4666. bother testing CURRENT_{TARGET,HOST}_BYTE_ORDER.
  4667. * ppc-endian.h (target specific H2T_n/T2H_n macros): Remove #if 0
  4668. to allow target specific H2T_n/T2H_n macros to be used.
  4669. (htonl, ntohl): If compiled on a 486 by GCC and WITH_BSWAP is
  4670. non-zero, redefine the htonl/ntohl macros to use the BSWAP instead
  4671. of the 3 instruction sequence that runs on 386s.
  4672. * std-config.h (WITH_{HOST,TARGET}_BYTE_ORDER): Don't override if
  4673. specified on the compile line.
  4674. (WITH_BSWAP): If not defined, define as 0.
  4675. * Makefile.in (INLINE_CFLAGS): Add -DDEFAULT_INLINE=2 to add
  4676. default inline support. Pass INLINE_CFLAGS when compiling.
  4677. * devices.{h,c} (unimp_device_ioctl): Use STATIC_DEVICES, not
  4678. INLINE_DEVICES since GCC doesn't like inline functions that
  4679. accept variable arguments.
  4680. (stack_ioctl_callback): Make function just static because GCC
  4681. doesn't like inline functions that accept variable arguments.
  4682. * devices.h (STATIC_DEVICES): Define as empty if not defined.
  4683. * inline.c: Correct pathnames of included C files to match current
  4684. implementation.
  4685. * inline.h (STATIC_DEVICES): If DEVICES_INLINE is defined to be
  4686. non-zero, define STATIC_DEVICES to be static.
  4687. * std-config.h (INLINE): If GNU C and optimizing, define this as
  4688. __inline__.
  4689. (DEFAULT_INLINE): If not defined, define as 0.
  4690. (ENDIAN_INLINE): If not defined, define as DEFAULT_INLINE.
  4691. ({CORE,VM,CPU,EVENTS,REGISTERS,INTERRUPTS}_INLINE): Ditto.
  4692. ({SPREG,IDECODE}_INLINE): Ditto.
  4693. Wed Oct 11 17:13:15 1995 Andrew Cagney <cagney@highland.com.au>
  4694. * ppc-instructions: Initial cut of floating point suport added.
  4695. Of note include - use of host IEEE floating point instructions,
  4696. use of PowerPC manual pseudo code to handle the FPSCR. It is not
  4697. currently a pretty sight.
  4698. * memory_map.h, memory_map.c, memory_map_n.h, core.h, core.c:
  4699. merge into core.h, core.c, core_n.h. The type memory_map replaced
  4700. with core_map. This removes a level of pointer indirection when
  4701. translating an address.
  4702. * memory_map.h, memory_map.c, memory_map_n.h: delete.
  4703. * Makefile.in et.al (sorry): tweek to use new core, core_map and
  4704. core.h.
  4705. Wed Oct 11 12:10:26 1995 Andrew Cagney <cagney@highland.com.au>
  4706. * sim_calls.c, main.c: Add -g (trace_gdb) option, add tracing to
  4707. most of the other functions in sim_calls.c.
  4708. * basics.h (CONCAT3), memory_map.c, memory_map_n.h, Makefile.in:
  4709. Add macros to better cover up `generic' code. Makes it possible
  4710. to step through the generic code!
  4711. * vm.c, vm_n.h, Makefile.in: ditto
  4712. Tue Oct 10 15:42:59 1995 Andrew Cagney <cagney@highland.com.au>
  4713. * devices.h, devices.c, memory_map.h, memory_map.c: Changed
  4714. callback interface so that there is a read/write buffer but no
  4715. read/write_word. VEA default memory read/write handler sometimes
  4716. couldn't resolve an access and of those some were for a memory
  4717. fault and some were because gdb was making a bogus request.
  4718. * devices.h, devices.c, memory_map.h, memory_map.c, vm.h, vm.c:
  4719. eliminate transfer_mode (raw or cooked) parameter from read/write
  4720. buffer.
  4721. Fri Oct 6 20:23:56 1995 Andrew Cagney <cagney@highland.com.au>
  4722. * ppc-instructions (fmul, fmuls): correct instruction format - had
  4723. FRB instead of FRC.
  4724. Wed Oct 4 17:31:12 1995 Andrew Cagney <cagney@highland.com.au>
  4725. * psim.c, device_tree.h, device_tree.c, devices.c (printd_*,
  4726. scand_*): new functions to parse/print fields in device names
  4727. while hiding any machine dependency.
  4728. * devices.c, psim.c: Change the stack init code so that it is
  4729. handled by a device. Arguments passed across using a device ioctl
  4730. (hack).
  4731. * devices.h, devices.c: device ioctl callback changed to allow a
  4732. variable number of arguments. This gives greater flexability and
  4733. greater chance of bugs.
  4734. Tue Oct 3 22:01:56 1995 Andrew Cagney <cagney@highland.com.au>
  4735. * main.c (printf_filtered, error): Missing va_end() to close off
  4736. variable argument use.
  4737. * Makefile.in (tmp-gencode): comment out hack to get around some
  4738. versions of make not handling files being created as side-effects.
  4739. * gen.c (lf_open): Add -n (real_file_name) option. Specifies an
  4740. alternative file name to use in output files for things like #line
  4741. macros.
  4742. Makefile.in (tmp-gencode): Use gen -n so that debug info is
  4743. correct.
  4744. * Makefile.in (TARGETLIB): Use this instead of libsim.a in the
  4745. Makefile.
  4746. Sat Oct 7 22:40:59 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  4747. * sim_calls.c (sim_set_callbacks): Define new function.
  4748. Fri Oct 6 17:23:10 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  4749. * psim.c (psim_print_info): Print exit status or signal number.
  4750. Mon Oct 2 11:46:37 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  4751. * cpu.c (struct _cpu): Add number_of_insns field to trace how many
  4752. instructions are executed.
  4753. (cpu_increment_number_of_insns): New function to increment the
  4754. number of instructions issued.
  4755. (cpu_get_number_of_insns): New function to return the number of
  4756. instructions issued.
  4757. (cpu_print_info): New function to print cpu related information.
  4758. At present, print the number of instructions executed.
  4759. * gen_idecode_c: Emit call to cpu_increment_number_of_insns within
  4760. idecode_issue.
  4761. * psim.c (psim_print_info): New function to iterate over each of
  4762. the CPU's calling cpu_print_info.
  4763. * psim.h,cpu.h: Add new declarations.
  4764. * sim_calls.c (sim_open): Add argument processing to add the same
  4765. switches main.c accepts for the standalone processor.
  4766. (sim_close): Call psim_print_info if -I.
  4767. * main.c (main): Add comment saying to update sim_calls.c when
  4768. adding switches. Add -I to call psim_print_info when done.
  4769. (usage): Update usage message.
  4770. Sun Oct 1 13:52:59 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  4771. * main.c (printf_filtered): Correct to match new prototype.
  4772. Sat Sep 30 20:47:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  4773. * sim_callbacks.h (printf_filtered): Correct prototype.
  4774. Thu Sep 21 16:26:49 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  4775. * device_tree.c (OEA_MEMORY_SIZE): Define if not defined to
  4776. 0x100000.
  4777. (clayton_memory_size): Define as OEA_MEMORY_SIZE.
  4778. * std-config.h (WITH_TRACE): Default to 1 now.
  4779. * psim.c (write_stack_arguments): Don't write any stack arguments
  4780. if OEA.
  4781. * main.c (main): Switch to using getopt. Make -p also set
  4782. trace_semantics. Make -a turn on all trace flags. Make -C turn
  4783. on console tracing.
  4784. * device_tree.c (create_option_device_node): Assume a program is
  4785. OEA if the start address is < 4096, not just == 0.
  4786. Wed Sep 20 13:36:06 1995 Ian Lance Taylor <ian@cygnus.com>
  4787. * Makefile.in (maintainer-clean): New synonym for realclean.
  4788. Sun Sep 10 10:23:56 1995 Michael Tiemann <tiemann@axon.cygnus.com>
  4789. * registers.c (register_description): Add gdb synonyms for cr
  4790. (cnd) and msr (ps).
  4791. Fri Sep 8 13:16:10 1995 Ian Lance Taylor <ian@cygnus.com>
  4792. * Makefile.in (install): Don't install in $(tooldir).
  4793. * configure.in: Call AC_CONFIG_HEADER. Don't try to use
  4794. bfd/hosts/*.h file or bfd/config/*.mh file. Call AC_PROG_CC and
  4795. AC_PROG_RANLIB. Substitute in values for CFLAGS, HDEFINES, AR,
  4796. and CC_FOR_BUILD. Call AC_CHECK_HEADERS for various header files.
  4797. Touch stamp.h if creating config.h.
  4798. * configure: Rebuild.
  4799. * config.in: New file, created by autoheader.
  4800. * Makefile.in (AR): Define as @AR@.
  4801. (CC): New variable, defined as @CC@.
  4802. (CFLAGS): Define as @CFLAGS@.
  4803. (CC_FOR_BUILD): New variable, defined as @CC_FOR_BUILD@.
  4804. (RANLIB): Define as @RANLIB@.
  4805. (HDEFINES, TDEFINES): New variables.
  4806. (@host_makefile_frag@): Remove.
  4807. (mostlyclean): Make the same as clean, not distclean.
  4808. (clean): Remove config.log.
  4809. (distclean): Remove config.h and stamp-h.
  4810. (Makefile): Don't depend upon @frags@. Just rebuild Makefile when
  4811. invoking config.status.
  4812. (config.h, stamp-h): New targets.
  4813. (gen, gen.o): Build with CC_FOR_BUILD, not CC.
  4814. (ppc-config.h): Rename from old config.h build.
  4815. * (basics.h,gen.c,ppc-endian.c,psim.c): Include ppc-config.h.
  4816. Fri Sep 8 09:51:03 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  4817. * configure{,.in}: Don't include sysdep.h from bfd, since bfd no
  4818. longer provides it.
  4819. * basics.h (sysdep.h): Don't include it.
  4820. * Makefile.in (BASICS_H): Remove sysdep.h.
  4821. Wed Sep 6 13:25:42 1995 Andrew Cagney <cagney@highland.com.au>
  4822. * core.c (core_add_data): First growth of bss was being put at
  4823. wrong address (0) instead of &end.
  4824. * core.c (core_add_stack, core_add_data): Was not handling case
  4825. where bss/stack is grown across the current end-of-{bss,stack}.
  4826. Wed Sep 6 00:46:10 1995 Andrew Cagney <cagney@highland.com.au>
  4827. * system.c (system_call): Fix SYS_break - was aligning bss to a
  4828. page boundary instead of just an 8 byte one; On first call sbrk(0)
  4829. != sbrk(0).
  4830. Thu Aug 24 14:48:54 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  4831. * Makefile.in (install): Fix install rule.
  4832. Tue Aug 22 09:31:18 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  4833. * system.c (system_call): Add read support.
  4834. * main.c (main): -t sets trace_device_tree. Correct usage message
  4835. to current reality.
  4836. * device_tree.c (update_memory_node_for_section): Make tracing
  4837. output line up. If not code or readonly, assume that the section
  4838. is a data section and has read/write permissions. Add readonly
  4839. support.
  4840. * core.c (create_core_from_addresses): Print end address in traces
  4841. and make tracing output line up.
  4842. * Makefile.in: Rewrite from Makefile to work with the Cygnus
  4843. environment, and support compiling in a different directory than
  4844. the sources reside in.
  4845. * ppc-endian.h: Rename from endian.h so that it doesn't get
  4846. confused with /usr/include/sys/endian.h on Linux. Add Linux
  4847. endian support.
  4848. * ppc-endian.c: Rename to be consistant with ppc-endian.h.
  4849. Include ppc-endian.h, not endian.h.
  4850. * basics.h (sysdep.h): Include sysdep.h that configure makes.
  4851. Include ppc-endian.h, not endian.h.
  4852. * std-config.h: Rename from ppc-config. Put #ifndefs around most
  4853. configuration macros, so they can be overridden via CFLAGS. By
  4854. default, turn off tracing.
  4855. * configure.in: Clone from other simulator targets.
  4856. * configure: Generate via autoconf from configure.in.
  4857. Sat Aug 19 09:05:32 1995 Andrew Cagney <cagney@highland.com.au>
  4858. * ppc-instructions: fix srawi (was geting XER[CA] real wrong).
  4859. * interrupts.c (data_storage_interrupt): allow stack to grow by
  4860. upto one MB per increment.
  4861. * ppc-instructions: divw was computing rA / rA not rA / rB
  4862. * main.c (main): really stupid. Wasn't exiting with correct status
  4863. Fri Aug 18 00:38:01 1995 Andrew Cagney <cagney@highland.com.au>
  4864. * system.c (system_call): add system calls kill(2) and getpid(2).
  4865. * main.c (main): Check/return exit status when simulation
  4866. finishes.
  4867. Thu Aug 17 14:29:18 1995 Andrew Cagney <cagney@highland.com.au>
  4868. * device_tree.c (create_option_device_node): Alignment rules (at
  4869. least for the moment) now are for strict alignment only for LE OEA
  4870. mode. (Because of compiler problems).
  4871. * system.c (system_call) SYS_exit: Wasn't exiting with correct status.
  4872. Thu Aug 17 01:16:38 1995 Andrew Cagney <cagney@highland.com.au>
  4873. * vm.c (DEFINE_VM_DATA_MAP_WRITE_N): For miss aligned transfer
  4874. forgot to return.
  4875. * system.c (system_call): didn't page align break argument before
  4876. determining increment break increment.
  4877. * psim/ppc: Re-arange entire directory structure so that
  4878. everything lives in the one directory. While a pain for cleaning,
  4879. makes building across multiple architectures much simpler.
  4880. * devices.c, device_tree.c: Added code that provides a simple
  4881. illustration of how an interrupt control device could be
  4882. implemented.
  4883. * devices.c: Added code so that the dumb console device can read
  4884. (from stdin) as well as write to stdout.