1 Mon Aug 12 18:42:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3 * configure.in: Test whether /dev/zero works on the system, and if
4 it does, define HAVE_DEVZERO.
5 * configure: Regenerate.
7 * emul_generic.c (emul_add_tree_hardware): Do not add /iobus/disk
8 if we don't have a working /dev/zero on the system.
10 * emul_bugapi.c (emul_bugapi_init): If HAVE_DEVZERO is not
11 defined, don't add disk support.
12 (emul_bugapi_do_diskio): Ditto.
13 (emul_bugapi_instruction_call): Ditto.
15 Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
17 * emul_unix.c (HAVE_TCGETATTR): If HAVE_TERMIOS_STRUCTURE is not
18 defined, make sure HAVE_TCGETATTR is #undef'ed
20 * std-config.h (REGPARM): Only define REGPARM attributes if using
21 GNU C. Test for __i686__ in case GCC ever defines it. If not on
22 a x86 platform, define REGPARM as nothing.
24 * sim-endian.h (WITH_HOST_BYTE_ORDER): Test for i686 and __i686__
27 Tue Aug 6 09:28:22 1996 Michael Meissner <meissner@tiktok.cygnus.com>
29 * configure.in (--enable-sim-{hardware,packages}): Fix typos.
30 * configure: Regenerate.
32 * device.c (device_instance_call_method): Fixup format message in
33 error case. Return 0 in case of error to shut up compiler
36 Wed Jul 31 00:02:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
38 * device_table.h (device_instance_callbacks): Relace the claim and
39 release methods with a more general table mapping from method-name
42 * device.c (device_instance_call_method): New function. Implement
43 the OpenBoot call-method client interface. Attempts to locate the
44 instances method in the callback table.
45 (device_instance_claim, device_instance_release): Delete.
46 Replaced with call-method and a lookup table.
48 * emul_chirp.c (chirp_emul_call_method): Use the new device
49 instance call method and let that handle a client claim call.
51 * hw_htab.c (claim_memory): Wrapper function to call the memory
52 devices "claim" method using the new device-instance call-method
53 interface. Replaces the previous direct calls to claim.
54 (htab_map_region): Use claim_memory.
55 (htab_init_data_callback): Ditto.
57 * hw_memory.c (hw_memory_instance_claim): Update function
58 interface so that it is compatible with call-method.
59 (hw_memory_instance_release): Ditto.
60 (hw_memory_instance_methods): New table of memory specific
61 methods claim and release. Add to the hw_memory_callback
64 Tue Jul 30 21:26:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
66 * psim.c (psim_init): Back out of change to initial value of
69 Tue Jul 30 21:12:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
71 * sim_callbacks.h (sim_io_printf_filtered): Replace
72 printf_filtered with a local simulator specific version. Add
73 #define printf_filtered to simplify updating of existing code.
75 * sim_callbacks.h (sim_io_write_stdout, sim_io_read_stdin,
76 sim_io_write_stderr): New functions. Read / write to the
77 simulations stdin and stdout and stderr interfaces. Merge in code
78 from hw_pal that previously handled async I/O.
79 (sim_io_flush_stdoutput): Rename flush_stdoutput. Add #define
80 flush_stdoutput to simplify updating of existing code.
82 * hw_pal.c (scan_hw_pal, write_hw_pal,
83 hw_pal_instance_write_callback): Use the new sim_io functions.
85 * main.c: Implement standalone versions of the new sim_io
86 functions. Include support for async I/O.
87 * sim_calls.c: Ditto. This time using the gdb callback table.
89 * std-config.h (CURRENT_STDIO, current_stdio): New macro. Set up
90 stdio configuration so that it works in the same way as the rest
92 * psim.c (psim_create): Initialize current_stdio from the device
94 * emul_generic.c (emul_add_tree_options): Enter a default value
95 for use-stdio in the device tree.
97 Fri Jul 26 19:43:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
99 * gen-idecode.c (print_jump): Was always generating a jump back to
100 idecode. Only necessary at tail of semantic code.
101 (print_jump): Was always setting the processor's cia, even during
102 startup when the processor was still undefined.
103 (print_jump): For safety, restart smp loop when cpu_nr >= nr_cpus,
106 * options.c (print_options): Add printing of WITH_REGPARM and
109 * std-config.h (WITH_REGPARM, WITH_STDCALL): Provide default
110 (disabled) values if not defined.
112 Fri Jul 26 00:36:35 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
114 * ppc-cache-rules (cache): Change RS and RB to cache instead of
115 compute. The block move instructions use them.
117 * idecode_expression.h (FPSCR_SET): New macro, set specific FPSCR
119 (CR_FIELD): New macro, extract specific CR register.
120 (FPSCR_FIELD): New macro, extract specific FPSCR register.
122 * registers.h (GPR): New macro, simplify accesses to GPR[i].
124 * bits.c (INSERTED): Covert INSERTED macro into a function.
125 (EXTRACTED): Conditionally compile on correct bit size macro.
127 * bits.h (BIT8): New macro, set a single bit in an 8 bit byte.
129 * ppc-instructions: With hints from Paul Martin, type in missing
130 some instruction semantics. Leave disabled for the moment.
131 (Load Multiple Word): Ditto.
132 (Store Multiple Word): Ditto.
133 (Load String Word Immediate): Ditto.
134 (Load String Word Indexed): Ditto.
135 (Store String Word Immedate): Ditto.
136 (Store String Word Indexed): Ditto.
137 (Move to Condition Register from XER): Ditto.
138 (Move From Condition Register): Ditto.
139 (Move From FPSCR): Ditto.
140 (Move to Condition Register from FPSCR): Ditto.
141 (Move To FPSCR Field Immediate): Ditto.
142 (Move To FPSCR Fields): Ditto.
143 (Move To FPSCR Bit 0): Ditto.
144 (Move To FPSCR Bit 1): Ditto.
146 Thu Jul 25 22:10:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
148 * std-config.h (SEMANTICS_INLINE): By default, mask out the
149 inlining of semantic functions from DEFAULT_INLINE. Almost all
150 configurations call the semantic code via a pointer so there is
153 * std-config.h (ICACHE_INLINE): Ditto.
155 Thu Jul 25 20:07:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
157 * configure.in (sim_regparm): Add configuration option for
158 enabling GCC's regparm attribute.
159 * (sim_stdcall): Add configuration option for enabling GCC's
162 * Makefile.in (REGPARM_CFLAGS): Pass regparam configuration onto
164 * (STDCALL_CFLAGS): Pass stdcall configuration onto compilations.
166 * std-config.h (REGPARM): Extend construction of REGPARM macro so
167 that it can include __stdcall__ function attribute.
169 Wed Jul 24 19:04:20 1996 Andrew Cagney <cagney@sawnoff>
171 * options.c (print_options): Include SUPPORT_INLINE in information
174 * gen-idecode.c (print_run_until_stop_body): Only generate loop
175 termination test if creating idecode_run_until_stop. Push the
176 loop termination test back into each alternative branch.
178 Wed Jul 24 15:47:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
180 * gen-icache.c (print_icache_function): Have the cache function
181 always update the cache_entries semantic and address fields.
183 * gen-idecode.c (print_idecode_switch_illegal): Include a break
184 when generating illegal instructions. This was commented out
185 which is a hangover from looking a at switch statements generated
186 using indirect jumps.
188 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
190 * igen.c (print_my_defines): Replaces print_define_my_index.
191 Print both a definition for MY_INDEX and MY_PREFIX.
192 * gen-icache.c (print_icache_function): Adjust.
193 * gen-idecode.c (print_jump_insn): Adjust.
194 * gen-semantics.c (print_c_semantic): Adjust.
196 * gen-support.c (gen_support_h): Add optional include to created
197 support.h so that, like cpu, it is optionally inlined for all
198 modules that include it.
199 * inline.h, inline.c: Adjust so that support.[hc] is handled the
202 * idecode_fields.h (LABEL, GOTO): Macro's that create a unique
203 name for a lable and then branch to it.
205 * ppc-instructions (convert_to_integer, Floating Round to
206 Single-Precision, Floating Convert from Integer Doubleword): Use
207 LABEL and GOTO instead of the recently added switch statements.
209 Wed Jul 24 14:02:42 1996 Andrew Cagney <cagney@sawnoff.highland.com.au>
211 * gen-idecode.c (print_run_until_stop_body): Too many rparen in
214 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
216 * configure.in (--enable-sim-line-nr): Typo - sim_line-nr.
217 * (--enable-sim-inline): Reorder patern matching of arguments so
218 that SUPPORT=ALL_INLINE is reconized as *=* and not *_INLINE.
220 * configure: rebuild.
222 Mon Jul 22 23:25:08 1996 Andrew Cagney <cagney@highland.com.au>
224 * configure.in (--enable-sim-hardware, --enable-sim-packages): New
225 configuration options. Let the user specify the packages or
226 hardware devices that are to be included in the build. Makes it
227 possible for user packages to be specified.
229 * Makefile.in (tmp-pk, tmp-hw): Just use the list of packages and
230 hardware instead of checking it using ls. configure.in should
231 have taken care of any problems.
232 (HW_SRC, HW_OBJ, PACKAGE_SRC, PACKAGE_OBJ): Set by configure.
234 Mon Jul 22 22:38:59 1996 Andrew Cagney <cagney@highland.com.au>
236 * psim.c (psim_options): Enter the argument to the memory size
237 option directly into the device tree. Was using atol() which is
238 dangerously non portable.
240 Mon Jul 22 22:17:08 1996 Andrew Cagney <cagney@highland.com.au>
242 * configure.in (icache): Extend icache flag to include an insn
243 option. If specifyed the insn - aka instruction - is included in
244 the instruction cache. Make this the default.
245 * configure: re-generate.
247 * igen.c (main), igen.h: Add option -S - inSn - for specifying
248 that the instruction should be included in the icache.
250 * gen-icache.c (print_icache_body): If enabled, output code to put
251 the instruction into the icache.
252 (print_icache_struct): If enabled, add insn to the icache struct.
254 Mon Jul 22 20:46:12 1996 Andrew Cagney <cagney@highland.com.au>
256 * Makefile.in (BUILD_CFLAGS): Include -g when building the
259 Mon Jul 22 20:00:25 1996 Andrew Cagney <cagney@highland.com.au>
261 * emul_generic.c (emul_add_tree_options): Was incorrectly setting
262 the strict-alignment option when hardwired for non-strict
265 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
267 * gen-semantics.c: Make the my_index variable a macro MY_INDEX.
269 * ppc-instructions: Adjust so that references are to MY_INDEX and
272 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
274 * gen-idecode.c: Output the complete run_until_stop function
275 instead of just the code to handle a single instruction issue.
276 * : Have the generated idecode.c include inline.c (instead of psim.c).
278 * std-config.h: Change psim.c so that it isn't inlined (as this is
281 * psim.c (run_until_stop): Delete the old run_until_stop function
282 instead calling the idecode_run and idecode_run_until_stop
283 functions that gen-idecode.c is now creating.
285 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
287 * dgen.c: Maintenance - update to use new features found in lf.c.
289 * filter_filename.c (filter_filename): Maintenance - make the
292 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
294 * debug.c (TRACE, ITRACE, DTRACE): Have GCC instead of CPP
295 eliminate trace statements.
297 * debug.c: Change trace format so that it is consistent
298 (file:line-nr) with CC's error output.
300 * gen-itable.c (itable_c_insn): Add the source file name and
301 source line number to the instruction's informational entry.
303 * debug.c (ITRACE): Use the itable (and my_index) to get the
304 current instructions name and source line number.
306 * gen-semantics.c, gen-icache.c: Adjust generated ITRACE calls to
309 * emul_bugapi.c (emul_bugapi_instruction_call): Adjust
310 corresponding call to ITRACE so that it still matches.
312 * idecode_expression.h (ALU_END, CR0_COMPARE): Use TRACE instead
313 of ITRACE. The CPP line directives would have previously set the
314 line-nr and file name so ITRACE isn't needed.
316 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
318 * gen-idecode.c (print_jump_until_stop_body): New function and
319 idecode generation option. Instead of generating and calling
320 separate functions containing the semantic and icache code
321 generate a single monolythic function and use goto's (and GCC's
322 indirect jump) to move between code blocks.
324 * Makefile.in: Add sim_jump flag to those passed to igen.
326 * configure.in: New option --enable-sim-jump (default disabled)
328 * ppc-instructions: Eliminate any uses of labels and goto's.
329 These result in duplicate declarations when a single flat function
332 * ppc-opcode-jump: New file. Set of opcode rules useful when
333 testing jumping idecodes.
335 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
337 * gen-idecode.c: Optionally include the semantic code for an
338 instruction in the function that is doing the decoding.
340 * igen.c: Add option (-C) to generate semantics in the instruction
343 * configure.in (--enable-sim-icache): Accept an option list such
344 as 1024,define. Add a new choice to the list - semantic - which
345 will cause igen to generate instruction decode functions that
346 include the corresponding semantic code.
348 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
350 * configure.in: New option --enable-sim-line-nr (default enabled).
351 Enable/disable the inclusion of CPP line directives in the
352 generated files. Such directives refer back to the source files
353 used when generating the simulator code.
355 * Makefile.in (sim_line_nr): Pass to igen.
357 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
359 * igen.c (main): Revamp the options so that more letters are
362 * configure.in: Adjust to match igen's revamped options
364 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
366 * Makefile.in (pk.h, hw.h): Rewrite depenencies for hw.h (etc) so
367 that they use the same technique as igen (ie a dummy targets
368 tmp-pk and tmp-hw are created).
370 Mon Jun 24 22:28:00 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
372 * Makefile.in (BUILD_CFLAGS): Include WARNING_CFLAGS.
374 Wed Jun 19 21:45:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
376 * ld-cache.[hc], ld-decode.[hc], ld-insn.[hc]: New files. Separate
377 out the loading of each of the tables from the rest of igen.
378 * Makefile.in: Adjust.
381 * gen-icache.[hc], gen-idecode.[hc], gen-itable.[hc],
382 gen-model.[hc], gen-semantics.[hc]: New files. Separate out the
383 code creating each separate set of generated files.
384 * Makefile.in: Adjust.
387 * gen-support.[ch]: New files. Output the support functions (found
388 in the ppc-instructions file) into a separate file.
390 * inline.h, inline.c: Add.
393 * ld-cache.c: Re-design the cache table format.
394 * ppc-cache-rules: Update to new format.
396 * ld-decode.c: Re-design the decode table format.
397 * ppc-opcode-simple: Update to new format
398 * ppc-opcode-complex: Ditto
399 * ppc-opcode-flat: Ditto
401 * filter.h, filter.c: New files. Separate the opcode filter table
402 reading code from the rest of igen.c. Re-design the filter so that
403 it works inclusivly not exclusivly.
404 * igen.c: Remove the opcode filter table loading code.
405 * Makefile.in (filter.o): Adjust
406 * configure.in: Adjust filter flag so that default includes 32bit
408 * ppc-instructions: Clean up filter fields so that only in use
409 entries are specifed (ie delete `be').
411 * misc.c (name2i, i2name): New function. Map between a string and
414 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
416 * sim_calls.c (sim_close): If simulator not created, skip printing
419 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
421 * registers.c (register_description): Typo, insns not insn.
423 * ppc-instructions (model_get_number_of_stalls): New model function,
424 returns number of stalls for the specified processor.
425 * psim.c (psim_read_register): Add call to new function
426 model_get_number_of_stalls().
428 * ppc-instructions (model_get_number_of_cycles): New model function,
429 returns number of stalls for the specified processor.
430 * psim.c (psim_read_register): Add call to new function
431 model_get_number_of_cycles().
433 Fri Jun 14 00:11:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
435 * device_table.h: Don't pass the parent device into a devices
436 create function. This makes the create function consistent with
438 * device.c (device_template_create_device): Ditto
439 * hw_pal.c (hw_pal_create): Ditto
440 * hw_core.c (hw_core_create): Ditto
441 * hw_vm.c (hw_vm_create): Ditto
442 * hw_disk.c (hw_disk_create): Ditto
443 * hw_nvram.c (hw_nvram_create): Ditto
444 * hw_memory.c (hw_memory_create): Ditto
445 * hw_cpu.c (hw_cpu_create): Ditto.
447 * device.c (split_find_device): Allow a null initial parent device.
448 (device_template_create_device): Ditto.
450 * device.c (device_create_from): Make local (static) only used
452 * device_table.h: typedef device_callbacks moved here (from
453 device.h) where it belongs.
455 * hw_core.c: New file. Implements just the core device using the
458 * corefile.c: Moved all core device functions into the new
459 hw_core.c file. core_device_create() disapears.
461 * psim.c (psim_tree): Use device_tree_add_parsed() to create the
464 Thu Jun 13 00:09:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
466 * hw_init.c: Correct typo in comment.
468 * corefile.c (core_init): Remove any remaining references to a
470 (core_map_find_mapping): Ditto.
472 Wed Jun 12 22:30:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
474 * corefile.c (core_init): Make function global so that other
475 devices are able to use the full core object.
477 * corefile.c (core_create, core_from_device): Break core_create
478 into two functions. The first creates a core object, the second
479 returns the core object associated with a core device.
481 * corefile.c (core_device_create): Use core_create to make the
484 * psim.c (psim_create): Use core_from_device() instead of
487 * device.c (device_template_create_device): Make static as only
488 needed by functions internal to device.c.
490 Fri Jun 7 23:47:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
492 * ppc-opcode-test-2: Remove description of fields.
493 * ppc-opcode-complex: Ditto
494 * ppc-opcode-flat: Ditto
495 * ppc-opcode-simple: Ditto
496 * ppc-opcode-stupid: Ditto
497 * ppc-opcode-test-1: Ditto
498 * ppc-cache-rules: Ditto
500 * igen.c: Add description of files as a comment at the front.
502 Wed Jun 26 12:50:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
504 * configure.in: Check for whether the termios and termio
505 structures are really defined, and whether or not, they define the
507 * configure: Regenerate.
509 * Makefile.in ({,TERMIO_}CFLAGS): Add TERMIO_CFLAGS options set by
512 * emul_unix.c: Various changes to allow for building on systems
513 with different termio and termios structures. If host has both
514 termio and termios, just use termios. No longer include
517 Wed Jun 26 12:26:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
519 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
520 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
522 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
523 (AC_PROG_INSTALL): Added.
524 * configure: Rebuilt.
526 Wed Jun 5 23:53:42 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
528 * corefile.h: Rewrite documentation so that it can be extracted and
529 converted into texinfo (and hence ready for translation into html,
533 Thu Jun 6 09:52:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
535 * hw_disk.c (SEEK_SET): If SEEK_SET is not defined, define as 0.
537 Wed Jun 5 11:46:52 1996 Andrew Cagney <cagney@puddin>
539 * hw_disk.c: Include <unistd.h> if available. Under SunOS, that
540 is the source of SEEK_SET.
542 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
544 * psim.c (psim_options): Correct type of dummy arguments being
545 passed to a device_ioctl call.
547 * hw_init.c (hw_data_init_data_callback): Adjust printf arguments.
548 (write_stack_arguments): Ditto.
549 * hw_trace.c: Instance callback entry no longer a table.
551 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
553 * emul_unix.c (do_unix_umask): Cast printf argument.
554 (convert_to_linux_termios): Use LINUX_VSWTC not LINUX_VSWCH
556 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
558 * hw_init.c (update_for_binary_section): Abort if we find an
559 .interp section, which indicates the need for shared libraries to
562 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
564 * emul_unix.c (do_unix_{time,gettimeofday,getrusage}): Add support
565 for time, gettimeofday, and getrusage system calls.
566 ({solaris,linux}_descriptors): Add new system calls.
567 (do_get{,e}{uid,gid}): Use gid_t/uid_t types.
568 (do_get{,p}pid): Use pic_t types.
570 * configure.in (AC_TYPE_{GETGROUPS,SIGNAL}): Define.
571 (AC_TYPE_{MODE,OFF,PID,SIZE,UID}_T): Define.
572 * config{.in,ure}: Regenerate.
574 Mon Jun 3 23:19:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
576 * emul_netbsd.c (emul_netbsd_create): Use the more specific names
577 `ppc-elf' and `ppc-xcoff' for the stack-type.
578 * emul_unix.c (emul_unix_create): Ditto.
579 * emul_bugapi.c (emul_bugapi_create): Ditto.
580 * hw_init.c: Reconize the new names.
582 * emul_unix.c (do_unix_break): Adjust so that the updated ioctl
583 call is used (no system parameter).
585 Sun Jun 2 11:21:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
587 * emul_unix.{h,c}: New files to provide Solaris and Linux system
590 * Makefile.in (LIB_{SRC,OBJ}): Add emul_unix.{c,o}.
591 (os_emul.o): Depend on emul_unix.h.
592 (emul_unix.o): New dependency.
594 * configure.in (--enable-sim-alignment): Add 0|default to mean set
595 alignment to 0, which means use appropriate alignment for mode.
596 (AC_CHECK_FUNCS): Add new functions needed by emul_unix.c.
597 (AC_CHECK_HEADERS): Add new include files needed by emul_unix.c.
598 * config.in: Regenerate.
599 * configure: Regenerate.
601 * emul_generic.c (emul_write2_status): New function to return
602 results in r3 and r4 for Solaris system calls.
603 (emul_do_system_call): If the system call is not support, but
604 there is a string for the system call name, print out the string
605 instead of the system call number.
607 * emul_generic.h (emul_write2_status): Declare it.
609 * emul_netbsd.c: Use /* */ around comment on #endif.
611 * os_emul.c: Include emul_unix.h.
612 (os_emulations): Add emulations for Solaris, and Linux.
614 * psim.c (psim_usage): Add message about solaris, linux
617 Thu May 30 00:00:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
619 * hw_iobus.c: Tidy up notes so that they can be auto-extracted.
621 * README: Correct PSIM's title
623 Wed May 29 23:50:26 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
625 * basics.h: New global type object_disposition, used to indicate
626 the status of objects when things are restarted.
628 Fri May 17 17:28:52 1996 Andrew Cagney <cagney@benjimen.highland.com.au>
630 * device_table.h: Change the interrupt descriptor structure so
631 that it includes an additional member - an upper bound on the
632 interrupts by that name.
634 * device.c (device_interrupt_decode): Allow a range of interrupt
635 ports (eg rst0 .. rst6) if the port descriptors bound is non zero.
637 * device.c (device_tree_print_device): Include a list of valid
638 interrupt ports when listing supported devices.
640 * device.h, device.c (device_child_interrupt_*): Delete. Not used.
642 * emul_generic.c (emul_add_tree_hardware): Modify the creation of
643 the interrupt net so that it uses int0 .. intN.
645 Tue May 14 23:03:53 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
647 * device.h, device.c (device_ioctl): Drop the system argument.
648 Devices can not obtain this using the device_system() call.
649 * device_table.h: Adjust accordingly.
650 * hw_*.c: Adjust accordingly.
651 * emul_netbsd.c (do_break): Adjust call to vm device accordingly.
652 * psim.c (psim_options): Use a device_ioctl call to force the
653 hw_trace device to update the trace options.
654 * hw_trace.c: Replace the init function with an ioctl call. Adjust
657 * psim.c (psim_init): Re-order initialization so that the
658 os-emulation is initialized after the device tree. Without this,
659 os-emul's are not able to create instances or access properties
660 that contain an instance handle.
662 * device.h, device.c (device_add_*_property): Make these functions
663 internal to device.c. The user has access to the more generic
664 device_tree_add_parsed function. Differentiate between the initial
665 and current value for each property.
666 * (clean_device_properties): New function that deletes any
667 properties created after the start of a simulation and restores
668 the initial value of any others (ignoring ihandles).
669 * (init_device_properties): (Re)Initialize any properties that
670 contain ihandles. create
672 * (device_tree_init): Include calls to clean the device tree's
673 properties and then initialize them. Document this in the device.h
676 Mon May 6 17:36:15 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
678 * interrupts.c (decrementer_interrupt): Always pend a decrementer
679 interrupt even if it is not yet possible to deliver it.
681 Wed May 1 12:26:51 1996 Andrew Cagney <cagney@benjimen>
683 * mon.h, mon.c (mon_get_number_of_insns): Make this externally
684 visable adjusting the arguments so that the interface is correct.
685 (mon_print_info): Adjust calls.
687 * registers.h, registers.c (register_description): Add phony
688 cycle, insn and stall registers.
690 * psim.c (psim_read_register): Return nr of instructions for given
693 Tue Apr 30 22:09:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
695 * hw_htab.c: New file. Extract contents from disk_table.c.
696 Contains a device that, during initialization will create a
697 PowerPC htab in memory.
698 * hw_register.c: New file. Extract contents from disk_table.c.
699 Contains a device that, during initialization, will parse its
700 property list and use that to initialize various processor
701 registers (not target specific).
702 * hw_vm.c: New file. Extract contents from disk_table.c. Contains
703 a device that handles accesses to invalid virtual memory addresses
705 * hw_init.c: New file. Extract contents from disk_table.c. Misc
706 devices that can initialize memory from a file.
707 * hw_trace.c: New file. Extract contents from disk_table.c.
708 Configure trace options from property values.
710 * Makefile.in (hw_htab.o, hw_register.o, hw_vm.o, hw_init.o,
711 hw_trace.c): Add new device files.
713 * device_table.c: Remove above code, now in separate independant
716 Fri Apr 26 00:00:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
718 * hw_disk.c: New file. Disk and CDROM device.
720 * Makefile.in (hw_disk.o): Add device hw_disk.c.
722 * pk_disklabel.c: New file. Implement the miss-named disk-label
725 * Makefile.in (pk.h): Create the file pk.h that contains a list of all
728 * Makefile.in (hw.h, hw.c): Add dependancy on Makefile so that
729 they are re-created when the makefile is updated.
731 * emul_generic.c (emul_add_tree_hardware): Add a disk device
732 (below the iobus) to the device tree. Include an ihandle of
733 the disk as /chosen/disk.
735 * emul_bugapi.c (emul_bugapi_create): Don't initialize the input,
736 output and (new) disk handles yet.
737 * (emul_bugapi_init): Initialize the input, output (and just added)
739 * (emul_bugapi_do_diskio): New. Performs disk i/o (well at least
740 what I think the behavour is).
741 * emul_bugapi.c (emul_bugapi_instruction_call): Add hook to disk
742 i/o bug call. For RETURN call, exit using gpr[3]'s status even
743 though this isn't part of the spec - makes it possible for machine
744 code to signal the aporting of a simulation run.
746 * emul_chirp.c (chirp_emul_call_method): Add support for the
747 claim/release methods.
748 * (chirp_emul_exit): Add an optional exit status argument to
749 the exit method. Makes it possible for chirp emul simulations
750 to abort upon an error.
751 * device.h, device.c (device_instance_claim,
752 device_instance_release): New methods for claiming and releasing
754 * hw_memory.c: add claim and release memory methods.
755 * hw_*: Use the claim memory method when allocating physical
758 Thu Apr 18 23:38:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
760 * hw_nvram.c (hw_nvram_update_clock): Use the current not previous
761 time when updating the clock.
763 * hw_nvram.c: Tidy up documentation
765 Fri May 24 10:08:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
767 * configure.in (AC_STRUCT_ST_{BLKSIZE,BLOCKS,RDEV}): Use these
768 macros to determine whether or not the appropriate st_<xxx> fields
769 exist in the stat structure.
770 (AC_CHECK_FUNCS): Check for all unix system calls used, except for
771 the real basic ones like open, read, write, etc.
772 * config{.in,ure}: Regenerate.
774 * emul_netbsd.c: Add support for missing system calls, and/or
776 (MAXPATHLEN): Undefine if including unistd.h, since sys/param.h
779 * hw_pal.c (WITH_STDIO): Redefine if O_NDELAY, F_GETFL, or F_SETFL
781 (scan_hw_pal): Do not cause syntax error if O_NDELAY, F_GETFL, or
784 Tue May 21 17:24:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
786 * emul_netbsd.c (write_stat): Don't convert st_blocks unless the
789 Thu May 16 10:56:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
791 * configure.in (AC_CHECK_HEADERS): Add sys/ioctl.h.
792 * config{.in,ure}: Regenerate.
793 * emul_netbsd.c: If HAVE_SYS_IOCTL_H is not defined, don't include
796 Tue May 7 17:28:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
798 * hw_pal.c (hw_pal_instance_read_callback): Remove unused
801 * misc.c ({,target_}a2i): Rewrite to not use strtoul.
803 * Makefile.in ({spreg,misc}.o): Add dependency on .c file.
804 ({i,d}gen): Don't link in liberity. Use BUILD_LIBS instead of
807 Mon May 6 11:31:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
809 * hw_pal.c (hw_pal_instance_read_callback): If using stdio, use
810 fgets to read line. If not using stdio, do a simple blocking read
813 Fri May 3 15:07:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
815 * Makefile.in: Correctly build simulator for build machine != host
818 Tue Apr 30 18:46:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
820 * configure.in (--enable-hostendian): Rework so the default uses
821 the AC_C_BIGENDIAN results. Only run AC_C_BIGENDIAN if not cross
823 * configure: Regenerate.
825 * sim-endian.h: Add more tests for host endian to support more
826 platforms in a cross compilation environment.
828 Wed Apr 17 14:38:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
830 * hw_pal.c ({scan,write}_hw_pal): If WITH_STDIO == DO_USE_STDIO,
831 use stdio, instead of unpended read/printf_filtered.
832 (hw_pal_instance_write_callback): If WITH_STDIO == DO_USE_STDIO,
833 flush stdout after writing the characters.
835 * options.c (print_options): Print out WITH_STDIO.
837 * Makefile.in (STDIO_CFLAGS): Pass on result of @sim_stdio@
838 configuration variable.
839 (CONFIG_CFLAGS): Include STDIO_CFLAGS.
840 (hw.{c,h}): Allow for source dir != build dir, and for HW_SRC
841 files to contain directory pieces.
843 * std-config.h (DO{,NT}_USE_STDIO): New flags for whether we
844 should use stdio for console input.
845 (WITH_STDIO): If not defined, define as DONT_USE_STDIO.
847 * configure.in (--enable-sim-stdio): Add new switch to control
848 whether stdio is used for console I/O.
849 * configure: Regenerate.
851 * interrupts.c (external_interrupt): Declare it to be
852 INLINE_INTERRUPTS, not INLINE_CPU.
854 Mon Apr 15 23:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
856 * events.c (insert_event_entry): Allow events to be scheduled
857 *NOW* (at delta time 0). Add assertions to clarify behavour of
860 * events.c (update_time_from_event): New function. Calculates the
861 number of ticks from the next event. Use this.
863 Sun Apr 14 21:39:45 1996 Andrew Cagney <cagney@highland.com.au>
865 * emul_netbsd.c (do_break): Return 0 if success (instead of
868 * device_table.c (vm_ioctl_callback): Don't return adjusted break
871 Sun Apr 14 21:32:41 1996 Andrew Cagney <cagney@highland.com.au>
873 * device_table.h: Change type of the device ioctl so that it
874 returns an int (status).
875 * device.h (device_ioctl): Ditto.
876 * device.c (device_ioctl): Ditto.
878 * device_table.c (stack_ioctl_callback): Return 0 status.
879 (vm_ioctl_callback): Ditto
881 Sat Apr 13 00:00:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
883 * emul_netbsd.c (do_read): Correctly set the return value.
890 (do_sigprocmask): Ditto.
893 (do_gettimeofday): Ditto.
894 (do_getrusage): Ditto.
898 (do___sysctl): Ditto.
900 Fri Apr 12 20:56:47 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
902 * device_table.c (vm_ioctl_callback): Don't access the processor
903 registers directly, instead leave it to the caller to handle this.
905 * emul_netbsd.c (do_break): Which calls vm_ioctl_callback to
906 perform a break. Pass in the new break value and set the
907 registers according to the result.
909 * emul_generic.c (emul_write_status): Change so that r3 contains
910 either status or errno and failure is indicated by SO.
912 Thu Apr 4 23:03:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
914 * emul_bugapi.c (emul_bugapi_create): More strict check of OEA
917 Thu Apr 4 20:58:05 1996 Andrew Cagney <cagney@highland.com.au>
919 * interrupts.h (interrupts): New structure contains state of
922 * cpu.c (cpu_interrupts): New function. Pending interrupt status
923 in the cpu and grant access to it. Add interrupts to cpu
926 Fri Mar 29 22:09:25 1996 Andrew Cagney <cagney@highland.com.au>
928 * device.c (device_tree_add_parsed): Check that the creation of a
929 device instance worked before using it.
931 * psim.c (psim_halt): Remove cia argument from psim_halt. This
932 function does not save the CIA so do not pass it in.
934 Fri Mar 29 21:30:56 1996 Andrew Cagney <cagney@highland.com.au>
936 * hw_pal.c (hw_pal): Merge the halt and icu and console devices
937 found in device_table.c into a single hack pal.
939 * device_table.c (halt, icu, console): Delete.
941 * Makefile.in (hw_pal.o): New dependency.
943 * emul_generic.c (emul_add_tree_hardware): Re-arange device tree
944 so that it uses the pal instead of the icu/halt/console devices.
945 Wire the pal's interrupt ports up to the cpu nodes.
947 Fri Mar 29 20:17:17 1996 Andrew Cagney <cagney@highland.com.au>
949 * hw_iobus.c (hw_iobus_attach_address_callback): Move from
950 device_table.c to here.
952 * Makefile.in (hw_iobus.o): New dependency.
954 Fri Mar 29 12:17:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
956 * emul_bugapi.c (_os_emul_data): Add fields for output, input.
957 (emul_bugapi_create): Create input, output from /chosen/stdin and
959 (emul_bugapi_do_{read,write}): Switch to use device_instance
961 (emul_bugapi_instruction_call): Change calls to
962 emul_bugapi_do_{read,write} to pass device instance argument.
964 Tue Mar 26 14:57:58 1996 Michael Meissner <meissner@tiktok.cygnus.com>
966 * igen.c (idecode_switch_end): Fix 2/26 change so that an extra
967 default is not written out if a default was already written.
969 * psim.c (psim_{read,write}_register): Use sizeof unsigned_8 to
970 size cooked_buf, not sizeof natural_word, since floating point
971 registers are 8 bytes.
973 Mon Mar 25 22:07:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
975 * configure: Regenerate with autoconf 2.9.
977 Thu Mar 21 00:14:26 1996 Andrew Cagney <cagney@highland.com.au>
979 * device_table.h: Always include string headers.
981 Thu Mar 21 00:06:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
983 * main.c (error): Be careful to not try to print out statistics
984 when the simulation was never created.
986 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
988 * basics.h: Move the event queue's definition to here so that it
989 can be refered to globally with out importing all of events.h.
991 * psim.h, psim.c (psim_event_queue): New function. Grant access
992 to the simulation event queue. Will make this the single point of
993 access (there is after all only one event queue in the
996 * cpu.c (cpu_create): Use psim_event_queue to obtain the event
997 queue instead of it being passed in. No longer allow access to
998 the cpu's copy of the event queue.
1000 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
1002 * events.h, events.c (event_handler): Remove event_queue from
1003 arguments passed to an event handler. That argument is redundant
1004 - the `data' should refer to a data structure that contains the
1005 event queue if queing is needed.
1007 * cpu.c (cpu_decrement_event): adjust
1009 * events.c (event_queue_process): adjust
1011 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
1013 * device.h, device.c (device_system): New, returns a handle for
1014 the system given the device.
1016 * device.c (device_address_init): Store a pointer back to the
1017 system in each devices node.
1019 * device_table.h: Don't pass `system' into each device when it is
1020 being initialized, this is now available using device_system(me).
1022 * device.c (device_address_init, device_data_init): Adjust.
1024 * hw_cpu.c, hw_nvram.c, hw_memory.c, hw_eeprom.c, device_table.c:
1027 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
1029 * interrupts.c (decrementer_interrupt, external_interrupt):
1030 Remember that an interrupt wasn't delivered so that it can be
1033 * interrupts.c (check_masked_interrupt): New function. (re)
1034 checks for the posibility that a recent change to the MSR may have
1035 made it possible to deliver an interrupt that was previously
1036 masked be the EE bit.
1038 * ppc-instructions (mtmsr, mfmsr, rfi): Check for posibility of
1039 a pending interrupt being delivered using check_masked_interrupt().
1041 * cpu.c (cpu_decrement_event): Just call decrementer_interrupt()
1042 leaving it to that module to handle both interrupt synchronization
1045 * cpu.c (struct _cpu): remove variables that were going to record
1046 pending decrementer and external interrupts.
1048 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
1050 * hw_cpu.c, hw_cpu.h: New files. Implement a device that sits
1051 between the interrupt controller and the simulators internal
1052 processor model. Maps device interrupts onto the processor
1053 interrupt function calls.
1055 Mon Mar 4 06:06:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1057 * hw_nvram.c: NVRAM device that includes a real-time clock that is
1058 updated each second.
1060 Mon Mar 4 04:18:50 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1062 * device.h (attach_type): Remove attach_default type address
1063 spaces. Will replace with levels of callback memory.
1065 * corefile.h, corefile.c (new_core_mapping), corefile.c
1066 (core_map_attach): Replace default attach with a layerd callback
1069 Sun Mar 3 03:58:46 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1071 * device.c (split_property_specifier): ensure that only a single
1073 (split_value): New function, parses the value part of a device
1076 * device.c (device_tree_add_parsed): Use the interrupt conversion
1077 functions to determine the interrupt port numbers.
1079 * device_table.h: Add table that maps between an interrupts
1080 symbolic name and its port number.
1082 * device.h, device.c (device_interrupt_decode,
1083 device_interrupt_encode): new functions use the recently added
1084 interrupt port name/number tables to perform conversion.
1086 Sun Mar 3 03:23:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1088 * device.h, device.c (device_set_array_property,
1089 device_set_boolean_property, device_set_ihandle_property,
1090 device_set_integer_property, device_set_string_property): New
1091 functions - allow the value of a given property to be changed.
1093 * device.h, device.c: Re-order declaration and definition of
1096 Sun Mar 3 03:10:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1098 * device.c (device_tree_print_device, device_tree_add_parsed):
1099 Remove references to phandle properties.
1101 Wed Feb 28 00:43:07 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
1103 * Makefile.in (corefile.o): missing dependency on device_table.h
1106 Tue Feb 27 23:59:35 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
1108 * device_table.h: Revamp device init callbacks so that they are a
1110 * device.c (device_init_data, device_init_address): If an init
1111 callback is NULL assume it should do nothing.
1112 * device_table.c (ignore_device_init, unimp_device_init): delete
1114 * device_table.c, hw_memory.c: adjust.
1118 * (device_instance): ditto.
1120 * (address nee config_address): ditto.
1121 * (interrupt): ditto.
1123 Mon Feb 26 21:11:20 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
1125 * igen.c (idecode_switch_end): Output a default entry when the
1126 switch statement is perfect. Firstly stops GCC complaining about
1127 an incomplete switch and secondly it will be eliminated by a good
1130 Mon Feb 26 22:47:15 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
1132 * Makefile.in (hw.h, hw.c): New targets. Create from the list of
1133 hw_*.c files. hw.h declares a device descriptor table for each hw
1134 device while hw.c lists those tables in a form suitable for the
1135 construction of a top leveltable in device_table.c.
1137 * Makefile.in (device_table.o): now depends on hw.c a generated
1140 * device_table.c (device_table): Re-arange the table of devices so
1141 that two levels are possible. Make use of hw.c.
1142 * device_table.h: ditto.
1144 * device.c (device_template_create_device): Handle new two level
1145 device lookup table.
1146 * device.c (device_usage): ditto.
1148 Mon Feb 26 22:24:00 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
1150 * device_table.c: Delete the memory device (moved to hw_memory.c).
1152 * hw_memory.c: New file. Just an OpenBoot memory device.
1154 Wed Jan 17 21:47:34 1996 Andrew Cagney <cagney@highland.com.au>
1156 * device.c (device_init_address): New. Split initialization into
1157 two stages, address and address spaces
1158 * device.c (device_init_data): New. ... and data or other work.
1159 With out this, devices try to modify memory before it as been
1162 * device.c (device_tree_init): Update to perform staged
1165 * device.c (device_init): Delete.
1167 Wed Jan 17 21:43:09 1996 Andrew Cagney <cagney@highland.com.au>
1169 * device_table.c (data_*): Rewrite to make heaver use of property
1170 nodes. Allow initialization by different data types.
1171 * device_table.c (htab_* pte_*): Rewrite to use properties.
1173 * emul_chirp.c (emul_chirp_create): Use
1174 * emul_bugapi.c (emul_bugapi_create): Ditto
1175 * emul_netbsd.c (emul_netbsd_create): Ditto
1177 Wed Jan 17 21:24:50 1996 Andrew Cagney <cagney@highland.com.au>
1179 * emul_generic.c (emul_add_tree_options): Annotate existing tree
1180 with options that haven't yet been specified.
1181 * emul_generic.c (emul_add_tree_hardware): Annotate existing tree
1182 with demo devices and properties.
1184 * emul_chirp.c (emul_chirp_create): Update to use new
1185 device_tree_add_parsed call and additional information now
1186 included in the device tree. Use emul_add_tree* functions to add
1187 any missing details.
1188 * emul_bugapi.c (emul_bugapi_create): Ditto
1189 * emul_netbsd.c (emul_netbsd_create): Ditto
1191 Wed Jan 17 21:18:27 1996 Andrew Cagney <cagney@highland.com.au>
1193 * device.c (device_instance_create): New. Create/delete and
1194 operate on instances of a device.
1195 * device.c (device_instance_delete): Ditto
1196 * device.c (device_instance_read): Ditto
1197 * device.c (device_instance_write): Ditto
1198 * device.c (device_instance_seek): Ditto
1199 * device.c (device_instance_data): Ditto
1200 * device.c (device_instance_name): Ditto
1201 * device.c (device_instance_path): Ditto
1203 * emul_chirp.c (chirp_emul_open): Implement using device_instance.
1204 * emul_chirp.c (chirp_emul_close): Ditto
1205 * emul_chirp.c (chirp_emul_read): Ditto
1206 * emul_chirp.c (chirp_emul_write): Ditto
1207 * emul_chirp.c (chirp_emul_seek): Ditto
1209 * emul_chirp.c (chirp_read_t2h_args): Read arguments from device.
1210 Being careful to convert all from target to host byte order.
1211 * emul_chirp.c (chirp_write_h2t_args): Converse.
1213 Wed Jan 17 20:07:15 1996 Andrew Cagney <cagney@highland.com.au>
1215 * device.c (device_tree_add_parsed): New. Rewrite code to add
1216 devices to the device tree so that a single printf style function
1219 * device.c (device_tree_add_*): Delete. Replaced by above.
1221 * device.c (split_device_specifier): Functions to manipulate a
1222 device specifier (path) breaking it into its components
1223 * device.c (split_property_specifier): Ditto
1224 * device.c (split_device_name): Ditto
1225 * device.c (split_find_device): Ditto
1227 * device.c (scan_*): Delete
1229 * device.c (device_tree_find_device): Rewrite to use above.
1230 * device.c (device_add_property): Ditto
1232 Wed Jan 17 19:51:56 1996 Andrew Cagney <cagney@highland.com.au>
1234 * psim.c(psim_options): Parse the psim options, installing their
1235 value in the device tree. Options are now first entered into a
1236 device tree and then extracted out again when needed. This allows
1237 greater flexability in configuration.
1239 * psim.c (psim_tree): Returns a basic device tree ready for
1240 parsing by psim_options.
1241 * psim.c (psim_usage): New. Give usage to varing levels of detail
1242 according to the verbosity. In turn output device and trace
1245 * main.c (main): Update to use new system
1246 * sim_calls.c (sim_open, sim_do_command): Ditto
1248 * psim.c (psim_options): Add `r' option - ram size.
1249 * psim.c (psim_options): Add `o' option - openboot tree entry.
1250 * psim.c (psim_options): Add `h'/`H' options - more help.
1252 * debug.c (trace_usage): Add more detailed help.
1253 * device.c (device_usage): New. Output help including a list of
1254 the devices currently available in the device table.
1255 * device_table.c: Add usage operator to each device.
1257 * corefile.c (core_create, core_device_create): Adjust so that the
1258 core device is created earlier for psim_tree(). Core can later be
1261 * psim.c (psim_create): Update to handle above way of creating
1262 things. Extract all information from the device tree.
1264 * device_tree.c (trace_*): New device node, its properties are
1265 used to set the value of the trace options. Init this device (in
1266 psim_options) when ever the options are updated.
1268 Wed Jan 17 19:46:07 1996 Andrew Cagney <cagney@highland.com.au>
1270 * debug.h: Add trace_print_info, trace_print_device_tree and
1271 trace_dump_device_tree. The first is a replacement for the
1272 variable `print_info' found in main.c and sim_calls.c. The latter
1273 two enable the dumping of the entire device tree.
1275 * debug.c: Add to trace_description table.
1277 * main.c (main): Use above trace instead of local variable
1278 * sim_calls.c (sim_close): Ditto
1280 * device.c (device_tree_print_device): New. Prints the device
1281 tree in a format that is consistent with what can be parsed by the
1282 device tree load from file code.
1284 * psim.c (psim_create): Dump device tree if enabled. If nump
1285 selected, exit psim immediatly.
1287 Wed Jan 17 19:36:52 1996 Andrew Cagney <cagney@highland.com.au>
1289 * corefile-n.h (core_map_read_N): When mapping from an address to
1290 a device, do not subtract the devices base. The device its self
1291 can do this. Brings the behavour into line with OpenBoot.
1292 * corefile-n.h (core_map_write_N): Ditto
1293 * corefile.c (core_map_read_buffer): Ditto
1294 * corefile.c (core_map_write_buffer): Ditto
1296 * device_table.c (console_io_read_buffer_callback): Adjust to
1297 handle biased address.
1298 * device_table.c (console_io_write_buffer_callback): Ditto
1300 Wed Jan 17 18:36:09 1996 Andrew Cagney <cagney@highland.com.au>
1302 * device.c (attach_device_interrupt_edge): New. Interrupt model
1303 did not allow interrupts to be wired up as a general net (edges).
1304 Re-implement so that interrupt events can be passed to multiple
1305 controllers and interrupt controllers can further propogate
1308 * device.c (attach_device_interrupt_edge) : New, Ditto
1309 * device.c (detach_device_interrupt_edge) : New, Ditto
1310 * device.c (clean_device_interrupt_edges) : New, Ditto
1311 * device.c (device_interrupt_event) : New, Ditto
1312 * device.c (device_interrupt_attach) : New, Ditto
1313 * device.c (device_interrupt_detach) : New, Ditto
1314 * device.c (device_child_interrupt_attach) : New, Ditto
1315 * device.c (device_child_interrupt_detach) : New, Ditto
1317 * device.c (device_attach_interrupt) : Delete old
1318 * device.c (device_detach_interrupt) : Delete old
1319 * device.c (device_interrupt) : Delete old
1320 * device.c (device_interrupt_ack) : Delete old
1322 * device_table.c (unimp_*) : Update to match
1324 * device_table.c (icu_io_write_buffer_callback) : Update to use
1326 * device_table.c (icu_interrupt_event_callback) : Ditto
1328 Wed Jan 17 18:18:40 1996 Andrew Cagney <cagney@highland.com.au>
1330 * device.c (external_to_device) : New function that provides a
1331 standard mapping between a devices internal representation (a
1332 pointer) and its external (or what is passed to a client)
1333 representation (a phandle). Implement using the cap object
1334 attached to the root node.
1336 * device.c (device_to_external) : Ditto
1337 * device.c (external_to_device_instance) : Ditto but for ihandle
1338 and device instance.
1339 * device.c (device_instance_to_external) : Ditto
1341 * Makefile (device.o): Add dependency on cap.
1343 * emul_chirp.c (struct _emul_chirp_data) : Elimate use of cap. Code
1344 needing to translate between internal and external representations
1345 changed to use the external_to_device et.al. device operations.
1346 * emul_chirp.c (chirp_emul_*) : Ditto
1348 * Makefile (emul_chirp.o): Remove dependency on cap
1350 Sat Jan 6 10:13:26 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
1352 * emul_chirp.c (map_over_chirp_note): Tighten up (and fix) checks
1353 on OpenBoot note section.
1355 Fri Jan 5 20:28:53 1996 Andrew Cagney <cagney@hignland.com.au>
1357 * emul_generic.c (emul_write_buffer): Use vm faulting byte
1358 read/write calls for buffer transfers. This will cause a fault to
1359 occure if the transfer fails. CHRP catches the fault while the
1360 others suffer the consequences.
1361 (emul_read_buffer): Ditto.
1362 (emul_write_word): Ditto.
1363 (emul_read_word): Ditto.
1364 (emul_read_string): Ditto.
1366 Fri Jan 5 18:55:34 1996 Andrew Cagney <cagney@highland.com.au>
1368 * emul_chirp.c (emul_chirp_create, emul_chirp_instruction_call),
1369 emul_generic (emul_blr_instruction): Use a real blr instruction to
1370 return from a client service call.
1372 * emul_chirp.c (services): Add all OpenBoot services to table.
1374 * emul_generic.h, emul_bugapi.c (emul_bugapi_create), emul_chirp.c
1375 (emul_chirp_create) : Use names instead of numbers for
1376 instructions being stored in memory.
1378 Fri Jan 5 18:52:28 1996 Andrew Cagney <cagney@highland.com.au>
1380 * Makefile.in (maintainer-clean): Remove .log, core and *.core
1381 (From NetBSD) files.
1383 Wed May 29 22:57:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1385 * ChangeLog.00, ChangeLog: ChangeLog from gdb-4.16 becomes