1 Tue Apr 15 14:57:18 1997 Ian Lance Taylor <ian@cygnus.com>
3 * Makefile.in (INSTALL): Set to @INSTALL@.
4 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
5 (install): Depend upon installdirs. Use $(program_transform_name)
6 directly, rather than using $(INSTALL_XFORM).
7 (installdirs): New target.
9 Fri Apr 4 17:54:36 1997 Jim Wilson <wilson@cygnus.com>
11 * Makefile.in (tmp-hw, tmp-pk): Use for loop to eliminate duplicates
12 rather than the non-portable cat -n.
14 Mon Apr 14 16:29:51 1997 Ian Lance Taylor <ian@cygnus.com>
16 * Makefile.in (INSTALL): Change install.sh to install-sh.
18 Tue Apr 1 18:15:14 1997 Jim Wilson <wilson@cygnus.com>
20 * ppc-instructions: Change milhwu to mulhwu.
22 Wed Apr 2 15:38:08 1997 Doug Evans <dje@canuck.cygnus.com>
24 * sim_calls.c (sim_open): New arg `kind'.
26 Wed Apr 2 14:51:17 1997 Ian Lance Taylor <ian@cygnus.com>
28 * COPYING: Update FSF address.
30 Tue Mar 25 16:17:59 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
32 * main.c (sim_io_read_stdin): Only compile unbuffered IO code if
33 all the required features are supported by the host OS.
35 Tue Mar 25 12:13:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
37 * emul_bugapi.c (emul_bugapi_create): Guard against NULL images.
39 * configure.in (enable-sim-endain): Correct typo in usage (from
40 Erik Landry <landry@ENGR.ORST.EDU>).
41 * configure: Re-generate.
43 Fri Mar 14 18:23:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
45 * Makefile.in (targ-vals.def): Re-do rule so that it works with
46 FreeBSD's make. Didn't like $<.
48 Thu Mar 13 12:55:48 1997 Doug Evans <dje@canuck.cygnus.com>
50 * sim_calls.c (sim_open): New SIM_DESC result. Argument is now
52 (other sim_*): New SIM_DESC argument.
54 Thu Feb 13 10:35:14 1997 Andrew Cagney <cagney@phydeaux.cygnus.com>
56 * ppc-opcode-simple-array, ppc-opcode-simple-goto,
57 ppc-opcode-simple-switch, ppc-opcode-complex-array,
58 ppc-opcode-complex-goto, ppc-opcode-complex-switch,
59 ppc-opcode-jump, ppc-opcode-goto, ppc-opcode-flat: Delete,
60 superseeded by --sim-decode-mechanism option.
62 * ppc-opcode-simple, dc-simple: Rename to be 8.3
63 * ppc-opcode-complex, dc-complex: Ditto.
64 * ppc-opcode-stupid, dc-stupid: Ditto.
65 * ppc-opcode-test-1, dc-test.01: Ditto.
66 * ppc-opcode-test-2, dc-test.02: Ditto.
68 * configure.in (--enable-sim-opcode): Change prefix to dc- instead
71 Wed Feb 12 19:33:45 1997 Andrew Cagney <cagney@phydeaux.cygnus.com>
73 * Many of the ppc-opcode-* files are identical baring the type of
74 lookup table. Instead of having multiple tables, igen can do this
75 via an additional option.
77 * ld-decode.h, ld-decode.c (force_decode_gen_type): New function,
78 allow the type of generated table specified in the decode file to
81 * ld-decode.c (load_decode_table): Allow the table type to be
84 * igen.c (main): Add -T <mechanism> option so that an overriding
85 instruction decode mechanism can be specified.
87 * configure.in: New option --sim-decode-mechanism to control
88 igen's new -T <mechanism> flag.
89 * Makefile.in (IGEN_FLAGS): Add IGEN_IDECODE_MECHANISM set by the
91 * configure: Regenerate.
93 Tue Feb 11 13:49:10 1997 Michael Meissner <meissner@tiktok.cygnus.com>
95 * events.c (event_queue_create): Don't use NULL to initialize an
97 (even_queue_{init,schedule_after_signal,tick}): Conditionalize use
98 of sigprocmask to appropriate autoconf test.
100 * main.c ({cntrl_c,main}): Use RETSIGTYPE for signal return type,
102 * sim_calls.c (sim_{ctrl_c,resume}): Ditto.
104 * Makefile.in (callback.o): Define HAVE_CONFIG_H, so callback.c
105 includes our config.h.
107 Tue Feb 4 13:42:59 1997 Doug Evans <dje@canuck.cygnus.com>
109 * configure.in: Fix typo in test for callback.c.
110 * configure: Regenerated.
112 Fri Feb 7 10:04:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
114 * emul_chirp.c (emul_chirp_create): Handle a virtbase of -1 being
115 found in the device tree.
117 Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
119 * Property create/initialization still wasn't correctly ordered.
120 Should be delaying everything related to ihandle creation until
121 after the rest of the tree has been established.
123 * device.c (device_find_ihandle_runtime_property): Update.
124 (device_add_ihandle_runtime_property): Update.
126 * tree.c (parse_ihandle_property): Delay lookup of the device to
127 be opened until the ihandle initialization phase.
128 * tree.c (print_properties): Update.
130 Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
132 * gen-icache.c (print_icache_extraction): Add a reason parameter.
133 Augment each extracted field with a comment citing the codes
134 origin. Should simplify tracking down incorrect cache
137 Tue Feb 4 17:44:51 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
139 * gen-icache.c: Generalize code handling XXX_is_NNN so that it
140 works for normal and boolean table entries.
142 * psim.c (psim_write_memory): last_cpu == -1 or nr_cpus is now
143 valid. Handle this just like *_{read,write}_register now handles
146 Mon Feb 3 17:18:16 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
148 * events.c (insert_event_entry): Correct loop termination
151 Fri Jan 31 16:20:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
153 * psim.c (psim_options): Add new option -c for max-iterations or
155 (psim_usage): Document.
156 (psim_max_iterations_exceeded): New function, abort simulation if
157 max iterations exceeded.
159 * gen-idecode.c: Re-work the table lookup code so that it assumes
160 that the entry is a leaf by default. Simplify the boolean table
161 entry code so that it involves a mask + test instead of shift +
164 * gen-idecode.c: Correct generated igen body so that it no drops
165 or doubles clock interrupts.
168 Thu Jan 30 11:23:20 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
170 * Makefile.in (BUILT_SRC_WO_CONFIG): Change targ-vals.* to
173 * configure.in (sim_callback, sim_targ_vals): Set sim_targ_valls
174 if common callback is present.
176 Wed Jan 29 12:32:41 1997 Michael Meissner <meissner@tiktok.cygnus.com>
178 * configure.in (sim_callback): If the gdb is post 4.16, configure
179 callback support from the common directory.
180 * configure: Regenerate.
182 * Makefile.in (BUILT_SRC_WO_CONFIG): Add targ-vals.{h,def} and
184 (GDB_OBJ): Add callback support configured in.
185 (gentmap,targ-vals.def): Build from common directory.
186 (targ-vals.h,targ-map.c): Build by running gentmap.
187 (callback.o): Build from source in common directory.
188 (targ-map.o): Add dependency.
189 (clean): Remove gentmap.
191 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
193 * igen wasn't aborting if the opcode table contained no valid
196 * misc.c (name2i): Possibly abort if an invalid name is
198 * ld-decode.c: Abort if the table type isn't found.
200 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
202 * When performance monitoring is disabled, it is still possible to
203 determine the simulation speed by looking at the number of elapsed
204 ticks recorded by the event queue.
206 * psim.c (psim_write_register, psim_read_register): Force the cpu
207 to zero when it is either of `-1' or `nr_cpus'. In both cases the
208 next cpu would be zero any way.
210 * mon.c (mon_print_info): If possible, print the system cycle
211 performance. This is an indication of the number of instructions
214 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
216 * The code to allow an event queue to be updated during a signal
217 was missing. For main.c, a cntrl-c simulation termination wasn't
220 * The simulation would not correctly restart if an event requested
221 that the simulation be halted.
223 * psim.c (psim_options): Add hack to -i option to optionally
224 include a level vis -i2.
225 (psim_usage): Document.
227 * main.c (cntrl_c, cntrl_c_simulation): New functions. When a
228 cntrl-c occures schedule an event to halt the simulation.
229 (main): Catch CNTRL-C signals with the function cntrl_c.
231 * events.c (event_queue_process): Mask interrupts while
232 manipulating the async event queue.
233 (event_queue_init): Ditto.
234 (event_queue_schedule_after_signal): Ditto.
236 * events.c (event_queue_process): Mark the event queue as being in
237 the processing state when processing has started. Adjust code
238 so that it is tolerant of halts.
239 (event_queue_init): Start the event queue out with processing
241 (event_queue_tick): Check that processing isn't still being
244 * gen-idecode.c (print_run_until_stop_body): Call
245 event_queue_process_events to clear possibly pending events before
246 starting a simulation run. Re-arange main loop so that simulator
247 is correctly restarted when an event halts the simulation.
249 * psim.c (psim_halt): Handle an event halting the simulation.
250 * psim.c (psim_init): Adjust initial cpu - == -1 - to match
253 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
255 * ppc-opcode-complex: Correct typo - was expanding ORA instead of
256 RA. Based on instruction frequency stats, expand additional
258 * ppc-instructions: Change all `RA == 0' to RA_is_0.
260 * ppc-opcode-stupid: Move all but the basic table in -complex into
261 here. Update to new format.
263 * Makefile.in (tmp-defines): New target. Force defines.h to always
264 be built. Hence get ppc-opcode-goto to build.
266 Tue Jan 28 13:00:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
268 * hw_com.c (hw_com_instance_read, hw_com_instance_write):
271 Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
273 * hw_trace.c (hw_trace_init_data): Delete. The trace options need
274 to be initialized independant of the rest of the simulation
275 initalization. Otherwize a trace option explictly set from gdb
276 could be overridden by hw_trace.
278 * psim.c (psim_options): Clarify reason why the trace ioctl occures.
280 * FIXME: The trace code is too scattered - hw_trace.c, psim.c,
281 debug.c. It could be much simpler.
283 Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
285 * Some devices support removable media. Add hooks to the disk
286 device so that it supports this.
288 * device.c (device_add_string_array_property,
289 device_find_string_array_property): New functions, manipulate
290 properties containing an array of strings.
291 (device_find_string_property): Allow a string array.
292 (device_init_static_properties): Update.
293 (device_init_runtime_properties): Update.
295 * hw_disk.c (hw_disk_ioctl): Add ioctl for changing the disk
296 media. If no file image is specified, use the next one in the
298 (hw_disk_init_address): Change the file property so that it is a
299 string array - use the first entry for the initial file image.
301 * tree.c (print_string_aray_property): New function - print a
303 (print_properties): Adjust.
304 (print_string): Write a string, handling double quotes.
306 * device.h: Define an ioctl to `change-media' with an optional new
309 * hw_disk.c: Allow floppy disk devices to be specified.
311 * psim.c (psim_command): New function, parse more complex psim
312 commands such as "change-media" and "trace".
313 * sim_calls.c (sim_do_command): Use.
315 Wed Jan 22 09:38:33 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
317 * For expressions like (RA == 0) that are entered in to the cache
318 as RA_is_0. If possible generate the result of the expression so
319 that the compiler gets a better chance of eliminating dead
322 * gen-icache.c (print_icache_extraction): For a cache entry of
323 the form <name>_is_<const> where it is a boolean field, generate
324 the result of the expression instead of the expression its self.
325 (print_icache_body): Remove code that was looking for *_is_0 and
326 then generating corresponding definitions.
328 * gen-icache.c (print_icache_struct): If there is no cache, do not
329 output expressions in idecode.h file.
331 * gen-icache.c (print_icache_body): Output them here.
333 * ppc-opcode-complex: Clarify constant values for SPR==LR register
336 * ppc-cache-rules (RA_is_0, SPR_is_256): Two new cache entries.
338 Wed Jan 22 12:24:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
340 * The code that put values in and extracted values from the cache
341 was too compilicated. The cache table did not allow values to be
342 computed from cache entries. #defines could only be used when a
343 cache was present, remove the restriction.
345 * ld-cache.h, ld-cache.c: Add a new cache entry type - SCRATCH. A
346 scratch variable is defined when a cache entry is beinf
347 filled. Change the definition of a COMPUTE variable to be defined
348 when the cache entry is being used.
349 * gen-icache.c: Update.
351 * ld-cache.h, ld-cache.c: Change field names so that their meaning
352 is more obvious. old_name->field_name, new_name->derived_name.
353 * gen-icache.c: Update
355 * gen-icache.h, gen-icache.c (print_icache_body): Make the three
356 different types of cache code - put into cache, extract from
357 cache, no cache - an explicit argument to print_icache_body.
358 * gen-icache.c (print_icache_extraction): Ditto.
360 * gen-semantics.c (print_c_semantic): Update use.
361 * gen-idecode.c (print_jump_insn): Update use.
362 * gen-icache.c (print_icache_function): Update use.
364 * igen.c (main): Change 'R' option so that it does not force the
367 * configure.in (enable-sim-icache): Clarify description. Make
368 #define one of the defaults regardless of the cache. Probably
369 should revamp and add a separate option.
371 Tue Jan 21 13:26:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
373 * pk_disklabel.c (block_is_fdisk): Tidy up traces - use dos
375 (pk_disklabel_create_instance): Partition 1..4 are valid - not
377 (is_iso9660): New function, verify a CD9660 File system.
378 (pk_disklabel_create_instance): Start expanding so that active
379 partition selection is supported.
381 Mon Jan 20 11:20:15 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
383 * The cap object was retaining a reference to the instance of a
384 device after it was deleted. Instead add and remove cap's from the
385 cap db as they are created and deleted. This ensuring that a
386 capibility is only used during the lifetime of the corresponding
389 * cap.h, cap.c: Correct cap type - was signed32 should be
392 * cap.c (cap_add, cap_remove): New methods for cap object that
393 allow the explicit addition and removal of internal objects that
396 * cap.c (cap_init): Rewrite. Verify that the only objects
397 remaining in the cap data base are those that were entered first.
398 Thse objects will be the permenant ones.
399 * device.c (device_init_address): Remember to initialize the cap
402 * device.c (device_create_instance_from): Explicitly add device
403 instances to the cap database. Simplify create code.
404 (device_instance_delete): Explicitly remove device instances from
407 * device.c (device_create_from): Explicitly add a device to the
410 * device.c (device_create_from): Always set the cap members.
412 * hw_disk.c: Output the instance when tracing.
414 Sun Jan 19 16:44:29 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
416 * tree.c (split_device_specifier): Add support for aliases when
417 looking up a device. Now needs a device as an argument.
418 (split_property_specifier): Ditto.
420 Sun Jan 19 15:28:23 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
422 * The memory "claim" and "release" methods take an address and
423 size as arguments. These may be multi cell values. Initially fix
424 the memory code so that they check/detect this. Leave the
425 adjustment of any clients to later.
427 * hw_memory.c (hw_memory_instance_claim,
428 hw_memory_instance_release): Handle multi-cell memory devices.
430 * hw_memory.c (hw_memory_instance_claim): Be tolerant towards the
431 release of memory regions that were not claimed.
433 Fri Jan 17 12:01:07 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
435 * device.h, device.c (device_instance_call_method): Correct return
436 type - can return either 0 or -1, hence should be a signed type.
437 * device_table.h: Ditto.
439 * hw_memory.c (hw_memory_instance_claim,
440 hw_memory_instance_release): Update.
441 * hw_disk.c (hw_disk_max_transfer, hw_disk_block_size,
442 hw_disk_nr_blocks): Ditto.
444 Fri Jan 17 11:50:13 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
446 * emul_chirp.c (chirp_emul_claim): Implement using the "claim"
447 method belonging to "/chosen/memory".
448 (chirm_emul_release): Ditto.
450 * Makefile.in (LIB_INLINE_SRC): Remove emul_* from list of files
451 that are inlined. These modules are called via a table and are
454 * hw_init.c (update_for_binary_section): Fix failure to allocate
455 memory used by the binary in real-mode executions. If "claim"
456 property is present, allocate memory from the "/chosen/memory"
459 * emul_chirp.c (emul_chirp_create): Specify that memory should be
460 claimed when loading a real image.
462 * hw_memory.c (hw_memory_instance_claim): Don't page align memory
465 * hw_memory.c (hw_memory_instance_release): Avoid infinite loop
466 when merging adjacent memory chunks.
468 Thu Jan 16 08:51:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
470 * vm.h (vm_data_map_read_buffer, vm_data_map_write_buffer): Add
471 optional PROCESSOR & CIA args so that this routine also abort an
474 * vm_n.h (vm_data_map_read_N, vm_data_map_write_N): For a
475 miss-aligned access when a transfer fails abort.
477 * emul_bugapi.c (emul_bugapi_do_write): Use emul_read_buffer
478 instead of the vm_read_buffer.
479 * emul_netbsd.c (do_write): Ditto.
480 * emul_unix.c (do_unix_write): Ditto.
482 Wed Jan 15 14:38:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
484 * configure.in (--enable-sim-jump): Default is NULL and not -E.
485 * configure: Regenerate.
487 * basics.h (__attribute__): Enable attributes if GCC >= 2.6.
488 (UNUSED): Only enable UNUSED if GCC >= 2.7.
490 * gen-icache.c (print_icache_extraction): Print UNUSED macro
491 instead of explicit __unused__ attribute.
492 (print_icache_body): Ditto.
493 * idecode_expression.h (FPSCR_BEGIN): Use UNUSED.
495 Wed Jan 15 13:54:50 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
497 * cpu.h, cpu.c (cpu_synchronize_context): Add CIA argument as
500 * vm.c (vm_synchronize_context): Add PROCESSOR and CIA as
501 arguments so that there is a reference point for recovery.
502 (vm_synchronize_context): Pass processor+cia for errors.
503 (om_unpack_sr): Ditto.
504 (om_unpack_srs): Ditto.
505 * vm.c (vm_create): Review error messages.
507 * vm.c: Include "cpu.h" so that cpu_error is visible.
509 * ppc-instructions (Return From Interrupt): Pass CIA.
510 (Instruction Synchronize): Ditto.
511 * psim.c (psim_init): Ditto.
513 Wed Jan 15 12:25:11 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
515 * cpu.h, cpu.c (cpu_error): Aborts simulation with error message,
516 but also saves current processor state.
518 * basics.h: Move #include <stdarg.h> to here from device_table.h.
520 * interrupts.c (perform_oea_interrupt): Use. No longer loose CIA
521 when simulation aborted.
522 (program_interrupt): Ditto.
523 (floating_point_unavailable_interrupt): Ditto.
524 (alignment_interrupt): Ditto.
525 (floating_point_assist_interrupt): Ditto.
526 (perform_oea_interrupt): Ditto.
527 (machine_check_interrupt): Ditto.
529 Tue Jan 14 12:19:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
531 * ppc-instructions (Move from Special Purpose Register): Support
534 Mon Jan 13 16:58:12 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
536 * debug.h, debug.c: Add "interrupts" trace option.
538 * interrupts.c (data_storage_interrupt): Add tracing.
539 (machine_check_interrupt): Ditto.
540 (instruction_storage_interrupt): Ditto.
541 (alignment_interrupt): Ditto.
542 (program_interrupt): Ditto.
543 (floating_point_unavailable_interrupt): Ditto.
544 (system_call_interrupt): Ditto.
545 (floating_point_assist_interrupt): Ditto.
546 (deliver_hardware_interrupt): Ditto.
548 * interrupts.c (program_interrupt): For UEA mode, halt the
549 processor - so that the current state is saved - instead of
551 (floating_point_unavailable_interrupt): Ditto.
552 (floating_point_assist_interrupt): Ditto.
554 Thu Jan 2 09:10:41 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
556 * interrupts.c (perform_oea_interrupt): Halt rather than abort on
559 Wed Jan 1 22:54:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
561 * ppc-instructions (Store Multiple Word, Load Multiple Word):
564 * tree.c (print_properties): For an array consider printing it out
567 * hw_memory.c (hw_memory_init_address): If an "available" property
568 is present, use that to initialize the available memory instead of
569 using the reg property.
571 * emul_generic.c (emul_add_tree_hardware): Add "available"
572 property to memory device.
574 Fri Dec 20 13:19:07 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
576 * ppc-instructions (Rotate Left Word then AND with Mask): Enable.
578 * device.c (device_instance_call_method): Was only looking at the
581 * hw_disk.c (hw_disk_nr_blocks): Implement #blocks method.
582 (hw_disk_block_size): Implement block-size method.
583 (hw_disk_max_transfer): Implement max-transfer method.
585 * hw_phb.c (hw_phb_init_address): Reinit the rest of the PHB.
587 * emul_chirp.c (chirp_emul_instance_to_path): Recover from an
589 (chirp_emul_instance_to_package): Ditto.
590 (chirp_emul_method): Ditto.
591 (chirp_emul_read): Ditto.
592 (chirp_emul_write): Ditto.
593 (chirp_emul_close): Ditto.
594 (chirp_emul_seek): Ditto.
595 (chirp_emul_package_to_path): Ditto (for phandle).
596 (chirp_emul_package_to_path): Return the length.
598 * psim.c (psim_merge_device_file): Allow continuation lines.
600 Thu Dec 19 11:09:43 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
602 * emul_chirp.c (chirp_emul_boot): Implement. Well report the new
605 * emul_chirp.c (chirp_emul_exit): Correct type of args struct
606 members - *_cell not host dependant int.
608 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
610 * interrupts.c (perform_oea_interrupt): Print additional
611 information if a double interrupt is encountered.
613 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
615 * psim.c (psim_merge_device_file): Tolerate an incorrect file-name
616 being specified with the -f option.
617 (psim_merge_device_file): Correct check for end of string.
619 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
621 * emul_chirp.c (chirp_emul_peer): Was falling off the end of the
622 list of devices. Return zero to the client instead.
623 * emul_chirp.c (chirp_emul_child): Ditto
624 * emul_chirp.c (chirp_emul_parent): Ditto
626 * device.c (device_root): Assert assumption about the device being
629 Tue Dec 17 15:12:38 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
631 * emul_chirp.c (emul_chirp_create): Add description property to
632 each significant node in the device tree.
633 * emul_bugapi.c (emul_bugapi_create): Ditto.
635 Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
637 * main.c (sim_io_read_stdin): For a single byte STDIO read, use a
638 tempoary two byte buffer. Single byte read with fgets will not
640 * main.c: Include errno.h.
641 (sim_io_read_stdin): For non-STDIO, make it work.
643 * emul_chirp.c (chirp_emul_read): Return the correct error status.
645 Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
647 * std-config.h (WITH_STDIO): Don't hard-wire the STDIO mechanism.
648 Instead have each emulation default it to DO_USE_STDIO.
650 * emul_generic.c (emul_add_tree_options): Select the STDIO I/O
651 mechanism as the default if enabled or if nothing selected.
653 * sim_calls.c (sim_io_read_stdin): Passify GCC's desire for a
655 (sim_io_write_stdout): Ditto.
656 (sim_io_write_stderr): Ditto.
657 * main.c (sim_io_write_stdout): Ditto.
658 (sim_io_write_stderr): Ditto.
659 (sim_io_read_stdin): Ditto.
661 Tue Dec 10 10:31:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
663 * emul_chirp.c (emul_chirp_instruction_call): Make *printf calls
665 * vm.c (om_effective_to_virtual): Ditto.
666 * events.c (event_queue_schedule{,_after_signal}): Ditto.
667 (event_queue_{deschedule,process}): Ditto.
668 * hw_htab.c (htab_decode_hash_table): Ditto.
669 (htab_map_{page,binary}): Ditto.
670 * hw_opic.c (hw_opic_init_data): Ditto.
671 (handle_interrupt): Ditto.
672 (do_processor_init_register_{read,write}): Ditto.
673 (write_vector_priority_register): Ditto.
674 ({read,write}_destination_register): Ditto.
675 (do_suprious_vector_register_{read,write}): Ditto.
676 (do_current_task_priority_register_N_{read,write}): Ditto.
677 (do_timer_frequency_reporting_register_{read,write}): Ditto.
678 (do_timer_N_{current,base}_count_register_{read,write}): Ditto.
679 (do_ipi_N_dispatch_register_write): Ditto.
680 (do_vendor_identification_register_read): Ditto.
681 (do_feature_reporting_register_N_read): Ditto.
682 (do_global_configuration_register_N_{read,write}): Ditto.
683 * hw_phb.c (hw_phb_attach_address): Ditto.
684 (hw_phb_unit_decode): Ditto.
685 (hw_phb_address_to_attach_address): Ditto.
686 (hw_phb_io_{read,write}_buffer): Ditto.
687 * hw_ide.c (setup_fifo): Ditto.
689 * sim_calls.c ({defs,callback,remote-sim}.h): Find gdb include
690 files via -I<dir> instead of using "../../gdb/" prefixes.
692 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
694 * debug.h: Add tracing for the pal device.
697 * emul_chirp.c (chirp_emul_getprop): More tracing.
699 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
701 * device.h, device.c (device_find_ihandle_runtime_property): New
702 function. Reverse of add_ihandle_runtime property.
703 (device_init_runtime_properties): Use it.
705 * device.c (find_property_entry): New function returns the
706 internal property spec.
707 (device_set_property): Use.
708 (device_find_property): Use.
710 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
712 * psim.c (psim_merge_device_file): Strip newline from device
715 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
717 * hw_htab.c (htab_map_binary): For overlapping text / data maps
718 merge the two. Also check that the merge is safe.
720 * emul_chirp.c (emul_chirp_create): Add a description property to
721 the pte's so that they are easier to identify.
723 (emul_chirp_create): Don't specify a load address for the CHRP
724 image. Always use the values specified by the executable.
726 * hw_htab.c (htab_map_page): Abort if a duplicate map is
729 Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
731 * hw_htab.c (htab_map_page): Formatting.
733 * emul_chirp.c (emul_chirp_instruction_call): Check for a NULL
734 method name when handling the client call. Also check for other
737 * emul_chirp.c (emul_chirp_create): Allow real-mode?, real-base,
740 Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
742 * os_emul.c (os_emul_create): Use tree find property instead of
743 device find property - sigh.
745 Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
747 * 961205: Release snapshot 961205.
749 Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
751 * configure.in (hostbitsize, bitsize): Fix typo in error message -
752 cannot contain a comma.
753 (sim-warnings): Check for more potential errors.
755 * psim.c (psim_usage): Add -f <file> option. Specifies a file
756 containing device tree specifications that should be merged into
759 * configure.in: Sort options.
762 Wed Dec 4 13:57:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
764 * psim.c (psim_usage): Add -n option - specify number of
767 * emul_chirp.c: Add description.
768 * emul_bugapi.c: Ditto.
769 * emul_unix.c: Ditto.
770 * emul_netbsd.c: Ditto.
772 Fri Nov 29 11:12:22 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
774 * hw_pal.c (hw_pal_attach_address): New function, if an attach is
775 encountered, assume that it is the single disk.
776 * hw_pal.c: Add generic device/size decode methods.
778 * hw_nvram.c (hw_nvram_init_address): Use the first nonzero reg
779 property entry when determining the nvram size.
781 * hw_core.c: Add generic address/size decode methods.
783 * emul_chirp.c (emul_chirp_instruction_call): Return and trace
784 nonzero status from client functions.
786 * main.c (error): Always include a cariage return when writing out
789 Wed Nov 20 00:36:55 1996 Doug Evans <dje@canuck.cygnus.com>
791 * sim_calls.c (sim_resume): Reset sim_should_run if single
794 Thu Nov 28 13:19:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
796 * emul_bugapi.c (emul_bugapi_do_diskio): Add support for multiple
799 * emul_generic.c (emul_add_tree_hardware): Drop the dummy eeprom.
800 Attach the pal - for I/O - as a pseudo device haning from the
803 * emul_bugapi.c (emul_bugapi_create): Add a small memory device to
804 the device tree at the address of the hi-mem interrupt vector
805 addreses. Used by bugapi to establish its trap instructions.
807 * debug.h: Add a new macro DITRACE for tracing device instances.
809 * debug.h: Extend the DTRACE macro so that it can also tests for
810 device specific tracint.
812 * device.h, device.c (device_trace): Add method to determine
813 device specific tracing.
814 (device_init_address): Set the devices tracing level.
816 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
818 * tree.h, tree.c (tree_device): New files - separate out the
819 device parser and other tree operations from the device.
821 * inline.h, inline.c (INLINE_TREE): Add.
822 * device.h, device.c (device_tree_add_parsed): Delete.
823 * Makefile.in (tree.c): Add rules for new file.
824 * Makefile.in: Better order the emul_* files.
826 * emul_generic.c (emul_add_tree_hardware): Update.
827 * emul_netbsd.c (emul_netbsd_create): Update.
828 * emul_unix.c (emul_unix_create): Ditto.
829 * emul_chirp.c (emul_chirp_create): Ditto.
830 * emul_bugapi.c (emul_bugapi_create): Ditto.
831 * psim.c (psim_tree): Ditto.
834 * emul_generic.h: Include tree.h
835 * Makefile.in: Add to EMUL_GENERIC_H dependencies.
837 * device.h, device.c (device_root): New function - returns the
841 * device.h, device.c (device_clean): New function, clean up device
842 ready for next simulation run. This includes things like deleting
843 interrupt edges and properties created during the simulation and
844 also scrubbing any pre-defined properties.
845 * tree.c (tree_init): Use.
847 * device.h, device.c (device_init_static_properties): New
848 function. Initialize any static predefined properties. By static
849 we mean those that have values that can be determined before the
850 device tree initialization has started.
851 * tree.c (tree_init): Use.
853 * device.h, device.c (device_init_address): Add code to
854 check/verify the devices #address-cells and #size-cells.
855 (device_add_integer_property): Delete corresponding code.
856 (device_nr_address_cells, device_nr_data_cells): Check for
857 property when returning value.
859 * device.h, device.c (device_init_runtime_properties): New
860 function. Initialize those properties that are not `static'. At
861 present the only such property is the ihandle.
862 * tree.c (tree_init): Use.
864 * device.h, device.c (reg, ranges): Rework these so that they use
865 an array of the fundamental type - single reg or single range
868 * device.h, device.c (device_add_ihandle_runtime_property):
869 Re-implement the adding of an ihandle during tree construction so
870 that it better fits in with device initialization.
872 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
874 * device.h, device.c (device_ioctl): Add additional argument -
875 request - so that the caller must always specify the type of
878 * device_table.h: Update.
879 * hw_trace.c (hw_trace_ioctl): Ditto.
880 * hw_vm.c (hw_vm_ioctl_callback): Ditto.
881 * hw_init.c (hw_stack_ioctl_callback): Ditto.
882 * psim.c (psim_options): Ditto.
884 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
886 * BUGS: Updated a bit.
888 Wed Nov 20 14:06:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
890 * hw_opic.c: Finish - third round.
892 Wed Nov 20 12:02:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
894 * hw_glue.c (hw_glue_io_read_buffer_callback): Fix miscalc of glue
896 (hw_glue_io_write_buffer_callback): Ditto.
898 Tue Nov 19 21:17:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
900 * events.c (event_queue_process): Was incorrectly consuming future
901 events on the queue when they should be left alone.
903 * debug.h, debug.c (events): Add support for event queue tracing.
904 * events.c: Add event tracing.
906 * debug.h, debug.c: Order device trace options.
908 Fri Nov 15 15:23:39 1996 Michael Meissner <meissner@tiktok.cygnus.com>
910 * pk_disklabel.c (pk_disklabel_create_instance): Fix up some
911 warnings generated by GCC.
913 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
915 * sim-endian.h: Add LE versions of byte swap macros. Needed for
916 PCI devices which are little-endian.
918 * sim-endian-n.h (endian_le2h_N, endian_h2le_N): Ditto
920 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
922 * hw_iobus.c (hw_iobus_attach_address_callback): Change the iobus
923 so that it is implementing a 1-1 address map.
925 * emul_generic.c (emul_add_tree_hardware): Adjust.
927 * emul_generic.c (emul_add_tree_hardware): Don't add the nvram as
930 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
932 * device.c (split_find_device): Be tolerant of missing unit
935 Fri Nov 15 16:49:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
937 * basics.h (port_direction): New type, specify the direction of
940 * device.h, device.c (device_interrupt_decode): Include
941 specification of port direction in operations.
942 (device_interrupt_encode): Ditto.
944 * device_table.h: Add a direction field to the interrupt port
947 * device.c (device_tree_add_parsed): Specify port direction.
949 Thu Nov 14 21:38:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
951 * hw_opic.c: Finish - second round.
953 Thu Nov 7 00:18:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
955 * hw_htab.c (htab_init_data_callback): Allow the virtual-address
956 to be specified as an array which allows 64bit addresses.
958 * device.c (device_find_integer_array_property): New function.
959 Simplify the querying of elements of an integer array.
960 (device_add_integer_property, device_find_integer_property):
961 Update to correctly use the cell type.
963 * vm.c (om_unpack_sr): Clarify shifting comment.
964 (om_pte_0_masked_vsid): Ditto. Add 64bit version.
966 * emul_chirp.c (emul_chirp_create): Initialize the segment
969 * vm.c (om_effective_to_virtual): Trace segment register use.
971 * hw_htab.c (htab_map_page): Print out the pteg base address to
972 simplify cross checking between vm and the htab.
973 (htab_decode_hash_table): Use device_error instead of error.
974 (htab_map_page): Ditto.
975 (htab_dma_binary): Ditto.
976 (htab_map_binary): Ditto.
977 (htab_init_data_callback): Ditto.
979 Wed Nov 6 20:20:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
981 * interrupts.h: Clarify what the optional instruction program
982 interrupt is - a subset of illegal instruction program interrupt.
984 * interrupts.c (program_interrupt): For UEA mode, clarify what an
985 optional instruction program interrupt is.
986 (program_interrupt): For OEA mode, as per spec, generate an
987 illegal instruction program interrupt when an optional instruction
990 * gen-semantics.c (print_semantic_body): Delete code
991 differentiating between an unimplemented floating point and normal
992 instruction. Instead, such a case can be handled explicitly.
994 * ppc-instructions (store floating-point as integer word indexed):
996 (Floating Convert to Integer Doubleword): Make the floating point
997 assist interrupt explicit.
998 (Floating Convert To Integer Doubleword with round towards Zero):
1000 (Floating Convert To Integer Word): Ditto
1001 (Move From FPSCR): Ditto.
1002 (Move to Condition Register from FPSCR): Ditto.
1003 (Move To FPSCR Fields): Ditto.
1004 (Move To FPSCR Field Immediate): Ditto.
1005 (Move To FPSCR Bit 0): Ditto.
1006 (Move To FPSCR Bit 1): Ditto.
1008 Mon Nov 4 12:49:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1010 * corefile.c (core_map_read_buffer, core_map_write_buffer): Avoid
1011 breaking up transfers.
1013 * corefile.c: Adjust arguments so that the client server
1014 relationship is clarified.
1016 * hw_glue.c (hw_glue_init_address): Update so it can be attached
1019 * hw_disk.c (hw_disk_instance_write): Add more checks to disk IO -
1020 looking for things like overflow/underflow.
1022 Sun Nov 3 18:45:20 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1024 * emul_generic.c (emul_add_tree_hardware): Hang the disk off the
1025 PAL device instead of the IOBUS. The disk must be attached to a
1028 * hw_disk.c (hw_disk_init_address): Just use the unit address
1029 directly in the attach - the rest isn't relevant.
1031 Sat Nov 2 21:48:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1033 * configure.in (sim-hardware, sim-packages): Allow additional
1034 hardware and packages to be prefixed as well as appended.
1036 * Makefile.in (tmp-hw, tmp-pk): Retain the user specified order of
1037 packages when building them. Consequently, a user can override a
1038 standard device by prefixing their own version.
1040 * Makefile.in (hw_opic.o, hw_pci.o, hw_ide.o): Add dependencies.
1042 Fri Nov 1 14:42:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1044 * mon.c (_cpu_mon): Add fields for counting 1, 2, 4, and 8 byte
1046 (mon_{read,write}): Count 1, 2, 4, and 8 byte reads/writes.
1047 (mon_print_info): Correct typo regarding # of unaligned reads and
1048 writes. Print out how many 1, 2, 4, and 8 byte reads/writes there
1051 Tue Oct 29 17:55:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1053 * configure.in (AC_CHECK_FUNCS): Add access.
1054 * config{.in,ure}: Regenerate.
1056 * emul_unix.c (do_unix_nop): System call that always succeeds.
1057 (do_unix_access): Support access system call.
1058 (solaris_descriptors): Make sigaltstack and sigaction nops.
1059 ({solaris,linux}_descriptors): Add support for access.
1061 Tue, 8 Oct 18:42:26 1996 Jason Molenda <crash@cygnus.co.jp>
1063 * Makefile.in (clean): Move config.log to distclean.
1065 Fri Nov 1 16:44:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1067 * corefile-n.h (core_map_write_N): Improve abort messages.
1069 * device.h, device.c (device_attach_address): Remove unused name
1071 (device_detach_address): Ditto.
1072 * device_table.h, device_table.c: Update.
1073 * hw_iobus.c (hw_iobus_attach_address_callback): Ditto.
1074 * hw_nvram.c (hw_nvram_init_address): Ditto.
1075 * hw_memory.c (hw_memory_init_address): Ditto.
1076 * hw_vm.c (hw_vm_init_address_callback): Ditto.
1077 (hw_vm_attach_address): Ditto.
1078 (hw_vm_add_space): Ditto.
1079 * hw_init.c (update_for_binary_section): Ditto.
1080 * hw_core.c (hw_core_attach_address_callback): Ditto.
1082 * hw_iobus.c (hw_iobus_attach_address_callback): Rewrite to handle
1083 configurable parent busses.
1085 Wed Oct 30 18:46:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1087 * device_table.c (generic_device_size_to_attach_size): Provide
1088 limited support for multi-cell sizes.
1089 (generic_device_address_to_attach_address): Ditto for addresses.
1091 Tue Oct 29 02:01:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1093 * device.c (device_add_integer_property): Check for setting of
1094 #address-cells and #size-cells properties. For these, update the
1095 corresponding device values.
1096 (device_nr_address_cells, device_nr_size_cells): Use the value
1097 from the device instead of the property.
1099 * hw_core.c: Use generic address and size conversions for the top
1102 * hw_memory.c (hw_memory_init_address): Tolerate case where
1103 #address and #size cells is greater than 1.
1105 * device.c (device_tree_print_device): Clean out printing of
1108 * device.c (split_device_specifier): Don't detect comments here -
1109 "#" can be a valid prefix - eg #size-cells.
1111 * psim.c (psim_merge_device_file): Suppress comments and blank
1114 * emul_generic.c (emul_add_tree_hardware): Fix typo of incorrect
1115 pal unit address. Add the property /#address-cells to the root of
1118 * device.c (device_template_create_device): Check that the unit
1119 address was successfully parsed.
1121 * device_table.c (generic_device_unit_decode): Rewrite to better
1122 handle multi-cell addresses.
1123 (generic_device_unit_encode): Ditto.
1125 * emul_generic.c (emul_add_tree_hardware): "reg" properties no
1126 longer need the explicit array type - the parser takes care of it.
1128 * pk_disklabel.c (pk_disklabel_create_instance): Add NULL return
1131 Mon Oct 28 22:55:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1133 * hw_ide.c: New file. Model of a basic IDE interface attached to
1136 * configure.in (hardware): Add the ide device to the default
1138 * configure: Regenerate.
1140 * debug.h, debug.c: Add tracing option for the IDE device.
1142 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1144 * hw_phb.c, hw_phb.h: New files - implement a PHB.
1146 * configure.in (hardware): Add the phb to the list of devices to
1149 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1151 * hw_com.c: Review description.
1154 * hw_eeprom.c: Ditto.
1158 * hw_com.c: Update event handling.
1160 * hw_disk.c: Implement tracing.
1162 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1164 * device_table.c (generic_device_init_address): Use
1165 assigned-addresses property in preference to any other reg
1168 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1170 * device.h, device.c (device_find_ranges_property): New function.
1171 Simplify the manipulation of "ranges" properties.
1173 * device.c (device_add_parsed): Extend to include support for the
1176 * device.c (device_add_parsed): Add assigned-addresses to the list
1177 of reg type properties.
1179 * device.c (device_tree_print_device): Add code to format and
1180 print a ranges property.
1182 * device.h, device.c (device_nr_address_cells,
1183 device_nr_size_cells): New functions. Determine the values of the
1184 standard properties #address-cells and #size-cells. Both of which
1185 are optional and have default values of two and one respectfuly.
1186 Previously, code that determined #address-cells was incorrectly
1187 using a value of one.
1189 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1191 * debug.h, debug.c: Sort debug options, Add entries for the
1194 Fri Oct 18 12:12:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1196 * ppc-instructions (Floating Select): Add support for fsel unless
1197 model is 601. Allow user to filter out instruction unless -Fs is
1199 (Store Floating-Point as Integer Word Indexed): Raise optional
1200 instruction program abort. Allow user to filter out instruction
1201 unless -Fs is passed to igen.
1202 (Floating Square Root{, Single}): Ditto.
1203 (Floating Reciprocal Estimate Single): Ditto.
1204 (Floating Reciprocal Square Root Estimate): Ditto.
1206 * configure.in (--enable-sim-filter): If not passed, pass 32,f,s
1208 * configure: Regenerate.
1210 * interrupts.h (program_interrupt_reasons): Add
1211 optional_instruction_program_interrupt.
1213 * interrupts.c (program_interrupt): Call error with more detailed
1214 information on program interrupts, particularly in user mode. Add
1215 support for optional_instruction_program_interrupt.
1217 Wed Sep 25 10:20:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1219 * hw_glue.c: New device. Hooks for manipulating interrupt ports.
1221 * debug.h, debug.c (trace_glue_device): Add tracing support for
1222 the interrupt glue logic device.
1224 * configure.in (hardware): Add glue device.
1225 * configure: Regenerate.
1227 Tue Sep 24 20:55:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1229 * device.c (device_tree_parse_integer_property): New function,
1230 parse a list of integers as an array property.
1231 (device_tree_add_parsed): Call it.
1233 * device.c (device_tree_parse_string_property): New function,
1234 parse a list of strings as a string property (with embeded
1235 null's). For moment, don't try to implement a complext string
1237 (device_tree_add_parsed): Call it.
1239 Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1241 * hw_opic.c: New file. OpenPIC interrupt controller.
1243 * configure.in (hardware): Add opic device.
1244 * configure: re-generate.
1246 * hw_pic.c: Delete, replaced with hw_opic.c.
1248 * debug.h, debug.c: Add debug option for OpenPIC device. -
1251 Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1253 * Makefile.in (psim.o, idecode.o): Since idecode and not psim is
1254 now the file that does all the inlining.
1256 * Makefile.in (LIB_SRC, LIB_INLINE_SRC, idecode.o): Break out the
1257 library source code that could be involved in an inlining. Make
1258 idecode.o only dependant on the inlined library source code.
1260 * Makefile.in (LIB_OBJ): Put options last on the list so that it
1263 * std-config.h (DEVICE_INLINE): Only inline locals when the
1264 default is to inline.
1266 Mon Sep 23 00:37:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1268 * hw_htab.c (htab_sum_binary): Determine the real-base for the
1271 * hw_htab.c (htab_map_binary): Depending on the value of the
1272 load-base, either map the program in as a contiguous section or as
1273 separate sections controled by th binaries lma values.
1274 (htab_init_data_callback): Ditto.
1276 Sun Sep 22 15:56:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1278 * emul_generic.c (emul_add_tree_options): Remove load-base option.
1280 * emul_chirp.c (map_over_chirp_note): Add load_base field to note
1281 struct. Don't require the load_base field to be present - just
1282 issue warning - it is a recent addition.
1283 (emul_chirp_create): Support both virtual and physical modes.
1285 * emul_chirp.c (emul_chirp_create): Add a stack initialization
1286 property so that any arguments specified on the command line can
1287 be passed on to user programs.
1289 * hw_init.c (create_ppc_chirp_bootargs): Add support for chirp
1290 argument passing to the pseudo device stack.
1292 Sat Sep 21 19:39:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1294 * device.c (device_error): Make it more tolerant to incomplete
1297 * hw_init.c (hw_data_init_data_callback): Extend the data device
1298 so that it can perform initialization operations either dma or a
1299 more complex instance open, seek, write operation.
1300 * hw_init.c: Update the description of the data device to reflect
1303 Sat Sep 21 00:13:02 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1305 * device.c (device_event_queue_schedule,
1306 device_event_queue_deschedule, device_event_queue_time): Have the
1307 device object export the event operations. Making these available
1308 from the device object should hopefully simplify writing device
1311 Fri Sep 20 14:04:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1313 * configure.in (sim-hardware): Add eeprom device to default build.
1315 * hw_eeprom.c: Rewrite so it works.
1317 * debug.h, debug.c: Add tracing support for the eeprom and com
1320 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1322 * debug.h: Add disklabel-package and disk-device trace options.
1323 debug.h (PTRACE): Add macro to simplify tracing in packages.
1325 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1327 * device.c (device_create_instance_from): Tighten up loop
1328 searching for device instances.
1329 (device_instance_delete): Ditto.
1330 (device_instance_delete): Only leaf instances need to be removed
1331 from a devices list of active instances.
1333 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1335 * hw_disk.c: Add the cdrom as an alias.
1337 * pk_disklabel.c (disklabel_delete): Implement, remembering to
1338 delete the raw disk instance while we're at it.
1340 * pk_disklabel.c (pk_disklabel_create_instance): Implement a
1341 little bit more - still a long way to go.
1343 * pk_disklabel.c (disklabel_write, disklabel_read): Remember the
1344 new head position after a read or write.
1346 Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1348 * emul_chirp.c (chirp_emul_read): Allow reads to be longer then
1349 the internal buffer.
1351 Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1353 * emul_chirp.c (chirp_read_t2h_args): Call memset-0 with the args
1354 in the correct order.
1356 * emul_chirp.c (chirp_emul_call_method): Correct computation for
1357 the address of the first stack argument passed in from the client
1360 Wed Sep 18 19:33:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1362 * words.h: Add new types signed_cell and unsigned_cell which
1363 correspond to the signed and unsigned IEEE 1275 memory locations.
1364 * device.h, device.c, emul_chirp.c: Where refering to an IEEE 1275
1365 memory cell, replace uses of unsigned32 with unsigned_cell.
1366 * device_table.h: Ditto.
1368 * sim-endian.h: Add new macros H2BE_cell and BE2H_cell which
1369 convert cell sized values to from big endian.
1370 * device.c, emul_chirp.c: Where refering to IEEE 1275 memory cells
1371 use these new macros.
1373 Tue Sep 17 15:57:44 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1375 * device.c (device_tree_add_parsed): Detect and report an
1376 interrupt being attached to an invalid device. Was dumping core.
1378 Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1380 * device.h, device.c (device_address_to_attach_address,
1381 device_size_to_attach_size): New functions. Convert a devices
1382 unit address or unit size structure into a form suitable for
1383 passing on to the attach and detach functions.
1384 * device_table.h: Add extra methods to device table.
1386 * device.h, device.c (device_find_reg_property): New function.
1387 For a reg type property, return the selected address + size
1388 tupple, along with a positive success status. Add a reg_property
1389 to the list of property types.
1390 * (device_tree_add_parsed): Make array properties with the name
1391 reg or alternate-reg of type reg_property.
1393 * hw_memory.c (hw_memory_init_address): Rewrite to use new
1394 find_reg_property method.
1395 * hw_nvram.c (hw_nvram_init_address): Ditto.
1397 * device.c (device_tree_print_device): Add code to print out a reg
1400 * device_table.c (generic_device_address_to_attach_address,
1401 generic_device_size_to_attach_size ): New functions. Generic
1402 functions for converting between unit and attach address or size.
1404 * device_table.c (generic_device_init_address): Rewrite to use the
1405 new find_reg and address convert functions. Look for both reg and
1406 alternate-reg properties.
1408 Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1410 * hw_com.c: New file. A '550 serial device that can quickly be
1411 attached to any bus.
1412 * configure.in (enable-sim-hardware): Add the com device.
1413 * configure: re-generate.
1415 Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1417 * device.c (device_tree_verify_reg_unit_address): New
1418 function. Check that the unit address as specified by the reg
1419 property correctly corresponds to any unit address previously
1420 specified by the devices name.
1421 (device_tree_add_parsed): When adding a reg property, verify
1422 that the unit-address - first value of property - correctly
1423 matches any previous value specified when creating the device
1426 Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1428 * mon.c (mon_event): Remove assertion that an unsigned is >= 0.
1430 Fri Aug 16 12:05:24 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1432 * device.c (device_full_name): Cast strdup to char *, since AIX
1433 3.2.5 mistakenly declares the function to be const char *.
1434 (device_create_from): Ditto.
1435 (device_create_instance_from): Ditto.
1436 (device_add_property): Ditto.
1438 Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1440 * debug.c (trace_option): For -t all, do not set the
1441 trace_dump_device_tree flag, so that the simulator is run.
1443 Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1445 * Makefile.in (options.o): Depend on defines.h.
1446 (defines.h): New rule, go through config.h and make strings of all
1447 of the #define HAVE_xxx macros.
1448 (distclean): Remove defines.h.
1450 * options.c (print_options): Print whether many of the
1451 configuration macros are defined.
1453 * main.c (main): If -t options and no filename, just print the
1454 options, and don't print the usage message.
1456 Mon Aug 12 18:42:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1458 * configure.in: Test whether /dev/zero works on the system, and if
1459 it does, define HAVE_DEVZERO.
1460 * configure: Regenerate.
1462 * emul_generic.c (emul_add_tree_hardware): Do not add /iobus/disk
1463 if we don't have a working /dev/zero on the system.
1465 * emul_bugapi.c (emul_bugapi_init): If HAVE_DEVZERO is not
1466 defined, don't add disk support.
1467 (emul_bugapi_do_diskio): Ditto.
1468 (emul_bugapi_instruction_call): Ditto.
1470 Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1472 * emul_unix.c (HAVE_TCGETATTR): If HAVE_TERMIOS_STRUCTURE is not
1473 defined, make sure HAVE_TCGETATTR is #undef'ed
1475 Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1477 * std-config.h (REGPARM): Only define REGPARM attributes if using
1478 GNU C. Test for __i686__ in case GCC ever defines it. If not on
1479 a x86 platform, define REGPARM as nothing.
1481 * sim-endian.h (WITH_HOST_BYTE_ORDER): Test for i686 and __i686__
1484 Wed Aug 7 20:19:55 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1486 * ld-decode.h, ld-decode.c: Rename goto_gen to the more correct
1488 * gen-idecode.c: Ditto.
1490 * gen-idecode.c (print_idecode_table): Comment out check for
1491 switch/table combination until a bug with it is fixed.
1493 * ppc-opcode-goto: New file. Like complex and flat but uses
1494 goto-switch instead of padded-switch for the tables.
1496 * gen-idecode.c (print_goto_switch_name): New function.
1497 (print_goto_switch_table_leaf): New function.
1498 (print_goto_switch_break): New function.
1499 (print_goto_switch_table): New function. Prints a jump table
1500 that can be jumped into instead of a switch statement.
1502 * gen-idecode.c (*switch_*): As an option output a switch that is
1503 implemented using a jump table but only if the switch is not
1506 Tue Aug 6 09:28:22 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1508 * configure.in (--enable-sim-{hardware,packages}): Fix typos.
1509 * configure: Regenerate.
1511 * device.c (device_instance_call_method): Fixup format message in
1512 error case. Return 0 in case of error to shut up compiler
1515 Wed Aug 7 00:17:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1517 * device_table.c (generic_device_unit_decode): Require a comma
1518 between elements of a unit address.
1520 * device.c (device_tree_print_device): For reg, alternate-reg and
1521 ranges properties use special print functions.
1522 (device_print_ranges_property): Print formatted ranges property.
1523 (device_print_reg_property): Print formatted reg property.
1525 Tue Aug 6 21:35:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1527 * device.c (device_tree_add_parsed): For reg, ranges and
1528 alternate-reg properties use a special parser.
1529 (device_tree_parse_reg_property): New function to parse a reg
1531 (device_tree_parse_ranges_property): New function to parse a
1533 (device_encode_unit): Wrapper for encode_unit callback.
1534 (device_decoce_unit): Wrapper for decode_unit callback.
1536 Wed Jul 31 00:02:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1538 * device_table.h (device_instance_callbacks): Relace the claim and
1539 release methods with a more general table mapping from method-name
1542 * device.c (device_instance_call_method): New function. Implement
1543 the OpenBoot call-method client interface. Attempts to locate the
1544 instances method in the callback table.
1545 (device_instance_claim, device_instance_release): Delete.
1546 Replaced with call-method and a lookup table.
1548 * emul_chirp.c (chirp_emul_call_method): Use the new device
1549 instance call method and let that handle a client claim call.
1551 * hw_htab.c (claim_memory): Wrapper function to call the memory
1552 devices "claim" method using the new device-instance call-method
1553 interface. Replaces the previous direct calls to claim.
1554 (htab_map_region): Use claim_memory.
1555 (htab_init_data_callback): Ditto.
1557 * hw_memory.c (hw_memory_instance_claim): Update function
1558 interface so that it is compatible with call-method.
1559 (hw_memory_instance_release): Ditto.
1560 (hw_memory_instance_methods): New table of memory specific
1561 methods claim and release. Add to the hw_memory_callback
1564 Tue Jul 30 21:26:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1566 * psim.c (psim_init): Back out of change to initial value of
1569 Tue Jul 30 21:12:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1571 * sim_callbacks.h (sim_io_printf_filtered): Replace
1572 printf_filtered with a local simulator specific version. Add
1573 #define printf_filtered to simplify updating of existing code.
1575 * sim_callbacks.h (sim_io_write_stdout, sim_io_read_stdin,
1576 sim_io_write_stderr): New functions. Read / write to the
1577 simulations stdin and stdout and stderr interfaces. Merge in code
1578 from hw_pal that previously handled async I/O.
1579 (sim_io_flush_stdoutput): Rename flush_stdoutput. Add #define
1580 flush_stdoutput to simplify updating of existing code.
1582 * hw_pal.c (scan_hw_pal, write_hw_pal,
1583 hw_pal_instance_write_callback): Use the new sim_io functions.
1585 * main.c: Implement standalone versions of the new sim_io
1586 functions. Include support for async I/O.
1587 * sim_calls.c: Ditto. This time using the gdb callback table.
1589 * std-config.h (CURRENT_STDIO, current_stdio): New macro. Set up
1590 stdio configuration so that it works in the same way as the rest
1592 * psim.c (psim_create): Initialize current_stdio from the device
1594 * emul_generic.c (emul_add_tree_options): Enter a default value
1595 for use-stdio in the device tree.
1597 Fri Jul 26 19:43:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1599 * gen-idecode.c (print_jump): Was always generating a jump back to
1600 idecode. Only necessary at tail of semantic code.
1601 (print_jump): Was always setting the processor's cia, even during
1602 startup when the processor was still undefined.
1603 (print_jump): For safety, restart smp loop when cpu_nr >= nr_cpus,
1606 * options.c (print_options): Add printing of WITH_REGPARM and
1609 * std-config.h (WITH_REGPARM, WITH_STDCALL): Provide default
1610 (disabled) values if not defined.
1612 Fri Jul 26 00:36:35 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1614 * ppc-cache-rules (cache): Change RS and RB to cache instead of
1615 compute. The block move instructions use them.
1617 * idecode_expression.h (FPSCR_SET): New macro, set specific FPSCR
1619 (CR_FIELD): New macro, extract specific CR register.
1620 (FPSCR_FIELD): New macro, extract specific FPSCR register.
1622 * registers.h (GPR): New macro, simplify accesses to GPR[i].
1624 * bits.c (INSERTED): Covert INSERTED macro into a function.
1625 (EXTRACTED): Conditionally compile on correct bit size macro.
1627 * bits.h (BIT8): New macro, set a single bit in an 8 bit byte.
1629 * ppc-instructions: With hints from Paul Martin, type in missing
1630 some instruction semantics. Leave disabled for the moment.
1631 (Load Multiple Word): Ditto.
1632 (Store Multiple Word): Ditto.
1633 (Load String Word Immediate): Ditto.
1634 (Load String Word Indexed): Ditto.
1635 (Store String Word Immedate): Ditto.
1636 (Store String Word Indexed): Ditto.
1637 (Move to Condition Register from XER): Ditto.
1638 (Move From Condition Register): Ditto.
1639 (Move From FPSCR): Ditto.
1640 (Move to Condition Register from FPSCR): Ditto.
1641 (Move To FPSCR Field Immediate): Ditto.
1642 (Move To FPSCR Fields): Ditto.
1643 (Move To FPSCR Bit 0): Ditto.
1644 (Move To FPSCR Bit 1): Ditto.
1646 Thu Jul 25 22:10:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1648 * std-config.h (SEMANTICS_INLINE): By default, mask out the
1649 inlining of semantic functions from DEFAULT_INLINE. Almost all
1650 configurations call the semantic code via a pointer so there is
1653 * std-config.h (ICACHE_INLINE): Ditto.
1655 Thu Jul 25 20:07:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1657 * configure.in (sim_regparm): Add configuration option for
1658 enabling GCC's regparm attribute.
1659 * (sim_stdcall): Add configuration option for enabling GCC's
1662 * Makefile.in (REGPARM_CFLAGS): Pass regparam configuration onto
1664 * (STDCALL_CFLAGS): Pass stdcall configuration onto compilations.
1666 * std-config.h (REGPARM): Extend construction of REGPARM macro so
1667 that it can include __stdcall__ function attribute.
1669 Wed Jul 24 19:04:20 1996 Andrew Cagney <cagney@sawnoff>
1671 * options.c (print_options): Include SUPPORT_INLINE in information
1674 * gen-idecode.c (print_run_until_stop_body): Only generate loop
1675 termination test if creating idecode_run_until_stop. Push the
1676 loop termination test back into each alternative branch.
1678 Wed Jul 24 15:47:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1680 * gen-icache.c (print_icache_function): Have the cache function
1681 always update the cache_entries semantic and address fields.
1683 * gen-idecode.c (print_idecode_switch_illegal): Include a break
1684 when generating illegal instructions. This was commented out
1685 which is a hangover from looking a at switch statements generated
1686 using indirect jumps.
1688 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1690 * igen.c (print_my_defines): Replaces print_define_my_index.
1691 Print both a definition for MY_INDEX and MY_PREFIX.
1692 * gen-icache.c (print_icache_function): Adjust.
1693 * gen-idecode.c (print_jump_insn): Adjust.
1694 * gen-semantics.c (print_c_semantic): Adjust.
1696 * gen-support.c (gen_support_h): Add optional include to created
1697 support.h so that, like cpu, it is optionally inlined for all
1698 modules that include it.
1699 * inline.h, inline.c: Adjust so that support.[hc] is handled the
1702 * idecode_fields.h (LABEL, GOTO): Macro's that create a unique
1703 name for a lable and then branch to it.
1705 * ppc-instructions (convert_to_integer, Floating Round to
1706 Single-Precision, Floating Convert from Integer Doubleword): Use
1707 LABEL and GOTO instead of the recently added switch statements.
1709 Wed Jul 24 14:02:42 1996 Andrew Cagney <cagney@sawnoff.highland.com.au>
1711 * gen-idecode.c (print_run_until_stop_body): Too many rparen in
1714 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1716 * configure.in (--enable-sim-line-nr): Typo - sim_line-nr.
1717 * (--enable-sim-inline): Reorder patern matching of arguments so
1718 that SUPPORT=ALL_INLINE is reconized as *=* and not *_INLINE.
1720 * configure: rebuild.
1722 Mon Jul 22 23:25:08 1996 Andrew Cagney <cagney@highland.com.au>
1724 * configure.in (--enable-sim-hardware, --enable-sim-packages): New
1725 configuration options. Let the user specify the packages or
1726 hardware devices that are to be included in the build. Makes it
1727 possible for user packages to be specified.
1729 * Makefile.in (tmp-pk, tmp-hw): Just use the list of packages and
1730 hardware instead of checking it using ls. configure.in should
1731 have taken care of any problems.
1732 (HW_SRC, HW_OBJ, PACKAGE_SRC, PACKAGE_OBJ): Set by configure.
1734 Mon Jul 22 22:38:59 1996 Andrew Cagney <cagney@highland.com.au>
1736 * psim.c (psim_options): Enter the argument to the memory size
1737 option directly into the device tree. Was using atol() which is
1738 dangerously non portable.
1740 Mon Jul 22 22:17:08 1996 Andrew Cagney <cagney@highland.com.au>
1742 * configure.in (icache): Extend icache flag to include an insn
1743 option. If specifyed the insn - aka instruction - is included in
1744 the instruction cache. Make this the default.
1745 * configure: re-generate.
1747 * igen.c (main), igen.h: Add option -S - inSn - for specifying
1748 that the instruction should be included in the icache.
1750 * gen-icache.c (print_icache_body): If enabled, output code to put
1751 the instruction into the icache.
1752 (print_icache_struct): If enabled, add insn to the icache struct.
1754 Mon Jul 22 20:46:12 1996 Andrew Cagney <cagney@highland.com.au>
1756 * Makefile.in (BUILD_CFLAGS): Include -g when building the
1759 Mon Jul 22 20:00:25 1996 Andrew Cagney <cagney@highland.com.au>
1761 * emul_generic.c (emul_add_tree_options): Was incorrectly setting
1762 the strict-alignment option when hardwired for non-strict
1765 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1767 * gen-semantics.c: Make the my_index variable a macro MY_INDEX.
1769 * ppc-instructions: Adjust so that references are to MY_INDEX and
1772 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1774 * gen-idecode.c: Output the complete run_until_stop function
1775 instead of just the code to handle a single instruction issue.
1776 * : Have the generated idecode.c include inline.c (instead of psim.c).
1778 * std-config.h: Change psim.c so that it isn't inlined (as this is
1781 * psim.c (run_until_stop): Delete the old run_until_stop function
1782 instead calling the idecode_run and idecode_run_until_stop
1783 functions that gen-idecode.c is now creating.
1785 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1787 * dgen.c: Maintenance - update to use new features found in lf.c.
1789 * filter_filename.c (filter_filename): Maintenance - make the
1792 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1794 * debug.c (TRACE, ITRACE, DTRACE): Have GCC instead of CPP
1795 eliminate trace statements.
1797 * debug.c: Change trace format so that it is consistent
1798 (file:line-nr) with CC's error output.
1800 * gen-itable.c (itable_c_insn): Add the source file name and
1801 source line number to the instruction's informational entry.
1803 * debug.c (ITRACE): Use the itable (and my_index) to get the
1804 current instructions name and source line number.
1806 * gen-semantics.c, gen-icache.c: Adjust generated ITRACE calls to
1807 match new interface.
1809 * emul_bugapi.c (emul_bugapi_instruction_call): Adjust
1810 corresponding call to ITRACE so that it still matches.
1812 * idecode_expression.h (ALU_END, CR0_COMPARE): Use TRACE instead
1813 of ITRACE. The CPP line directives would have previously set the
1814 line-nr and file name so ITRACE isn't needed.
1816 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1818 * gen-idecode.c (print_jump_until_stop_body): New function and
1819 idecode generation option. Instead of generating and calling
1820 separate functions containing the semantic and icache code
1821 generate a single monolythic function and use goto's (and GCC's
1822 indirect jump) to move between code blocks.
1824 * Makefile.in: Add sim_jump flag to those passed to igen.
1826 * configure.in: New option --enable-sim-jump (default disabled)
1828 * ppc-instructions: Eliminate any uses of labels and goto's.
1829 These result in duplicate declarations when a single flat function
1832 * ppc-opcode-jump: New file. Set of opcode rules useful when
1833 testing jumping idecodes.
1835 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1837 * gen-idecode.c: Optionally include the semantic code for an
1838 instruction in the function that is doing the decoding.
1840 * igen.c: Add option (-C) to generate semantics in the instruction
1843 * configure.in (--enable-sim-icache): Accept an option list such
1844 as 1024,define. Add a new choice to the list - semantic - which
1845 will cause igen to generate instruction decode functions that
1846 include the corresponding semantic code.
1848 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1850 * configure.in: New option --enable-sim-line-nr (default enabled).
1851 Enable/disable the inclusion of CPP line directives in the
1852 generated files. Such directives refer back to the source files
1853 used when generating the simulator code.
1855 * Makefile.in (sim_line_nr): Pass to igen.
1857 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1859 * igen.c (main): Revamp the options so that more letters are
1862 * configure.in: Adjust to match igen's revamped options
1864 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1866 * Makefile.in (pk.h, hw.h): Rewrite depenencies for hw.h (etc) so
1867 that they use the same technique as igen (ie a dummy targets
1868 tmp-pk and tmp-hw are created).
1870 Mon Jun 24 22:28:00 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1872 * Makefile.in (BUILD_CFLAGS): Include WARNING_CFLAGS.
1874 Wed Jun 19 21:45:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1876 * ld-cache.[hc], ld-decode.[hc], ld-insn.[hc]: New files. Separate
1877 out the loading of each of the tables from the rest of igen.
1878 * Makefile.in: Adjust.
1881 * gen-icache.[hc], gen-idecode.[hc], gen-itable.[hc],
1882 gen-model.[hc], gen-semantics.[hc]: New files. Separate out the
1883 code creating each separate set of generated files.
1884 * Makefile.in: Adjust.
1887 * gen-support.[ch]: New files. Output the support functions (found
1888 in the ppc-instructions file) into a separate file.
1890 * inline.h, inline.c: Add.
1891 * std-config.h: Add.
1893 * ld-cache.c: Re-design the cache table format.
1894 * ppc-cache-rules: Update to new format.
1896 * ld-decode.c: Re-design the decode table format.
1897 * ppc-opcode-simple: Update to new format
1898 * ppc-opcode-complex: Ditto
1899 * ppc-opcode-flat: Ditto
1901 * filter.h, filter.c: New files. Separate the opcode filter table
1902 reading code from the rest of igen.c. Re-design the filter so that
1903 it works inclusivly not exclusivly.
1904 * igen.c: Remove the opcode filter table loading code.
1905 * Makefile.in (filter.o): Adjust
1906 * configure.in: Adjust filter flag so that default includes 32bit
1908 * ppc-instructions: Clean up filter fields so that only in use
1909 entries are specifed (ie delete `be').
1911 * misc.c (name2i, i2name): New function. Map between a string and
1914 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1916 * sim_calls.c (sim_close): If simulator not created, skip printing
1919 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1921 * registers.c (register_description): Typo, insns not insn.
1923 * ppc-instructions (model_get_number_of_stalls): New model function,
1924 returns number of stalls for the specified processor.
1925 * psim.c (psim_read_register): Add call to new function
1926 model_get_number_of_stalls().
1928 * ppc-instructions (model_get_number_of_cycles): New model function,
1929 returns number of stalls for the specified processor.
1930 * psim.c (psim_read_register): Add call to new function
1931 model_get_number_of_cycles().
1933 Fri Jun 14 00:11:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1935 * device_table.h: Don't pass the parent device into a devices
1936 create function. This makes the create function consistent with
1938 * device.c (device_template_create_device): Ditto
1939 * hw_pal.c (hw_pal_create): Ditto
1940 * hw_core.c (hw_core_create): Ditto
1941 * hw_vm.c (hw_vm_create): Ditto
1942 * hw_disk.c (hw_disk_create): Ditto
1943 * hw_nvram.c (hw_nvram_create): Ditto
1944 * hw_memory.c (hw_memory_create): Ditto
1945 * hw_cpu.c (hw_cpu_create): Ditto.
1947 * device.c (split_find_device): Allow a null initial parent device.
1948 (device_template_create_device): Ditto.
1950 * device.c (device_create_from): Make local (static) only used
1952 * device_table.h: typedef device_callbacks moved here (from
1953 device.h) where it belongs.
1955 * hw_core.c: New file. Implements just the core device using the
1958 * corefile.c: Moved all core device functions into the new
1959 hw_core.c file. core_device_create() disapears.
1961 * psim.c (psim_tree): Use device_tree_add_parsed() to create the
1964 Thu Jun 13 00:09:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1966 * hw_init.c: Correct typo in comment.
1968 * corefile.c (core_init): Remove any remaining references to a
1970 (core_map_find_mapping): Ditto.
1972 Wed Jun 12 22:30:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1974 * corefile.c (core_init): Make function global so that other
1975 devices are able to use the full core object.
1977 * corefile.c (core_create, core_from_device): Break core_create
1978 into two functions. The first creates a core object, the second
1979 returns the core object associated with a core device.
1981 * corefile.c (core_device_create): Use core_create to make the
1984 * psim.c (psim_create): Use core_from_device() instead of
1987 * device.c (device_template_create_device): Make static as only
1988 needed by functions internal to device.c.
1990 Fri Jun 7 23:47:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1992 * ppc-opcode-test-2: Remove description of fields.
1993 * ppc-opcode-complex: Ditto
1994 * ppc-opcode-flat: Ditto
1995 * ppc-opcode-simple: Ditto
1996 * ppc-opcode-stupid: Ditto
1997 * ppc-opcode-test-1: Ditto
1998 * ppc-cache-rules: Ditto
2000 * igen.c: Add description of files as a comment at the front.
2002 Wed Jun 26 12:50:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2004 * configure.in: Check for whether the termios and termio
2005 structures are really defined, and whether or not, they define the
2007 * configure: Regenerate.
2009 * Makefile.in ({,TERMIO_}CFLAGS): Add TERMIO_CFLAGS options set by
2012 * emul_unix.c: Various changes to allow for building on systems
2013 with different termio and termios structures. If host has both
2014 termio and termios, just use termios. No longer include
2017 Wed Jun 26 12:26:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
2019 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
2020 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
2022 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
2023 (AC_PROG_INSTALL): Added.
2024 * configure: Rebuilt.
2026 Wed Jun 5 23:53:42 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2028 * corefile.h: Rewrite documentation so that it can be extracted and
2029 converted into texinfo (and hence ready for translation into html,
2033 Thu Jun 6 09:52:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2035 * hw_disk.c (SEEK_SET): If SEEK_SET is not defined, define as 0.
2037 Wed Jun 5 11:46:52 1996 Andrew Cagney <cagney@puddin>
2039 * hw_disk.c: Include <unistd.h> if available. Under SunOS, that
2040 is the source of SEEK_SET.
2042 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2044 * psim.c (psim_options): Correct type of dummy arguments being
2045 passed to a device_ioctl call.
2047 * hw_init.c (hw_data_init_data_callback): Adjust printf arguments.
2048 (write_stack_arguments): Ditto.
2049 * hw_trace.c: Instance callback entry no longer a table.
2051 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2053 * emul_unix.c (do_unix_umask): Cast printf argument.
2054 (convert_to_linux_termios): Use LINUX_VSWTC not LINUX_VSWCH
2056 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2058 * hw_init.c (update_for_binary_section): Abort if we find an
2059 .interp section, which indicates the need for shared libraries to
2062 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2064 * emul_unix.c (do_unix_{time,gettimeofday,getrusage}): Add support
2065 for time, gettimeofday, and getrusage system calls.
2066 ({solaris,linux}_descriptors): Add new system calls.
2067 (do_get{,e}{uid,gid}): Use gid_t/uid_t types.
2068 (do_get{,p}pid): Use pic_t types.
2070 * configure.in (AC_TYPE_{GETGROUPS,SIGNAL}): Define.
2071 (AC_TYPE_{MODE,OFF,PID,SIZE,UID}_T): Define.
2072 * config{.in,ure}: Regenerate.
2074 Mon Jun 3 23:19:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2076 * emul_netbsd.c (emul_netbsd_create): Use the more specific names
2077 `ppc-elf' and `ppc-xcoff' for the stack-type.
2078 * emul_unix.c (emul_unix_create): Ditto.
2079 * emul_bugapi.c (emul_bugapi_create): Ditto.
2080 * hw_init.c: Reconize the new names.
2082 * emul_unix.c (do_unix_break): Adjust so that the updated ioctl
2083 call is used (no system parameter).
2085 Sun Jun 2 11:21:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2087 * emul_unix.{h,c}: New files to provide Solaris and Linux system
2090 * Makefile.in (LIB_{SRC,OBJ}): Add emul_unix.{c,o}.
2091 (os_emul.o): Depend on emul_unix.h.
2092 (emul_unix.o): New dependency.
2094 * configure.in (--enable-sim-alignment): Add 0|default to mean set
2095 alignment to 0, which means use appropriate alignment for mode.
2096 (AC_CHECK_FUNCS): Add new functions needed by emul_unix.c.
2097 (AC_CHECK_HEADERS): Add new include files needed by emul_unix.c.
2098 * config.in: Regenerate.
2099 * configure: Regenerate.
2101 * emul_generic.c (emul_write2_status): New function to return
2102 results in r3 and r4 for Solaris system calls.
2103 (emul_do_system_call): If the system call is not support, but
2104 there is a string for the system call name, print out the string
2105 instead of the system call number.
2107 * emul_generic.h (emul_write2_status): Declare it.
2109 * emul_netbsd.c: Use /* */ around comment on #endif.
2111 * os_emul.c: Include emul_unix.h.
2112 (os_emulations): Add emulations for Solaris, and Linux.
2114 * psim.c (psim_usage): Add message about solaris, linux
2117 Thu May 30 00:00:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2119 * hw_iobus.c: Tidy up notes so that they can be auto-extracted.
2121 * README: Correct PSIM's title
2123 Wed May 29 23:50:26 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2125 * basics.h: New global type object_disposition, used to indicate
2126 the status of objects when things are restarted.
2128 Fri May 17 17:28:52 1996 Andrew Cagney <cagney@benjimen.highland.com.au>
2130 * device_table.h: Change the interrupt descriptor structure so
2131 that it includes an additional member - an upper bound on the
2132 interrupts by that name.
2134 * device.c (device_interrupt_decode): Allow a range of interrupt
2135 ports (eg rst0 .. rst6) if the port descriptors bound is non zero.
2137 * device.c (device_tree_print_device): Include a list of valid
2138 interrupt ports when listing supported devices.
2140 * device.h, device.c (device_child_interrupt_*): Delete. Not used.
2142 * emul_generic.c (emul_add_tree_hardware): Modify the creation of
2143 the interrupt net so that it uses int0 .. intN.
2145 Tue May 14 23:03:53 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2147 * device.h, device.c (device_ioctl): Drop the system argument.
2148 Devices can not obtain this using the device_system() call.
2149 * device_table.h: Adjust accordingly.
2150 * hw_*.c: Adjust accordingly.
2151 * emul_netbsd.c (do_break): Adjust call to vm device accordingly.
2152 * psim.c (psim_options): Use a device_ioctl call to force the
2153 hw_trace device to update the trace options.
2154 * hw_trace.c: Replace the init function with an ioctl call. Adjust
2157 * psim.c (psim_init): Re-order initialization so that the
2158 os-emulation is initialized after the device tree. Without this,
2159 os-emul's are not able to create instances or access properties
2160 that contain an instance handle.
2162 * device.h, device.c (device_add_*_property): Make these functions
2163 internal to device.c. The user has access to the more generic
2164 device_tree_add_parsed function. Differentiate between the initial
2165 and current value for each property.
2166 * (clean_device_properties): New function that deletes any
2167 properties created after the start of a simulation and restores
2168 the initial value of any others (ignoring ihandles).
2169 * (init_device_properties): (Re)Initialize any properties that
2170 contain ihandles. create
2172 * (device_tree_init): Include calls to clean the device tree's
2173 properties and then initialize them. Document this in the device.h
2176 Mon May 6 17:36:15 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2178 * interrupts.c (decrementer_interrupt): Always pend a decrementer
2179 interrupt even if it is not yet possible to deliver it.
2181 Wed May 1 12:26:51 1996 Andrew Cagney <cagney@benjimen>
2183 * mon.h, mon.c (mon_get_number_of_insns): Make this externally
2184 visable adjusting the arguments so that the interface is correct.
2185 (mon_print_info): Adjust calls.
2187 * registers.h, registers.c (register_description): Add phony
2188 cycle, insn and stall registers.
2190 * psim.c (psim_read_register): Return nr of instructions for given
2193 Tue Apr 30 22:09:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2195 * hw_htab.c: New file. Extract contents from disk_table.c.
2196 Contains a device that, during initialization will create a
2197 PowerPC htab in memory.
2198 * hw_register.c: New file. Extract contents from disk_table.c.
2199 Contains a device that, during initialization, will parse its
2200 property list and use that to initialize various processor
2201 registers (not target specific).
2202 * hw_vm.c: New file. Extract contents from disk_table.c. Contains
2203 a device that handles accesses to invalid virtual memory addresses
2205 * hw_init.c: New file. Extract contents from disk_table.c. Misc
2206 devices that can initialize memory from a file.
2207 * hw_trace.c: New file. Extract contents from disk_table.c.
2208 Configure trace options from property values.
2210 * Makefile.in (hw_htab.o, hw_register.o, hw_vm.o, hw_init.o,
2211 hw_trace.c): Add new device files.
2213 * device_table.c: Remove above code, now in separate independant
2216 Fri Apr 26 00:00:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2218 * hw_disk.c: New file. Disk and CDROM device.
2220 * Makefile.in (hw_disk.o): Add device hw_disk.c.
2222 * pk_disklabel.c: New file. Implement the miss-named disk-label
2225 * Makefile.in (pk.h): Create the file pk.h that contains a list of all
2228 * Makefile.in (hw.h, hw.c): Add dependancy on Makefile so that
2229 they are re-created when the makefile is updated.
2231 * emul_generic.c (emul_add_tree_hardware): Add a disk device
2232 (below the iobus) to the device tree. Include an ihandle of
2233 the disk as /chosen/disk.
2235 * emul_bugapi.c (emul_bugapi_create): Don't initialize the input,
2236 output and (new) disk handles yet.
2237 * (emul_bugapi_init): Initialize the input, output (and just added)
2239 * (emul_bugapi_do_diskio): New. Performs disk i/o (well at least
2240 what I think the behavour is).
2241 * emul_bugapi.c (emul_bugapi_instruction_call): Add hook to disk
2242 i/o bug call. For RETURN call, exit using gpr[3]'s status even
2243 though this isn't part of the spec - makes it possible for machine
2244 code to signal the aporting of a simulation run.
2246 * emul_chirp.c (chirp_emul_call_method): Add support for the
2247 claim/release methods.
2248 * (chirp_emul_exit): Add an optional exit status argument to
2249 the exit method. Makes it possible for chirp emul simulations
2250 to abort upon an error.
2251 * device.h, device.c (device_instance_claim,
2252 device_instance_release): New methods for claiming and releasing
2254 * hw_memory.c: add claim and release memory methods.
2255 * hw_*: Use the claim memory method when allocating physical
2258 Thu Apr 18 23:38:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2260 * hw_nvram.c (hw_nvram_update_clock): Use the current not previous
2261 time when updating the clock.
2263 * hw_nvram.c: Tidy up documentation
2265 Fri May 24 10:08:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2267 * configure.in (AC_STRUCT_ST_{BLKSIZE,BLOCKS,RDEV}): Use these
2268 macros to determine whether or not the appropriate st_<xxx> fields
2269 exist in the stat structure.
2270 (AC_CHECK_FUNCS): Check for all unix system calls used, except for
2271 the real basic ones like open, read, write, etc.
2272 * config{.in,ure}: Regenerate.
2274 * emul_netbsd.c: Add support for missing system calls, and/or
2275 missing stat fields.
2276 (MAXPATHLEN): Undefine if including unistd.h, since sys/param.h
2279 * hw_pal.c (WITH_STDIO): Redefine if O_NDELAY, F_GETFL, or F_SETFL
2281 (scan_hw_pal): Do not cause syntax error if O_NDELAY, F_GETFL, or
2282 F_SETFL not defined.
2284 Tue May 21 17:24:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2286 * emul_netbsd.c (write_stat): Don't convert st_blocks unless the
2289 Thu May 16 10:56:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2291 * configure.in (AC_CHECK_HEADERS): Add sys/ioctl.h.
2292 * config{.in,ure}: Regenerate.
2293 * emul_netbsd.c: If HAVE_SYS_IOCTL_H is not defined, don't include
2296 Tue May 7 17:28:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2298 * hw_pal.c (hw_pal_instance_read_callback): Remove unused
2301 * misc.c ({,target_}a2i): Rewrite to not use strtoul.
2303 * Makefile.in ({spreg,misc}.o): Add dependency on .c file.
2304 ({i,d}gen): Don't link in liberity. Use BUILD_LIBS instead of
2307 Mon May 6 11:31:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2309 * hw_pal.c (hw_pal_instance_read_callback): If using stdio, use
2310 fgets to read line. If not using stdio, do a simple blocking read
2313 Fri May 3 15:07:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2315 * Makefile.in: Correctly build simulator for build machine != host
2318 Tue Apr 30 18:46:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2320 * configure.in (--enable-hostendian): Rework so the default uses
2321 the AC_C_BIGENDIAN results. Only run AC_C_BIGENDIAN if not cross
2323 * configure: Regenerate.
2325 * sim-endian.h: Add more tests for host endian to support more
2326 platforms in a cross compilation environment.
2328 Wed Apr 17 14:38:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2330 * hw_pal.c ({scan,write}_hw_pal): If WITH_STDIO == DO_USE_STDIO,
2331 use stdio, instead of unpended read/printf_filtered.
2332 (hw_pal_instance_write_callback): If WITH_STDIO == DO_USE_STDIO,
2333 flush stdout after writing the characters.
2335 * options.c (print_options): Print out WITH_STDIO.
2337 * Makefile.in (STDIO_CFLAGS): Pass on result of @sim_stdio@
2338 configuration variable.
2339 (CONFIG_CFLAGS): Include STDIO_CFLAGS.
2340 (hw.{c,h}): Allow for source dir != build dir, and for HW_SRC
2341 files to contain directory pieces.
2343 * std-config.h (DO{,NT}_USE_STDIO): New flags for whether we
2344 should use stdio for console input.
2345 (WITH_STDIO): If not defined, define as DONT_USE_STDIO.
2347 * configure.in (--enable-sim-stdio): Add new switch to control
2348 whether stdio is used for console I/O.
2349 * configure: Regenerate.
2351 * interrupts.c (external_interrupt): Declare it to be
2352 INLINE_INTERRUPTS, not INLINE_CPU.
2354 Mon Apr 15 23:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2356 * events.c (insert_event_entry): Allow events to be scheduled
2357 *NOW* (at delta time 0). Add assertions to clarify behavour of
2360 * events.c (update_time_from_event): New function. Calculates the
2361 number of ticks from the next event. Use this.
2363 Sun Apr 14 21:39:45 1996 Andrew Cagney <cagney@highland.com.au>
2365 * emul_netbsd.c (do_break): Return 0 if success (instead of
2368 * device_table.c (vm_ioctl_callback): Don't return adjusted break
2371 Sun Apr 14 21:32:41 1996 Andrew Cagney <cagney@highland.com.au>
2373 * device_table.h: Change type of the device ioctl so that it
2374 returns an int (status).
2375 * device.h (device_ioctl): Ditto.
2376 * device.c (device_ioctl): Ditto.
2378 * device_table.c (stack_ioctl_callback): Return 0 status.
2379 (vm_ioctl_callback): Ditto
2381 Sat Apr 13 00:00:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2383 * emul_netbsd.c (do_read): Correctly set the return value.
2386 (do_geteuid): Ditto.
2388 (do_getegid): Ditto.
2390 (do_sigprocmask): Ditto.
2393 (do_gettimeofday): Ditto.
2394 (do_getrusage): Ditto.
2398 (do___sysctl): Ditto.
2400 Fri Apr 12 20:56:47 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2402 * device_table.c (vm_ioctl_callback): Don't access the processor
2403 registers directly, instead leave it to the caller to handle this.
2405 * emul_netbsd.c (do_break): Which calls vm_ioctl_callback to
2406 perform a break. Pass in the new break value and set the
2407 registers according to the result.
2409 * emul_generic.c (emul_write_status): Change so that r3 contains
2410 either status or errno and failure is indicated by SO.
2412 Thu Apr 4 23:03:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2414 * emul_bugapi.c (emul_bugapi_create): More strict check of OEA
2417 Thu Apr 4 20:58:05 1996 Andrew Cagney <cagney@highland.com.au>
2419 * interrupts.h (interrupts): New structure contains state of
2422 * cpu.c (cpu_interrupts): New function. Pending interrupt status
2423 in the cpu and grant access to it. Add interrupts to cpu
2426 Fri Mar 29 22:09:25 1996 Andrew Cagney <cagney@highland.com.au>
2428 * device.c (device_tree_add_parsed): Check that the creation of a
2429 device instance worked before using it.
2431 * psim.c (psim_halt): Remove cia argument from psim_halt. This
2432 function does not save the CIA so do not pass it in.
2434 Fri Mar 29 21:30:56 1996 Andrew Cagney <cagney@highland.com.au>
2436 * hw_pal.c (hw_pal): Merge the halt and icu and console devices
2437 found in device_table.c into a single hack pal.
2439 * device_table.c (halt, icu, console): Delete.
2441 * Makefile.in (hw_pal.o): New dependency.
2443 * emul_generic.c (emul_add_tree_hardware): Re-arange device tree
2444 so that it uses the pal instead of the icu/halt/console devices.
2445 Wire the pal's interrupt ports up to the cpu nodes.
2447 Fri Mar 29 20:17:17 1996 Andrew Cagney <cagney@highland.com.au>
2449 * hw_iobus.c (hw_iobus_attach_address_callback): Move from
2450 device_table.c to here.
2452 * Makefile.in (hw_iobus.o): New dependency.
2454 Fri Mar 29 12:17:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2456 * emul_bugapi.c (_os_emul_data): Add fields for output, input.
2457 (emul_bugapi_create): Create input, output from /chosen/stdin and
2459 (emul_bugapi_do_{read,write}): Switch to use device_instance
2461 (emul_bugapi_instruction_call): Change calls to
2462 emul_bugapi_do_{read,write} to pass device instance argument.
2464 Tue Mar 26 14:57:58 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2466 * igen.c (idecode_switch_end): Fix 2/26 change so that an extra
2467 default is not written out if a default was already written.
2469 * psim.c (psim_{read,write}_register): Use sizeof unsigned_8 to
2470 size cooked_buf, not sizeof natural_word, since floating point
2471 registers are 8 bytes.
2473 Mon Mar 25 22:07:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2475 * configure: Regenerate with autoconf 2.9.
2477 Thu Mar 21 00:14:26 1996 Andrew Cagney <cagney@highland.com.au>
2479 * device_table.h: Always include string headers.
2481 Thu Mar 21 00:06:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2483 * main.c (error): Be careful to not try to print out statistics
2484 when the simulation was never created.
2486 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
2488 * basics.h: Move the event queue's definition to here so that it
2489 can be refered to globally with out importing all of events.h.
2491 * psim.h, psim.c (psim_event_queue): New function. Grant access
2492 to the simulation event queue. Will make this the single point of
2493 access (there is after all only one event queue in the
2496 * cpu.c (cpu_create): Use psim_event_queue to obtain the event
2497 queue instead of it being passed in. No longer allow access to
2498 the cpu's copy of the event queue.
2500 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
2502 * events.h, events.c (event_handler): Remove event_queue from
2503 arguments passed to an event handler. That argument is redundant
2504 - the `data' should refer to a data structure that contains the
2505 event queue if queing is needed.
2507 * cpu.c (cpu_decrement_event): adjust
2509 * events.c (event_queue_process): adjust
2511 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
2513 * device.h, device.c (device_system): New, returns a handle for
2514 the system given the device.
2516 * device.c (device_address_init): Store a pointer back to the
2517 system in each devices node.
2519 * device_table.h: Don't pass `system' into each device when it is
2520 being initialized, this is now available using device_system(me).
2522 * device.c (device_address_init, device_data_init): Adjust.
2524 * hw_cpu.c, hw_nvram.c, hw_memory.c, hw_eeprom.c, device_table.c:
2527 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
2529 * interrupts.c (decrementer_interrupt, external_interrupt):
2530 Remember that an interrupt wasn't delivered so that it can be
2533 * interrupts.c (check_masked_interrupt): New function. (re)
2534 checks for the posibility that a recent change to the MSR may have
2535 made it possible to deliver an interrupt that was previously
2536 masked be the EE bit.
2538 * ppc-instructions (mtmsr, mfmsr, rfi): Check for posibility of
2539 a pending interrupt being delivered using check_masked_interrupt().
2541 * cpu.c (cpu_decrement_event): Just call decrementer_interrupt()
2542 leaving it to that module to handle both interrupt synchronization
2545 * cpu.c (struct _cpu): remove variables that were going to record
2546 pending decrementer and external interrupts.
2548 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
2550 * hw_cpu.c, hw_cpu.h: New files. Implement a device that sits
2551 between the interrupt controller and the simulators internal
2552 processor model. Maps device interrupts onto the processor
2553 interrupt function calls.
2555 Mon Mar 4 06:06:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2557 * hw_nvram.c: NVRAM device that includes a real-time clock that is
2558 updated each second.
2560 Mon Mar 4 04:18:50 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2562 * device.h (attach_type): Remove attach_default type address
2563 spaces. Will replace with levels of callback memory.
2565 * corefile.h, corefile.c (new_core_mapping), corefile.c
2566 (core_map_attach): Replace default attach with a layerd callback
2569 Sun Mar 3 03:58:46 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2571 * device.c (split_property_specifier): ensure that only a single
2573 (split_value): New function, parses the value part of a device
2576 * device.c (device_tree_add_parsed): Use the interrupt conversion
2577 functions to determine the interrupt port numbers.
2579 * device_table.h: Add table that maps between an interrupts
2580 symbolic name and its port number.
2582 * device.h, device.c (device_interrupt_decode,
2583 device_interrupt_encode): new functions use the recently added
2584 interrupt port name/number tables to perform conversion.
2586 Sun Mar 3 03:23:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2588 * device.h, device.c (device_set_array_property,
2589 device_set_boolean_property, device_set_ihandle_property,
2590 device_set_integer_property, device_set_string_property): New
2591 functions - allow the value of a given property to be changed.
2593 * device.h, device.c: Re-order declaration and definition of
2596 Sun Mar 3 03:10:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2598 * device.c (device_tree_print_device, device_tree_add_parsed):
2599 Remove references to phandle properties.
2601 Wed Feb 28 00:43:07 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
2603 * Makefile.in (corefile.o): missing dependency on device_table.h
2606 Tue Feb 27 23:59:35 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
2608 * device_table.h: Revamp device init callbacks so that they are a
2610 * device.c (device_init_data, device_init_address): If an init
2611 callback is NULL assume it should do nothing.
2612 * device_table.c (ignore_device_init, unimp_device_init): delete
2614 * device_table.c, hw_memory.c: adjust.
2618 * (device_instance): ditto.
2620 * (address nee config_address): ditto.
2621 * (interrupt): ditto.
2623 Mon Feb 26 21:11:20 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
2625 * igen.c (idecode_switch_end): Output a default entry when the
2626 switch statement is perfect. Firstly stops GCC complaining about
2627 an incomplete switch and secondly it will be eliminated by a good
2630 Mon Feb 26 22:47:15 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
2632 * Makefile.in (hw.h, hw.c): New targets. Create from the list of
2633 hw_*.c files. hw.h declares a device descriptor table for each hw
2634 device while hw.c lists those tables in a form suitable for the
2635 construction of a top leveltable in device_table.c.
2637 * Makefile.in (device_table.o): now depends on hw.c a generated
2640 * device_table.c (device_table): Re-arange the table of devices so
2641 that two levels are possible. Make use of hw.c.
2642 * device_table.h: ditto.
2644 * device.c (device_template_create_device): Handle new two level
2645 device lookup table.
2646 * device.c (device_usage): ditto.
2648 Mon Feb 26 22:24:00 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
2650 * device_table.c: Delete the memory device (moved to hw_memory.c).
2652 * hw_memory.c: New file. Just an OpenBoot memory device.
2654 Wed Jan 17 21:47:34 1996 Andrew Cagney <cagney@highland.com.au>
2656 * device.c (device_init_address): New. Split initialization into
2657 two stages, address and address spaces
2658 * device.c (device_init_data): New. ... and data or other work.
2659 With out this, devices try to modify memory before it as been
2662 * device.c (device_tree_init): Update to perform staged
2665 * device.c (device_init): Delete.
2667 Wed Jan 17 21:43:09 1996 Andrew Cagney <cagney@highland.com.au>
2669 * device_table.c (data_*): Rewrite to make heaver use of property
2670 nodes. Allow initialization by different data types.
2671 * device_table.c (htab_* pte_*): Rewrite to use properties.
2673 * emul_chirp.c (emul_chirp_create): Use
2674 * emul_bugapi.c (emul_bugapi_create): Ditto
2675 * emul_netbsd.c (emul_netbsd_create): Ditto
2677 Wed Jan 17 21:24:50 1996 Andrew Cagney <cagney@highland.com.au>
2679 * emul_generic.c (emul_add_tree_options): Annotate existing tree
2680 with options that haven't yet been specified.
2681 * emul_generic.c (emul_add_tree_hardware): Annotate existing tree
2682 with demo devices and properties.
2684 * emul_chirp.c (emul_chirp_create): Update to use new
2685 device_tree_add_parsed call and additional information now
2686 included in the device tree. Use emul_add_tree* functions to add
2687 any missing details.
2688 * emul_bugapi.c (emul_bugapi_create): Ditto
2689 * emul_netbsd.c (emul_netbsd_create): Ditto
2691 Wed Jan 17 21:18:27 1996 Andrew Cagney <cagney@highland.com.au>
2693 * device.c (device_instance_create): New. Create/delete and
2694 operate on instances of a device.
2695 * device.c (device_instance_delete): Ditto
2696 * device.c (device_instance_read): Ditto
2697 * device.c (device_instance_write): Ditto
2698 * device.c (device_instance_seek): Ditto
2699 * device.c (device_instance_data): Ditto
2700 * device.c (device_instance_name): Ditto
2701 * device.c (device_instance_path): Ditto
2703 * emul_chirp.c (chirp_emul_open): Implement using device_instance.
2704 * emul_chirp.c (chirp_emul_close): Ditto
2705 * emul_chirp.c (chirp_emul_read): Ditto
2706 * emul_chirp.c (chirp_emul_write): Ditto
2707 * emul_chirp.c (chirp_emul_seek): Ditto
2709 * emul_chirp.c (chirp_read_t2h_args): Read arguments from device.
2710 Being careful to convert all from target to host byte order.
2711 * emul_chirp.c (chirp_write_h2t_args): Converse.
2713 Wed Jan 17 20:07:15 1996 Andrew Cagney <cagney@highland.com.au>
2715 * device.c (device_tree_add_parsed): New. Rewrite code to add
2716 devices to the device tree so that a single printf style function
2719 * device.c (device_tree_add_*): Delete. Replaced by above.
2721 * device.c (split_device_specifier): Functions to manipulate a
2722 device specifier (path) breaking it into its components
2723 * device.c (split_property_specifier): Ditto
2724 * device.c (split_device_name): Ditto
2725 * device.c (split_find_device): Ditto
2727 * device.c (scan_*): Delete
2729 * device.c (device_tree_find_device): Rewrite to use above.
2730 * device.c (device_add_property): Ditto
2732 Wed Jan 17 19:51:56 1996 Andrew Cagney <cagney@highland.com.au>
2734 * psim.c(psim_options): Parse the psim options, installing their
2735 value in the device tree. Options are now first entered into a
2736 device tree and then extracted out again when needed. This allows
2737 greater flexability in configuration.
2739 * psim.c (psim_tree): Returns a basic device tree ready for
2740 parsing by psim_options.
2741 * psim.c (psim_usage): New. Give usage to varing levels of detail
2742 according to the verbosity. In turn output device and trace
2745 * main.c (main): Update to use new system
2746 * sim_calls.c (sim_open, sim_do_command): Ditto
2748 * psim.c (psim_options): Add `r' option - ram size.
2749 * psim.c (psim_options): Add `o' option - openboot tree entry.
2750 * psim.c (psim_options): Add `h'/`H' options - more help.
2752 * debug.c (trace_usage): Add more detailed help.
2753 * device.c (device_usage): New. Output help including a list of
2754 the devices currently available in the device table.
2755 * device_table.c: Add usage operator to each device.
2757 * corefile.c (core_create, core_device_create): Adjust so that the
2758 core device is created earlier for psim_tree(). Core can later be
2761 * psim.c (psim_create): Update to handle above way of creating
2762 things. Extract all information from the device tree.
2764 * device_tree.c (trace_*): New device node, its properties are
2765 used to set the value of the trace options. Init this device (in
2766 psim_options) when ever the options are updated.
2768 Wed Jan 17 19:46:07 1996 Andrew Cagney <cagney@highland.com.au>
2770 * debug.h: Add trace_print_info, trace_print_device_tree and
2771 trace_dump_device_tree. The first is a replacement for the
2772 variable `print_info' found in main.c and sim_calls.c. The latter
2773 two enable the dumping of the entire device tree.
2775 * debug.c: Add to trace_description table.
2777 * main.c (main): Use above trace instead of local variable
2778 * sim_calls.c (sim_close): Ditto
2780 * device.c (device_tree_print_device): New. Prints the device
2781 tree in a format that is consistent with what can be parsed by the
2782 device tree load from file code.
2784 * psim.c (psim_create): Dump device tree if enabled. If nump
2785 selected, exit psim immediatly.
2787 Wed Jan 17 19:36:52 1996 Andrew Cagney <cagney@highland.com.au>
2789 * corefile-n.h (core_map_read_N): When mapping from an address to
2790 a device, do not subtract the devices base. The device its self
2791 can do this. Brings the behavour into line with OpenBoot.
2792 * corefile-n.h (core_map_write_N): Ditto
2793 * corefile.c (core_map_read_buffer): Ditto
2794 * corefile.c (core_map_write_buffer): Ditto
2796 * device_table.c (console_io_read_buffer_callback): Adjust to
2797 handle biased address.
2798 * device_table.c (console_io_write_buffer_callback): Ditto
2800 Wed Jan 17 18:36:09 1996 Andrew Cagney <cagney@highland.com.au>
2802 * device.c (attach_device_interrupt_edge): New. Interrupt model
2803 did not allow interrupts to be wired up as a general net (edges).
2804 Re-implement so that interrupt events can be passed to multiple
2805 controllers and interrupt controllers can further propogate
2808 * device.c (attach_device_interrupt_edge) : New, Ditto
2809 * device.c (detach_device_interrupt_edge) : New, Ditto
2810 * device.c (clean_device_interrupt_edges) : New, Ditto
2811 * device.c (device_interrupt_event) : New, Ditto
2812 * device.c (device_interrupt_attach) : New, Ditto
2813 * device.c (device_interrupt_detach) : New, Ditto
2814 * device.c (device_child_interrupt_attach) : New, Ditto
2815 * device.c (device_child_interrupt_detach) : New, Ditto
2817 * device.c (device_attach_interrupt) : Delete old
2818 * device.c (device_detach_interrupt) : Delete old
2819 * device.c (device_interrupt) : Delete old
2820 * device.c (device_interrupt_ack) : Delete old
2822 * device_table.c (unimp_*) : Update to match
2824 * device_table.c (icu_io_write_buffer_callback) : Update to use
2826 * device_table.c (icu_interrupt_event_callback) : Ditto
2828 Wed Jan 17 18:18:40 1996 Andrew Cagney <cagney@highland.com.au>
2830 * device.c (external_to_device) : New function that provides a
2831 standard mapping between a devices internal representation (a
2832 pointer) and its external (or what is passed to a client)
2833 representation (a phandle). Implement using the cap object
2834 attached to the root node.
2836 * device.c (device_to_external) : Ditto
2837 * device.c (external_to_device_instance) : Ditto but for ihandle
2838 and device instance.
2839 * device.c (device_instance_to_external) : Ditto
2841 * Makefile (device.o): Add dependency on cap.
2843 * emul_chirp.c (struct _emul_chirp_data) : Elimate use of cap. Code
2844 needing to translate between internal and external representations
2845 changed to use the external_to_device et.al. device operations.
2846 * emul_chirp.c (chirp_emul_*) : Ditto
2848 * Makefile (emul_chirp.o): Remove dependency on cap
2850 Sat Jan 6 10:13:26 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
2852 * emul_chirp.c (map_over_chirp_note): Tighten up (and fix) checks
2853 on OpenBoot note section.
2855 Fri Jan 5 20:28:53 1996 Andrew Cagney <cagney@hignland.com.au>
2857 * emul_generic.c (emul_write_buffer): Use vm faulting byte
2858 read/write calls for buffer transfers. This will cause a fault to
2859 occure if the transfer fails. CHRP catches the fault while the
2860 others suffer the consequences.
2861 (emul_read_buffer): Ditto.
2862 (emul_write_word): Ditto.
2863 (emul_read_word): Ditto.
2864 (emul_read_string): Ditto.
2866 Fri Jan 5 18:55:34 1996 Andrew Cagney <cagney@highland.com.au>
2868 * emul_chirp.c (emul_chirp_create, emul_chirp_instruction_call),
2869 emul_generic (emul_blr_instruction): Use a real blr instruction to
2870 return from a client service call.
2872 * emul_chirp.c (services): Add all OpenBoot services to table.
2874 * emul_generic.h, emul_bugapi.c (emul_bugapi_create), emul_chirp.c
2875 (emul_chirp_create) : Use names instead of numbers for
2876 instructions being stored in memory.
2878 Fri Jan 5 18:52:28 1996 Andrew Cagney <cagney@highland.com.au>
2880 * Makefile.in (maintainer-clean): Remove .log, core and *.core
2881 (From NetBSD) files.
2883 Wed May 29 22:57:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2885 * ChangeLog.00, ChangeLog: ChangeLog from gdb-4.16 becomes