ChangeLog.00 80 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169
  1. Wed May 29 22:57:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  2. * ChangeLog.00, ChangeLog: ChangeLog from gdb-4.16 becomes
  3. ChangeLog.00
  4. Thu Apr 4 15:17:22 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  5. * INSTALL: Fix some long lines and remove x86 specific options in
  6. the examples.
  7. Sun Mar 31 15:47:33 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
  8. * INSTALL: Update to reflect gdb-4.16.
  9. * RUN: Update to reflect gdb-4.16. Review notes on building a BSD
  10. runtime environment.
  11. * README: Point out copyright status of simulator in introduction.
  12. Thu Mar 7 19:53:49 1996 Michael Meissner <meissner@cygnus.com>
  13. * emul_netbsd.c: Only include sys/mount.h if HAVE_SYS_MOUNT_H is
  14. defined.
  15. * configure.in: Test for sys/mount.h.
  16. * configure,config.in: Regenerate.
  17. Thu Feb 22 22:48:57 1996 Andrew Cagney <cagney@highland.com.au>
  18. * README, RUN, INSTALL: Update to reflect announcement
  19. * psim: PSIM 1.0.1 released
  20. Thu Feb 22 14:01:56 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  21. * emul_bugapi.c (emul_bugapi_do_read): New function to handle
  22. reads.
  23. (emul_bugapi_instruction_call): Add support for .INCHR/.INLN
  24. system calls.
  25. * emul_bugapi.c (emul_bugapi_do_write): Call flush_stdoutput.
  26. * emul_netbsd.c (do_write): Call flush_stdoutput.
  27. * main.c (flush_stdoutput): Do fflush (stdout).
  28. * sim_calls.c (flush_stdoutput): Do gdb_flush (gdb_stdout);
  29. * sim_callbacks.h (flush_stdoutput): Declare.
  30. Wed Feb 21 10:39:35 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  31. * emul_bugapi.c (bug_mapping): New structure to map bug system
  32. call numbers to a string.
  33. (toplevel): Add remaining bugapi system calls.
  34. (emul_bugapi_instruction_name): Map bugapi system call number to a
  35. string.
  36. (emul_bugapi_do_write): Common code to process write system calls.
  37. (emul_bugapi_instruction_call): If os-emul tracing is on, trace
  38. the system call. Use the name to print unknown system call.
  39. Correct implementation of _OUTLN. Add support for _OUTSTR and
  40. _PCRLR system calls.
  41. Wed Feb 21 17:07:27 1996 Andrew Cagney <cagney@highland.com.au>
  42. * NOTES: New file. Ramblings on why things were done they way
  43. they were.
  44. * psim.c (psim_options): Didn't enter the model value into the
  45. device tree as a string.
  46. * cpu.c (cpu_synchronize_context): Wrong test for conditional
  47. flush of cache.
  48. * emul_generic.c (emul_add_tree_hardware): reg value didn't match
  49. bus address.
  50. * ppc-opcode-flat: new file. Generate an instruction decode
  51. function like ppc-opcode-complex but use switch statements.
  52. * INSTALL: document new opcode file, add example configurations.
  53. Tue Feb 20 18:42:31 1996 Andrew Cagney <cagney@highland.com.au>
  54. * main.c (main): rename psim instance (system) to simulation and
  55. make global.
  56. * main.c (error): print out performance even when an error occures.
  57. * emul_bugapi.c (emul_bugapi_create): Fix argument passing.
  58. * emul_generic.c (emul_add_tree_hardware): Move hardware devices
  59. to 0x80000000 from 0x400000.
  60. Mon Feb 19 22:54:40 1996 Andrew Cagney <cagney@highland.com.au>
  61. * ppc-instructions (TLB Invalidate Entry, TLB Invalidate ALL):
  62. Implement by passing on request to all processors.
  63. * ppc-instructions (TLB Synchronize): Implement as empty, processor
  64. tlb's are always in sync.
  65. * cpu.c (cpu_page_tlb_invalidate_all): New function. Pass on TLB
  66. invalidate request to processors VM sub-system.
  67. * cpu.c (cpu_page_tlb_invalidate_entry): Ditto.
  68. * vm.c (vm_page_tlb_invalidate_all): New function. Mark all page
  69. TLB entries as invalid.
  70. * vm.c (vm_page_tlb_invalidate_entry): New function. Ditt but only
  71. invalidate one TLB entry.
  72. * psim.c (psim_init): Invalidate TLB's before (re)starting.
  73. Mon Feb 19 21:25:56 1996 Andrew Cagney <cagney@highland.com.au>
  74. * emul_generic.c (emul_add_tree_options): Add argument
  75. oea_interrupt_prefix (0 or 1) that specifies the prefix MSR[IP]
  76. and hence the location of the interrupt vectors. Add this to the
  77. device tree.
  78. * emul_chirp.c (emul_chirp_create): Allow configuration of
  79. floating-point and interrupt prefix (default 0) using the above.
  80. * emul_netbsd.c (emul_netbsd_create): Pass dummy arg for
  81. interrupt-prefix.
  82. * emul_bugapi.c (emul_bugapi_create): Allow configuration of
  83. interrupt prefix (default 1) and configure interrupt table traps
  84. accordingly.
  85. * emul_generic.c (emul_add_tree_hardware): Include a small eeprom
  86. in the list of devices.
  87. * device_table.c: For moment fake eeprom device by a memory
  88. device. In future will need a proper eeprom device.
  89. Tue Feb 20 17:01:26 1996 J.T. Conklin <jtc@rtl.cygnus.com>
  90. * config.in: Regenerated.
  91. Fri Feb 16 10:42:27 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  92. * psim.c: Include options.h so print_options is declared.
  93. Thu Feb 15 18:10:13 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  94. * emul_netbsd.c (toplevel): Do not include sys/resource.h if the
  95. system doesn't have it, and turn off getrusage processing.
  96. (write_rusage): #ifdef out if we don't have getrusage.
  97. (do_getrusage): Define as 0 if we don't have getrusage.
  98. Wed Feb 14 17:38:12 1996 J. T. Conklin <jtc@cygnus.com>
  99. * configure.in (AC_HEADER_DIRENT): Add, so that we can figure out
  100. where the directory functions are declared.
  101. * configure: Regenerate
  102. * emul_netbsd.c: Use the macros defined by configure to find the
  103. appropriate directory functions.
  104. Thu Feb 8 00:53:13 1996 Andrew Cagney <cagney@highland.com.au>
  105. * configure.in (xor_endian): Trace setting of xor-endian flag.
  106. Wed Feb 7 18:20:56 1996 Andrew Cagney <cagney@highland.com.au>
  107. * psim.c (psim_usage): Extend documentation.
  108. * ppc-instructions (model-print): fix typo.
  109. Sun Feb 4 23:58:02 1996 Andrew Cagney <cagney@highland.com.au>
  110. * configure.in (with-smp): Default configuration allow up to
  111. five processors (but enable only one).
  112. * emul_bugapi.c (emul_bugapi_create): If floating-point is
  113. allowed, enable the floating point instruction set in the
  114. msr.
  115. Tue Jan 30 22:52:32 1996 Andrew Cagney <cagney@highland.com.au>
  116. * emul_chirp.c (chirp_emul_seek, chirp_emul_read,
  117. chirp_emul_write): Tolerate invalid ihandles.
  118. * device.c (device_instance_create, device_instance_delete):
  119. init/delete instance name
  120. * emul_chirp.c (emul_chirp_instruction_call): Read the nr args and
  121. returns when determining the service.
  122. * emul_chirp.c (chirp_read_t2h_args): Allow variable number of
  123. args for the method "call-method".
  124. * emul_chirp.c (chirp_emul_getprop): Tolerate a n_returns of zero
  125. - should be one. Some OpenBoot code doesn't pass correct arg.
  126. * emul_chirp.c (chirp_emul_getprop): Trace more property types.
  127. Tue Jan 30 19:12:29 1996 Andrew Cagney <cagney@highland.com.au>
  128. * RUN: New file. Describe how to run PSIM
  129. * INSTALL: New file. Describe how to install PSIM
  130. * README: New file. Overview PSIM.
  131. * BUGS: New file. Briefly discuss bugs and limitations
  132. Wed Jan 24 20:28:08 1996 Andrew Cagney <cagney@highland.com.au>
  133. * emul_bugapi.c (OEA_START_ADDRESS): Put it back to 0x100000,
  134. wasn't correctly using GLD.
  135. Mon Jan 22 22:44:13 1996 Andrew Cagney <cagney@highland.com.au>
  136. * emul_generic.c (emul_add_tree_options): Make default number of
  137. active processors 1 (even when SMP enabled).
  138. Mon Jan 22 22:37:34 1996 Andrew Cagney <cagney@highland.com.au>
  139. * device_table.c (icu_io_read_buffer_callback): Add extra register
  140. (at addr + 4) that returns number of processors.
  141. * emul_generic.c (emul_add_tree_hardware): Update device node to
  142. match.
  143. Mon Jan 22 22:00:42 1996 Andrew Cagney <cagney@highland.com.au>
  144. * emul_bugapi.c (OEA_START_ADDRESS): Change to 0x4000 so that it
  145. matches gas-960116/ld.
  146. Fri Jan 19 00:32:27 1996 Andrew Cagney <cagney@highland.com.au>
  147. * psim-960119 released - psim-1.0b01.
  148. Fri Jan 19 00:32:27 1996 Andrew Cagney - aka Noid <cagney@highland.au.com>
  149. * psim.c (psim_create): Re-order so that all options are set
  150. before the CPU's are created. Was breaking mon_create();
  151. * psim.c (psim_create): Tidy up conflicting configuration errors.
  152. * debug.c: Add missing print-info entry to trace table.
  153. * os_emul.c (os_emul_create): Fix `-e' option. Was looking under
  154. wrong name.
  155. * psim.c (psim_options): Fix `-r' option. Was entering under wrong
  156. name.
  157. Thu Jan 18 20:33:48 1996 Andrew Cagney <cagney@highland.com.au>
  158. * vm.c (om_unpack_bats): Fix checking of bat bits.
  159. * emul_chirp.c (emul_chirp_create): Store address of OB in memory
  160. in the os_emul_data structure.
  161. * emul_bugapi.c (emul_bugapi_create): Store the address of the
  162. bugapi code (in main memory) in the os_emul_data structure.
  163. Thu Jan 18 01:14:55 1996 Andrew Cagney <cagney@highland.com.au>
  164. * vm.c (om_translate_effective_to_real): Fix trace output.
  165. Wed Jan 17 22:21:55 1996 Andrew Cagney <cagney@highland.com.au>
  166. * device_table.c (generic_device_init_address): Create memory from
  167. information obtained from `reg' property.
  168. * device_table.c (vm_init_address_callback): Use information
  169. obtained from properties.
  170. * emul_netbsd.c (emul_netbsd_create): Update to create device and
  171. property entries to match
  172. Tue Jan 16 09:50:53 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  173. * idecode_expression.h (ALU_END): Add ITRACE of the result.
  174. * ppc-instructions (Equivalent): Enable this instruction.
  175. (Add to Minus One Extended): Ditto.
  176. (Subtract from Minus One Extended): Ditto.
  177. (Add/And/Or/Xor Immediate): Add alu trace of result.
  178. (Add/And/Or/Xor Shifted Immediate): Ditto.
  179. (And/Or/Equivalent/Nand/Nor): Ditto.
  180. (And/Or with Complement): Ditto.
  181. (Extend Sign Byte/Half Word): Ditto.
  182. (Count Leading Zeros): Ditto.
  183. (Shift Right Algerbraic Word): Ditto.
  184. (Shift Right Algerbraic Word Immediate): Ditto.
  185. Tue Jan 9 15:10:27 1996 Andrew Cagney <cagney@highland.com.au>
  186. * emul_bugapi.c (emul_bugapi_instruction_call) : Make format type
  187. correct.
  188. * emul_chirp.c (map_over_chirp_note) : Ditto
  189. * emul_chirp.c (chirp_emul_test) : Ditto
  190. * device_table.c (register_init): Ditto
  191. Tue Jan 9 14:16:26 1996 Andrew Cagney <cagney@highland.com.au>
  192. * configure.in: Make disable-sim-switch default. Switch only
  193. useful if using --enable-sim-opcode=ppc-opcode-stupid and then
  194. only marginally so.
  195. Mon Jan 8 12:17:22 1996 Michael Meissner <meissner@tiktok.cygnus.com>
  196. * device_table.c (register_init): Make format type correct.
  197. Wed Jan 3 19:21:46 1996 Andrew Cagney <cagney@highland.com.au>
  198. * emul_bugapi.c (emul_bugapi_create): Add nodes to init the
  199. system-call trap to the emul instruction call instruction (Along
  200. with an rfi and infinate loop).
  201. * emul_bugapi.c (emul_bugapi_instruction_call): Expand to include
  202. a few real PPC bug calls. Test with simple hello world.
  203. Tue Jan 2 20:51:19 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
  204. * device.h, device.c (device_child, device_sibling): New
  205. functions. Return corresponding device value.
  206. * emul_chirp.c (chirp_emul_child, chirp_emul_peer,
  207. chirp_emul_parent): New functions - emulate corresponding OpenBoot
  208. interfaces.
  209. * device_table.c (register_init): Extend properties attached to
  210. register init node to allow a specific processor's register to be
  211. specified.
  212. * emul_chirp.c (emul_chirp_create): Init SMP correctly - the
  213. initial PC for all processors is an infinate loop but then, for
  214. processor zero, is quickly changed to be the correct code starting
  215. address.
  216. * emul_chirp.c (emul_chirp_create): Add fake bootpath
  217. et.al. properties to tree.
  218. * emul_chirp.c (chirp_emul_getproplen): New function. Emulate the
  219. getproplen OpenBoot call.
  220. * emul_chirp.c (emul_chirp_instruction_call): Document other
  221. possible chirp emulation internal states.
  222. * emul_chirp.c (emul_chirp_instruction_call): Trace failed lookups
  223. as well as successful ones.
  224. * emul_chirp.c (emul_chirp_open): New function - handle open
  225. client call.
  226. * Makefile.in (maintainer-clean): Proper rule that eliminates more
  227. junk.
  228. Tue Dec 19 13:00:11 1995 Andrew Cagney <cagney@highland.com.au>
  229. * emul_chirp.c (chirp_emul_exit): Full out call.
  230. * device_table.c (htab_map_page): Wasn't handling byte swap when
  231. creating entries in the hash table.
  232. * device.c (device_tree_find_node): Allow primative wild-card match
  233. of device names with the path.
  234. FIXME: As mentioned earlier, the device stuff needs work to bring
  235. it into line with OpenBoot. Part of this work is rewriting the
  236. find_node function so that it behaves as specified in p1275.
  237. Mon Dec 18 19:58:56 1995 Andrew Cagney <cagney@highland.com.au>
  238. * emul_chrp.c (chirp_emul_write, chirp_emul_finddevice): add
  239. better tracing.
  240. * emul_chrp.c: Change return type of emul functions to int. Emul
  241. functions either return -1 or zero so unsigned was a bit
  242. dangerous.
  243. * inline.h (*), igen.c, dgen.c, *: Update INLINE macros so that
  244. they are paramaterised with the type of the function. Gets around
  245. the problem of `static' needing to come first with `attribute'
  246. comming last. Format declarations and definitions so that emacs
  247. doesn't get confused.
  248. Fri Dec 15 17:06:44 1995 Andrew Cagney <cagney@highland.com.au>
  249. * std-config.h (PSIM_INLINE): Add missing inline configuration
  250. control for the main loop.
  251. * mon.c (mon_print_info): If monitoring disabled still print out
  252. the number seconds used.
  253. * psim.c (run_until_stop): Don't monitor the cache misses when
  254. monitoring is disabled.
  255. * configure.in (sim_mon, sim_monitor): Correct typo - sim_mon ->
  256. sim_monitor for shell variable (or should that have been the other
  257. way around?).
  258. * vm.c (vm_synchronize_context): Fix wrong test for unsuported
  259. change in endian-mode.
  260. * std-config.h (WITH_REGPARM), inline.h (IDECODE_INLINE,
  261. SEMANTICS_INLINE): Add -DWITH_REGPARM=<n> option. Enables the
  262. __attribute__((__regparm(WITH_REGPARM))) for some functions.
  263. configure with --enable-sim-cflags="-DWITH_REGPARAM=3" (say).
  264. Unfortunatly it tickles a bug (gcc?) and can't be used.
  265. Mon Dec 18 13:36:06 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  266. * device.c (device_tree_add_device): Make trace fprintf arguments
  267. type correct.
  268. * device_table.c (htab_decode_hash_table): Ditto.
  269. (htab_map_binary): Ditto.
  270. (htab_init_callback): Ditto.
  271. * vm.c (om_virtual_to_real): Ditto.
  272. Sat Dec 16 09:54:18 1995 Michael Meissner <meissner@wogglebug.tiac.net>
  273. * emul_netbsd.c (emul_netbsd_create): Deal with new BFD that
  274. changed how big/little endian support is recorded, while remaining
  275. compatible with the old BFD with #ifdefs.
  276. * emul_chirp.c (emul_chirp_create): Ditto.
  277. * emul_bugapi.c (emul_bugapi_create): Ditto.
  278. Fri Dec 15 15:55:56 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  279. * std-config.h (MODEL_INLINE): Turn off INLINE_MODULE by default.
  280. * corefile.h: Delete declarations for unknown functions.
  281. * device.h: Ditto.
  282. * interrupts.h: Ditto.
  283. * interrupts.c: Ditto.
  284. Thu Dec 14 18:49:34 1995 Andrew Cagney <cagney@highland.com.au>
  285. * lf.c (lf_print_function_type): New function. Munges a function
  286. type so that the prefix (eg INLINE...) is inserted after the type
  287. but before any `*'.
  288. * igen.c: Change to output functions using this.
  289. Wed Dec 13 23:47:00 1995 Andrew Cagney <cagney@highland.com.au>
  290. FIXME: Emul CHIRP does not correctly implement the find device
  291. function.
  292. FIXME: Emul CHIRP and device do not implement device instance
  293. operations.
  294. Wed Dec 13 23:47:00 1995 Andrew Cagney <cagney@highland.com.au>
  295. * options.c (options_inline): Function to output meaningful
  296. description of the INLINE options.
  297. * configure.in (inline): Replace inline magic numbers with macro
  298. names. Map 1->LOCALS_INLINE and 2->ALL_INLINE.
  299. * inline.h, inline.c: update to use inline method.
  300. * std-config.h (CPU_INLINE), cpu.h, inline.h, inline.c: make cpu.h
  301. inline always.
  302. * std-config.h (EVENTS_INLINE): Inline events in psim.
  303. Wed Dec 13 22:01:21 1995 Andrew Cagney <cagney@highland.com.au>
  304. * device_table.c (htab_sum_binary): DMA binaries to correct byte
  305. within a page.
  306. Tue Dec 12 22:51:18 1995 Andrew Cagney <cagney@highland.com.au>
  307. * psim.c (psim_merge_device_file): Change `=' to `==', was this an
  308. error?
  309. Tue Dec 5 11:56:14 1995 Andrew Cagney <cagney@highland.com.au>
  310. * ppc-instructions (ppc_nr_mtcrf_crs, ppc_branch_conditional_name,
  311. ppc_function_unit_name): Simplify by declaring these arrays as
  312. pure and simple static (instead of STATIC_MODEL).
  313. Tue Dec 5 00:45:34 1995 Andrew Cagney <cagney@highland.com.au>
  314. * sim_calls.c (sim_create, sim_load), main.c (main), psim.c: Pass
  315. an options device into psim_create() so that options can be merged
  316. into the tree.
  317. * device.c (*add*): Change semantics so the add functions only add
  318. when the new device (or property) doesn't already exist. This
  319. allows merging of options and data.
  320. Mon Dec 4 17:12:13 1995 Andrew Cagney <cagney@highland.com.au>
  321. * Makefile.in (BASICS_H): Didn't include basics.h in the list of
  322. header files to depend on.
  323. Mon Dec 4 17:12:13 1995 Andrew Cagney <cagney@highland.com.au>
  324. * std-config.h: (*_MODULE): Extend the <module>_inline macro's so
  325. that they also allow control over static functions. Rewrite
  326. document to reflect this.
  327. * std-config.h: (INLINE): Simplify definition, the above and
  328. earlier changes to igen.h eliminate the need to be defensive about
  329. enabling the inline of static functions.
  330. * std-config.h: (SIM_ENDIAN_INLINE, BITS_INLINE): Document limited
  331. suport for inlineing of modules for all callers. Adjust relevant
  332. macro's so that DEFAULT_INLINE will enable this.
  333. * basics.h: Re-order #includes and definitions so that c-code for
  334. basic include files does not call functions delcared in later
  335. #includes.
  336. * basics.h (__attribute__), sim_callbacks.h: Move attribute macro
  337. to basics.h and add hack (include <stdio.h>) to try and bring that
  338. and other possible conflicting macros into scope much earler.
  339. * sim-endian.h,c (SIM_ENDIAN_INLINE) bits.h,c (BITS_INLINE):
  340. Change to use the updated inline definitions. If enabled
  341. immediately include the corresponding c-code so that it will inline
  342. for all modules.
  343. * inline.h, inline.c (SIM_ENDIAN_INLINE, BITS_INLINE): Remove
  344. these cases, moved to module specific header files.
  345. Sat Dec 2 18:37:51 1995 Andrew Cagney <cagney@highland.com.au>
  346. * vm.c, vm_n.c: Fix htab code.
  347. * vm.c (vm_data_map_read_buffer): Was using EA not RA when reading
  348. the data from core.
  349. * device.c: Fix htab create code.
  350. Fri Nov 24 23:10:09 1995 Andrew Cagney <cagney@highland.com.au>
  351. * bits.h, bits.c (EXTRACTED): Convert to function, fix - had &&
  352. instead of &.
  353. * sim-endian.h (SWAP_N), sim-endian-n.h, sim-endian.c: How
  354. embarasing - fix yet another bug in the swap code! Simplify
  355. everything by using more functions. Add host to big-endian byte
  356. swapping support.
  357. Fri Nov 24 23:10:09 1995 Andrew Cagney <cagney@highland.com.au>
  358. * devices.h, devices.c: delete, replaced by the files
  359. device_table.[ch] and device.[ch].
  360. * device_tree.h, device_tree.c: ditto
  361. * device_table.h, device_table.c: New files. Contain a table of
  362. devices.
  363. * device.h, device.c, Makefile.in, std-config.h (DEVICE_INLINE),
  364. options.c (print_options): New files. Define the device object
  365. along with any attached properties.
  366. * device_tree.h, device_tree.c: Update to use new device object.
  367. For convenience, change the printd functions into device_tree_add
  368. functions.
  369. * psim.c (create_*_tree): Use new device_tree create functions.
  370. * corefile.h, corefile.c corefile-n.h (core_n.h): Update to use
  371. the new device.h / device_table.h interface. Rename core_n.h to
  372. corefile-n.h to be consistent with other n files.
  373. * Makefile.in (run): add corefile-n.h to dependencies for
  374. corefile.
  375. * basics.h (device_instance), device.h, device.c, device_table.h,
  376. device_table.c: Add the concept of a device instance and operators
  377. on these instances - corresponds to ihandle in OpenBoot speak.
  378. Don't yet implement it.
  379. Tue Nov 14 12:27:08 1995 Andrew Cagney <cagney@highland.com.au>
  380. * emul_generic.h, emul_generic.c (emul_syscall_enter,
  381. emul_syscall_exit): rename from emul_enter_call /
  382. emul_exit_call. As only used by emul_do_system_call simplify
  383. associated code.
  384. * os_emul.h, os_emul.c, emul_generic.h: Correct and fill an
  385. os_emul interface.
  386. * os_emul.c, emul_bugapi.h, emul_bugapi.c, Makefile.in: Add
  387. preliminary hooks for a kernel mode rom emulation.
  388. * cap.h (new), cap.c (new): Capability data base. Some emulations
  389. pass object identifiers (capabilities?) to/from the simulated code
  390. (for instance the phandle in OpenBoot). The cap object is able to
  391. check/map between internal and external (target program)
  392. representations of each identifier.
  393. * os_emul.c, emul_chirp.h, emul_chirp.c, Makefile.in: Add
  394. preliminary hooks for a kernel mode IEEE-1275 emulation.
  395. * cpu.h, cpu.c (cpu_create, cpu_os_emulation, cpu): Add os_emul to
  396. list of arguments passed in when creating a cpu. Grant access to
  397. the element.
  398. * std-config.h (OS_EMUL_INLINE), options.c (print_options),
  399. inline.h, inline.c: New to allow control over inline of
  400. corresponding code files.
  401. * ppc-instructions (instruction_call): Add illegal instruction to
  402. call the instruction-call emulation handler.
  403. * interrupts.c (system_call_interrupt): Call renamed
  404. os_emul_system_call function().
  405. * emul_netbsd.c: Update to interface to generic emulation. Since
  406. all its functions are called via a table don't worry about any
  407. inline.
  408. * emul_generic.h, emul_generic.c, spa-*(delete): Remove references
  409. and code for spa, no longer to be used.
  410. * psim.c (create_chirp_device_tree): Fill out what was previously
  411. the openboot create function so that it starts to create a full
  412. OpenBoot device tree.
  413. Tue Nov 28 21:48:06 1995 Andrew Cagney <cagney@highland.com.au>
  414. * debug.h, debug.c: pte trace is made redundant by htab trace,
  415. delete it. Add vm to list of options. Simplify tracing output so
  416. lines are not as long.
  417. Tue Nov 14 12:27:08 1995 Andrew Cagney <cagney@highland.com.au>
  418. * events.h, events.c (event_queue_init), psim.c (psim_init): (re)
  419. initialize the event queue.
  420. Tue Nov 28 13:38:26 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  421. * sim-endian.h: Look at WORDS_BIGENDIAN to determine if the host
  422. is big endian or little endian. For SWAP_n, use htonl/htons if
  423. host is little endian, not big endian and if WITH_NTOH is defined.
  424. * configure{,.in} (--enable-sim-model-issue): Instead of defining
  425. 0/1, define it to be MODEL_ISSUE_{PROCESS,IGNORE}. Add
  426. AC_C_BIGENDIAN to determine if the host is big endian or not.
  427. * config.in: Regenerate.
  428. * std-config.h (WITH_MODEL_ISSUE): Default to 0.
  429. (CURRENT_MODEL_ISSUE): Reference WITH_MODEL_ISSUE, and if that is
  430. 0, use current_model_issue.
  431. (MODEL_ISSUE_{PROCESS,IGNORE}): Define as -1/1.
  432. * psim.c (current_model_issue): New global variable.
  433. * cpu.c (cpu_create): Use CURRENT_MODEL_ISSUE > 0 instead of
  434. WITH_MODEL_ISSUE.
  435. (cpu_{init,halt}): Ditto.
  436. * mon.c (mon_print_info): Ditto.
  437. * ppc-instructions (PPC_INSN_* macros, branch handling): Ditto.
  438. * mon.c (mon_print_info): Print instructions/second if verbose > 0,
  439. rather than > 1.
  440. * main.c (main): Set current_model_issue to MODEL_ISSUE_PROCESS if
  441. the -I switch is used.
  442. * sim_calls (sim_open): Ditto.
  443. * ppc-instructions (model support): Add support for determining
  444. when we don't have enough writeback slots. Add tracing for the
  445. beginning of each cycle.
  446. Mon Nov 27 17:46:33 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  447. * mon.c: Check for whether to include sys/types.h and sys/time.h.
  448. * configure.in: Check for include files sys/types.h and
  449. sys/time.h.
  450. * configure: Regenerate.
  451. * config.in: Regenerate.
  452. * cpu.h (CONST_ATTRIBUTE): Define as __attribute__((__const__)) if
  453. not already defined.
  454. (cpu_system): Use CONST_ATTRIBUTE, so that when we're not inlining
  455. the world, the optimizer has a fair chance of CSE'ing function
  456. calls.
  457. (cpu_{monitor,nr,registers,model}): Ditto.
  458. * std-config.h (MODEL_INLINE): If not defined, define as 1 if
  459. DEFAULT_INLINE is non-zero, 0 otherwise, rather than just the
  460. value of DEFAULT_INLINE.
  461. Fri Nov 24 11:24:34 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  462. * lf.h (__attribute__): If not GCC and at least 2.7.0, define as
  463. nothing.
  464. (lf_printf): Add printf __attribute__, so the compiler will
  465. automatically check the format string.
  466. * configure{,.in} (--enable-sim-icache): If argument is define,
  467. add -R to flags passed to igen.
  468. * igen.c (stdlib.h): Include if the system supplies one.
  469. (semantics_use_cache_struct): New global for -R flag to say
  470. semantics is to use the cache structure directly rather than
  471. putting the values into local variables.
  472. (first_undef, last_undef): New structures to remember names to
  473. #undef if -R.
  474. (lf_print_c_extraction): If -R and this is semantics, emit names
  475. as #defines pointing to the cache structure, rather than loading
  476. the values into local variables.
  477. (lf_print_c_semantic_function): If -R, #undef all of the names
  478. defined in lf_print_c_extraction.
  479. (main): Recognize -R.
  480. * idecode_fields.h (SPR_*): Redefine spr_* macros as SPR_* to
  481. avoid a name confict if -R passed to igen.
  482. * ppc-instructions (mfspr, mtspr): Rename spr field to SPR.
  483. (model_data): Add field to count the various # of CRs that the
  484. mtcrf instruction used.
  485. (model_mon_info): Return structures counting the # of CRs that the
  486. mtcrf instruction used.
  487. (branches, sync instructions): Do not call model functions if
  488. WITH_MODEL_ISSUE is 0.
  489. * mon.c (stdlib.h): Include if the system supplies one.
  490. (mon_sort_instruction_names): New function to sort instruction
  491. names alphabetically.
  492. (mon_print_info): Call qsort with mon_sort_instruction_names to
  493. sort instruction names. Don't abort if WITH_MODEL_ISSUE is 0.
  494. * debug.h (ITRACE): Make printf_filtered arguments type correct.
  495. * idecode_expression.h (CR0_COMPARE): Ditto.
  496. * psim.c (psim_read_register): Ditto.
  497. * igen.c (lf_print_my_prefix): Use __attribute__((__unused__)) to
  498. silence compiler warnings about unused automatically generated
  499. variables.
  500. (lf_print_c_extraction): Ditto.
  501. * idecode_expression.h (FPSCR_BEGIN): Ditto.
  502. * ppc-cache-rules: Define rules for making a bitmask for all
  503. registers.
  504. * ppc-instructions: Rewrite model specific functions to use the
  505. bitmask of the register number, instead of using the register
  506. pointer to get the register number, and then making the bitmask.
  507. Wed Nov 22 15:24:27 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  508. * ppc-instructions (model_branches): Add conditional argument to
  509. count the number of times each type of conditional branch is used.
  510. (conditional branches): Pass B0 or -1 to model_branches.
  511. (model_mon_info): Print out conditional branch counts.
  512. (model-data): Add support for printing out conditional branch
  513. types.
  514. Tue Nov 21 16:31:25 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  515. * igen.c (insn_table_load_insns): Add support for model-static for
  516. internal functions that should not be inlined.
  517. (lf_print_c_semantic): Remove model_cleanup.
  518. (gen_model_{c,h}): Ditto.
  519. * ppc-instructions: Redo model specific support once again. Add
  520. floating point support to the model specific information. Flesh
  521. out all of the floating mutiply add/subtract instructions. Add
  522. better tracing support to the model specific information.
  523. Sun Nov 19 23:00:52 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  524. * ppc-instructions (model data, model_busy): Rather than using a
  525. bit mask for the busy units, just use a char array. Also, only
  526. support 2 function units an insn can use, rather than a loop.
  527. Fri Nov 17 14:08:08 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  528. * table.c (table_entry_read): Move setting entry->line_nr to after
  529. the model specific fields so the line numbers for the annex are
  530. correct.
  531. * cpu.c (cpu_{create,init,halt}): Check for WITH_MODEL_ISSUE
  532. before calling the model functions.
  533. * debug.c (trace_descriptor): Add trace_model support.
  534. * debug.h (trace_options): Ditto.
  535. * igen.c (gen_icache_h): Create type idecode_cache as void if not
  536. caching instructions.
  537. (gen_model_{c,h}): Drop model_issue support. Add support for
  538. model_cleanup.
  539. (lf_print_my_prefix): Initialize a const itable_index with the
  540. current index.
  541. (lf_print_c_semantic): Call model_cleanup at the end of the
  542. function to check for instructions that aren't supported yet by
  543. the scheduling code.
  544. * mon.h (count_type): New type for counters.
  545. * mon.c: Use count_type instead of unsigned.
  546. * ppc-instructions: Redo scheduling code once again. Make it all
  547. inline friendly. Instead of having general code emitted by igen,
  548. go the route of having each semantic routine call the appropriate
  549. module.
  550. Thu Nov 16 09:52:26 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  551. * table.c (table_entry_read): Allow the annex to have blank lines.
  552. * ppc-instructions: Change lines in model stuff that just have a
  553. tab to just newline. Add 601 support. Document most instructions
  554. in terms of model specific timing information. Drop 'FUNCTION'
  555. from PPC_FUNCTION_UNIT_xxx enums. Change PPC_UNIT_UNKNOWN ->
  556. PPC_UNIT_BAD. Add TRACE(trace_tbd) for all data cache
  557. instruction.s. Signal illegal instruciton if data cache block
  558. invalidate is issued from problem state.
  559. * igen.c (max_model_fields_len): New static to keep track of the
  560. max size for the model specific fields.
  561. (model_c_insn): Use max_model_fields_len to size fields.
  562. (insn_table_insert_insn): Set max_model_fields_len.
  563. (model_table_insert): Ditto.
  564. (gen_model_{c,h}): Model_issue is now called with a processor
  565. argument.
  566. * debug.c (trace_description): Add support for trace_tbd.
  567. * mon.c (mon_issue): Pass processor argument to model_issue.
  568. * Makefile.in: Delete all function unit support, since the newer
  569. table driven model support replaces it.
  570. * cpu.{c,h}: Ditto.
  571. * mon.c: Ditto.
  572. * inline.{c,h}: Ditto.
  573. * std-config.h: Ditto.
  574. * options.c: Ditto.
  575. * configure{,.in}: Ditto.
  576. * Makefile.in: Ditto.
  577. * psim.c: Ditto.
  578. * function_unit.{c,h}: Delete these now usused files.
  579. * std-config.h (WITH_MODEL_ISSUE): Add new macro on whether to
  580. trace instructions in a model specific manor.
  581. * options.c (print_options): Print it out.
  582. * configure{,.in}: Add --enable-sim-model-issue option.
  583. * Makefile.in: Add --enable-sim-model-issue flags.
  584. * igen.c (lf_print_c_semantic): Add call to mon_issue here. Check
  585. for WITH_MODEL_ISSUE.
  586. * mon.c (mon_issue): Remove call to mon_issue_here.
  587. * ppc-instructions: Move branch tracing to the actual branch
  588. instructions, rather than testing it in model_issue. Add code to
  589. code successful/unsuccessful branch predictions, and the number of
  590. conditional branches that fell through.
  591. Wed Nov 15 17:32:13 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  592. * cpu.h (cpu_model): Add declaration.
  593. * cpu.c (struct _cpu): Add model_ptr to hold model specific
  594. information.
  595. (cpu_model): Return the model internal pointer.
  596. (cpu_{create,init,halt}): Call the appropriate model function.
  597. * inline.c (mon.c): Move include of mon.c after model.c.
  598. * mon.c (_cpu_mon): Add fields to count unaligned memory
  599. references.
  600. (mon_issue): Call model_issue, not function_unit_issue.
  601. (mon_{read,write}): Count # of unaligned memory accesses.
  602. (mon_print_info): Switch to calling model_mon_info and
  603. model_mon_info_free instead of function_unit version. Print out
  604. number of unaligned reads/writes.
  605. * {ppc-instructions,igen.c}: More global changes to add model
  606. specific features.
  607. * inline.{c,h}: Provide for inlining options.c.
  608. * options.{c,h}: Ditto.
  609. * std-config.h: Add OPTIONS_INLINE.
  610. Tue Nov 14 04:47:25 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  611. * Makefile.in (devices.o, main.o): Update dependency.
  612. * igen.c (gen_model_h): Use correct variable in loop.
  613. (gen_model_c): Use strcmp, strcasecmp.
  614. (gen_model_c): Use EXTERN_MODEL for arrays.
  615. (gen_model_h): Use STATIC_MODEL for arrays.
  616. (lf_print_c_semantic_function_header): Delete unused function.
  617. * main.c (cpu.h): Include cpu.h to get model.h.
  618. * inline.h ({EXTERN,STATIC}_MODEL): Define.
  619. Mon Nov 13 09:14:13 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  620. * igen.c ({insn,model}_table_fields): Spell mnemonic correctly.
  621. (gen_itable_h,itable_c_insn): Ditto.
  622. (model support): Move model support around, add support for
  623. model-data, model-internal. Use annex field for model-macros
  624. now.
  625. * configure.in (--enable-sim-inline): If --enable-sim-inline=no,
  626. also define INLINE as nothing.
  627. * configure: Regenerate.
  628. * std-config.h (INLINE): Rather than nuking INLINE, only define it
  629. as __inline__ if any of the INLINE flags are non-zero.
  630. * options.c (print_options): Print out WITH_XOR_ENDAIN.
  631. Mon Nov 13 23:03:45 1995 Andrew Cagney <cagneyhighland.com.au>
  632. * ppc-instructions (rfi): Add missing code.
  633. * cpu.c (cpu_get_time_base): Fix calculation of current value of
  634. time base register.
  635. * ppc-spr-table (TBL, TBU): Fix TBL/TBU entries - was confusing
  636. m[tf]tb with m[tf]spr.
  637. * ppc-instructions (mtspr, mfspr): Fix mttbl - wasn't storing
  638. lower word.
  639. Mon Nov 13 21:35:37 1995 Andrew Cagney <cagneyhighland.com.au>
  640. * std-config.h (INLINE, STATIC_INLINE): Was being set to static
  641. inline.. Only problem being that with ppc-opcode-simple this gave
  642. it the chance to inline all the idecode functions with potentially
  643. disasterous results on a 16mb PC. For moment hobble INLINE.
  644. * configure.in, std-config.h (WITH_SMP): Make that 5 processors by
  645. default ...
  646. * configure.in: Tweek flags passed to gcc for --with-sim-warnings.
  647. Firstly make them errors and secondly remove the options gcc-245
  648. doesn't reconize.
  649. Mon Nov 13 17:57:24 1995 Andrew Cagney <cagney@highland.com.au>
  650. * misc.c (zalloc), cpu.c (cpu_init), devices
  651. (console_io_read_buffer_callback, icu_io_read_buffer_callback,
  652. vm_io_read_buffer_callback), main.c (zalloc), mon.c (memset),
  653. sim_calls.c (zalloc) : replace bzero() with memset().
  654. * emul_netbsd.c (write_direntries), psim.c (psim_read_register,
  655. psim_write_register): replace bcopy() with memcpy().
  656. Sun Nov 12 20:55:41 1995 Andrew Cagney <cagneyhighland.com.au>
  657. * configure.in: for --disable-sim-inline (--enable-sim-inline=no),
  658. force DEFAULT_INLINE to 0 rather then trusting the std
  659. configuration.
  660. Sun Nov 12 20:55:41 1995 Andrew Cagney <cagneyhighland.com.au>
  661. * igen.c (lf_print_idecode_table, idecode_table_leaf): Fix
  662. generation of switch entries in tables - treat the same as
  663. cracking/semantic functions.
  664. * igen.c (idecode_switch_end, idecode_switch_leaf): Fix generation
  665. of a boolean switch statement (field zero or non-zero).
  666. * ppc-opcode-test-1, ppc-opcode-test-2: New files. These test the
  667. switch/table generation ability of igen.
  668. * igen.c (idecode_switch_leaf): Fix code output when a switch
  669. statement needs to look up a table.
  670. * igen.c (idecode_declare_if_switch): New function called from
  671. gen_idecode_c - need to declare any idecode switch functions
  672. before they are used in idecode tables.
  673. * igen.c (lf_print_c_cracker_function, idecode_crack_leaf,
  674. idecode_crack_insn): Add is_inline_function argument to code
  675. printing cracker functions which indicates if STATIC_IDECODE or
  676. STATIC_INLINE_IDECODE should be used for definition. For
  677. idecode_crack_insn (which implies not duplicating/expanding) don't
  678. declare function as inline - we assume that the only time this is
  679. code is generated is when things are being tested. For
  680. idecode_crack_leaf, make static (instead of INLINE) if the
  681. instructions parent is a table as function will always be called
  682. via a table.
  683. * igen.c (idecode_expand_if_switch): Declare as STATIC_IDECODE not
  684. STATIC_INLINE_IDECODE. Only the outermost idecode switch will be
  685. called directly, all others are called via a table.
  686. * igen.c (lf_print_semantic_function_header, semantics_h_leaf,
  687. semantics_h_insn, semantics_h_function,
  688. lf_print_c_semantic_function, semantics_c_function): Add
  689. is_inline_function argument to lf_print_semantic_function_header
  690. to indicate if an inline or static function declaration/definition
  691. should be output. Depending on situtation call accordingly:
  692. functions (not instruction semantic routines) are always inline;
  693. Semantic routines are made inline when there is no icache (cache
  694. will contain the function address) and are duplicating (see above)
  695. and the parent of the instruction is a switch statement.
  696. * igen.c (opcode_field_new): Delete. Code changed to use ZALLOC
  697. and moved to insn_table_find_opcode_field.
  698. * table.c (table_open): Fix typo (nr_model_fields vs nr_fields).
  699. * igen.c (model_c_insn): Suggestion - document the name of the
  700. instruction on each line of the instruction model table.
  701. Fri Nov 10 00:44:38 1995 Andrew Cagney <cagneyhighland.com.au>
  702. * emul_netbsd.c (do_ioctl): Cleanup compilation.
  703. * sim_callbacks.h (__attribute__): Only define if not defined (was
  704. already defined on NetBSD host).
  705. Wed Nov 8 21:49:52 1995 Andrew Cagney <cagneyhighland.com.au>
  706. * std-config.h (WITH_XOR_ENDIAN), configure.in, Makefile.in: New
  707. macro, indicates if the PowerPC's horrible XOR endian mode should
  708. be suported. Add to configure and make.
  709. * vm_n.h (vm_data_map_read_N, vm_data_map_write_N), vm.c
  710. (vm_instruction_map_read): If XOR endian, xor the address
  711. with a value from an xor table (indexed by size of access).
  712. * vm.c (vm_synchronize_context), cpu.c (cpu_synchronize_context):
  713. set up xor table to xor if there is a conflict between the
  714. CURRENT_TARGET_ENDIAN and the endian indicated in the MSR. Move
  715. check of suported change of endian mode from cpu.c to vm.c.
  716. * vm.c (vm_data_map_write_buffer, vm_data_map_read_buffer):
  717. Hopefully added correct hack to handle XOR endian mode.
  718. FIXME: If NONSTRICT alignment and XOR ENDIAN and MSR indicates
  719. little endian mode, the model accepts miss aligned transfers.
  720. FIXME: Need to create an `init' device that, during
  721. initializatioin for XOR mode, it mushes (XOR address) all the dma
  722. data before passing it on to the core for storage. Just like the
  723. real thing really.
  724. Wed Nov 8 21:49:52 1995 Andrew Cagney <cagneyhighland.com.au>
  725. * devices.c (halt_io_write_buffer_callback): Use value written to
  726. halt device to determine exit status. Thus allowing
  727. success/failure of OEA tests.
  728. Wed Nov 8 00:10:38 1995 Andrew Cagney <cagneyhighland.com.au>
  729. * ppc-instructions (icbi): If icache present flush it.
  730. Tue Nov 7 23:36:31 1995 Andrew Cagney <cagneyhighland.com.au>
  731. * devices.c (htab_init_callback): Add code to create htab/pte.
  732. * devices.c (dma_file, file_init_callback, htab_init_callback):
  733. New function - Dma the named file into memory at the specified
  734. address. Use.
  735. * device_tree.h, device_tree.c (scand_*): New functions.
  736. Tue Nov 7 23:36:31 1995 Andrew Cagney <cagneyhighland.com.au>
  737. * filter_filename.c, Makefile.in: Change so that only dependant on
  738. a very limited nr of files. Stops an unnecessary dependency.
  739. Tue Nov 7 15:44:33 1995 Andrew Cagney <cagney@highland.com.au>
  740. * core.c (core_map_find_mapping): Use cpu_halt rather than error
  741. to abort an access to an undefined address.
  742. Sun Nov 12 07:58:09 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  743. * igen.c (model_table_insert_{macro,function}): New functions.
  744. (insn_table_load_insns): Call them.
  745. (gen_model_h): Move section emiting model-macros to be first.
  746. (model_{c,h}_function): New functions cloned from semantic
  747. functions to print out the prototype and function for
  748. model-functions.
  749. (gen_model_{c,h}): Print out model-functions.
  750. * ppc-instructions (model_{start,halt,print_info}): Add dummy
  751. model-functions.
  752. * options.c (print_options): Print out WITH_{,DEFAULT_}MODEL, not
  753. WITH_PPC_{,DEFAULT_}_MODEL.
  754. (options_ppc): Delete now unused function.
  755. (cpu.h): Include cpu.h, not just basics.h.
  756. * std-config.h (WITH_{,DEFAULT_}MODEL): Define.
  757. * igen.c (model_macros, last_model_macro): New statics to keep
  758. track of macros to go in model.h.
  759. (insn_table_load_insns): Add model-macros to model_macros linked
  760. list.
  761. (model_table_fields): Add field for printable name.
  762. (gen_model_h): If there are model macros defined, print them out.
  763. Print out DEFAULT_MODEL as the first model if there any models
  764. specified, otherwise MODEL_NONE. Print out external decl for
  765. current_model. Print out decl for model_set.
  766. (gen_model_c): Add function model_set. Switch to use printable
  767. name for the model, not the internal identifier used.
  768. * psim.c (current_model): New global variable.
  769. * ppc-instructions: Add macros for flag defines. Switch first
  770. model so 604 is first.
  771. * main.c (main): Call model_set, not function_unit_model.
  772. * sim_calls.c (sim_open): Ditto.
  773. * sim_calls.c, Makefile.in: sim_calls.c now includes cpu.h.
  774. Sat Nov 11 07:27:41 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  775. * mon.h (mon_events): New enumeration for other events we want to
  776. handle.
  777. (mon_event): Add declaration for function.
  778. * mon.c (mon_event): New function.
  779. (mon_print_info): Print icache misses.
  780. * psim.c (run_until_stop): Monitor icache misses.
  781. * configure.in (--enable-sim-inline): Fix typos in handling comma
  782. separated inline options.
  783. (--enable-sim-icache): Echo icache size.
  784. * configure: Regenerate.
  785. * igen.c (semantics_h_print_function): Emit STATIC_SEMANTICS
  786. instead of INLINE_SEMANTICS so that the compiler won't keep all of
  787. the semantic functions as inline RTL, given that the address of
  788. the function is taken which forces outline calls anyway.
  789. (lf_print_c_semantic_function_header): Ditto.
  790. (gen_semantics_h): Define STATIC_SEMANTICS as nothing if not
  791. defined.
  792. (lf_print_c_cracker_function): Emit STATIC_IDECODE instead of
  793. STATIC_INLINE_IDECODE.
  794. (gen_idecode_c): Define STATIC_IDECODE if not defined.
  795. (gen_model_h): Use #ifdefs to define types to hold model units,
  796. cycles, and flags.
  797. (model_table_insert): Add a sentinel functional unit at the end to
  798. simplify loop processing.
  799. (model_c_insn): Use <function-unit>_SENTINAL instead of 0 for any
  800. instruction not specifing a function unit for the current model.
  801. (gen_model_{c,h}): Provide bounds for model_time_mapping.
  802. * inline.h (STATIC_SEMANTICS): Define to be static if
  803. SEMANTICS_INLINE is defined.
  804. (STATIC_IDECODE): Define to be static if IDECODE_INLINE is
  805. defined.
  806. * options.c (print_options): Fix typo.
  807. Fri Nov 10 06:39:46 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  808. * configure.in (--enable-sim-{opcode,config}): Use $srcdir when
  809. check for the existence of files.
  810. * configure: Regenerate.
  811. * table.c (table): New field nr_model_fields.
  812. (table_open): New parameter nr_model_fields.
  813. (table_entry_read): Parse model fields that begin with a '*' after
  814. each instruction.
  815. * igen.c, dgen.c: Change callers of table_open.
  816. * igen.c: Add support for dumping model specific information in
  817. model.h and model.c.
  818. (insn_field_name): Delete unused array.
  819. (global variables): Make global variables static, so we can tell
  820. when they are no longer used.
  821. (cache_semantic_actual): Delete unused variable.
  822. (insn_table_load_insns): If the insn is really a machine model,
  823. call model_table_insert instead of other processing.
  824. (model_table_insert): New function to handle defining the
  825. functional units of a particular machine model.
  826. (insn_table): Add last_function field so we can add functions at
  827. the end.
  828. (insn_table_insert_function): Use last_function field when
  829. appending new function.
  830. * ppc-instructions: Add a few model specific information for 603,
  831. 603e, and 604 for testing purposes.
  832. * table.h (table_model_entry): New linked list to hold model
  833. specific information, one per line.
  834. (table_entry): Add model_first, model_last fields.
  835. * configure.in (--enable-sim-inline): If gcc is found and
  836. --enable-sim-inline is not specified, defaine DEFAULT_INLINE to 1,
  837. not 2.
  838. (--enable-sim-reserved-bits): New switch to check whether reserved
  839. bits are set in the instruction.
  840. (--enable-sim-opcode): Make complex the default.
  841. (all switches): Add appropriate checks and error messages.
  842. * configure: Regenerate.
  843. * Makefile.in (RESERVED_CFLAGS): New variable set by
  844. --enable-sim-reserved-bits.
  845. (CONFIG_CFLAGS): Include RESERVED_CFLAGS.
  846. (BUILT_SRC): igen now generates model.c and model.h.
  847. (LIB_OBJ): Include table.o.
  848. (tmp-igen): Add -m/-M options to write model.c/model.h.
  849. (model.o): New object.
  850. (CPU_H): Include model.h.
  851. * cpu.h: Include model.h.
  852. * std-config.h (WITH_RESERVED_BITS): Define.
  853. (MODEL_INLINE): Ditto.
  854. * options.c (print_options): Print out WITH_RESERVED_BITS.
  855. Thu Nov 9 12:22:15 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  856. * configure.in: If --silent, don't output information messages.
  857. * configure: Regenerate.
  858. * configure.in (--enable-sim-alignment): Fix typo in specifing non
  859. strict alignment.
  860. (--enable-sim-switch): Make default on.
  861. (--enable-sim-duplicate): Make default on.
  862. (--enable-sim-smp): Make default 0.
  863. (--enable-sim-mon): Don't set sim_float if not set.
  864. (--enable-sim-inline): If gcc is found and --enable-sim-inline is
  865. not specified, define DEFAULT_INLINE to be 2.
  866. (all --enable-sim-* rules): Echo rules set to non empty to file
  867. descriptor 6.
  868. * configure: Regenerate.
  869. * options.c (options_env): Fix typo if WITH_ENV is 0.
  870. (print_options): Print GCC compiler version if available and
  871. date/time options was compiled. If OPCODE_RULES, IGEN_FLAGS,
  872. and/or DGEN_FLAGS are defined, print them.
  873. * Makefile.in (all link actions): Pass SIM_CFLAGS as well as
  874. CFLAGS.
  875. (options.o): Compile options.o with OPCODE_RULES, IGEN_FLAGS, and
  876. DGEN_FLAGS defined, so they can be printed out.
  877. * igen.c (lf_print_c_validate): Check for WITH_ASSERT, so that
  878. this test can be compiled away if the user really wants a fast
  879. simulator by not doing assertion failures.
  880. Wed Nov 8 13:19:47 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  881. * options.c: New file to print out all of the WITH_ options.
  882. * options.h: New include file to declare print_options.
  883. * debug.h (trace_options): Add trace_opts to call print_options.
  884. * debug.c (trace_description): Add trace_opts support.
  885. * main.c (main): If user requested options, print them.
  886. * sim_calls.c (sim_open): Ditto.
  887. * igen.c (opcode_field_new): Add void to make it a proper prototype.
  888. * emul_generic.c (emul_enter_call): Make printf_filtered arguments
  889. type correct.
  890. * emul_netbsd.c (do_kill): Ditto.
  891. * registers.c (registers_dump): Ditto.
  892. * vm.c (om_translate_effective_to_real): Ditto.
  893. * vm_n.h (vm_data_map_read_N): Ditto.
  894. (vm_data_map_write_N): Ditto.
  895. * devices.h (DTRACE_INIT): Ditto.
  896. (DTRACE_{ATTACH,DETACH}_ADDRESS): Ditto.
  897. (DTRACE_IO_{READ,WRITE}_BUFFER): Ditto.
  898. (DTRACE_DMA_{READ,WRITE}_BUFFER): Ditto.
  899. * devices.c (update_for_binary_section): Ditto.
  900. (write_stack_arguments): Ditto.
  901. (stack_ioctl_callback): Ditto.
  902. * device_tree.c (device_tree_add_passthrough): Ditto.
  903. (device_tree_{add,find}_device): Ditto.
  904. (device_tree_{add,find}_integer): Ditto.
  905. (device_tree_find_{string,boolean}): Ditto.
  906. (device_tree_init{,_device}): Ditto.
  907. (device_tree_dump): Ditto.
  908. * sim_calls.c (sim_{read,write}): Ditto.
  909. (sim_{fetch,store}_register): Ditto.
  910. (sim_stop_reason): Ditto.
  911. * sim_callbacks.h (printf_filtered): Declare with attribute
  912. printf, so we can enable format checks.
  913. * devices.c (console_io_{read,write}_buffer_callback): Cast swtich
  914. argument to int, since ANSI doesn't allow long switch values.
  915. * emul_netbsd.c (do___sysctl): Ditto.
  916. * emul_netbsd.c (do___sysctl): Fix up printf call.
  917. * corefile.c (core_translate): Don't do arithmetic with void *
  918. pointers. Cast to char * first.
  919. * function_unit.c (FUNC_{LOAD,STORE}): Rename from {LOAD,STORE}
  920. and change all uses.
  921. * Makefile.in ({FUNC,MODEL,WARNING}_CFLAGS): New flags set by
  922. configure --enable switches.
  923. (CONFIG_CFLAGS): Include FUNC_CFLAGS and MODE_CFLAGS.
  924. (.c.o): Include WARNING_CFLAGS.
  925. (CPU_H): Include function_unit.h.
  926. (LIB_OBJ): Include function_unit.o.
  927. (BUILT_SRC_WO_CONFIG): Split from BUILT_SRC and do not include
  928. config.h or ppc-config.h.
  929. (BUILT_SRC): Include BUILT_SRC_WO_CONFIG, config.h and
  930. ppc-config.h.
  931. (filter_filename.o): Include config.h/ppc-config.h dependencies.
  932. (idecode.o, semantics.o, psim.o): Specify CC line without
  933. WARNING_CFLAGS so that we don't get all of the unused variable
  934. warnings that are generated.
  935. (function_unit.o): Add rule to build.
  936. (main.o, sim_calls.o): Add function_unit.h, itable.h dependencies.
  937. (mon.o): Include mon.c dependency.
  938. (TAGS): Depend on BUILT_SRC.
  939. (clean): Don't delete config.h or ppc-config.h
  940. * basics.h (sim_callbacks.h): Move include after the include of
  941. config.h and ppc-config.h.
  942. * bits.{h,c} (ROTL32,ROTL64): Move these functions to bits.c. Add
  943. support for BITS_INLINE to inline these. Add declarations to
  944. bits.h.
  945. * configure.in (--enable-sim-warnings): Add new option to specify
  946. compiler warnings for all modules except idecode.o and semantics.o
  947. which have lots of unused variables because they are machine
  948. generated.
  949. (--enable-sim-function-unit): New switch to configure whether
  950. function unit support is compiled in or not.
  951. (--enable-sim-{,default-}mode): New switches to control which cpu
  952. model is used.
  953. * configure: Regenerate.
  954. * corefile.c (core_attach_address_callback): Delete unused
  955. variable device_address.
  956. * cpu.c (struct _cpu): Add function unit pointer field func_unit.
  957. (cpu_create): If WITH_FUNCTION_UNIT, call function_unit_create.
  958. (cpu_init): If WITH_FUNCTION_UNIT, call function_unit_init.
  959. (cpu_halt): If WITH_FUNCTION_UNIT, call function_unit_halt.
  960. (cpu_function_unit): New function to return func_unit field.
  961. * cpu.h (function_unit.h): Include new include file.
  962. (cpu_function_unit): Declare.
  963. * debug.c (stdlib.h): Test HAVE_STDLIB_H, not HAVE_STDLIB.
  964. (config.h): Include config.h.
  965. * devices.c (icu_io_write_buffer_callback): Delete unused variable
  966. system.
  967. * emul_generic.c (emul_exit_call): Print out status value.
  968. * emul_netbsd.c (do_read): Delete unused variable nr_moved.
  969. * filter_filename.h (includes): Include config.h, ppc-config.h,
  970. not basics.h.
  971. * inline.c: Include bits.c if BITS_INLINE. Include
  972. function_unit.c if FUNCTION_UNIT_INLINE.
  973. * inline.h (INLINE_BITS): Define if BITS_INLINE.
  974. (INLINE_FUNCTION_UNIT): Define if FUNCTION_UNIT_INLINE.
  975. * interrupts.c (instruction_storage_interrupt): Delete unused
  976. variable nia.
  977. * lf.h (config.h): Include config.h.
  978. * main.c (includes): Include function_unit.c. If HAVE_UNISTD_H,
  979. include unistd.h.
  980. (usage): Update for -m model, -i, and -I options.
  981. (main): Delete unused variables stack_pointer and i. Add support
  982. for -i, -m model arguments. Call psim_print_info with verbose ==
  983. 1 if -i, and verbose == 2 if -I.
  984. * mon.c (stdio.h): Include stdio.h to pick up sprintf prototype.
  985. (mon_issue): Call function_unit_issue if function units are
  986. supported.
  987. (mon_print_info): Take psim * argument. Print out information
  988. from function_unit if available. Move read/write stats to always
  989. print, instead of printing if verbose > 1. Fix up plural
  990. vs. singular usage.
  991. * mon.h (mon_print_info): Update prototype.
  992. * psim.c (current_ppc_model): Add global variable.
  993. (psim_print_info): Pass system argument to mon_print_info.
  994. * sim_calls.c (function_unit.h): Include.
  995. (sim_open): Add support for -i and -m model options. If -i call
  996. psim_print_info with verbose == 1, if -I, with verbose == 2.
  997. (sim_resume): Delete unused variable program_counter.
  998. * std-config.h (WITH_FUNCTION_UNIT): Define.
  999. (ppc_model): Add enumeration giving all PowerPC models currently
  1000. known about.
  1001. ({WITH,CURRENT}_PPC_MODEL): Define.
  1002. (FUNCTION_UNIT_INLINE): Define.
  1003. * table.c (config.h): Include config.h.
  1004. * vm.c (om_virtual_to_real): Print pte_word_{0,1} so the compiler
  1005. doesn't complain that they're unused.
  1006. * vm_n.h (vm_data_map_read_N): Delete unused variable rval.
  1007. Mon Nov 6 23:15:54 1995 Andrew Cagney <cagney@highland.com.au>
  1008. * sim-endian.c (ppc-endian.c), sim-endian.h (ppc-endian.h):
  1009. renameed. These files are target independant.
  1010. * Makefile.in, basics.h: update for new name.
  1011. * sim-endian.h (SWAP_N), sim-endian.c (_SWAP_1): Rename existing
  1012. SWAP_<N> to _SWAP_<N> so that sim-endian.h can contain SWAP_N
  1013. macro's as required.
  1014. * sim-endian.c, sim-endian-n.h (new file): Move endian code into a
  1015. debugable header file.
  1016. * ppc-instructions (Byte-Reverse): Enable byte reverse
  1017. instructions using SWAP_N macros.
  1018. Mon Nov 6 10:39:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  1019. * Makefile.in (config.status): Remove references to config.make
  1020. and config.hdr.
  1021. * config.{make,hdr}: Delete, no longer used.
  1022. * build-psim: Ditto.
  1023. Mon Nov 6 20:49:56 1995 Andrew Cagney <cagney@highland.com.au>
  1024. * sim_calls.c (sim_open): Fix parsing of `target sim' options.
  1025. * device_tree.c (device_tree_add_string): Wasn't saving the value
  1026. of the string being entered into the tree.
  1027. * psim.c (create_filed_device_tree): Not terminating string device
  1028. names with a null.
  1029. * psim.c (psim_create): Use `env' instead of
  1030. `environment-architecture' to be consistent with configure.
  1031. Reconize user/uea, virtual/vea and operating/oea.
  1032. Sat Nov 4 12:29:45 1995 Fred Fish <fnf@cygnus.com>
  1033. * core.c: Rename to corefile.c
  1034. * core.h: Rename to corefile.h
  1035. * inline.c: Include corefile.h, renamed from core.h.
  1036. * cpu.h: Include corefile.h, renamed from core.h
  1037. * vm.c: Include corefile.h, renamed from core.h
  1038. * corefile.c: Include corefile.h rather than core.h
  1039. * README.psim (KNOWN PROBLEMS): Change core.* references to corefile.*
  1040. references.
  1041. * Makefile.in (CPU_H): Change core.h to corefile.h
  1042. (vm.o): Change dependency to corefile.h
  1043. (LIB_SRC): Change core.c to corefile.c.
  1044. (LIB_OBJ): Change core.o to corefile.o.
  1045. (corefile.o): Change dependencies to corefile.c, corefile.h.
  1046. Fri Nov 3 11:37:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  1047. * ppc-instructions (data cache instructions): Make all data cache
  1048. instructions nops instead of invalid instructions.
  1049. * Makefile.in (CONFIG_CFLAGS): Add ALIGNMENT_CFLAGS and
  1050. TIMEBASE_CFLAGS which weren't included.
  1051. Thu Nov 2 08:54:04 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  1052. * Makefile.in: Uncomment built file dependencies.
  1053. * configure.in: Rewrite --enable-sim switch handling to use the
  1054. autoconf builtins so it works correctly if the configure or
  1055. Makefile.in files are modified and make decides to rebuild
  1056. Makefile. Also document all of the --enable-sim switches
  1057. supported. Check whether getrusage and sys/resource.h are
  1058. supported.
  1059. * config.in: Regenerate.
  1060. * configure: Regenerate.
  1061. * Makefile.in: Add support for all of the variables set with
  1062. --enable-sim switches.
  1063. * Makefile.in (clean): make clean now removes all built sources as
  1064. well.
  1065. * cpu.c: Use HAVE_STRING_H, HAVE_STRINGS_H, HAVE_UNISTD_H,
  1066. HAVE_TIME_H, HAVE_SYS_TIMES_H, HAVE_SYS_RESOURCE_H defined in
  1067. the generated config.h.
  1068. * debug.c: Ditto.
  1069. * device_tree.c: Ditto.
  1070. * devices.c: Ditto.
  1071. * dgen.c: Ditto.
  1072. * emul_netbsd.c: Ditto.
  1073. * igen.c: Ditto.
  1074. * lf.c: Ditto.
  1075. * misc.c: Ditto.
  1076. * psim.c: Ditto.
  1077. * registers.c: Ditto.
  1078. * sim_calls.c: Ditt.
  1079. * table.c: Ditto.
  1080. * main.c (main): Call psim_print_info with verbose == 2.
  1081. * mon.c (mon_print_info): Align the cpu number and number of
  1082. instructions fields. Do not print an instruction category if the
  1083. CPU did not execute any of those instructions. Print out number
  1084. of reads and writes. If getrusage is supported, print out number
  1085. of simulated instructins per second.
  1086. * configure.in: Add support for --enable-sim-opcode=stupid.
  1087. * configure: Regenerate.
  1088. Wed Nov 1 23:46:59 1995 Andrew Cagney <cagney@highland.com.au>
  1089. * std-config (INLINE_DEVICE_TREE): Don't inline either of
  1090. device_tree.c or devices.c. There is no significant gain.
  1091. * configure.in, Makefile.in: add --enable-sim-icache=[0-9]* and
  1092. IGEN_ICACHE macro.
  1093. Wed Nov 1 23:46:59 1995 Andrew Cagney <cagney@highland.com.au>
  1094. * igen.c (main), misc.h (target_a2i, i2target), misc.c: Add
  1095. functions to convert between target and igen internal bit numbers.
  1096. Make IO go through these functions. Add -b (bit size) and -h (high
  1097. bit nr) options to igen. Typical usage would be: ./igen -b 16 -h
  1098. 15 for a 16 bit instruction format with the msb given a number 15.
  1099. Wed Nov 1 22:17:32 1995 Andrew Cagney <cagney@highland.com.au>
  1100. * dgen.c (main): Was outputting optarg even when it was NULL.
  1101. Tue Oct 31 23:48:33 1995 Andrew Cagney <cagney@highland.com.au>
  1102. * vm_n.h (vm_data_map_load_N, vm_data_map_store_n), debug.h,
  1103. debug.c: Add tracing of load/store unit (virtual) with -t
  1104. load-store.
  1105. Tue Oct 31 21:44:01 1995 Andrew Cagney <cagney@highland.com.au>
  1106. * std-config.h (WITH_ENVIRONMENT): Add USER_ENVIRONMENT which does
  1107. not include things such as the time base and events.
  1108. * interrupt.c, sim_calls.c, cpu.h, vm.c, configure.in: Add UEA to
  1109. all environment switches for above.
  1110. * psim.c (psim_create): ditto - new device tree node name is
  1111. /options/environment-architecture with values user, virtual and
  1112. operating.
  1113. Tue Oct 31 21:31:32 1995 Andrew Cagney <cagney@highland.com.au>
  1114. * ppc-opcode-stupid: Third example of use of opcode table - this
  1115. one expands all mtspr/mfspr and branch instructions. Appears to
  1116. give about a 10% gain in performance if everything enabled. Also
  1117. takes about 150mb of swap to build.
  1118. Wed Nov 1 10:49:48 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  1119. * emul_netbsd.c (do_exit): Print arguments and close parenthesis
  1120. if tracing, since exit doesn't go through emul_exit_call.
  1121. (do_read): Print arguments if tracing.
  1122. (do_write): Ditto.
  1123. (do_open): Ditto.
  1124. (do_break): Ditto.
  1125. (do_kill): Ditto.
  1126. (do_dup): Ditto.
  1127. (do_sigprocmask): Replace trace with printing arguments if
  1128. tracing.
  1129. (do_ioctl): Print arguments if tracing.
  1130. (do_umask): Ditto.
  1131. (do_dup2): Ditto.
  1132. (do_fcntl): Ditto.
  1133. (do_gettimeofday): Ditto.
  1134. (do_getrusage): Ditto.
  1135. (do_fstatfs): Ditto.
  1136. * filter_filename.c: New file to provide filter_filename to strip
  1137. the directory prefix from a file.
  1138. * filter_filename.h: New include file to declare filter_filename.
  1139. * debug.h: Include filter_filename.h.
  1140. (TRACE,DTRACE,ERROR): Use filter_filename on __FILE__.
  1141. * misc.h: Include filter_filename.h.
  1142. (ASSERT): Use filter_filename on __FILE__.
  1143. * igen.c (lf_print_my_prefix): Use filter_filename on the filename
  1144. argument.
  1145. * Makefile.in: Add filter_filename support.
  1146. * ppc-instructions (dcbi, icbi): Make these NOPs rather than
  1147. invalid instructions.
  1148. * configure.in: Add support for more --enable-sim-* switches.
  1149. Use config.make and config.hdr to write to Makefile and config.h
  1150. respectively. Don't rewrite Makefile, just append to it.
  1151. * configure: Regenerate.
  1152. * config.{make,hdr}: New shell scripts.
  1153. * Makefile.in: Remove all variables set by configure.in.
  1154. (psim.o): Depend on $(BUILT_SRC) also.
  1155. * emul_netbsd.c (do_gettimeofday,do_getrusage): When comparing an
  1156. integer, use 0, not NULL.
  1157. Tue Oct 31 15:20:04 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  1158. * configure.in: Add support for --enable-sim-inline,
  1159. --enable-sim-bswap, --enable-sim-cflags, --enable-sim-complex,
  1160. --enable-sim-switch, --enable-sim-duplicate, --enable-sim-filter,
  1161. and --enable-sim-endian switch to control various Makefile
  1162. variables.
  1163. * configure: Regenerate from configure.in.
  1164. * Makefile.in: Add various Make variables that the various
  1165. switches alter.
  1166. * std-config.h (DEFAULT_INLINE): Don't set this to 2 if using GCC
  1167. and optimizing by default.
  1168. Fri Oct 27 19:26:27 1995 Andrew Cagney <cagney@highland.com.au>
  1169. * bits.h (ROTL32, ROTL64): Were functions, made them macros, now
  1170. make them functions again. Appears 2.6.3 is confused by just a
  1171. macro.
  1172. Thu Oct 26 18:31:58 1995 Andrew Cagney <cagney@highland.com.au>
  1173. * ppc-endian.c (SWAP_8): Fix 8 byte swap!
  1174. * psim.c (psim_create): Not correctly checking that runtime
  1175. configuration of things like ENDIAN, ENVIRONMENT and ALIGNMENT
  1176. matched the compiled in ones.
  1177. * debug.h (ITRACE), igen.c: Tidy up more tracing flags -
  1178. trace_semantics is now different to trace_idecode, the former
  1179. checks the cache.
  1180. Tue Oct 24 21:54:13 1995 Andrew Cagney <cagney@highland.com.au>
  1181. * ppc-instructions (mtsrin): Missing instruction
  1182. * ppc-instructions (mfsrin): Missing instruction
  1183. * ppc-instructions (eieio): Missing instruction
  1184. Tue Oct 24 20:55:29 1995 Andrew Cagney <cagney@highland.com.au>
  1185. * build-psim: New shell script - see internals for usage,
  1186. simplifies the process of building custom simulators.
  1187. Mon Oct 23 23:48:59 1995 Andrew Cagney <cagney@highland.com.au>
  1188. * std-config.h (SEMANTICS_INLINE): Tidy up notes on each of the
  1189. INLINE macros. Make SEMANTICS_INLINE == 1 if DEFAULT_INLINE == 2.
  1190. Don't use DEFAULT_INLINE to define REGISTERS_INLINE DEVICES_INLINE
  1191. DEVICE_TREE_INLINE or INTERRUPTS_INLINE as none of these are on
  1192. the instruction or data critical paths.
  1193. * FIXME: devices.c/emul_netbsd.c would benefit (slightly) from
  1194. the inclusion of device_tree.c/emul_generic.c.
  1195. Mon Oct 23 00:31:50 1995 Andrew Cagney <cagney@highland.com.au>
  1196. * os_emul.[hc], emul_generic.[hc], emul_netbsd.[hc]: replace
  1197. system.[hc]. Start of suport for multiple emulations and
  1198. emulation state (os_emul object).
  1199. * emul_generic.[hc]: Start of code to implement proper system call
  1200. tracing (from spy).
  1201. Sun Oct 22 21:33:51 1995 Andrew Cagney <cagney@highland.com.au>
  1202. * cpu.h, cpu.c (cpu_init): New function, zero the registers before
  1203. the processor is started. Fixes problem of registers being
  1204. undefined when restarting from within gdb.
  1205. * cpu.h, cpu.c (cpu_flush_icache): New function, flushes the
  1206. instruction cache (if present). Fixes problem of cpu caching gdb
  1207. breakpoint instructions.
  1208. FIXME: PSIM sometimes aborts calling error(), it should instead
  1209. call sim_error() say which takes care of housekeeping such as
  1210. saving the CIA before calling error.
  1211. * NOTE: cpu_flush_cache() instead of cpu_synchronize_context() is
  1212. used when restarting a simulation because the latter has the
  1213. unwanted side effect (well I as a kernel hacker think it is) of
  1214. performing an isync when the instruction stream doesn't contain
  1215. one.
  1216. Sun Oct 22 19:27:48 1995 Andrew Cagney <cagney@highland.com.au>
  1217. * mon.h (new), mon.c (new), std-config.h (WITH_MON): Performance
  1218. monitoring module. Counts both instructions issued and
  1219. load/stores.
  1220. * NOTE: mon does not contain to count instruction loads as this
  1221. information is already available from the mon_issue() hook.
  1222. * igen.c (lf_print_c_semantic), vm_n.h: Add counting code.
  1223. * psim.h, psim.c (psim_create), cpu.h, cpu.c (cpu_create): Attach
  1224. a common monitor to each of the cpus. Delete
  1225. cpu_increment_number_of_insns() and cpu_get_number_of_insns()
  1226. replaced by copied code in mon.[hc].
  1227. Sun Oct 22 18:42:45 1995 Andrew Cagney <cagney@highland.com.au>
  1228. * sim_calls.c, main.c, psim.c (psim_create): always create
  1229. `WITH_SMP' cpus. The actual number of CPU's active in a
  1230. simulation run is taken from the device node: /init/smp (an
  1231. integer). WITH_SMP changed to 2 (remember to put it back to 0).
  1232. Fri Oct 20 17:26:54 1995 Andrew Cagney <cagney@highland.com.au>
  1233. * system.c: More system call emulation. If code appears NetBSD
  1234. specific, make conditional to being compiled on a NetBSD system
  1235. (sigh).
  1236. Wed Oct 18 23:02:20 1995 Andrew Cagney <cagney@highland.com.au>
  1237. * Makefile.in, gen.c(delete), igen.c(new), dgen.c(new),
  1238. lf.[ch](new), table.[ch](new): Split into two generators - igen
  1239. that outputs the instruction tables and dgen that outputs the spr
  1240. tables. Add -f (filter out) flag to igen to filter out certain
  1241. instructions (ex 64 bit ones) from the created tables. Include
  1242. $(LIBIBERTY_LIB) in link options in case host lacks some libc
  1243. functions.
  1244. * NOTE: igen, since it was originally written for the
  1245. PowerPC/RS6000, things the MSB is 0 and the LSB is 63{31}.
  1246. * Makefile.in, std-config.h, ppc-cache-rules(new),
  1247. ppc-opcode-complex(new), ppc-opcode-simple(new): (for igen) Create
  1248. cache-rule and opcode-rule tables from macros found std-config.h.
  1249. Delete corresponding macro's from std-config.h.
  1250. * igen.c (gen_itable_c, gen_itable_h), Makefile.in: code to output
  1251. an table of all the instructions. Code to output a type
  1252. enumerating all the instructin names.
  1253. * igen.c(lf_print_c_semantic): Move call to increment instruction
  1254. counter so that it occures _after_ the instruction has been fully
  1255. validated, was double counting illegal/invalid instructions. Add
  1256. conditional so only compiled in when WITH_PROFILE enabled (enabled
  1257. by default).
  1258. * igen.c, cpu.h, cpu.c(cpu_increment_number_of_insns): Include
  1259. itable.h, count individual instruction types not just total,
  1260. adjust reporting functions to output this.
  1261. * ppc-instructions (64 bit Load Doubleword with Update Indexed):
  1262. Had 32./ instead of 31./
  1263. * ppc-instructions (64 bit Store Double Word Conditional Indexed):
  1264. bitrot - updated to use newer CR register operators.
  1265. * ppc-instructions (64bit Floating Convert from Integer
  1266. Doubleword): Correct call to Round_Float().
  1267. Mon Oct 16 00:31:20 1995 Andrew Cagney <cagney@highland.com.au>
  1268. * basics.h: #include "sim_callbacks.h" earlier so that its
  1269. prototypes are declared in all other header files.
  1270. * bits.h, bits.c, idecode_expression.h (ROTL32, ROTL64): Update
  1271. doc in bits.h, remove dead code in bits.c, move ROTL32/ROTL64 into
  1272. bits.h.
  1273. * cpu.c(cpu_add_commas), device_tree.h, device_tree.c(scand_*):
  1274. Add size of buffer argument to functions writing a string into a
  1275. buffer. Check for buffer overflow.
  1276. Sun Oct 15 22:16:11 1995 Andrew Cagney <cagney@highland.com.au>
  1277. * devices.h, devices.c, debug.h, debug.c: add macro's for tracing
  1278. of each device. Make parameter names consistent so macros work.
  1279. Use macro's in device functions.
  1280. * device_tree.c, devices.h, devices.c: include path to device in a
  1281. devices node when creating it.
  1282. * device_tree.c, debug.h, debug.c: Add tracing of `device-tree'.
  1283. * core.c: add tracing of core-device, adjust parameter names in
  1284. core functions to be consistent with those in devices*.
  1285. Sun Oct 15 20:33:20 1995 Andrew Cagney <cagney@highland.com.au>
  1286. * debug.h, debug.c (trace_option): New function. Parses the trace
  1287. option, updating the trace array.
  1288. * debug.h, debug.c (trace_usage): New function. Outputs the list
  1289. of all possible trace options.
  1290. * sim_calls.c (sim_open), main.c (main): Use new trace_option() to
  1291. parse trace options specified with the simpler -t flag. Adjust
  1292. usage.
  1293. * FIXME: basic parsing of command line options is still duplicated
  1294. by main.c and sim_calls.c
  1295. Thu Oct 26 10:42:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  1296. * Makefile.in (clean): Delete *.i and *.out files.
  1297. * ppc-endian.c (SWAP_n): Add SET argument to allow use of SWAP
  1298. macros for either assignment or return. Fix SWAP_8 to use a
  1299. union, and two SWAP_4's. Delete SWAP_N, since nobody uses it now.
  1300. (ENDIAN_N): Add SET argument to SWAP_n calls. Delete macro defs
  1301. that hardwired swapping on/off, let optimizer delete dead code.
  1302. * main.c (main): Add printf that we caught a signal and print out
  1303. the failing address.
  1304. Thu Oct 19 21:43:39 1995 Fred Fish <fnf@fishfood.amigalib.com>
  1305. * Makefile.in: Remove tabs from otherwise empty line.
  1306. Confuses many non-GNU versions of "make".
  1307. Wed Oct 18 08:51:25 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  1308. * Makefile.in (clean): Delete files produced by gen.
  1309. Mon Oct 16 17:34:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  1310. * gen.c (lf_print_c_semantic_function): Move counting # of
  1311. instructions here so it works with caching.
  1312. (gen_idecode_c): Move from here.
  1313. Wed Oct 11 17:13:15 1995 Andrew Cagney <cagney@highland.com.au>
  1314. * gen.c, ppc-instructions, psim.c: Fix code for generating
  1315. cracking instruction cache. Delete the code that cached just the
  1316. result from doing an instruction lookup - this ran slower than no
  1317. cache at all.
  1318. Fri Oct 13 09:58:43 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  1319. * Makefile.in (gen.o): Include $(INLINE_CFLAGS).
  1320. * debug.h (ppc_trace): Rename from trace, to avoid a conflict with
  1321. TCL when gdb is linked with the simulator.
  1322. * debug.c (ppc_trace): Ditto.
  1323. * sim_calls.c (sim_open): Change trace -> ppc_trace.
  1324. * main.c (main): Ditto.
  1325. * cpu.c (cpu_add_commas): Remove extra static.
  1326. Thu Oct 12 11:35:53 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  1327. * Makefile.in (psim.o): Now that inlines are turned on, make
  1328. psim.o depend on all sources.
  1329. * cpu.c (cpu_add_commas): New function to format a long with
  1330. commas.
  1331. (cpu_print_info): Use it to print number_of_insns.
  1332. * ppc-endian.c (SWAP_n): New macros to speed up byte swapping for
  1333. 2, 4, and 8 bytes.
  1334. (ENDIAN_N): If both target and host byte orders are known, don't
  1335. bother testing CURRENT_{TARGET,HOST}_BYTE_ORDER.
  1336. * ppc-endian.h (target specific H2T_n/T2H_n macros): Remove #if 0
  1337. to allow target specific H2T_n/T2H_n macros to be used.
  1338. (htonl, ntohl): If compiled on a 486 by GCC and WITH_BSWAP is
  1339. non-zero, redefine the htonl/ntohl macros to use the BSWAP instead
  1340. of the 3 instruction sequence that runs on 386s.
  1341. * std-config.h (WITH_{HOST,TARGET}_BYTE_ORDER): Don't override if
  1342. specified on the compile line.
  1343. (WITH_BSWAP): If not defined, define as 0.
  1344. * Makefile.in (INLINE_CFLAGS): Add -DDEFAULT_INLINE=2 to add
  1345. default inline support. Pass INLINE_CFLAGS when compiling.
  1346. * devices.{h,c} (unimp_device_ioctl): Use STATIC_DEVICES, not
  1347. INLINE_DEVICES since GCC doesn't like inline functions that
  1348. accept variable arguments.
  1349. (stack_ioctl_callback): Make function just static because GCC
  1350. doesn't like inline functions that accept variable arguments.
  1351. * devices.h (STATIC_DEVICES): Define as empty if not defined.
  1352. * inline.c: Correct pathnames of included C files to match current
  1353. implementation.
  1354. * inline.h (STATIC_DEVICES): If DEVICES_INLINE is defined to be
  1355. non-zero, define STATIC_DEVICES to be static.
  1356. * std-config.h (INLINE): If GNU C and optimizing, define this as
  1357. __inline__.
  1358. (DEFAULT_INLINE): If not defined, define as 0.
  1359. (ENDIAN_INLINE): If not defined, define as DEFAULT_INLINE.
  1360. ({CORE,VM,CPU,EVENTS,REGISTERS,INTERRUPTS}_INLINE): Ditto.
  1361. ({SPREG,IDECODE}_INLINE): Ditto.
  1362. Wed Oct 11 17:13:15 1995 Andrew Cagney <cagney@highland.com.au>
  1363. * ppc-instructions: Initial cut of floating point suport added.
  1364. Of note include - use of host IEEE floating point instructions,
  1365. use of PowerPC manual pseudo code to handle the FPSCR. It is not
  1366. currently a pretty sight.
  1367. * memory_map.h, memory_map.c, memory_map_n.h, core.h, core.c:
  1368. merge into core.h, core.c, core_n.h. The type memory_map replaced
  1369. with core_map. This removes a level of pointer indirection when
  1370. translating an address.
  1371. * memory_map.h, memory_map.c, memory_map_n.h: delete.
  1372. * Makefile.in et.al (sorry): tweek to use new core, core_map and
  1373. core.h.
  1374. Wed Oct 11 12:10:26 1995 Andrew Cagney <cagney@highland.com.au>
  1375. * sim_calls.c, main.c: Add -g (trace_gdb) option, add tracing to
  1376. most of the other functions in sim_calls.c.
  1377. * basics.h (CONCAT3), memory_map.c, memory_map_n.h, Makefile.in:
  1378. Add macros to better cover up `generic' code. Makes it possible
  1379. to step through the generic code!
  1380. * vm.c, vm_n.h, Makefile.in: ditto
  1381. Tue Oct 10 15:42:59 1995 Andrew Cagney <cagney@highland.com.au>
  1382. * devices.h, devices.c, memory_map.h, memory_map.c: Changed
  1383. callback interface so that there is a read/write buffer but no
  1384. read/write_word. VEA default memory read/write handler sometimes
  1385. couldn't resolve an access and of those some were for a memory
  1386. fault and some were because gdb was making a bogus request.
  1387. * devices.h, devices.c, memory_map.h, memory_map.c, vm.h, vm.c:
  1388. eliminate transfer_mode (raw or cooked) parameter from read/write
  1389. buffer.
  1390. Fri Oct 6 20:23:56 1995 Andrew Cagney <cagney@highland.com.au>
  1391. * ppc-instructions (fmul, fmuls): correct instruction format - had
  1392. FRB instead of FRC.
  1393. Wed Oct 4 17:31:12 1995 Andrew Cagney <cagney@highland.com.au>
  1394. * psim.c, device_tree.h, device_tree.c, devices.c (printd_*,
  1395. scand_*): new functions to parse/print fields in device names
  1396. while hiding any machine dependency.
  1397. * devices.c, psim.c: Change the stack init code so that it is
  1398. handled by a device. Arguments passed across using a device ioctl
  1399. (hack).
  1400. * devices.h, devices.c: device ioctl callback changed to allow a
  1401. variable number of arguments. This gives greater flexability and
  1402. greater chance of bugs.
  1403. Tue Oct 3 22:01:56 1995 Andrew Cagney <cagney@highland.com.au>
  1404. * main.c (printf_filtered, error): Missing va_end() to close off
  1405. variable argument use.
  1406. * Makefile.in (tmp-gencode): comment out hack to get around some
  1407. versions of make not handling files being created as side-effects.
  1408. * gen.c (lf_open): Add -n (real_file_name) option. Specifies an
  1409. alternative file name to use in output files for things like #line
  1410. macros.
  1411. Makefile.in (tmp-gencode): Use gen -n so that debug info is
  1412. correct.
  1413. * Makefile.in (TARGETLIB): Use this instead of libsim.a in the
  1414. Makefile.
  1415. Sat Oct 7 22:40:59 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  1416. * sim_calls.c (sim_set_callbacks): Define new function.
  1417. Fri Oct 6 17:23:10 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  1418. * psim.c (psim_print_info): Print exit status or signal number.
  1419. Mon Oct 2 11:46:37 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  1420. * cpu.c (struct _cpu): Add number_of_insns field to trace how many
  1421. instructions are executed.
  1422. (cpu_increment_number_of_insns): New function to increment the
  1423. number of instructions issued.
  1424. (cpu_get_number_of_insns): New function to return the number of
  1425. instructions issued.
  1426. (cpu_print_info): New function to print cpu related information.
  1427. At present, print the number of instructions executed.
  1428. * gen_idecode_c: Emit call to cpu_increment_number_of_insns within
  1429. idecode_issue.
  1430. * psim.c (psim_print_info): New function to iterate over each of
  1431. the CPU's calling cpu_print_info.
  1432. * psim.h,cpu.h: Add new declarations.
  1433. * sim_calls.c (sim_open): Add argument processing to add the same
  1434. switches main.c accepts for the standalone processor.
  1435. (sim_close): Call psim_print_info if -I.
  1436. * main.c (main): Add comment saying to update sim_calls.c when
  1437. adding switches. Add -I to call psim_print_info when done.
  1438. (usage): Update usage message.
  1439. Sun Oct 1 13:52:59 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  1440. * main.c (printf_filtered): Correct to match new prototype.
  1441. Sat Sep 30 20:47:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  1442. * sim_callbacks.h (printf_filtered): Correct prototype.
  1443. Thu Sep 21 16:26:49 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  1444. * device_tree.c (OEA_MEMORY_SIZE): Define if not defined to
  1445. 0x100000.
  1446. (clayton_memory_size): Define as OEA_MEMORY_SIZE.
  1447. * std-config.h (WITH_TRACE): Default to 1 now.
  1448. * psim.c (write_stack_arguments): Don't write any stack arguments
  1449. if OEA.
  1450. * main.c (main): Switch to using getopt. Make -p also set
  1451. trace_semantics. Make -a turn on all trace flags. Make -C turn
  1452. on console tracing.
  1453. * device_tree.c (create_option_device_node): Assume a program is
  1454. OEA if the start address is < 4096, not just == 0.
  1455. Wed Sep 20 13:36:06 1995 Ian Lance Taylor <ian@cygnus.com>
  1456. * Makefile.in (maintainer-clean): New synonym for realclean.
  1457. Sun Sep 10 10:23:56 1995 Michael Tiemann <tiemann@axon.cygnus.com>
  1458. * registers.c (register_description): Add gdb synonyms for cr
  1459. (cnd) and msr (ps).
  1460. Fri Sep 8 13:16:10 1995 Ian Lance Taylor <ian@cygnus.com>
  1461. * Makefile.in (install): Don't install in $(tooldir).
  1462. * configure.in: Call AC_CONFIG_HEADER. Don't try to use
  1463. bfd/hosts/*.h file or bfd/config/*.mh file. Call AC_PROG_CC and
  1464. AC_PROG_RANLIB. Substitute in values for CFLAGS, HDEFINES, AR,
  1465. and CC_FOR_BUILD. Call AC_CHECK_HEADERS for various header files.
  1466. Touch stamp.h if creating config.h.
  1467. * configure: Rebuild.
  1468. * config.in: New file, created by autoheader.
  1469. * Makefile.in (AR): Define as @AR@.
  1470. (CC): New variable, defined as @CC@.
  1471. (CFLAGS): Define as @CFLAGS@.
  1472. (CC_FOR_BUILD): New variable, defined as @CC_FOR_BUILD@.
  1473. (RANLIB): Define as @RANLIB@.
  1474. (HDEFINES, TDEFINES): New variables.
  1475. (@host_makefile_frag@): Remove.
  1476. (mostlyclean): Make the same as clean, not distclean.
  1477. (clean): Remove config.log.
  1478. (distclean): Remove config.h and stamp-h.
  1479. (Makefile): Don't depend upon @frags@. Just rebuild Makefile when
  1480. invoking config.status.
  1481. (config.h, stamp-h): New targets.
  1482. (gen, gen.o): Build with CC_FOR_BUILD, not CC.
  1483. (ppc-config.h): Rename from old config.h build.
  1484. * (basics.h,gen.c,ppc-endian.c,psim.c): Include ppc-config.h.
  1485. Fri Sep 8 09:51:03 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  1486. * configure{,.in}: Don't include sysdep.h from bfd, since bfd no
  1487. longer provides it.
  1488. * basics.h (sysdep.h): Don't include it.
  1489. * Makefile.in (BASICS_H): Remove sysdep.h.
  1490. Wed Sep 6 13:25:42 1995 Andrew Cagney <cagney@highland.com.au>
  1491. * core.c (core_add_data): First growth of bss was being put at
  1492. wrong address (0) instead of &end.
  1493. * core.c (core_add_stack, core_add_data): Was not handling case
  1494. where bss/stack is grown across the current end-of-{bss,stack}.
  1495. Wed Sep 6 00:46:10 1995 Andrew Cagney <cagney@highland.com.au>
  1496. * system.c (system_call): Fix SYS_break - was aligning bss to a
  1497. page boundary instead of just an 8 byte one; On first call sbrk(0)
  1498. != sbrk(0).
  1499. Thu Aug 24 14:48:54 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  1500. * Makefile.in (install): Fix install rule.
  1501. Tue Aug 22 09:31:18 1995 Michael Meissner <meissner@tiktok.cygnus.com>
  1502. * system.c (system_call): Add read support.
  1503. * main.c (main): -t sets trace_device_tree. Correct usage message
  1504. to current reality.
  1505. * device_tree.c (update_memory_node_for_section): Make tracing
  1506. output line up. If not code or readonly, assume that the section
  1507. is a data section and has read/write permissions. Add readonly
  1508. support.
  1509. * core.c (create_core_from_addresses): Print end address in traces
  1510. and make tracing output line up.
  1511. * Makefile.in: Rewrite from Makefile to work with the Cygnus
  1512. environment, and support compiling in a different directory than
  1513. the sources reside in.
  1514. * ppc-endian.h: Rename from endian.h so that it doesn't get
  1515. confused with /usr/include/sys/endian.h on Linux. Add Linux
  1516. endian support.
  1517. * ppc-endian.c: Rename to be consistant with ppc-endian.h.
  1518. Include ppc-endian.h, not endian.h.
  1519. * basics.h (sysdep.h): Include sysdep.h that configure makes.
  1520. Include ppc-endian.h, not endian.h.
  1521. * std-config.h: Rename from ppc-config. Put #ifndefs around most
  1522. configuration macros, so they can be overridden via CFLAGS. By
  1523. default, turn off tracing.
  1524. * configure.in: Clone from other simulator targets.
  1525. * configure: Generate via autoconf from configure.in.
  1526. Sat Aug 19 09:05:32 1995 Andrew Cagney <cagney@highland.com.au>
  1527. * ppc-instructions: fix srawi (was geting XER[CA] real wrong).
  1528. * interrupts.c (data_storage_interrupt): allow stack to grow by
  1529. upto one MB per increment.
  1530. * ppc-instructions: divw was computing rA / rA not rA / rB
  1531. * main.c (main): really stupid. Wasn't exiting with correct status
  1532. Fri Aug 18 00:38:01 1995 Andrew Cagney <cagney@highland.com.au>
  1533. * system.c (system_call): add system calls kill(2) and getpid(2).
  1534. * main.c (main): Check/return exit status when simulation
  1535. finishes.
  1536. Thu Aug 17 14:29:18 1995 Andrew Cagney <cagney@highland.com.au>
  1537. * device_tree.c (create_option_device_node): Alignment rules (at
  1538. least for the moment) now are for strict alignment only for LE OEA
  1539. mode. (Because of compiler problems).
  1540. * system.c (system_call) SYS_exit: Wasn't exiting with correct status.
  1541. Thu Aug 17 01:16:38 1995 Andrew Cagney <cagney@highland.com.au>
  1542. * vm.c (DEFINE_VM_DATA_MAP_WRITE_N): For miss aligned transfer
  1543. forgot to return.
  1544. * system.c (system_call): didn't page align break argument before
  1545. determining increment break increment.
  1546. * psim/ppc: Re-arange entire directory structure so that
  1547. everything lives in the one directory. While a pain for cleaning,
  1548. makes building across multiple architectures much simpler.
  1549. * devices.c, device_tree.c: Added code that provides a simple
  1550. illustration of how an interrupt control device could be
  1551. implemented.
  1552. * devices.c: Added code so that the dumb console device can read
  1553. (from stdin) as well as write to stdout.