1 Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3 * Makefile.in (options.o): Depend on defines.h.
4 (defines.h): New rule, go through config.h and make strings of all
5 of the #define HAVE_xxx macros.
6 (distclean): Remove defines.h.
8 * options.c (print_options): Print whether many of the
9 configuration macros are defined.
11 * main.c (main): If -t options and no filename, just print the
12 options, and don't print the usage message.
14 Mon Aug 12 18:42:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
16 * configure.in: Test whether /dev/zero works on the system, and if
17 it does, define HAVE_DEVZERO.
18 * configure: Regenerate.
20 * emul_generic.c (emul_add_tree_hardware): Do not add /iobus/disk
21 if we don't have a working /dev/zero on the system.
23 * emul_bugapi.c (emul_bugapi_init): If HAVE_DEVZERO is not
24 defined, don't add disk support.
25 (emul_bugapi_do_diskio): Ditto.
26 (emul_bugapi_instruction_call): Ditto.
28 Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
30 * emul_unix.c (HAVE_TCGETATTR): If HAVE_TERMIOS_STRUCTURE is not
31 defined, make sure HAVE_TCGETATTR is #undef'ed
33 * std-config.h (REGPARM): Only define REGPARM attributes if using
34 GNU C. Test for __i686__ in case GCC ever defines it. If not on
35 a x86 platform, define REGPARM as nothing.
37 * sim-endian.h (WITH_HOST_BYTE_ORDER): Test for i686 and __i686__
40 Tue Aug 6 09:28:22 1996 Michael Meissner <meissner@tiktok.cygnus.com>
42 * configure.in (--enable-sim-{hardware,packages}): Fix typos.
43 * configure: Regenerate.
45 * device.c (device_instance_call_method): Fixup format message in
46 error case. Return 0 in case of error to shut up compiler
49 Wed Jul 31 00:02:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
51 * device_table.h (device_instance_callbacks): Relace the claim and
52 release methods with a more general table mapping from method-name
55 * device.c (device_instance_call_method): New function. Implement
56 the OpenBoot call-method client interface. Attempts to locate the
57 instances method in the callback table.
58 (device_instance_claim, device_instance_release): Delete.
59 Replaced with call-method and a lookup table.
61 * emul_chirp.c (chirp_emul_call_method): Use the new device
62 instance call method and let that handle a client claim call.
64 * hw_htab.c (claim_memory): Wrapper function to call the memory
65 devices "claim" method using the new device-instance call-method
66 interface. Replaces the previous direct calls to claim.
67 (htab_map_region): Use claim_memory.
68 (htab_init_data_callback): Ditto.
70 * hw_memory.c (hw_memory_instance_claim): Update function
71 interface so that it is compatible with call-method.
72 (hw_memory_instance_release): Ditto.
73 (hw_memory_instance_methods): New table of memory specific
74 methods claim and release. Add to the hw_memory_callback
77 Tue Jul 30 21:26:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
79 * psim.c (psim_init): Back out of change to initial value of
82 Tue Jul 30 21:12:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
84 * sim_callbacks.h (sim_io_printf_filtered): Replace
85 printf_filtered with a local simulator specific version. Add
86 #define printf_filtered to simplify updating of existing code.
88 * sim_callbacks.h (sim_io_write_stdout, sim_io_read_stdin,
89 sim_io_write_stderr): New functions. Read / write to the
90 simulations stdin and stdout and stderr interfaces. Merge in code
91 from hw_pal that previously handled async I/O.
92 (sim_io_flush_stdoutput): Rename flush_stdoutput. Add #define
93 flush_stdoutput to simplify updating of existing code.
95 * hw_pal.c (scan_hw_pal, write_hw_pal,
96 hw_pal_instance_write_callback): Use the new sim_io functions.
98 * main.c: Implement standalone versions of the new sim_io
99 functions. Include support for async I/O.
100 * sim_calls.c: Ditto. This time using the gdb callback table.
102 * std-config.h (CURRENT_STDIO, current_stdio): New macro. Set up
103 stdio configuration so that it works in the same way as the rest
105 * psim.c (psim_create): Initialize current_stdio from the device
107 * emul_generic.c (emul_add_tree_options): Enter a default value
108 for use-stdio in the device tree.
110 Fri Jul 26 19:43:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
112 * gen-idecode.c (print_jump): Was always generating a jump back to
113 idecode. Only necessary at tail of semantic code.
114 (print_jump): Was always setting the processor's cia, even during
115 startup when the processor was still undefined.
116 (print_jump): For safety, restart smp loop when cpu_nr >= nr_cpus,
119 * options.c (print_options): Add printing of WITH_REGPARM and
122 * std-config.h (WITH_REGPARM, WITH_STDCALL): Provide default
123 (disabled) values if not defined.
125 Fri Jul 26 00:36:35 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
127 * ppc-cache-rules (cache): Change RS and RB to cache instead of
128 compute. The block move instructions use them.
130 * idecode_expression.h (FPSCR_SET): New macro, set specific FPSCR
132 (CR_FIELD): New macro, extract specific CR register.
133 (FPSCR_FIELD): New macro, extract specific FPSCR register.
135 * registers.h (GPR): New macro, simplify accesses to GPR[i].
137 * bits.c (INSERTED): Covert INSERTED macro into a function.
138 (EXTRACTED): Conditionally compile on correct bit size macro.
140 * bits.h (BIT8): New macro, set a single bit in an 8 bit byte.
142 * ppc-instructions: With hints from Paul Martin, type in missing
143 some instruction semantics. Leave disabled for the moment.
144 (Load Multiple Word): Ditto.
145 (Store Multiple Word): Ditto.
146 (Load String Word Immediate): Ditto.
147 (Load String Word Indexed): Ditto.
148 (Store String Word Immedate): Ditto.
149 (Store String Word Indexed): Ditto.
150 (Move to Condition Register from XER): Ditto.
151 (Move From Condition Register): Ditto.
152 (Move From FPSCR): Ditto.
153 (Move to Condition Register from FPSCR): Ditto.
154 (Move To FPSCR Field Immediate): Ditto.
155 (Move To FPSCR Fields): Ditto.
156 (Move To FPSCR Bit 0): Ditto.
157 (Move To FPSCR Bit 1): Ditto.
159 Thu Jul 25 22:10:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
161 * std-config.h (SEMANTICS_INLINE): By default, mask out the
162 inlining of semantic functions from DEFAULT_INLINE. Almost all
163 configurations call the semantic code via a pointer so there is
166 * std-config.h (ICACHE_INLINE): Ditto.
168 Thu Jul 25 20:07:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
170 * configure.in (sim_regparm): Add configuration option for
171 enabling GCC's regparm attribute.
172 * (sim_stdcall): Add configuration option for enabling GCC's
175 * Makefile.in (REGPARM_CFLAGS): Pass regparam configuration onto
177 * (STDCALL_CFLAGS): Pass stdcall configuration onto compilations.
179 * std-config.h (REGPARM): Extend construction of REGPARM macro so
180 that it can include __stdcall__ function attribute.
182 Wed Jul 24 19:04:20 1996 Andrew Cagney <cagney@sawnoff>
184 * options.c (print_options): Include SUPPORT_INLINE in information
187 * gen-idecode.c (print_run_until_stop_body): Only generate loop
188 termination test if creating idecode_run_until_stop. Push the
189 loop termination test back into each alternative branch.
191 Wed Jul 24 15:47:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
193 * gen-icache.c (print_icache_function): Have the cache function
194 always update the cache_entries semantic and address fields.
196 * gen-idecode.c (print_idecode_switch_illegal): Include a break
197 when generating illegal instructions. This was commented out
198 which is a hangover from looking a at switch statements generated
199 using indirect jumps.
201 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
203 * igen.c (print_my_defines): Replaces print_define_my_index.
204 Print both a definition for MY_INDEX and MY_PREFIX.
205 * gen-icache.c (print_icache_function): Adjust.
206 * gen-idecode.c (print_jump_insn): Adjust.
207 * gen-semantics.c (print_c_semantic): Adjust.
209 * gen-support.c (gen_support_h): Add optional include to created
210 support.h so that, like cpu, it is optionally inlined for all
211 modules that include it.
212 * inline.h, inline.c: Adjust so that support.[hc] is handled the
215 * idecode_fields.h (LABEL, GOTO): Macro's that create a unique
216 name for a lable and then branch to it.
218 * ppc-instructions (convert_to_integer, Floating Round to
219 Single-Precision, Floating Convert from Integer Doubleword): Use
220 LABEL and GOTO instead of the recently added switch statements.
222 Wed Jul 24 14:02:42 1996 Andrew Cagney <cagney@sawnoff.highland.com.au>
224 * gen-idecode.c (print_run_until_stop_body): Too many rparen in
227 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
229 * configure.in (--enable-sim-line-nr): Typo - sim_line-nr.
230 * (--enable-sim-inline): Reorder patern matching of arguments so
231 that SUPPORT=ALL_INLINE is reconized as *=* and not *_INLINE.
233 * configure: rebuild.
235 Mon Jul 22 23:25:08 1996 Andrew Cagney <cagney@highland.com.au>
237 * configure.in (--enable-sim-hardware, --enable-sim-packages): New
238 configuration options. Let the user specify the packages or
239 hardware devices that are to be included in the build. Makes it
240 possible for user packages to be specified.
242 * Makefile.in (tmp-pk, tmp-hw): Just use the list of packages and
243 hardware instead of checking it using ls. configure.in should
244 have taken care of any problems.
245 (HW_SRC, HW_OBJ, PACKAGE_SRC, PACKAGE_OBJ): Set by configure.
247 Mon Jul 22 22:38:59 1996 Andrew Cagney <cagney@highland.com.au>
249 * psim.c (psim_options): Enter the argument to the memory size
250 option directly into the device tree. Was using atol() which is
251 dangerously non portable.
253 Mon Jul 22 22:17:08 1996 Andrew Cagney <cagney@highland.com.au>
255 * configure.in (icache): Extend icache flag to include an insn
256 option. If specifyed the insn - aka instruction - is included in
257 the instruction cache. Make this the default.
258 * configure: re-generate.
260 * igen.c (main), igen.h: Add option -S - inSn - for specifying
261 that the instruction should be included in the icache.
263 * gen-icache.c (print_icache_body): If enabled, output code to put
264 the instruction into the icache.
265 (print_icache_struct): If enabled, add insn to the icache struct.
267 Mon Jul 22 20:46:12 1996 Andrew Cagney <cagney@highland.com.au>
269 * Makefile.in (BUILD_CFLAGS): Include -g when building the
272 Mon Jul 22 20:00:25 1996 Andrew Cagney <cagney@highland.com.au>
274 * emul_generic.c (emul_add_tree_options): Was incorrectly setting
275 the strict-alignment option when hardwired for non-strict
278 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
280 * gen-semantics.c: Make the my_index variable a macro MY_INDEX.
282 * ppc-instructions: Adjust so that references are to MY_INDEX and
285 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
287 * gen-idecode.c: Output the complete run_until_stop function
288 instead of just the code to handle a single instruction issue.
289 * : Have the generated idecode.c include inline.c (instead of psim.c).
291 * std-config.h: Change psim.c so that it isn't inlined (as this is
294 * psim.c (run_until_stop): Delete the old run_until_stop function
295 instead calling the idecode_run and idecode_run_until_stop
296 functions that gen-idecode.c is now creating.
298 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
300 * dgen.c: Maintenance - update to use new features found in lf.c.
302 * filter_filename.c (filter_filename): Maintenance - make the
305 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
307 * debug.c (TRACE, ITRACE, DTRACE): Have GCC instead of CPP
308 eliminate trace statements.
310 * debug.c: Change trace format so that it is consistent
311 (file:line-nr) with CC's error output.
313 * gen-itable.c (itable_c_insn): Add the source file name and
314 source line number to the instruction's informational entry.
316 * debug.c (ITRACE): Use the itable (and my_index) to get the
317 current instructions name and source line number.
319 * gen-semantics.c, gen-icache.c: Adjust generated ITRACE calls to
322 * emul_bugapi.c (emul_bugapi_instruction_call): Adjust
323 corresponding call to ITRACE so that it still matches.
325 * idecode_expression.h (ALU_END, CR0_COMPARE): Use TRACE instead
326 of ITRACE. The CPP line directives would have previously set the
327 line-nr and file name so ITRACE isn't needed.
329 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
331 * gen-idecode.c (print_jump_until_stop_body): New function and
332 idecode generation option. Instead of generating and calling
333 separate functions containing the semantic and icache code
334 generate a single monolythic function and use goto's (and GCC's
335 indirect jump) to move between code blocks.
337 * Makefile.in: Add sim_jump flag to those passed to igen.
339 * configure.in: New option --enable-sim-jump (default disabled)
341 * ppc-instructions: Eliminate any uses of labels and goto's.
342 These result in duplicate declarations when a single flat function
345 * ppc-opcode-jump: New file. Set of opcode rules useful when
346 testing jumping idecodes.
348 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
350 * gen-idecode.c: Optionally include the semantic code for an
351 instruction in the function that is doing the decoding.
353 * igen.c: Add option (-C) to generate semantics in the instruction
356 * configure.in (--enable-sim-icache): Accept an option list such
357 as 1024,define. Add a new choice to the list - semantic - which
358 will cause igen to generate instruction decode functions that
359 include the corresponding semantic code.
361 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
363 * configure.in: New option --enable-sim-line-nr (default enabled).
364 Enable/disable the inclusion of CPP line directives in the
365 generated files. Such directives refer back to the source files
366 used when generating the simulator code.
368 * Makefile.in (sim_line_nr): Pass to igen.
370 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
372 * igen.c (main): Revamp the options so that more letters are
375 * configure.in: Adjust to match igen's revamped options
377 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
379 * Makefile.in (pk.h, hw.h): Rewrite depenencies for hw.h (etc) so
380 that they use the same technique as igen (ie a dummy targets
381 tmp-pk and tmp-hw are created).
383 Mon Jun 24 22:28:00 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
385 * Makefile.in (BUILD_CFLAGS): Include WARNING_CFLAGS.
387 Wed Jun 19 21:45:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
389 * ld-cache.[hc], ld-decode.[hc], ld-insn.[hc]: New files. Separate
390 out the loading of each of the tables from the rest of igen.
391 * Makefile.in: Adjust.
394 * gen-icache.[hc], gen-idecode.[hc], gen-itable.[hc],
395 gen-model.[hc], gen-semantics.[hc]: New files. Separate out the
396 code creating each separate set of generated files.
397 * Makefile.in: Adjust.
400 * gen-support.[ch]: New files. Output the support functions (found
401 in the ppc-instructions file) into a separate file.
403 * inline.h, inline.c: Add.
406 * ld-cache.c: Re-design the cache table format.
407 * ppc-cache-rules: Update to new format.
409 * ld-decode.c: Re-design the decode table format.
410 * ppc-opcode-simple: Update to new format
411 * ppc-opcode-complex: Ditto
412 * ppc-opcode-flat: Ditto
414 * filter.h, filter.c: New files. Separate the opcode filter table
415 reading code from the rest of igen.c. Re-design the filter so that
416 it works inclusivly not exclusivly.
417 * igen.c: Remove the opcode filter table loading code.
418 * Makefile.in (filter.o): Adjust
419 * configure.in: Adjust filter flag so that default includes 32bit
421 * ppc-instructions: Clean up filter fields so that only in use
422 entries are specifed (ie delete `be').
424 * misc.c (name2i, i2name): New function. Map between a string and
427 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
429 * sim_calls.c (sim_close): If simulator not created, skip printing
432 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
434 * registers.c (register_description): Typo, insns not insn.
436 * ppc-instructions (model_get_number_of_stalls): New model function,
437 returns number of stalls for the specified processor.
438 * psim.c (psim_read_register): Add call to new function
439 model_get_number_of_stalls().
441 * ppc-instructions (model_get_number_of_cycles): New model function,
442 returns number of stalls for the specified processor.
443 * psim.c (psim_read_register): Add call to new function
444 model_get_number_of_cycles().
446 Fri Jun 14 00:11:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
448 * device_table.h: Don't pass the parent device into a devices
449 create function. This makes the create function consistent with
451 * device.c (device_template_create_device): Ditto
452 * hw_pal.c (hw_pal_create): Ditto
453 * hw_core.c (hw_core_create): Ditto
454 * hw_vm.c (hw_vm_create): Ditto
455 * hw_disk.c (hw_disk_create): Ditto
456 * hw_nvram.c (hw_nvram_create): Ditto
457 * hw_memory.c (hw_memory_create): Ditto
458 * hw_cpu.c (hw_cpu_create): Ditto.
460 * device.c (split_find_device): Allow a null initial parent device.
461 (device_template_create_device): Ditto.
463 * device.c (device_create_from): Make local (static) only used
465 * device_table.h: typedef device_callbacks moved here (from
466 device.h) where it belongs.
468 * hw_core.c: New file. Implements just the core device using the
471 * corefile.c: Moved all core device functions into the new
472 hw_core.c file. core_device_create() disapears.
474 * psim.c (psim_tree): Use device_tree_add_parsed() to create the
477 Thu Jun 13 00:09:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
479 * hw_init.c: Correct typo in comment.
481 * corefile.c (core_init): Remove any remaining references to a
483 (core_map_find_mapping): Ditto.
485 Wed Jun 12 22:30:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
487 * corefile.c (core_init): Make function global so that other
488 devices are able to use the full core object.
490 * corefile.c (core_create, core_from_device): Break core_create
491 into two functions. The first creates a core object, the second
492 returns the core object associated with a core device.
494 * corefile.c (core_device_create): Use core_create to make the
497 * psim.c (psim_create): Use core_from_device() instead of
500 * device.c (device_template_create_device): Make static as only
501 needed by functions internal to device.c.
503 Fri Jun 7 23:47:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
505 * ppc-opcode-test-2: Remove description of fields.
506 * ppc-opcode-complex: Ditto
507 * ppc-opcode-flat: Ditto
508 * ppc-opcode-simple: Ditto
509 * ppc-opcode-stupid: Ditto
510 * ppc-opcode-test-1: Ditto
511 * ppc-cache-rules: Ditto
513 * igen.c: Add description of files as a comment at the front.
515 Wed Jun 26 12:50:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
517 * configure.in: Check for whether the termios and termio
518 structures are really defined, and whether or not, they define the
520 * configure: Regenerate.
522 * Makefile.in ({,TERMIO_}CFLAGS): Add TERMIO_CFLAGS options set by
525 * emul_unix.c: Various changes to allow for building on systems
526 with different termio and termios structures. If host has both
527 termio and termios, just use termios. No longer include
530 Wed Jun 26 12:26:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
532 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
533 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
535 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
536 (AC_PROG_INSTALL): Added.
537 * configure: Rebuilt.
539 Wed Jun 5 23:53:42 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
541 * corefile.h: Rewrite documentation so that it can be extracted and
542 converted into texinfo (and hence ready for translation into html,
546 Thu Jun 6 09:52:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
548 * hw_disk.c (SEEK_SET): If SEEK_SET is not defined, define as 0.
550 Wed Jun 5 11:46:52 1996 Andrew Cagney <cagney@puddin>
552 * hw_disk.c: Include <unistd.h> if available. Under SunOS, that
553 is the source of SEEK_SET.
555 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
557 * psim.c (psim_options): Correct type of dummy arguments being
558 passed to a device_ioctl call.
560 * hw_init.c (hw_data_init_data_callback): Adjust printf arguments.
561 (write_stack_arguments): Ditto.
562 * hw_trace.c: Instance callback entry no longer a table.
564 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
566 * emul_unix.c (do_unix_umask): Cast printf argument.
567 (convert_to_linux_termios): Use LINUX_VSWTC not LINUX_VSWCH
569 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
571 * hw_init.c (update_for_binary_section): Abort if we find an
572 .interp section, which indicates the need for shared libraries to
575 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
577 * emul_unix.c (do_unix_{time,gettimeofday,getrusage}): Add support
578 for time, gettimeofday, and getrusage system calls.
579 ({solaris,linux}_descriptors): Add new system calls.
580 (do_get{,e}{uid,gid}): Use gid_t/uid_t types.
581 (do_get{,p}pid): Use pic_t types.
583 * configure.in (AC_TYPE_{GETGROUPS,SIGNAL}): Define.
584 (AC_TYPE_{MODE,OFF,PID,SIZE,UID}_T): Define.
585 * config{.in,ure}: Regenerate.
587 Mon Jun 3 23:19:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
589 * emul_netbsd.c (emul_netbsd_create): Use the more specific names
590 `ppc-elf' and `ppc-xcoff' for the stack-type.
591 * emul_unix.c (emul_unix_create): Ditto.
592 * emul_bugapi.c (emul_bugapi_create): Ditto.
593 * hw_init.c: Reconize the new names.
595 * emul_unix.c (do_unix_break): Adjust so that the updated ioctl
596 call is used (no system parameter).
598 Sun Jun 2 11:21:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
600 * emul_unix.{h,c}: New files to provide Solaris and Linux system
603 * Makefile.in (LIB_{SRC,OBJ}): Add emul_unix.{c,o}.
604 (os_emul.o): Depend on emul_unix.h.
605 (emul_unix.o): New dependency.
607 * configure.in (--enable-sim-alignment): Add 0|default to mean set
608 alignment to 0, which means use appropriate alignment for mode.
609 (AC_CHECK_FUNCS): Add new functions needed by emul_unix.c.
610 (AC_CHECK_HEADERS): Add new include files needed by emul_unix.c.
611 * config.in: Regenerate.
612 * configure: Regenerate.
614 * emul_generic.c (emul_write2_status): New function to return
615 results in r3 and r4 for Solaris system calls.
616 (emul_do_system_call): If the system call is not support, but
617 there is a string for the system call name, print out the string
618 instead of the system call number.
620 * emul_generic.h (emul_write2_status): Declare it.
622 * emul_netbsd.c: Use /* */ around comment on #endif.
624 * os_emul.c: Include emul_unix.h.
625 (os_emulations): Add emulations for Solaris, and Linux.
627 * psim.c (psim_usage): Add message about solaris, linux
630 Thu May 30 00:00:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
632 * hw_iobus.c: Tidy up notes so that they can be auto-extracted.
634 * README: Correct PSIM's title
636 Wed May 29 23:50:26 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
638 * basics.h: New global type object_disposition, used to indicate
639 the status of objects when things are restarted.
641 Fri May 17 17:28:52 1996 Andrew Cagney <cagney@benjimen.highland.com.au>
643 * device_table.h: Change the interrupt descriptor structure so
644 that it includes an additional member - an upper bound on the
645 interrupts by that name.
647 * device.c (device_interrupt_decode): Allow a range of interrupt
648 ports (eg rst0 .. rst6) if the port descriptors bound is non zero.
650 * device.c (device_tree_print_device): Include a list of valid
651 interrupt ports when listing supported devices.
653 * device.h, device.c (device_child_interrupt_*): Delete. Not used.
655 * emul_generic.c (emul_add_tree_hardware): Modify the creation of
656 the interrupt net so that it uses int0 .. intN.
658 Tue May 14 23:03:53 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
660 * device.h, device.c (device_ioctl): Drop the system argument.
661 Devices can not obtain this using the device_system() call.
662 * device_table.h: Adjust accordingly.
663 * hw_*.c: Adjust accordingly.
664 * emul_netbsd.c (do_break): Adjust call to vm device accordingly.
665 * psim.c (psim_options): Use a device_ioctl call to force the
666 hw_trace device to update the trace options.
667 * hw_trace.c: Replace the init function with an ioctl call. Adjust
670 * psim.c (psim_init): Re-order initialization so that the
671 os-emulation is initialized after the device tree. Without this,
672 os-emul's are not able to create instances or access properties
673 that contain an instance handle.
675 * device.h, device.c (device_add_*_property): Make these functions
676 internal to device.c. The user has access to the more generic
677 device_tree_add_parsed function. Differentiate between the initial
678 and current value for each property.
679 * (clean_device_properties): New function that deletes any
680 properties created after the start of a simulation and restores
681 the initial value of any others (ignoring ihandles).
682 * (init_device_properties): (Re)Initialize any properties that
683 contain ihandles. create
685 * (device_tree_init): Include calls to clean the device tree's
686 properties and then initialize them. Document this in the device.h
689 Mon May 6 17:36:15 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
691 * interrupts.c (decrementer_interrupt): Always pend a decrementer
692 interrupt even if it is not yet possible to deliver it.
694 Wed May 1 12:26:51 1996 Andrew Cagney <cagney@benjimen>
696 * mon.h, mon.c (mon_get_number_of_insns): Make this externally
697 visable adjusting the arguments so that the interface is correct.
698 (mon_print_info): Adjust calls.
700 * registers.h, registers.c (register_description): Add phony
701 cycle, insn and stall registers.
703 * psim.c (psim_read_register): Return nr of instructions for given
706 Tue Apr 30 22:09:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
708 * hw_htab.c: New file. Extract contents from disk_table.c.
709 Contains a device that, during initialization will create a
710 PowerPC htab in memory.
711 * hw_register.c: New file. Extract contents from disk_table.c.
712 Contains a device that, during initialization, will parse its
713 property list and use that to initialize various processor
714 registers (not target specific).
715 * hw_vm.c: New file. Extract contents from disk_table.c. Contains
716 a device that handles accesses to invalid virtual memory addresses
718 * hw_init.c: New file. Extract contents from disk_table.c. Misc
719 devices that can initialize memory from a file.
720 * hw_trace.c: New file. Extract contents from disk_table.c.
721 Configure trace options from property values.
723 * Makefile.in (hw_htab.o, hw_register.o, hw_vm.o, hw_init.o,
724 hw_trace.c): Add new device files.
726 * device_table.c: Remove above code, now in separate independant
729 Fri Apr 26 00:00:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
731 * hw_disk.c: New file. Disk and CDROM device.
733 * Makefile.in (hw_disk.o): Add device hw_disk.c.
735 * pk_disklabel.c: New file. Implement the miss-named disk-label
738 * Makefile.in (pk.h): Create the file pk.h that contains a list of all
741 * Makefile.in (hw.h, hw.c): Add dependancy on Makefile so that
742 they are re-created when the makefile is updated.
744 * emul_generic.c (emul_add_tree_hardware): Add a disk device
745 (below the iobus) to the device tree. Include an ihandle of
746 the disk as /chosen/disk.
748 * emul_bugapi.c (emul_bugapi_create): Don't initialize the input,
749 output and (new) disk handles yet.
750 * (emul_bugapi_init): Initialize the input, output (and just added)
752 * (emul_bugapi_do_diskio): New. Performs disk i/o (well at least
753 what I think the behavour is).
754 * emul_bugapi.c (emul_bugapi_instruction_call): Add hook to disk
755 i/o bug call. For RETURN call, exit using gpr[3]'s status even
756 though this isn't part of the spec - makes it possible for machine
757 code to signal the aporting of a simulation run.
759 * emul_chirp.c (chirp_emul_call_method): Add support for the
760 claim/release methods.
761 * (chirp_emul_exit): Add an optional exit status argument to
762 the exit method. Makes it possible for chirp emul simulations
763 to abort upon an error.
764 * device.h, device.c (device_instance_claim,
765 device_instance_release): New methods for claiming and releasing
767 * hw_memory.c: add claim and release memory methods.
768 * hw_*: Use the claim memory method when allocating physical
771 Thu Apr 18 23:38:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
773 * hw_nvram.c (hw_nvram_update_clock): Use the current not previous
774 time when updating the clock.
776 * hw_nvram.c: Tidy up documentation
778 Fri May 24 10:08:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
780 * configure.in (AC_STRUCT_ST_{BLKSIZE,BLOCKS,RDEV}): Use these
781 macros to determine whether or not the appropriate st_<xxx> fields
782 exist in the stat structure.
783 (AC_CHECK_FUNCS): Check for all unix system calls used, except for
784 the real basic ones like open, read, write, etc.
785 * config{.in,ure}: Regenerate.
787 * emul_netbsd.c: Add support for missing system calls, and/or
789 (MAXPATHLEN): Undefine if including unistd.h, since sys/param.h
792 * hw_pal.c (WITH_STDIO): Redefine if O_NDELAY, F_GETFL, or F_SETFL
794 (scan_hw_pal): Do not cause syntax error if O_NDELAY, F_GETFL, or
797 Tue May 21 17:24:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
799 * emul_netbsd.c (write_stat): Don't convert st_blocks unless the
802 Thu May 16 10:56:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
804 * configure.in (AC_CHECK_HEADERS): Add sys/ioctl.h.
805 * config{.in,ure}: Regenerate.
806 * emul_netbsd.c: If HAVE_SYS_IOCTL_H is not defined, don't include
809 Tue May 7 17:28:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
811 * hw_pal.c (hw_pal_instance_read_callback): Remove unused
814 * misc.c ({,target_}a2i): Rewrite to not use strtoul.
816 * Makefile.in ({spreg,misc}.o): Add dependency on .c file.
817 ({i,d}gen): Don't link in liberity. Use BUILD_LIBS instead of
820 Mon May 6 11:31:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
822 * hw_pal.c (hw_pal_instance_read_callback): If using stdio, use
823 fgets to read line. If not using stdio, do a simple blocking read
826 Fri May 3 15:07:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
828 * Makefile.in: Correctly build simulator for build machine != host
831 Tue Apr 30 18:46:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
833 * configure.in (--enable-hostendian): Rework so the default uses
834 the AC_C_BIGENDIAN results. Only run AC_C_BIGENDIAN if not cross
836 * configure: Regenerate.
838 * sim-endian.h: Add more tests for host endian to support more
839 platforms in a cross compilation environment.
841 Wed Apr 17 14:38:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
843 * hw_pal.c ({scan,write}_hw_pal): If WITH_STDIO == DO_USE_STDIO,
844 use stdio, instead of unpended read/printf_filtered.
845 (hw_pal_instance_write_callback): If WITH_STDIO == DO_USE_STDIO,
846 flush stdout after writing the characters.
848 * options.c (print_options): Print out WITH_STDIO.
850 * Makefile.in (STDIO_CFLAGS): Pass on result of @sim_stdio@
851 configuration variable.
852 (CONFIG_CFLAGS): Include STDIO_CFLAGS.
853 (hw.{c,h}): Allow for source dir != build dir, and for HW_SRC
854 files to contain directory pieces.
856 * std-config.h (DO{,NT}_USE_STDIO): New flags for whether we
857 should use stdio for console input.
858 (WITH_STDIO): If not defined, define as DONT_USE_STDIO.
860 * configure.in (--enable-sim-stdio): Add new switch to control
861 whether stdio is used for console I/O.
862 * configure: Regenerate.
864 * interrupts.c (external_interrupt): Declare it to be
865 INLINE_INTERRUPTS, not INLINE_CPU.
867 Mon Apr 15 23:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
869 * events.c (insert_event_entry): Allow events to be scheduled
870 *NOW* (at delta time 0). Add assertions to clarify behavour of
873 * events.c (update_time_from_event): New function. Calculates the
874 number of ticks from the next event. Use this.
876 Sun Apr 14 21:39:45 1996 Andrew Cagney <cagney@highland.com.au>
878 * emul_netbsd.c (do_break): Return 0 if success (instead of
881 * device_table.c (vm_ioctl_callback): Don't return adjusted break
884 Sun Apr 14 21:32:41 1996 Andrew Cagney <cagney@highland.com.au>
886 * device_table.h: Change type of the device ioctl so that it
887 returns an int (status).
888 * device.h (device_ioctl): Ditto.
889 * device.c (device_ioctl): Ditto.
891 * device_table.c (stack_ioctl_callback): Return 0 status.
892 (vm_ioctl_callback): Ditto
894 Sat Apr 13 00:00:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
896 * emul_netbsd.c (do_read): Correctly set the return value.
903 (do_sigprocmask): Ditto.
906 (do_gettimeofday): Ditto.
907 (do_getrusage): Ditto.
911 (do___sysctl): Ditto.
913 Fri Apr 12 20:56:47 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
915 * device_table.c (vm_ioctl_callback): Don't access the processor
916 registers directly, instead leave it to the caller to handle this.
918 * emul_netbsd.c (do_break): Which calls vm_ioctl_callback to
919 perform a break. Pass in the new break value and set the
920 registers according to the result.
922 * emul_generic.c (emul_write_status): Change so that r3 contains
923 either status or errno and failure is indicated by SO.
925 Thu Apr 4 23:03:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
927 * emul_bugapi.c (emul_bugapi_create): More strict check of OEA
930 Thu Apr 4 20:58:05 1996 Andrew Cagney <cagney@highland.com.au>
932 * interrupts.h (interrupts): New structure contains state of
935 * cpu.c (cpu_interrupts): New function. Pending interrupt status
936 in the cpu and grant access to it. Add interrupts to cpu
939 Fri Mar 29 22:09:25 1996 Andrew Cagney <cagney@highland.com.au>
941 * device.c (device_tree_add_parsed): Check that the creation of a
942 device instance worked before using it.
944 * psim.c (psim_halt): Remove cia argument from psim_halt. This
945 function does not save the CIA so do not pass it in.
947 Fri Mar 29 21:30:56 1996 Andrew Cagney <cagney@highland.com.au>
949 * hw_pal.c (hw_pal): Merge the halt and icu and console devices
950 found in device_table.c into a single hack pal.
952 * device_table.c (halt, icu, console): Delete.
954 * Makefile.in (hw_pal.o): New dependency.
956 * emul_generic.c (emul_add_tree_hardware): Re-arange device tree
957 so that it uses the pal instead of the icu/halt/console devices.
958 Wire the pal's interrupt ports up to the cpu nodes.
960 Fri Mar 29 20:17:17 1996 Andrew Cagney <cagney@highland.com.au>
962 * hw_iobus.c (hw_iobus_attach_address_callback): Move from
963 device_table.c to here.
965 * Makefile.in (hw_iobus.o): New dependency.
967 Fri Mar 29 12:17:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
969 * emul_bugapi.c (_os_emul_data): Add fields for output, input.
970 (emul_bugapi_create): Create input, output from /chosen/stdin and
972 (emul_bugapi_do_{read,write}): Switch to use device_instance
974 (emul_bugapi_instruction_call): Change calls to
975 emul_bugapi_do_{read,write} to pass device instance argument.
977 Tue Mar 26 14:57:58 1996 Michael Meissner <meissner@tiktok.cygnus.com>
979 * igen.c (idecode_switch_end): Fix 2/26 change so that an extra
980 default is not written out if a default was already written.
982 * psim.c (psim_{read,write}_register): Use sizeof unsigned_8 to
983 size cooked_buf, not sizeof natural_word, since floating point
984 registers are 8 bytes.
986 Mon Mar 25 22:07:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
988 * configure: Regenerate with autoconf 2.9.
990 Thu Mar 21 00:14:26 1996 Andrew Cagney <cagney@highland.com.au>
992 * device_table.h: Always include string headers.
994 Thu Mar 21 00:06:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
996 * main.c (error): Be careful to not try to print out statistics
997 when the simulation was never created.
999 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
1001 * basics.h: Move the event queue's definition to here so that it
1002 can be refered to globally with out importing all of events.h.
1004 * psim.h, psim.c (psim_event_queue): New function. Grant access
1005 to the simulation event queue. Will make this the single point of
1006 access (there is after all only one event queue in the
1009 * cpu.c (cpu_create): Use psim_event_queue to obtain the event
1010 queue instead of it being passed in. No longer allow access to
1011 the cpu's copy of the event queue.
1013 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
1015 * events.h, events.c (event_handler): Remove event_queue from
1016 arguments passed to an event handler. That argument is redundant
1017 - the `data' should refer to a data structure that contains the
1018 event queue if queing is needed.
1020 * cpu.c (cpu_decrement_event): adjust
1022 * events.c (event_queue_process): adjust
1024 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
1026 * device.h, device.c (device_system): New, returns a handle for
1027 the system given the device.
1029 * device.c (device_address_init): Store a pointer back to the
1030 system in each devices node.
1032 * device_table.h: Don't pass `system' into each device when it is
1033 being initialized, this is now available using device_system(me).
1035 * device.c (device_address_init, device_data_init): Adjust.
1037 * hw_cpu.c, hw_nvram.c, hw_memory.c, hw_eeprom.c, device_table.c:
1040 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
1042 * interrupts.c (decrementer_interrupt, external_interrupt):
1043 Remember that an interrupt wasn't delivered so that it can be
1046 * interrupts.c (check_masked_interrupt): New function. (re)
1047 checks for the posibility that a recent change to the MSR may have
1048 made it possible to deliver an interrupt that was previously
1049 masked be the EE bit.
1051 * ppc-instructions (mtmsr, mfmsr, rfi): Check for posibility of
1052 a pending interrupt being delivered using check_masked_interrupt().
1054 * cpu.c (cpu_decrement_event): Just call decrementer_interrupt()
1055 leaving it to that module to handle both interrupt synchronization
1058 * cpu.c (struct _cpu): remove variables that were going to record
1059 pending decrementer and external interrupts.
1061 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
1063 * hw_cpu.c, hw_cpu.h: New files. Implement a device that sits
1064 between the interrupt controller and the simulators internal
1065 processor model. Maps device interrupts onto the processor
1066 interrupt function calls.
1068 Mon Mar 4 06:06:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1070 * hw_nvram.c: NVRAM device that includes a real-time clock that is
1071 updated each second.
1073 Mon Mar 4 04:18:50 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1075 * device.h (attach_type): Remove attach_default type address
1076 spaces. Will replace with levels of callback memory.
1078 * corefile.h, corefile.c (new_core_mapping), corefile.c
1079 (core_map_attach): Replace default attach with a layerd callback
1082 Sun Mar 3 03:58:46 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1084 * device.c (split_property_specifier): ensure that only a single
1086 (split_value): New function, parses the value part of a device
1089 * device.c (device_tree_add_parsed): Use the interrupt conversion
1090 functions to determine the interrupt port numbers.
1092 * device_table.h: Add table that maps between an interrupts
1093 symbolic name and its port number.
1095 * device.h, device.c (device_interrupt_decode,
1096 device_interrupt_encode): new functions use the recently added
1097 interrupt port name/number tables to perform conversion.
1099 Sun Mar 3 03:23:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1101 * device.h, device.c (device_set_array_property,
1102 device_set_boolean_property, device_set_ihandle_property,
1103 device_set_integer_property, device_set_string_property): New
1104 functions - allow the value of a given property to be changed.
1106 * device.h, device.c: Re-order declaration and definition of
1109 Sun Mar 3 03:10:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1111 * device.c (device_tree_print_device, device_tree_add_parsed):
1112 Remove references to phandle properties.
1114 Wed Feb 28 00:43:07 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
1116 * Makefile.in (corefile.o): missing dependency on device_table.h
1119 Tue Feb 27 23:59:35 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
1121 * device_table.h: Revamp device init callbacks so that they are a
1123 * device.c (device_init_data, device_init_address): If an init
1124 callback is NULL assume it should do nothing.
1125 * device_table.c (ignore_device_init, unimp_device_init): delete
1127 * device_table.c, hw_memory.c: adjust.
1131 * (device_instance): ditto.
1133 * (address nee config_address): ditto.
1134 * (interrupt): ditto.
1136 Mon Feb 26 21:11:20 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
1138 * igen.c (idecode_switch_end): Output a default entry when the
1139 switch statement is perfect. Firstly stops GCC complaining about
1140 an incomplete switch and secondly it will be eliminated by a good
1143 Mon Feb 26 22:47:15 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
1145 * Makefile.in (hw.h, hw.c): New targets. Create from the list of
1146 hw_*.c files. hw.h declares a device descriptor table for each hw
1147 device while hw.c lists those tables in a form suitable for the
1148 construction of a top leveltable in device_table.c.
1150 * Makefile.in (device_table.o): now depends on hw.c a generated
1153 * device_table.c (device_table): Re-arange the table of devices so
1154 that two levels are possible. Make use of hw.c.
1155 * device_table.h: ditto.
1157 * device.c (device_template_create_device): Handle new two level
1158 device lookup table.
1159 * device.c (device_usage): ditto.
1161 Mon Feb 26 22:24:00 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
1163 * device_table.c: Delete the memory device (moved to hw_memory.c).
1165 * hw_memory.c: New file. Just an OpenBoot memory device.
1167 Wed Jan 17 21:47:34 1996 Andrew Cagney <cagney@highland.com.au>
1169 * device.c (device_init_address): New. Split initialization into
1170 two stages, address and address spaces
1171 * device.c (device_init_data): New. ... and data or other work.
1172 With out this, devices try to modify memory before it as been
1175 * device.c (device_tree_init): Update to perform staged
1178 * device.c (device_init): Delete.
1180 Wed Jan 17 21:43:09 1996 Andrew Cagney <cagney@highland.com.au>
1182 * device_table.c (data_*): Rewrite to make heaver use of property
1183 nodes. Allow initialization by different data types.
1184 * device_table.c (htab_* pte_*): Rewrite to use properties.
1186 * emul_chirp.c (emul_chirp_create): Use
1187 * emul_bugapi.c (emul_bugapi_create): Ditto
1188 * emul_netbsd.c (emul_netbsd_create): Ditto
1190 Wed Jan 17 21:24:50 1996 Andrew Cagney <cagney@highland.com.au>
1192 * emul_generic.c (emul_add_tree_options): Annotate existing tree
1193 with options that haven't yet been specified.
1194 * emul_generic.c (emul_add_tree_hardware): Annotate existing tree
1195 with demo devices and properties.
1197 * emul_chirp.c (emul_chirp_create): Update to use new
1198 device_tree_add_parsed call and additional information now
1199 included in the device tree. Use emul_add_tree* functions to add
1200 any missing details.
1201 * emul_bugapi.c (emul_bugapi_create): Ditto
1202 * emul_netbsd.c (emul_netbsd_create): Ditto
1204 Wed Jan 17 21:18:27 1996 Andrew Cagney <cagney@highland.com.au>
1206 * device.c (device_instance_create): New. Create/delete and
1207 operate on instances of a device.
1208 * device.c (device_instance_delete): Ditto
1209 * device.c (device_instance_read): Ditto
1210 * device.c (device_instance_write): Ditto
1211 * device.c (device_instance_seek): Ditto
1212 * device.c (device_instance_data): Ditto
1213 * device.c (device_instance_name): Ditto
1214 * device.c (device_instance_path): Ditto
1216 * emul_chirp.c (chirp_emul_open): Implement using device_instance.
1217 * emul_chirp.c (chirp_emul_close): Ditto
1218 * emul_chirp.c (chirp_emul_read): Ditto
1219 * emul_chirp.c (chirp_emul_write): Ditto
1220 * emul_chirp.c (chirp_emul_seek): Ditto
1222 * emul_chirp.c (chirp_read_t2h_args): Read arguments from device.
1223 Being careful to convert all from target to host byte order.
1224 * emul_chirp.c (chirp_write_h2t_args): Converse.
1226 Wed Jan 17 20:07:15 1996 Andrew Cagney <cagney@highland.com.au>
1228 * device.c (device_tree_add_parsed): New. Rewrite code to add
1229 devices to the device tree so that a single printf style function
1232 * device.c (device_tree_add_*): Delete. Replaced by above.
1234 * device.c (split_device_specifier): Functions to manipulate a
1235 device specifier (path) breaking it into its components
1236 * device.c (split_property_specifier): Ditto
1237 * device.c (split_device_name): Ditto
1238 * device.c (split_find_device): Ditto
1240 * device.c (scan_*): Delete
1242 * device.c (device_tree_find_device): Rewrite to use above.
1243 * device.c (device_add_property): Ditto
1245 Wed Jan 17 19:51:56 1996 Andrew Cagney <cagney@highland.com.au>
1247 * psim.c(psim_options): Parse the psim options, installing their
1248 value in the device tree. Options are now first entered into a
1249 device tree and then extracted out again when needed. This allows
1250 greater flexability in configuration.
1252 * psim.c (psim_tree): Returns a basic device tree ready for
1253 parsing by psim_options.
1254 * psim.c (psim_usage): New. Give usage to varing levels of detail
1255 according to the verbosity. In turn output device and trace
1258 * main.c (main): Update to use new system
1259 * sim_calls.c (sim_open, sim_do_command): Ditto
1261 * psim.c (psim_options): Add `r' option - ram size.
1262 * psim.c (psim_options): Add `o' option - openboot tree entry.
1263 * psim.c (psim_options): Add `h'/`H' options - more help.
1265 * debug.c (trace_usage): Add more detailed help.
1266 * device.c (device_usage): New. Output help including a list of
1267 the devices currently available in the device table.
1268 * device_table.c: Add usage operator to each device.
1270 * corefile.c (core_create, core_device_create): Adjust so that the
1271 core device is created earlier for psim_tree(). Core can later be
1274 * psim.c (psim_create): Update to handle above way of creating
1275 things. Extract all information from the device tree.
1277 * device_tree.c (trace_*): New device node, its properties are
1278 used to set the value of the trace options. Init this device (in
1279 psim_options) when ever the options are updated.
1281 Wed Jan 17 19:46:07 1996 Andrew Cagney <cagney@highland.com.au>
1283 * debug.h: Add trace_print_info, trace_print_device_tree and
1284 trace_dump_device_tree. The first is a replacement for the
1285 variable `print_info' found in main.c and sim_calls.c. The latter
1286 two enable the dumping of the entire device tree.
1288 * debug.c: Add to trace_description table.
1290 * main.c (main): Use above trace instead of local variable
1291 * sim_calls.c (sim_close): Ditto
1293 * device.c (device_tree_print_device): New. Prints the device
1294 tree in a format that is consistent with what can be parsed by the
1295 device tree load from file code.
1297 * psim.c (psim_create): Dump device tree if enabled. If nump
1298 selected, exit psim immediatly.
1300 Wed Jan 17 19:36:52 1996 Andrew Cagney <cagney@highland.com.au>
1302 * corefile-n.h (core_map_read_N): When mapping from an address to
1303 a device, do not subtract the devices base. The device its self
1304 can do this. Brings the behavour into line with OpenBoot.
1305 * corefile-n.h (core_map_write_N): Ditto
1306 * corefile.c (core_map_read_buffer): Ditto
1307 * corefile.c (core_map_write_buffer): Ditto
1309 * device_table.c (console_io_read_buffer_callback): Adjust to
1310 handle biased address.
1311 * device_table.c (console_io_write_buffer_callback): Ditto
1313 Wed Jan 17 18:36:09 1996 Andrew Cagney <cagney@highland.com.au>
1315 * device.c (attach_device_interrupt_edge): New. Interrupt model
1316 did not allow interrupts to be wired up as a general net (edges).
1317 Re-implement so that interrupt events can be passed to multiple
1318 controllers and interrupt controllers can further propogate
1321 * device.c (attach_device_interrupt_edge) : New, Ditto
1322 * device.c (detach_device_interrupt_edge) : New, Ditto
1323 * device.c (clean_device_interrupt_edges) : New, Ditto
1324 * device.c (device_interrupt_event) : New, Ditto
1325 * device.c (device_interrupt_attach) : New, Ditto
1326 * device.c (device_interrupt_detach) : New, Ditto
1327 * device.c (device_child_interrupt_attach) : New, Ditto
1328 * device.c (device_child_interrupt_detach) : New, Ditto
1330 * device.c (device_attach_interrupt) : Delete old
1331 * device.c (device_detach_interrupt) : Delete old
1332 * device.c (device_interrupt) : Delete old
1333 * device.c (device_interrupt_ack) : Delete old
1335 * device_table.c (unimp_*) : Update to match
1337 * device_table.c (icu_io_write_buffer_callback) : Update to use
1339 * device_table.c (icu_interrupt_event_callback) : Ditto
1341 Wed Jan 17 18:18:40 1996 Andrew Cagney <cagney@highland.com.au>
1343 * device.c (external_to_device) : New function that provides a
1344 standard mapping between a devices internal representation (a
1345 pointer) and its external (or what is passed to a client)
1346 representation (a phandle). Implement using the cap object
1347 attached to the root node.
1349 * device.c (device_to_external) : Ditto
1350 * device.c (external_to_device_instance) : Ditto but for ihandle
1351 and device instance.
1352 * device.c (device_instance_to_external) : Ditto
1354 * Makefile (device.o): Add dependency on cap.
1356 * emul_chirp.c (struct _emul_chirp_data) : Elimate use of cap. Code
1357 needing to translate between internal and external representations
1358 changed to use the external_to_device et.al. device operations.
1359 * emul_chirp.c (chirp_emul_*) : Ditto
1361 * Makefile (emul_chirp.o): Remove dependency on cap
1363 Sat Jan 6 10:13:26 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
1365 * emul_chirp.c (map_over_chirp_note): Tighten up (and fix) checks
1366 on OpenBoot note section.
1368 Fri Jan 5 20:28:53 1996 Andrew Cagney <cagney@hignland.com.au>
1370 * emul_generic.c (emul_write_buffer): Use vm faulting byte
1371 read/write calls for buffer transfers. This will cause a fault to
1372 occure if the transfer fails. CHRP catches the fault while the
1373 others suffer the consequences.
1374 (emul_read_buffer): Ditto.
1375 (emul_write_word): Ditto.
1376 (emul_read_word): Ditto.
1377 (emul_read_string): Ditto.
1379 Fri Jan 5 18:55:34 1996 Andrew Cagney <cagney@highland.com.au>
1381 * emul_chirp.c (emul_chirp_create, emul_chirp_instruction_call),
1382 emul_generic (emul_blr_instruction): Use a real blr instruction to
1383 return from a client service call.
1385 * emul_chirp.c (services): Add all OpenBoot services to table.
1387 * emul_generic.h, emul_bugapi.c (emul_bugapi_create), emul_chirp.c
1388 (emul_chirp_create) : Use names instead of numbers for
1389 instructions being stored in memory.
1391 Fri Jan 5 18:52:28 1996 Andrew Cagney <cagney@highland.com.au>
1393 * Makefile.in (maintainer-clean): Remove .log, core and *.core
1394 (From NetBSD) files.
1396 Wed May 29 22:57:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1398 * ChangeLog.00, ChangeLog: ChangeLog from gdb-4.16 becomes