1 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3 * gen-semantics.c: Make the my_index variable a macro MY_INDEX.
5 * ppc-instructions: Adjust so that references are to MY_INDEX and
8 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
10 * gen-idecode.c: Output the complete run_until_stop function
11 instead of just the code to handle a single instruction issue.
12 * : Have the generated idecode.c include inline.c (instead of psim.c).
14 * std-config.h: Change psim.c so that it isn't inlined (as this is
17 * psim.c (run_until_stop): Delete the old run_until_stop function
18 instead calling the idecode_run and idecode_run_until_stop
19 functions that gen-idecode.c is now creating.
21 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
23 * dgen.c: Maintenance - update to use new features found in lf.c.
25 * filter_filename.c (filter_filename): Maintenance - make the
28 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
30 * debug.c (TRACE, ITRACE, DTRACE): Have GCC instead of CPP
31 eliminate trace statements.
33 * debug.c: Change trace format so that it is consistent
34 (file:line-nr) with CC's error output.
36 * gen-itable.c (itable_c_insn): Add the source file name and
37 source line number to the instruction's informational entry.
39 * debug.c (ITRACE): Use the itable (and my_index) to get the
40 current instructions name and source line number.
42 * gen-semantics.c, gen-icache.c: Adjust generated ITRACE calls to
45 * emul_bugapi.c (emul_bugapi_instruction_call): Adjust
46 corresponding call to ITRACE so that it still matches.
48 * idecode_expression.h (ALU_END, CR0_COMPARE): Use TRACE instead
49 of ITRACE. The CPP line directives would have previously set the
50 line-nr and file name so ITRACE isn't needed.
52 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
54 * gen-idecode.c (print_jump_until_stop_body): New function and
55 idecode generation option. Instead of generating and calling
56 separate functions containing the semantic and icache code
57 generate a single monolythic function and use goto's (and GCC's
58 indirect jump) to move between code blocks.
60 * Makefile.in: Add sim_jump flag to those passed to igen.
62 * configure.in: New option --enable-sim-jump (default disabled)
64 * ppc-instructions: Eliminate any uses of labels and goto's.
65 These result in duplicate declarations when a single flat function
68 * ppc-opcode-jump: New file. Set of opcode rules useful when
69 testing jumping idecodes.
71 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
73 * gen-idecode.c: Optionally include the semantic code for an
74 instruction in the function that is doing the decoding.
76 * igen.c: Add option (-C) to generate semantics in the instruction
79 * configure.in (--enable-sim-icache): Accept an option list such
80 as 1024,define. Add a new choice to the list - semantic - which
81 will cause igen to generate instruction decode functions that
82 include the corresponding semantic code.
84 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
86 * configure.in: New option --enable-sim-line-nr (default enabled).
87 Enable/disable the inclusion of CPP line directives in the
88 generated files. Such directives refer back to the source files
89 used when generating the simulator code.
91 * Makefile.in (sim_line_nr): Pass to igen.
93 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
95 * igen.c (main): Revamp the options so that more letters are
98 * configure.in: Adjust to match igen's revamped options
100 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
102 * Makefile.in (pk.h, hw.h): Rewrite depenencies for hw.h (etc) so
103 that they use the same technique as igen (ie a dummy targets
104 tmp-pk and tmp-hw are created).
106 Mon Jun 24 22:28:00 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
108 * Makefile.in (BUILD_CFLAGS): Include WARNING_CFLAGS.
110 Wed Jun 19 21:45:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
112 * ld-cache.[hc], ld-decode.[hc], ld-insn.[hc]: New files. Separate
113 out the loading of each of the tables from the rest of igen.
114 * Makefile.in: Adjust.
117 * gen-icache.[hc], gen-idecode.[hc], gen-itable.[hc],
118 gen-model.[hc], gen-semantics.[hc]: New files. Separate out the
119 code creating each separate set of generated files.
120 * Makefile.in: Adjust.
123 * gen-support.[ch]: New files. Output the support functions (found
124 in the ppc-instructions file) into a separate file.
126 * inline.h, inline.c: Add.
129 * ld-cache.c: Re-design the cache table format.
130 * ppc-cache-rules: Update to new format.
132 * ld-decode.c: Re-design the decode table format.
133 * ppc-opcode-simple: Update to new format
134 * ppc-opcode-complex: Ditto
135 * ppc-opcode-flat: Ditto
137 * filter.h, filter.c: New files. Separate the opcode filter table
138 reading code from the rest of igen.c. Re-design the filter so that
139 it works inclusivly not exclusivly.
140 * igen.c: Remove the opcode filter table loading code.
141 * Makefile.in (filter.o): Adjust
142 * configure.in: Adjust filter flag so that default includes 32bit
144 * ppc-instructions: Clean up filter fields so that only in use
145 entries are specifed (ie delete `be').
147 * misc.c (name2i, i2name): New function. Map between a string and
150 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
152 * sim_calls.c (sim_close): If simulator not created, skip printing
155 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
157 * registers.c (register_description): Typo, insns not insn.
159 * ppc-instructions (model_get_number_of_stalls): New model function,
160 returns number of stalls for the specified processor.
161 * psim.c (psim_read_register): Add call to new function
162 model_get_number_of_stalls().
164 * ppc-instructions (model_get_number_of_cycles): New model function,
165 returns number of stalls for the specified processor.
166 * psim.c (psim_read_register): Add call to new function
167 model_get_number_of_cycles().
169 Fri Jun 14 00:11:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
171 * device_table.h: Don't pass the parent device into a devices
172 create function. This makes the create function consistent with
174 * device.c (device_template_create_device): Ditto
175 * hw_pal.c (hw_pal_create): Ditto
176 * hw_core.c (hw_core_create): Ditto
177 * hw_vm.c (hw_vm_create): Ditto
178 * hw_disk.c (hw_disk_create): Ditto
179 * hw_nvram.c (hw_nvram_create): Ditto
180 * hw_memory.c (hw_memory_create): Ditto
181 * hw_cpu.c (hw_cpu_create): Ditto.
183 * device.c (split_find_device): Allow a null initial parent device.
184 (device_template_create_device): Ditto.
186 * device.c (device_create_from): Make local (static) only used
188 * device_table.h: typedef device_callbacks moved here (from
189 device.h) where it belongs.
191 * hw_core.c: New file. Implements just the core device using the
194 * corefile.c: Moved all core device functions into the new
195 hw_core.c file. core_device_create() disapears.
197 * psim.c (psim_tree): Use device_tree_add_parsed() to create the
200 Thu Jun 13 00:09:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
202 * hw_init.c: Correct typo in comment.
204 * corefile.c (core_init): Remove any remaining references to a
206 (core_map_find_mapping): Ditto.
208 Wed Jun 12 22:30:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
210 * corefile.c (core_init): Make function global so that other
211 devices are able to use the full core object.
213 * corefile.c (core_create, core_from_device): Break core_create
214 into two functions. The first creates a core object, the second
215 returns the core object associated with a core device.
217 * corefile.c (core_device_create): Use core_create to make the
220 * psim.c (psim_create): Use core_from_device() instead of
223 * device.c (device_template_create_device): Make static as only
224 needed by functions internal to device.c.
226 Fri Jun 7 23:47:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
228 * ppc-opcode-test-2: Remove description of fields.
229 * ppc-opcode-complex: Ditto
230 * ppc-opcode-flat: Ditto
231 * ppc-opcode-simple: Ditto
232 * ppc-opcode-stupid: Ditto
233 * ppc-opcode-test-1: Ditto
234 * ppc-cache-rules: Ditto
236 * igen.c: Add description of files as a comment at the front.
238 Wed Jun 26 12:50:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
240 * configure.in: Check for whether the termios and termio
241 structures are really defined, and whether or not, they define the
243 * configure: Regenerate.
245 * Makefile.in ({,TERMIO_}CFLAGS): Add TERMIO_CFLAGS options set by
248 * emul_unix.c: Various changes to allow for building on systems
249 with different termio and termios structures. If host has both
250 termio and termios, just use termios. No longer include
253 Wed Jun 26 12:26:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
255 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
256 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
258 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
259 (AC_PROG_INSTALL): Added.
260 * configure: Rebuilt.
262 Wed Jun 5 23:53:42 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
264 * corefile.h: Rewrite documentation so that it can be extracted and
265 converted into texinfo (and hence ready for translation into html,
269 Thu Jun 6 09:52:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
271 * hw_disk.c (SEEK_SET): If SEEK_SET is not defined, define as 0.
273 Wed Jun 5 11:46:52 1996 Andrew Cagney <cagney@puddin>
275 * hw_disk.c: Include <unistd.h> if available. Under SunOS, that
276 is the source of SEEK_SET.
278 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
280 * psim.c (psim_options): Correct type of dummy arguments being
281 passed to a device_ioctl call.
283 * hw_init.c (hw_data_init_data_callback): Adjust printf arguments.
284 (write_stack_arguments): Ditto.
285 * hw_trace.c: Instance callback entry no longer a table.
287 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
289 * emul_unix.c (do_unix_umask): Cast printf argument.
290 (convert_to_linux_termios): Use LINUX_VSWTC not LINUX_VSWCH
292 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
294 * hw_init.c (update_for_binary_section): Abort if we find an
295 .interp section, which indicates the need for shared libraries to
298 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
300 * emul_unix.c (do_unix_{time,gettimeofday,getrusage}): Add support
301 for time, gettimeofday, and getrusage system calls.
302 ({solaris,linux}_descriptors): Add new system calls.
303 (do_get{,e}{uid,gid}): Use gid_t/uid_t types.
304 (do_get{,p}pid): Use pic_t types.
306 * configure.in (AC_TYPE_{GETGROUPS,SIGNAL}): Define.
307 (AC_TYPE_{MODE,OFF,PID,SIZE,UID}_T): Define.
308 * config{.in,ure}: Regenerate.
310 Mon Jun 3 23:19:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
312 * emul_netbsd.c (emul_netbsd_create): Use the more specific names
313 `ppc-elf' and `ppc-xcoff' for the stack-type.
314 * emul_unix.c (emul_unix_create): Ditto.
315 * emul_bugapi.c (emul_bugapi_create): Ditto.
316 * hw_init.c: Reconize the new names.
318 * emul_unix.c (do_unix_break): Adjust so that the updated ioctl
319 call is used (no system parameter).
321 Sun Jun 2 11:21:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
323 * emul_unix.{h,c}: New files to provide Solaris and Linux system
326 * Makefile.in (LIB_{SRC,OBJ}): Add emul_unix.{c,o}.
327 (os_emul.o): Depend on emul_unix.h.
328 (emul_unix.o): New dependency.
330 * configure.in (--enable-sim-alignment): Add 0|default to mean set
331 alignment to 0, which means use appropriate alignment for mode.
332 (AC_CHECK_FUNCS): Add new functions needed by emul_unix.c.
333 (AC_CHECK_HEADERS): Add new include files needed by emul_unix.c.
334 * config.in: Regenerate.
335 * configure: Regenerate.
337 * emul_generic.c (emul_write2_status): New function to return
338 results in r3 and r4 for Solaris system calls.
339 (emul_do_system_call): If the system call is not support, but
340 there is a string for the system call name, print out the string
341 instead of the system call number.
343 * emul_generic.h (emul_write2_status): Declare it.
345 * emul_netbsd.c: Use /* */ around comment on #endif.
347 * os_emul.c: Include emul_unix.h.
348 (os_emulations): Add emulations for Solaris, and Linux.
350 * psim.c (psim_usage): Add message about solaris, linux
353 Thu May 30 00:00:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
355 * hw_iobus.c: Tidy up notes so that they can be auto-extracted.
357 * README: Correct PSIM's title
359 Wed May 29 23:50:26 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
361 * basics.h: New global type object_disposition, used to indicate
362 the status of objects when things are restarted.
364 Fri May 17 17:28:52 1996 Andrew Cagney <cagney@benjimen.highland.com.au>
366 * device_table.h: Change the interrupt descriptor structure so
367 that it includes an additional member - an upper bound on the
368 interrupts by that name.
370 * device.c (device_interrupt_decode): Allow a range of interrupt
371 ports (eg rst0 .. rst6) if the port descriptors bound is non zero.
373 * device.c (device_tree_print_device): Include a list of valid
374 interrupt ports when listing supported devices.
376 * device.h, device.c (device_child_interrupt_*): Delete. Not used.
378 * emul_generic.c (emul_add_tree_hardware): Modify the creation of
379 the interrupt net so that it uses int0 .. intN.
381 Tue May 14 23:03:53 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
383 * device.h, device.c (device_ioctl): Drop the system argument.
384 Devices can not obtain this using the device_system() call.
385 * device_table.h: Adjust accordingly.
386 * hw_*.c: Adjust accordingly.
387 * emul_netbsd.c (do_break): Adjust call to vm device accordingly.
388 * psim.c (psim_options): Use a device_ioctl call to force the
389 hw_trace device to update the trace options.
390 * hw_trace.c: Replace the init function with an ioctl call. Adjust
393 * psim.c (psim_init): Re-order initialization so that the
394 os-emulation is initialized after the device tree. Without this,
395 os-emul's are not able to create instances or access properties
396 that contain an instance handle.
398 * device.h, device.c (device_add_*_property): Make these functions
399 internal to device.c. The user has access to the more generic
400 device_tree_add_parsed function. Differentiate between the initial
401 and current value for each property.
402 * (clean_device_properties): New function that deletes any
403 properties created after the start of a simulation and restores
404 the initial value of any others (ignoring ihandles).
405 * (init_device_properties): (Re)Initialize any properties that
406 contain ihandles. create
408 * (device_tree_init): Include calls to clean the device tree's
409 properties and then initialize them. Document this in the device.h
412 Mon May 6 17:36:15 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
414 * interrupts.c (decrementer_interrupt): Always pend a decrementer
415 interrupt even if it is not yet possible to deliver it.
417 Wed May 1 12:26:51 1996 Andrew Cagney <cagney@benjimen>
419 * mon.h, mon.c (mon_get_number_of_insns): Make this externally
420 visable adjusting the arguments so that the interface is correct.
421 (mon_print_info): Adjust calls.
423 * registers.h, registers.c (register_description): Add phony
424 cycle, insn and stall registers.
426 * psim.c (psim_read_register): Return nr of instructions for given
429 Tue Apr 30 22:09:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
431 * hw_htab.c: New file. Extract contents from disk_table.c.
432 Contains a device that, during initialization will create a
433 PowerPC htab in memory.
434 * hw_register.c: New file. Extract contents from disk_table.c.
435 Contains a device that, during initialization, will parse its
436 property list and use that to initialize various processor
437 registers (not target specific).
438 * hw_vm.c: New file. Extract contents from disk_table.c. Contains
439 a device that handles accesses to invalid virtual memory addresses
441 * hw_init.c: New file. Extract contents from disk_table.c. Misc
442 devices that can initialize memory from a file.
443 * hw_trace.c: New file. Extract contents from disk_table.c.
444 Configure trace options from property values.
446 * Makefile.in (hw_htab.o, hw_register.o, hw_vm.o, hw_init.o,
447 hw_trace.c): Add new device files.
449 * device_table.c: Remove above code, now in separate independant
452 Fri Apr 26 00:00:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
454 * hw_disk.c: New file. Disk and CDROM device.
456 * Makefile.in (hw_disk.o): Add device hw_disk.c.
458 * pk_disklabel.c: New file. Implement the miss-named disk-label
461 * Makefile.in (pk.h): Create the file pk.h that contains a list of all
464 * Makefile.in (hw.h, hw.c): Add dependancy on Makefile so that
465 they are re-created when the makefile is updated.
467 * emul_generic.c (emul_add_tree_hardware): Add a disk device
468 (below the iobus) to the device tree. Include an ihandle of
469 the disk as /chosen/disk.
471 * emul_bugapi.c (emul_bugapi_create): Don't initialize the input,
472 output and (new) disk handles yet.
473 * (emul_bugapi_init): Initialize the input, output (and just added)
475 * (emul_bugapi_do_diskio): New. Performs disk i/o (well at least
476 what I think the behavour is).
477 * emul_bugapi.c (emul_bugapi_instruction_call): Add hook to disk
478 i/o bug call. For RETURN call, exit using gpr[3]'s status even
479 though this isn't part of the spec - makes it possible for machine
480 code to signal the aporting of a simulation run.
482 * emul_chirp.c (chirp_emul_call_method): Add support for the
483 claim/release methods.
484 * (chirp_emul_exit): Add an optional exit status argument to
485 the exit method. Makes it possible for chirp emul simulations
486 to abort upon an error.
487 * device.h, device.c (device_instance_claim,
488 device_instance_release): New methods for claiming and releasing
490 * hw_memory.c: add claim and release memory methods.
491 * hw_*: Use the claim memory method when allocating physical
494 Thu Apr 18 23:38:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
496 * hw_nvram.c (hw_nvram_update_clock): Use the current not previous
497 time when updating the clock.
499 * hw_nvram.c: Tidy up documentation
501 Fri May 24 10:08:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
503 * configure.in (AC_STRUCT_ST_{BLKSIZE,BLOCKS,RDEV}): Use these
504 macros to determine whether or not the appropriate st_<xxx> fields
505 exist in the stat structure.
506 (AC_CHECK_FUNCS): Check for all unix system calls used, except for
507 the real basic ones like open, read, write, etc.
508 * config{.in,ure}: Regenerate.
510 * emul_netbsd.c: Add support for missing system calls, and/or
512 (MAXPATHLEN): Undefine if including unistd.h, since sys/param.h
515 * hw_pal.c (WITH_STDIO): Redefine if O_NDELAY, F_GETFL, or F_SETFL
517 (scan_hw_pal): Do not cause syntax error if O_NDELAY, F_GETFL, or
520 Tue May 21 17:24:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
522 * emul_netbsd.c (write_stat): Don't convert st_blocks unless the
525 Thu May 16 10:56:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
527 * configure.in (AC_CHECK_HEADERS): Add sys/ioctl.h.
528 * config{.in,ure}: Regenerate.
529 * emul_netbsd.c: If HAVE_SYS_IOCTL_H is not defined, don't include
532 Tue May 7 17:28:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
534 * hw_pal.c (hw_pal_instance_read_callback): Remove unused
537 * misc.c ({,target_}a2i): Rewrite to not use strtoul.
539 * Makefile.in ({spreg,misc}.o): Add dependency on .c file.
540 ({i,d}gen): Don't link in liberity. Use BUILD_LIBS instead of
543 Mon May 6 11:31:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
545 * hw_pal.c (hw_pal_instance_read_callback): If using stdio, use
546 fgets to read line. If not using stdio, do a simple blocking read
549 Fri May 3 15:07:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
551 * Makefile.in: Correctly build simulator for build machine != host
554 Tue Apr 30 18:46:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
556 * configure.in (--enable-hostendian): Rework so the default uses
557 the AC_C_BIGENDIAN results. Only run AC_C_BIGENDIAN if not cross
559 * configure: Regenerate.
561 * sim-endian.h: Add more tests for host endian to support more
562 platforms in a cross compilation environment.
564 Wed Apr 17 14:38:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
566 * hw_pal.c ({scan,write}_hw_pal): If WITH_STDIO == DO_USE_STDIO,
567 use stdio, instead of unpended read/printf_filtered.
568 (hw_pal_instance_write_callback): If WITH_STDIO == DO_USE_STDIO,
569 flush stdout after writing the characters.
571 * options.c (print_options): Print out WITH_STDIO.
573 * Makefile.in (STDIO_CFLAGS): Pass on result of @sim_stdio@
574 configuration variable.
575 (CONFIG_CFLAGS): Include STDIO_CFLAGS.
576 (hw.{c,h}): Allow for source dir != build dir, and for HW_SRC
577 files to contain directory pieces.
579 * std-config.h (DO{,NT}_USE_STDIO): New flags for whether we
580 should use stdio for console input.
581 (WITH_STDIO): If not defined, define as DONT_USE_STDIO.
583 * configure.in (--enable-sim-stdio): Add new switch to control
584 whether stdio is used for console I/O.
585 * configure: Regenerate.
587 * interrupts.c (external_interrupt): Declare it to be
588 INLINE_INTERRUPTS, not INLINE_CPU.
590 Mon Apr 15 23:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
592 * events.c (insert_event_entry): Allow events to be scheduled
593 *NOW* (at delta time 0). Add assertions to clarify behavour of
596 * events.c (update_time_from_event): New function. Calculates the
597 number of ticks from the next event. Use this.
599 Sun Apr 14 21:39:45 1996 Andrew Cagney <cagney@highland.com.au>
601 * emul_netbsd.c (do_break): Return 0 if success (instead of
604 * device_table.c (vm_ioctl_callback): Don't return adjusted break
607 Sun Apr 14 21:32:41 1996 Andrew Cagney <cagney@highland.com.au>
609 * device_table.h: Change type of the device ioctl so that it
610 returns an int (status).
611 * device.h (device_ioctl): Ditto.
612 * device.c (device_ioctl): Ditto.
614 * device_table.c (stack_ioctl_callback): Return 0 status.
615 (vm_ioctl_callback): Ditto
617 Sat Apr 13 00:00:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
619 * emul_netbsd.c (do_read): Correctly set the return value.
626 (do_sigprocmask): Ditto.
629 (do_gettimeofday): Ditto.
630 (do_getrusage): Ditto.
634 (do___sysctl): Ditto.
636 Fri Apr 12 20:56:47 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
638 * device_table.c (vm_ioctl_callback): Don't access the processor
639 registers directly, instead leave it to the caller to handle this.
641 * emul_netbsd.c (do_break): Which calls vm_ioctl_callback to
642 perform a break. Pass in the new break value and set the
643 registers according to the result.
645 * emul_generic.c (emul_write_status): Change so that r3 contains
646 either status or errno and failure is indicated by SO.
648 Thu Apr 4 23:03:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
650 * emul_bugapi.c (emul_bugapi_create): More strict check of OEA
653 Thu Apr 4 20:58:05 1996 Andrew Cagney <cagney@highland.com.au>
655 * interrupts.h (interrupts): New structure contains state of
658 * cpu.c (cpu_interrupts): New function. Pending interrupt status
659 in the cpu and grant access to it. Add interrupts to cpu
662 Fri Mar 29 22:09:25 1996 Andrew Cagney <cagney@highland.com.au>
664 * device.c (device_tree_add_parsed): Check that the creation of a
665 device instance worked before using it.
667 * psim.c (psim_halt): Remove cia argument from psim_halt. This
668 function does not save the CIA so do not pass it in.
670 Fri Mar 29 21:30:56 1996 Andrew Cagney <cagney@highland.com.au>
672 * hw_pal.c (hw_pal): Merge the halt and icu and console devices
673 found in device_table.c into a single hack pal.
675 * device_table.c (halt, icu, console): Delete.
677 * Makefile.in (hw_pal.o): New dependency.
679 * emul_generic.c (emul_add_tree_hardware): Re-arange device tree
680 so that it uses the pal instead of the icu/halt/console devices.
681 Wire the pal's interrupt ports up to the cpu nodes.
683 Fri Mar 29 20:17:17 1996 Andrew Cagney <cagney@highland.com.au>
685 * hw_iobus.c (hw_iobus_attach_address_callback): Move from
686 device_table.c to here.
688 * Makefile.in (hw_iobus.o): New dependency.
690 Fri Mar 29 12:17:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
692 * emul_bugapi.c (_os_emul_data): Add fields for output, input.
693 (emul_bugapi_create): Create input, output from /chosen/stdin and
695 (emul_bugapi_do_{read,write}): Switch to use device_instance
697 (emul_bugapi_instruction_call): Change calls to
698 emul_bugapi_do_{read,write} to pass device instance argument.
700 Tue Mar 26 14:57:58 1996 Michael Meissner <meissner@tiktok.cygnus.com>
702 * igen.c (idecode_switch_end): Fix 2/26 change so that an extra
703 default is not written out if a default was already written.
705 * psim.c (psim_{read,write}_register): Use sizeof unsigned_8 to
706 size cooked_buf, not sizeof natural_word, since floating point
707 registers are 8 bytes.
709 Mon Mar 25 22:07:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
711 * configure: Regenerate with autoconf 2.9.
713 Thu Mar 21 00:14:26 1996 Andrew Cagney <cagney@highland.com.au>
715 * device_table.h: Always include string headers.
717 Thu Mar 21 00:06:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
719 * main.c (error): Be careful to not try to print out statistics
720 when the simulation was never created.
722 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
724 * basics.h: Move the event queue's definition to here so that it
725 can be refered to globally with out importing all of events.h.
727 * psim.h, psim.c (psim_event_queue): New function. Grant access
728 to the simulation event queue. Will make this the single point of
729 access (there is after all only one event queue in the
732 * cpu.c (cpu_create): Use psim_event_queue to obtain the event
733 queue instead of it being passed in. No longer allow access to
734 the cpu's copy of the event queue.
736 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
738 * events.h, events.c (event_handler): Remove event_queue from
739 arguments passed to an event handler. That argument is redundant
740 - the `data' should refer to a data structure that contains the
741 event queue if queing is needed.
743 * cpu.c (cpu_decrement_event): adjust
745 * events.c (event_queue_process): adjust
747 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
749 * device.h, device.c (device_system): New, returns a handle for
750 the system given the device.
752 * device.c (device_address_init): Store a pointer back to the
753 system in each devices node.
755 * device_table.h: Don't pass `system' into each device when it is
756 being initialized, this is now available using device_system(me).
758 * device.c (device_address_init, device_data_init): Adjust.
760 * hw_cpu.c, hw_nvram.c, hw_memory.c, hw_eeprom.c, device_table.c:
763 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
765 * interrupts.c (decrementer_interrupt, external_interrupt):
766 Remember that an interrupt wasn't delivered so that it can be
769 * interrupts.c (check_masked_interrupt): New function. (re)
770 checks for the posibility that a recent change to the MSR may have
771 made it possible to deliver an interrupt that was previously
772 masked be the EE bit.
774 * ppc-instructions (mtmsr, mfmsr, rfi): Check for posibility of
775 a pending interrupt being delivered using check_masked_interrupt().
777 * cpu.c (cpu_decrement_event): Just call decrementer_interrupt()
778 leaving it to that module to handle both interrupt synchronization
781 * cpu.c (struct _cpu): remove variables that were going to record
782 pending decrementer and external interrupts.
784 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
786 * hw_cpu.c, hw_cpu.h: New files. Implement a device that sits
787 between the interrupt controller and the simulators internal
788 processor model. Maps device interrupts onto the processor
789 interrupt function calls.
791 Mon Mar 4 06:06:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
793 * hw_nvram.c: NVRAM device that includes a real-time clock that is
796 Mon Mar 4 04:18:50 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
798 * device.h (attach_type): Remove attach_default type address
799 spaces. Will replace with levels of callback memory.
801 * corefile.h, corefile.c (new_core_mapping), corefile.c
802 (core_map_attach): Replace default attach with a layerd callback
805 Sun Mar 3 03:58:46 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
807 * device.c (split_property_specifier): ensure that only a single
809 (split_value): New function, parses the value part of a device
812 * device.c (device_tree_add_parsed): Use the interrupt conversion
813 functions to determine the interrupt port numbers.
815 * device_table.h: Add table that maps between an interrupts
816 symbolic name and its port number.
818 * device.h, device.c (device_interrupt_decode,
819 device_interrupt_encode): new functions use the recently added
820 interrupt port name/number tables to perform conversion.
822 Sun Mar 3 03:23:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
824 * device.h, device.c (device_set_array_property,
825 device_set_boolean_property, device_set_ihandle_property,
826 device_set_integer_property, device_set_string_property): New
827 functions - allow the value of a given property to be changed.
829 * device.h, device.c: Re-order declaration and definition of
832 Sun Mar 3 03:10:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
834 * device.c (device_tree_print_device, device_tree_add_parsed):
835 Remove references to phandle properties.
837 Wed Feb 28 00:43:07 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
839 * Makefile.in (corefile.o): missing dependency on device_table.h
842 Tue Feb 27 23:59:35 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
844 * device_table.h: Revamp device init callbacks so that they are a
846 * device.c (device_init_data, device_init_address): If an init
847 callback is NULL assume it should do nothing.
848 * device_table.c (ignore_device_init, unimp_device_init): delete
850 * device_table.c, hw_memory.c: adjust.
854 * (device_instance): ditto.
856 * (address nee config_address): ditto.
857 * (interrupt): ditto.
859 Mon Feb 26 21:11:20 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
861 * igen.c (idecode_switch_end): Output a default entry when the
862 switch statement is perfect. Firstly stops GCC complaining about
863 an incomplete switch and secondly it will be eliminated by a good
866 Mon Feb 26 22:47:15 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
868 * Makefile.in (hw.h, hw.c): New targets. Create from the list of
869 hw_*.c files. hw.h declares a device descriptor table for each hw
870 device while hw.c lists those tables in a form suitable for the
871 construction of a top leveltable in device_table.c.
873 * Makefile.in (device_table.o): now depends on hw.c a generated
876 * device_table.c (device_table): Re-arange the table of devices so
877 that two levels are possible. Make use of hw.c.
878 * device_table.h: ditto.
880 * device.c (device_template_create_device): Handle new two level
882 * device.c (device_usage): ditto.
884 Mon Feb 26 22:24:00 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
886 * device_table.c: Delete the memory device (moved to hw_memory.c).
888 * hw_memory.c: New file. Just an OpenBoot memory device.
890 Wed Jan 17 21:47:34 1996 Andrew Cagney <cagney@highland.com.au>
892 * device.c (device_init_address): New. Split initialization into
893 two stages, address and address spaces
894 * device.c (device_init_data): New. ... and data or other work.
895 With out this, devices try to modify memory before it as been
898 * device.c (device_tree_init): Update to perform staged
901 * device.c (device_init): Delete.
903 Wed Jan 17 21:43:09 1996 Andrew Cagney <cagney@highland.com.au>
905 * device_table.c (data_*): Rewrite to make heaver use of property
906 nodes. Allow initialization by different data types.
907 * device_table.c (htab_* pte_*): Rewrite to use properties.
909 * emul_chirp.c (emul_chirp_create): Use
910 * emul_bugapi.c (emul_bugapi_create): Ditto
911 * emul_netbsd.c (emul_netbsd_create): Ditto
913 Wed Jan 17 21:24:50 1996 Andrew Cagney <cagney@highland.com.au>
915 * emul_generic.c (emul_add_tree_options): Annotate existing tree
916 with options that haven't yet been specified.
917 * emul_generic.c (emul_add_tree_hardware): Annotate existing tree
918 with demo devices and properties.
920 * emul_chirp.c (emul_chirp_create): Update to use new
921 device_tree_add_parsed call and additional information now
922 included in the device tree. Use emul_add_tree* functions to add
924 * emul_bugapi.c (emul_bugapi_create): Ditto
925 * emul_netbsd.c (emul_netbsd_create): Ditto
927 Wed Jan 17 21:18:27 1996 Andrew Cagney <cagney@highland.com.au>
929 * device.c (device_instance_create): New. Create/delete and
930 operate on instances of a device.
931 * device.c (device_instance_delete): Ditto
932 * device.c (device_instance_read): Ditto
933 * device.c (device_instance_write): Ditto
934 * device.c (device_instance_seek): Ditto
935 * device.c (device_instance_data): Ditto
936 * device.c (device_instance_name): Ditto
937 * device.c (device_instance_path): Ditto
939 * emul_chirp.c (chirp_emul_open): Implement using device_instance.
940 * emul_chirp.c (chirp_emul_close): Ditto
941 * emul_chirp.c (chirp_emul_read): Ditto
942 * emul_chirp.c (chirp_emul_write): Ditto
943 * emul_chirp.c (chirp_emul_seek): Ditto
945 * emul_chirp.c (chirp_read_t2h_args): Read arguments from device.
946 Being careful to convert all from target to host byte order.
947 * emul_chirp.c (chirp_write_h2t_args): Converse.
949 Wed Jan 17 20:07:15 1996 Andrew Cagney <cagney@highland.com.au>
951 * device.c (device_tree_add_parsed): New. Rewrite code to add
952 devices to the device tree so that a single printf style function
955 * device.c (device_tree_add_*): Delete. Replaced by above.
957 * device.c (split_device_specifier): Functions to manipulate a
958 device specifier (path) breaking it into its components
959 * device.c (split_property_specifier): Ditto
960 * device.c (split_device_name): Ditto
961 * device.c (split_find_device): Ditto
963 * device.c (scan_*): Delete
965 * device.c (device_tree_find_device): Rewrite to use above.
966 * device.c (device_add_property): Ditto
968 Wed Jan 17 19:51:56 1996 Andrew Cagney <cagney@highland.com.au>
970 * psim.c(psim_options): Parse the psim options, installing their
971 value in the device tree. Options are now first entered into a
972 device tree and then extracted out again when needed. This allows
973 greater flexability in configuration.
975 * psim.c (psim_tree): Returns a basic device tree ready for
976 parsing by psim_options.
977 * psim.c (psim_usage): New. Give usage to varing levels of detail
978 according to the verbosity. In turn output device and trace
981 * main.c (main): Update to use new system
982 * sim_calls.c (sim_open, sim_do_command): Ditto
984 * psim.c (psim_options): Add `r' option - ram size.
985 * psim.c (psim_options): Add `o' option - openboot tree entry.
986 * psim.c (psim_options): Add `h'/`H' options - more help.
988 * debug.c (trace_usage): Add more detailed help.
989 * device.c (device_usage): New. Output help including a list of
990 the devices currently available in the device table.
991 * device_table.c: Add usage operator to each device.
993 * corefile.c (core_create, core_device_create): Adjust so that the
994 core device is created earlier for psim_tree(). Core can later be
997 * psim.c (psim_create): Update to handle above way of creating
998 things. Extract all information from the device tree.
1000 * device_tree.c (trace_*): New device node, its properties are
1001 used to set the value of the trace options. Init this device (in
1002 psim_options) when ever the options are updated.
1004 Wed Jan 17 19:46:07 1996 Andrew Cagney <cagney@highland.com.au>
1006 * debug.h: Add trace_print_info, trace_print_device_tree and
1007 trace_dump_device_tree. The first is a replacement for the
1008 variable `print_info' found in main.c and sim_calls.c. The latter
1009 two enable the dumping of the entire device tree.
1011 * debug.c: Add to trace_description table.
1013 * main.c (main): Use above trace instead of local variable
1014 * sim_calls.c (sim_close): Ditto
1016 * device.c (device_tree_print_device): New. Prints the device
1017 tree in a format that is consistent with what can be parsed by the
1018 device tree load from file code.
1020 * psim.c (psim_create): Dump device tree if enabled. If nump
1021 selected, exit psim immediatly.
1023 Wed Jan 17 19:36:52 1996 Andrew Cagney <cagney@highland.com.au>
1025 * corefile-n.h (core_map_read_N): When mapping from an address to
1026 a device, do not subtract the devices base. The device its self
1027 can do this. Brings the behavour into line with OpenBoot.
1028 * corefile-n.h (core_map_write_N): Ditto
1029 * corefile.c (core_map_read_buffer): Ditto
1030 * corefile.c (core_map_write_buffer): Ditto
1032 * device_table.c (console_io_read_buffer_callback): Adjust to
1033 handle biased address.
1034 * device_table.c (console_io_write_buffer_callback): Ditto
1036 Wed Jan 17 18:36:09 1996 Andrew Cagney <cagney@highland.com.au>
1038 * device.c (attach_device_interrupt_edge): New. Interrupt model
1039 did not allow interrupts to be wired up as a general net (edges).
1040 Re-implement so that interrupt events can be passed to multiple
1041 controllers and interrupt controllers can further propogate
1044 * device.c (attach_device_interrupt_edge) : New, Ditto
1045 * device.c (detach_device_interrupt_edge) : New, Ditto
1046 * device.c (clean_device_interrupt_edges) : New, Ditto
1047 * device.c (device_interrupt_event) : New, Ditto
1048 * device.c (device_interrupt_attach) : New, Ditto
1049 * device.c (device_interrupt_detach) : New, Ditto
1050 * device.c (device_child_interrupt_attach) : New, Ditto
1051 * device.c (device_child_interrupt_detach) : New, Ditto
1053 * device.c (device_attach_interrupt) : Delete old
1054 * device.c (device_detach_interrupt) : Delete old
1055 * device.c (device_interrupt) : Delete old
1056 * device.c (device_interrupt_ack) : Delete old
1058 * device_table.c (unimp_*) : Update to match
1060 * device_table.c (icu_io_write_buffer_callback) : Update to use
1062 * device_table.c (icu_interrupt_event_callback) : Ditto
1064 Wed Jan 17 18:18:40 1996 Andrew Cagney <cagney@highland.com.au>
1066 * device.c (external_to_device) : New function that provides a
1067 standard mapping between a devices internal representation (a
1068 pointer) and its external (or what is passed to a client)
1069 representation (a phandle). Implement using the cap object
1070 attached to the root node.
1072 * device.c (device_to_external) : Ditto
1073 * device.c (external_to_device_instance) : Ditto but for ihandle
1074 and device instance.
1075 * device.c (device_instance_to_external) : Ditto
1077 * Makefile (device.o): Add dependency on cap.
1079 * emul_chirp.c (struct _emul_chirp_data) : Elimate use of cap. Code
1080 needing to translate between internal and external representations
1081 changed to use the external_to_device et.al. device operations.
1082 * emul_chirp.c (chirp_emul_*) : Ditto
1084 * Makefile (emul_chirp.o): Remove dependency on cap
1086 Sat Jan 6 10:13:26 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
1088 * emul_chirp.c (map_over_chirp_note): Tighten up (and fix) checks
1089 on OpenBoot note section.
1091 Fri Jan 5 20:28:53 1996 Andrew Cagney <cagney@hignland.com.au>
1093 * emul_generic.c (emul_write_buffer): Use vm faulting byte
1094 read/write calls for buffer transfers. This will cause a fault to
1095 occure if the transfer fails. CHRP catches the fault while the
1096 others suffer the consequences.
1097 (emul_read_buffer): Ditto.
1098 (emul_write_word): Ditto.
1099 (emul_read_word): Ditto.
1100 (emul_read_string): Ditto.
1102 Fri Jan 5 18:55:34 1996 Andrew Cagney <cagney@highland.com.au>
1104 * emul_chirp.c (emul_chirp_create, emul_chirp_instruction_call),
1105 emul_generic (emul_blr_instruction): Use a real blr instruction to
1106 return from a client service call.
1108 * emul_chirp.c (services): Add all OpenBoot services to table.
1110 * emul_generic.h, emul_bugapi.c (emul_bugapi_create), emul_chirp.c
1111 (emul_chirp_create) : Use names instead of numbers for
1112 instructions being stored in memory.
1114 Fri Jan 5 18:52:28 1996 Andrew Cagney <cagney@highland.com.au>
1116 * Makefile.in (maintainer-clean): Remove .log, core and *.core
1117 (From NetBSD) files.
1119 Wed May 29 22:57:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1121 * ChangeLog.00, ChangeLog: ChangeLog from gdb-4.16 becomes