1 2004-08-04 Andrew Cagney <cagney@gnu.org>
2 Jim Blandy <jimb@redhat.com>
4 * sim_callbacks.h (simulator): Declare.
5 * Makefile.in (gdb-sim.o): New rule.
6 (MAIN_SRC, GDB_OBJ): Add gdb-sim.o, gdb-sim.c.
8 (GDB_SIM_PPC_H): Define.
10 * sim_calls.c: Do not include "defs.h".
11 (simulator): Drop static.
12 (sim_store_register, sim_fetch_register): Delete.
14 2004-08-04 Andrew Cagney <cagney@gnu.org>
16 * Back out accidently committed change.
18 2004-08-04 Jim Blandy <jimb@redhat.com>
20 Use a fixed register numbering when communicating with the PowerPC
22 * sim_calls.c: #include "registers.h" and "gdb/sim-ppc.h"; do not
23 include GDB's "defs.h".
24 (gdb_register_name_table): New variable.
25 (gdb_register_name_table_size): New enum constant.
26 (gdb_register_name): New function.
27 (sim_fetch_register, sim_store_register): Use gdb_register_name,
28 instead of calling gdbarch_register_name.
29 * Makefile.in (GDB_SIM_PPC_H): New variable.
30 (DEFS_H): Delete variable.
31 (sim_calls.o): Update dependencies.
33 2004-07-26 Andrew Cagney <cagney@gnu.org>
35 Problem from Olaf Hering <olh@suse.de>.
36 * Makefile.in (install, installdirs): Add DESTDIR.
38 2004-07-10 Ben Elliston <bje@au.ibm.com>
40 * tree.c (parse_integer_property): Comment typo fix.
42 2004-07-06 Jim Blandy <jimb@redhat.com>
44 * Makefile.in: Update all dependency information.
45 (BASICS_H, CPU_H, IDECODE_H, PSIM_H, REGISTERS_H, DEVICE_TABLE_H)
46 (EMUL_GENERIC_H): Values updated.
47 (ACCONFIG_H, ALTIVEC_EXPRESSION_H, ALTIVEC_REGISTERS_H)
48 (ANSIDECL_H, BFD_H, BITS_H, CAP_H, COMMON_SIM_BASE_H)
49 (COMMON_SIM_BASICS_H, COMMON_SIM_FPU_H, COMMON_SIM_INLINE_H)
50 (COMMON_SIM_SIGNAL_H, CONFIG_H, COREFILE_H, COREFILE_N_H, DEBUG_H)
51 (DEFINES_H, DEFS_H, DEVICE_H, E500_EXPRESSION_H, E500_REGISTERS_H)
52 (EMUL_BUGAPI_H, EMUL_CHIRP_H, EMUL_NETBSD_H, EMUL_UNIX_H, EVENTS_H)
53 (FILTER_FILENAME_H, FILTER_H, GDB_CALLBACK_H, GDB_REMOTE_SIM_H)
54 (GEN_ICACHE_H, GEN_IDECODE_H, GEN_ITABLE_H, GEN_MODEL_H)
55 (GEN_SEMANTICS_H, GEN_SUPPORT_H, HW_CPU_H, HW_H, HW_PHB_H)
56 (ICACHE_H, IDECODE_BRANCH_H, IDECODE_EXPRESSION_H)
57 (IDECODE_FIELDS_H, IGEN_H, INLINE_H, INTERRUPTS_H, ITABLE_H)
58 (LD_CACHE_H, LD_DECODE_H, LD_INSN_H, LF_H, MISC_H, MODEL_H, MON_H)
59 (OPTIONS_H, OS_EMUL_H, PK_H, PPC_CONFIG_H, SEMANTICS_H)
60 (SIM_CALLBACKS_H, SIM_ENDIAN_H, SIM_ENDIAN_N_H, SIM_MAIN_H)
61 (SPREG_H, STD_CONFIG_H, SUPPORT_H, TABLE_H, TARG_VALS_H, TCONFIG_H)
62 (TREE_H, VM_H, VM_N_H, WORDS_H): New variables.
63 (callback.o, cap.o, corefile.o, debug.o, device.o, device_table.o)
64 (dgen.o, emul_bugapi.o, emul_chirp.o, emul_netbsd.o, emul_unix.o)
65 (events.o, filter.o, filter_filename.o, filter_host.o)
66 (gen-icache.o, gen-idecode.o, gen-itable.o, gen-model.o)
67 (gen-semantics.o, gen-support.o, hw_core.o, hw_cpu.o, hw_disk.o)
68 (hw_htab.o, hw_init.o, hw_phb.o, hw_register.o, icache.o)
69 (idecode.o, igen.o, interrupts.o, itable.o, ld-cache.o)
70 (ld-decode.o, ld-insn.o, lf.o, main.o, misc.o, model.o, mon.o)
71 (options.o, os_emul.o, pk_disklabel.o, psim.o, registers.o)
72 (semantics.o, sim-endian.o, sim-fpu.o, sim_calls.o, spreg.o)
73 (support.o, table.o, targ-map.o, tree.o, vm.o): Update dependencies.
75 2004-06-28 Jim Blandy <jimb@redhat.com>
77 * e500_registers.h (EVR): Cast the 32-bit value of the GPR to an
78 unsigned type before or-ing it with a 64-bit value.
80 2004-06-15 Alan Modra <amodra@bigpond.net.au>
82 * hw_htab.c (htab_sum_binary(bfd): Use bfd_get_section_size
83 instead of bfd_get_section_size_before_reloc.
84 (htab_dma_binary(bfd): Likewise.
85 * hw_init.c (update_for_binary_section(bfd): Likewise.
87 2004-05-10 Daniel Jacobowitz <dan@debian.org>
89 * configure.in (sim_fpu_cflags): Add -I../common.
90 * configure: Regenerated.
92 2004-01-27 Andrew Cagney <cagney@redhat.com>
94 * ppc-instructions: Update copyright.
95 (convert_to_integer): Add trailing ";" to label.
97 2003-10-16 Michael Snyder <msnyder@redhat.com>
99 * emul_netbsd.c: Only a comment may follow an #endif.
101 2003-10-15 Michael Snyder <msnyder@redhat.com>
103 * Makefile.in (sim_calls.o): No longer depends on gdb/tm.h.
105 2003-06-22 Andrew Cagney <cagney@redhat.com>
107 Written by matthew green <mrg@redhat.com>, with fixes from Aldy
108 Hernandez <aldyh@redhat.com>, Jim Wilson <wilson@redhat.com>, and
109 Nick Clifton <nickc@redhat.com>.
111 * ppc-instructions: Include altivec.igen and e500.igen.
112 (model_busy, model_data): Add vr_busy and vscr_busy.
113 (model_trace_release): Trace vr_busy and vscr_busy.
114 (model_new_cycle): Update vr_busy and vscr_busy.
115 (model_make_busy): Update vr_busy and vscr_busy.
116 * registers.c (register_description): Add Altivec and e500
118 * psim.c (psim_read_register, psim_read_register): Handle Altivec
120 * ppc-spr-table (SPEFSCR): Add VRSAVE and SPEFSCR registers.
121 * configure.in (sim_filter): When *altivec* add "av". When *spe*
123 (sim_float): When *altivec* define WITH_ALTIVEC. When *spe* add
125 * configure: Re-generate.
126 * e500.igen, altivec.igen: New files.
127 * e500_expression.h, altivec_expression.h: New files.
128 * idecode_expression.h: Update copyright. Include
129 "e500_expression.h" and "altivec_expression.h".
130 * e500_registers.h, altivec_registers.h: New files.
131 * registers.h: Update copyright. Include "e500_registers.h" and
132 "altivec_registers.h".
133 (registers): Add Altivec and e500 specific registers.
134 * Makefile.in (IDECODE_H): Add "idecode_e500.h" and
136 (REGISTERS_H): Add "e500_registers.h" and "altivec_registers.h".
137 (tmp-igen): Add dependencies on altivec.igen and e500.igen .
139 2003-06-22 Andrew Cagney <cagney@redhat.com>
141 Problems reported by Joshua LeVasseur.
142 * emul_chirp.c: Update copyright.
143 (chirp_emul_nextprop): Return the first property.
144 * hw_htab.c: Update copyright.
145 (htab_decode_hash_table): Fix check for htab size.
147 2003-06-21 Andrew Cagney <cagney@redhat.com>
149 * interrupts.c: Update copyright.
150 (external_interrupt): Fix test for already pending interrupt.
151 Problem found by Joshua LeVasseur.
153 * ppc-instructions: Add missing +8 line. Found by blofeldus at
156 2003-06-21 Andrew Cagney <cagney@redhat.com>
158 From Ian Lance Taylor <ian@airs.com>: * hw_nvram.c
159 (hw_nvram_init_address): Correct call to memset--swap second and
162 2003-06-21 Andrew Cagney <cagney@redhat.com>
164 * hw_com.c (hw_com_device_init_data): Check that the output, and
165 not input file opened. Pointed out by masahino tky3.3web.ne.jp.
167 2003-06-20 Andrew Cagney <cagney@redhat.com>
169 * sim_calls.c (sim_create_inferior): Assert that
170 psim_write_register succeeded.
171 (sim_fetch_register, sim_store_register): Make "regname" constant.
172 Delete Altivec hack. Return result from psim_read_register /
174 * psim.h (psim_read_register, psim_write_register): Change return
175 type to int. Update comments.
176 * psim.c: Update copyright.
177 (psim_stack): Assert that the psim_read_register worked.
178 (psim_read_register, psim_read_register): Return the register's
179 size. Allocate the cooked buffer dynamically.
180 * hw_register.c: Update copyright.
181 (do_register_init): Check that psim_write_register succeeded.
182 * hw_init.c: Update copyright.
183 (create_ppc_elf_stack_frame, create_ppc_aix_stack_frame): Assert
184 that the register transfer worked.
186 2003-06-19 Andrew Cagney <cagney@redhat.com>
188 * ld-insn.h: Update copyright.
189 (cache_fields): Define.
190 (insn_table_fields): Add insn_field_6 and insn_field_7.
191 (load_insn_table): Pass in the "cache_rules".
192 * ld-insn.c: Update copyright.
193 (load_insn_table): Add parameter "cache_rules". Handle "cache",
194 "computed" and "scratch" fields.
195 (main): Pass "cache_rules" to load_insn_table.
196 * ld-cache.h: Update copyright.
197 (append_cache_table): Declare.
198 * ld-cache.c: Update copyright.
199 (append_cache_table): New function.
200 (load_cache_table): Call.
201 * gen-model.c: Include "ld-cache.h".
202 * gen-itable.c: Include "ld-cache.h".
203 * igen.c: Move #include "ld-cache.h" to earlier. Update
205 (main): Permit a NULL "cache_rules". Pass address of
206 "cache_rules" to load_insn_table.
207 * Makefile.in (tmp-ld-insn): Add "ld-cache.o".
208 (tmp-igen): Do not include ppc-cache-rules.
209 (gen-itable.o, gen-model.o): Add "ld-cache.h".
210 * ppc-cache-rules: Delete file.
211 * ppc-instructions: Add cache rules.
213 2003-06-19 Andrew Cagney <cagney@redhat.com>
215 * Makefile.in (ICACHE_CFLAGS, SEMANTICS_CFLAGS): Delete.
216 (SIM_FPU_FLAGS): Define.
217 (icache.o): Delete explicit compile command.
218 (semantics.o, idecode.o): Delete explicit compile command.
219 (NOWARN_CFLAGS, STD_CFLAGS): Append SIM_FPU_CFLAGS.
220 * gen-support.c (gen_support_c): Generate #include of
221 "sim-inline.h" and "sim-fpu.h", but conditional on
223 * gen-idecode.c (gen_idecode_c): Ditto.
224 * igen.c (gen_icache_c, gen_semantics_c): Wrap #include of
225 "sim-inline.h" and "sim-fpu.h" in HAVE_COMMON_FPU conditional.
226 Move to before "support.h".
227 * Makefile.in, gen-support.c, gen-idecode.c, igen.c: Update
230 2003-05-16 Ian Lance Taylor <ian@airs.com>
232 * Makefile.in (various): Use $(SHELL) whenever we invoke
235 2003-02-27 Andrew Cagney <cagney@redhat.com>
237 * sim_calls.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
239 2002-09-27 Andrew Cagney <ac131313@redhat.com>
241 * hw_disk.c (hw_disk_init_address): Set device type to "block",
244 2002-06-22 Andrew Cagney <ac131313@redhat.com>
246 * Makefile.in (INTL_SRC): Define.
247 (INTL_CFLAGS): Define.
249 (STD_CFLAGS): Add INTL_CFLAGS.
251 2002-06-17 Elena Zannoni <ezannoni@redhat.com>
253 * psim.c (psim_options): Don't choke when gdb invokes us with
254 the --architecture option, just ignore it.
256 2002-06-16 Andrew Cagney <ac131313@redhat.com>
258 * configure: Regenerated to track ../common/aclocal.m4 changes.
260 2002-06-08 Andrew Cagney <cagney@redhat.com>
262 * main.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
263 * sim_calls.c: Ditto.
265 2002-05-30 DJ Delorie <dj@redhat.com>
267 * lf.c (lf_print__gnu_copyleft): Convert multiline strings to
269 * gen-idecode.c (print_run_until_stop_body): Likewise.
270 * gen-model.c (gen_model_c): Likewise.
272 2002-04-15 Elena Zannoni <ezannoni@redhat.com>
274 * sim_calls.c (sim_fetch_register, sim_store_register): Return -1 for
275 AltiVec registers as a temporary stopgap.
277 2002-03-24 David O'Brien <obrien@FreeBSD.org>
279 * ppc/hw_disk.c: Export a disk device property.
281 2002-03-23 Andrew Cagney <ac131313@redhat.com>
283 From 2001-12-09 Julien Ducourthial <jducourt@noos.fr>:
284 * ppc-instructions (lswx): Do the register control with the
285 register count. Initialize the right register in the loop.
286 (mtfsfi) : Correct prefix for the instruction.
288 2002-02-24 Andrew Cagney <ac131313@redhat.com>
291 * std-config.h: Fix grammar and typos. Update copyright.
294 2002-01-12 matthew green <mrg@redhat.com>
296 * Makefile.in (tmp-igen): Pass -I $(srcdir) to igen.
297 * igen.c (main): Change -I to add include paths for :include:
299 Implement -G as per sim/igen, with just gen-icache=N support.
300 Call load_insn_table() with the built include path.
302 * ld-insn.c (parse_include_entry): New. Load an :include: file.
303 (load_insn_table): New `includes' argument. Look for :include:
304 entries and call parse_include_entry() for them.
305 (main): Adjust load_insn_table() call.
306 * ld-insn.h (model_include_fields): New enum.
307 (load_insn_table): Update prototype.
308 * table.c (struct _open_table, struct _table): Rework
309 structures to handle included files.
310 (table_push): Move the guts of table_open() here.
312 * table.c (struct _open table, struct table): Make table object an
313 indirect ptr to the current table file.
314 (current_line, new_table_entry, next_line): Make file arg type
316 (table_open): Use table_push.
317 (table_entry_read): Point variable file at current table, at eof, pop
320 * misc.h (NZALLOC): New macro. From sim/igen.
322 * table.h, table.c (table_push): New function.
324 2002-01-04 matthew green <mrg@redhat.com>
326 * bits.c (LSMASKED64): New inline function.
327 (LSEXTRACTED64): Likewise.
328 * bits.h (_LSB_POS, _LSMASKn, LSMASK64): New macros from
329 sim/common/sim-bits.h
330 (LSMASKED64, LSEXTRACTED64): New functions definitions.
331 * Makefile.in (sim-bits.o): Remove target.
333 * main.c (zalloc): Fix typo in error message.
335 2001-12-16 Andrew Cagney <ac131313@redhat.com>
337 * configure.in (sim_fpu): Don't add sim-bits.o.
338 * configure: Re-generate.
340 2001-12-15 matthew green <mrg@redhat.com>
342 * main.c: Include "defs.h", "bfd.h", "callback.h" and "remote-sim.h".
343 (sim_io_error): New function.
344 * sim_calls.c: (sim_io_error): New function.
346 2001-12-14 matthew green <mrg@redhat.com>
348 * Makefile.in (LIB_OBJ): Add @sim_fpu@.
349 (ICACHE_CFLAGS, SEMANTICS_CFLAGS): New variables.
350 (icache.o, semantics.o): Add new ICACHE_FLAGS & SEMANTICS_FLAGS.
351 (sim-fpu.o, sim-bits.o, tconfig.h): New targets.
352 * configure.in: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS. Add a
353 check for sim/common/sim-fpu.c. Output sim_fpu and sim_fpu_cflags.
354 * configure: Regenerate.
355 * device.h (device_find_integer_array_property): Match function definition.
356 * gen-icache.c (print_icache_internal_function_declaration): Rename
357 INLINE_ICACHE to PSIM_INLINE_ICACHE.
358 * gen-idecode.c (print_idecode_run_function_header): Rename INLINE_IDECODE
359 to PSIM_INLINE_IDECODE.
360 * gen-semantics.c (print_semantic_function_header): Rename
361 EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS.
362 * gen-support.c (print_support_function_name): Rename INLINE_SUPPORT to
364 * igen.c (print_function_name): Also escape `(' and `)'.
365 (gen_semantics_h): Rename EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS.
366 (gen_semantics_c): Likewise. Also output includes for "sim-fpu.h"
367 * inline.h (INLINE_SIM_ENDIAN): Renamed INLINE_PSIM_ENDIAN.
368 (EXTERN_SIM_ENDIAN): Renamed EXTERN_PSIM_ENDIAN.
369 (STATIC_INLINE_SIM_ENDIAN): Renamed STATIC_INLINE_PSIM_ENDIAN.
370 (INLINE_LOCALS): Renamed PSIM_INLINE_LOCALS.
371 (EXTERN_SUPPORT): Renamed PSIM_EXTERN_SUPPORT.
372 (INLINE_SUPPORT): Renamed PSIM_INLINE_SUPPORT.
373 (EXTERN_SEMANTICS): Renamed PSIM_EXTERN_SEMANTICS.
374 (INLINE_SEMANTICS): Renamed PSIM_INLINE_SEMANTICS.
375 (EXTERN_IDECODE): Renamed PSIM_EXTERN_IDECODE.
376 (INLINE_IDECODE): Renamed PSIM_INLINE_IDECODE.
377 (EXTERN_ICACHE): Renamed PSIM_EXTERN_ICACHE.
378 (INLINE_ICACHE): Renamed PSIM_INLINE_ICACHE.
379 * options.c (options_inline): Fix names.
380 * sim-endian-n.h: Change INLINE_SIM_ENDIAN to INLINE_PSIM_ENDIAN.
381 * sim-endian.h: Likewise.
382 * sim-main.h: New file.
383 * std-config.h: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS.
385 2001-12-01 Andrew Cagney <ac131313@redhat.com>
388 * ppc-spr-table: Add SDA and PIR.
390 2001-10-29 Andrew Cagney <ac131313@redhat.com>
392 * tree.c (parse_size): Assert #size-cells > 0.
393 (parse_address): Ditto for #address-cells.
394 (parse_reg_property): Only parse the size when #size-cells is
397 2001-10-25 Andrew Cagney <ac131313@redhat.com>
399 * emul_generic.c (OEA_MEMORY_SIZE): Increase to 4mb.
400 * hw_htab.c (htab_map_binary): Don't try to map the text section
402 * emul_chirp.c (map_over_chirp_note): Default load-base to -1 not
404 (emul_chirp_create): Map in the interrupt table.
406 2001-07-16 Daniel Jacobowitz <drow@mvista.com>
408 * Makefile.in: Add dependencies on $(CPU_H).
410 Wed Mar 7 10:45:12 HST 2001 Glen Nakamura <gen@lava.net>
412 * hw_init.c (dma_file): Fixed problem with loading last 1KB of
415 2001-03-04 Andrew Cagney <ac131313@redhat.com>
417 * emul_netbsd.c [WITH_NetBSD_HOST]: Include <sys/mount.h> and
419 (do_stat): Only do SYS test when SYS_stat defined.
420 (do_sigprocmask): Ditto for SYS_sigprocmask.
421 (do_fstat): Ditto for SYS_fstat.
422 (do_getdirentries): Ditto for SYS_getdirentries.
423 (do_lstat): Ditto for SYS_lstat.
425 2001-01-15 Geoffrey Keating <geoffk@redhat.com>
427 * emul_netbsd.c (do_open): Translate the flag parameter to the
428 open syscall to the numbers supported by the host.
430 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
432 * sim-endian.h: Don't have parameters on macro definitions which
433 are simply renaming functions, to permit use of XCONCAT2 in both
434 the macro name and the arguments in a use of such a definition.
436 2000-11-15 Jim Blandy <jimb@redhat.com>
438 * sim_calls.c: Doc fix.
439 (sim_fetch_register, sim_store_register): Call
440 gdbarch_register_name directly, instead of going through
443 2000-10-24 Geoff Keating <geoffk@cygnus.com>
445 * ppc-instructions (lfsux): Correct XO field of lfsux instruction.
447 Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
449 * configure: Regenerated to track ../common/aclocal.m4 changes.
451 Fri Apr 28 15:59:27 2000 Andrew Cagney <cagney@b1.cygnus.com>
453 * events.c (event_queue_process): Call update_time_from_event
454 every time an event is removed from the queue.
455 (update_time_from_event): Delete assertion that a negative
456 time_from_event implies an empty event queue.
458 Fri Apr 28 15:53:54 2000 Andrew Cagney <cagney@b1.cygnus.com>
460 * interrupts.c (deliver_hardware_interrupt): Print time trace in
462 * events.c (event_queue_process): Cleanup trace message.
463 (update_time_from_event): Trace full event queue.
465 2000-03-25 Geoff Keating <geoffk@cygnus.com>
467 * ppc-instructions (Disabled_Exponent_Underflow): Increment
468 the exponent when denormalizing.
470 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
472 * configure: Regenerated to track ../common/aclocal.m4 changes.
474 1999-05-08 Felix Lee <flee@cygnus.com>
476 * configure.in: Use AC_EXEEXT instead of AM_EXEEXT.
477 * configure: Regenerated to track ../common/aclocal.m4 changes.
479 1999-04-02 Keith Seitz <keiths@cygnus.com>
481 * sim_calls.c (POLL_QUIT_INTERVAL): Define. Used to tweak
482 the frequency at which the poll_quit callback is called.
483 (poll_quit_count): New global.
484 (sim_io_poll_quit): Only call the poll_quit callback
485 after the specified POLL_QUIT_INTERVAL.
487 1999-02-22 Jim Lemke <jlemke@cygnus.com>
489 * dc-complex: Force expansion on all bits of field BO.
490 Previously, the least-significant (prediction) bit was ignored.
491 * ppc-instructions (conditional branches): Implement mpc860c0 option.
492 * igen.c (gen_semantics_[ch]): Setup for mpc860c0 option.
493 * psim.c (is_num, psim_options): Added parsing for mpc860c0 option.
494 * interrupts.h: Added "mpc860c0_instruction_program_interrupt".
495 * interrupts.c (program_interrupt): Added handling for above interrupt.
497 1999-02-01 Jim Blandy <jimb@zwingli.cygnus.com>
499 Make the simulator compatible with the MPC750. It would be nicer
500 to make this a real multi-sim, but that's more work than we have
502 * emul_generic.c (emul_add_tree_options): Only require strict
503 alignment if it was explicitly requested at configuration time.
504 Don't make it the default for little-endian machines.
505 * ppc-spr-table (UMMCR0, UMMCR1, UPMC1, UPMC2, USIA, UPMC3, UPMC4,
506 MMCR0, PMC1, PMC2, SIA, MMCR1, PMC3, PMC4, L2CR, ICTC, THRM1,
507 THRM2, THRM3): Plop in the MPC750 SPR registers.
508 (DABR): This is weird. This was HID5, but the PPC spec says this
509 should be DABR; why did some random processor use it for something
510 else? The HID5 entry dates back to the original checkin of the
511 simulator code in 1995, so remove it.
512 * sim_calls.c (register_names): Delete this; since the user can
513 now change GDB's list of register names dynamically, we can't
514 pretend there's a static mapping here.
515 (sim_fetch_register, sim_store_register): Call GDB's REGISTER_NAME
516 function to get the register name. That ought to be accurate.
517 However, we're changing a compile-time dependency (using the
518 REGISTER_NAMES macro) into a link- and run-time dependency
519 (calling REGISTER_NAME, which happens to be a function call on the
522 1999-01-22 Jim Lemke <jlemke@cygnus.com>
524 * igen.c(gen_semantics_[ch]): setup/use of new option
526 interrupts.[ch](mpc860c0_instruction_program_interrupt): added.
527 ppc-instructions(the four branch insn groups): detect problematic br's.
528 psim.c(is_num - added, psim_options): Parse and init new option.
529 These changes are currently under #ifdef WITH_OPTION_MPC860C0.
531 1998-12-01 Ken Raeburn <raeburn@cygnus.com>
533 * hw_nvram.c (hw_nvram_bcd): Force value to fit in 0..99.
535 Fri Nov 20 12:17:28 1998 Andrew Cagney <cagney@b1.cygnus.com>
537 * main.c (sim_io_poll_quit): Stub function.
539 * events.c (SIM_EVENTS_POLL_RATE): Define.
540 (sim_events_poll): Copy function from common/sim-events.c.
541 (event_queue_init): Copy scheduling of sim_events_poll from same.
543 * sim_callbacks.h, sim_calls.c (sim_io_poll_quit): New function,
544 poll the external environment.
546 1998-11-19 Michael Meissner <meissner@cygnus.com>
548 * ppc-instructions (is_{NaN,inf}): Use unsigned64 to get the
549 fractional type, so that quiet NaN's aren't treated like
552 Mon Sep 28 09:42:45 1998 Drew Moseley <dmoseley@cygnus.com>
554 * table.c (table_open): For cygwin hosts, we need to use the
555 return value from the read routine as the number of bytes to
556 process. This apparently is due to text-mode vs binary-mode. If
557 the mounts are done text-mode, then the size returnedby fstat()
558 may be different than the number of bytes "read" in text mode.
560 Sun Oct 4 00:50:47 1998 Felix Lee <flee@cygnus.com>
562 * emul_netbsd.c (do_open): fix order-of-evaluation problem.
567 1998-09-03 Michael Meissner <meissner@cygnus.com>
569 * emul_{netbsd,unix}.c: Update copyright year.
571 Mon Jun 29 10:57:36 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
573 * sim_calls.c (sim_fetch_register, sim_store_register):
574 return zero when nothing to do.
576 1998-06-26 Michael Meissner <meissner@cygnus.com>
578 * configure.in (AC_CHECK_HEADERS): Don't check for sys/mount.h.
579 * configure: Regenerate.
580 * emul_{netbsd,unix}.c (toplevel): No longer try to include
581 sys/mount.h. It conflicts on Linux when gnu libc2 is used.
583 Tue May 12 12:10:33 PDT 1998 James Ingham <jingham@leda.cygnus.com>
585 * Makefile.in: The run target depended on a target psim$(EXEEXT),
586 but there was no such target, only plain psim. So I changed the
587 run target to depend on psim.
589 Sat May 2 01:10:12 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
591 * aclocal.m4: Remove defs of AM_EXEEXT and AM_CYGWIN32. These are
592 now defined in ../common/aclocal.m4, and the double definition causes
593 problems with AC_SUBST of EXEEXT.
594 * configure: Regenerate.
596 Wed Apr 29 15:44:52 1998 Geoffrey Noer <noer@cygnus.com>
598 * aclocal.m4: new file for AM_EXEEXT macro
599 * configure.in: call AM_EXEEXT
600 * configure: regenerate with autoconf 2.12.1.
601 * Makefile.in: add EXEEXT support
603 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
605 * configure: Regenerated to track ../common/aclocal.m4 changes.
608 Sun Apr 26 15:19:51 1998 Tom Tromey <tromey@cygnus.com>
610 * acconfig.h: New file.
611 * configure.in: Reverted change of Apr 24; use sinclude again.
612 Don't call AC_C_CROSS.
614 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
616 * configure: Regenerated to track ../common/aclocal.m4 changes.
619 Fri Apr 24 11:18:46 1998 Tom Tromey <tromey@cygnus.com>
621 * Makefile.in (top_builddir): New macro.
622 (INTLLIBS): New macro.
623 (INTLDEPS): Likewise.
624 (psim): Depend on INTLDEPS; link against INTLLIBS.
625 * configure.in: Call CY_GNU_GETTEXT.
627 Wed Apr 22 14:28:48 1998 Michael Meissner <meissner@cygnus.com>
629 * configure: Regenerate with autoconf 2.12.1.
631 Fri Mar 13 09:25:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
633 * psim.c (psim_read_register, psim_write_register): Handle updates
636 * registers.c (register_description): Reconize "FPSCR".
638 * emul_netbsd.c (emul_netbsd_create): When FP available, enable
639 MSR FP exception mode. Do not enable FPSCR bits.
640 * emul_unix.c (emul_unix_create): Ditto.
642 Tue Feb 17 12:48:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
644 * sim_calls.c (sim_store_register, sim_fetch_register): Pass in
645 length parameter. Return -1.
647 Mon Feb 9 14:13:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
649 * ppc-instructions (fdiv, fdivs): Check for divide by zero.
650 (is_invalid_zero_divide, invalid_zero_divide_operation): New
653 Wed Dec 10 17:38:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
655 * sim_calls.c (sim_load): Do not parse PROG using buildargv, use
658 1997-11-05 Felix Lee <flee@cygnus.com>
660 * emul_chirp.c: #ifdef HAVE_UNISTD_H
662 Wed Oct 15 08:50:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
664 * corefile.c (core_attach): Pad out allocated memory regions so
665 that they are always correctly aligned.
666 (struct _core_mapping, core_map_attach, core_init,
667 new_core_mapping): Change free_buffer to type void*.
669 Mon Oct 6 18:09:26 1997 Michael Meissner <meissner@cygnus.com>
671 * sim_calls.c (zfree): Call free correctly.
673 Mon Sep 29 10:05:01 1997 Andrew Cagney <cagney@b1.cygnus.com>
675 * sim_calls.c (zfree): Use free, not mfree.
676 (sim_io_flush_stdoutput): Replace gdb_flush with callback ->
679 Fri Sep 26 09:50:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
681 * ppc-instructions (sraw, slw, srw): From Charles Lefurgy, Fix
682 mask extracting shift amount. Correctly condition for setting XER
684 (ldhau): From Johannes Reisinger, update rA after load.
686 Tue Sep 9 22:13:23 1997 Felix Lee <flee@cygnus.com>
688 * basics.h (CONCAT*): token-pasting macros, if ALMOST_STDC,
690 * words.h: __int64 instead of long long for MSVC.
692 Wed Aug 27 10:24:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
694 * sim_calls.c (sim_create_inferior): Check the simulator was
695 initialized before creating inferior.
697 * idecode_expression.h (ALU_END): From Charles Lefurgy - Extract
698 sign bit using 64 bit and not a 32 bit mask.
700 Wed Aug 27 10:15:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
702 * sim_calls.c (sim_load): From Ian Lance Taylor - free argv after
703 it has been used, not before.
705 Tue Aug 26 10:41:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
707 * sim_calls.c (sim_kill): Delete.
708 (sim_create_inferior): Add ABFD argument.
709 (entry_point): Delete variable.
710 (sim_load): Move setting of PC from here.
711 (sim_create_inferior): To here.
713 Mon Aug 25 16:17:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
715 * sim_calls.c (sim_open): Add ABFD argument.
717 Thu Jul 3 10:18:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
719 * ppc-instructions (PPC_INSN_INT): From Michael Thies - Monitoring
720 CR register updates dependant on RC value had logic backwards.
722 * ppc-instructions (Load String Word Immediate): From Brad Parker
723 - sense of wrap test in check for overwriting RA wrong.
724 (Load String Word Indexed): Ditto.
726 * configure.in: From Erik Landry - set sim_default_model not
727 sim_model for sim-default-model option.
728 * configure: Regenerate.
730 * interrupts.c (check_masked_interrupts): Schedule a hardware
731 interrupt delivery when FP interrupts get enabled.
732 (program_interrupt): Generate FP exceptions instead of aborting.
733 (deliver_hardware_interrupt): Deliver a FP exception if so
736 * registers.h: Add definition of fpscr_vx_bits.
738 * idecode_expression.h (FPSCR_END): Always update FEX and VX bits
740 (FPSCR_END): Explicitly check for possible floating point
741 exception conditions.
742 (FPSCR_BEGIN): Simplify.
744 * ppc-instructions (Move From FPSCR): Enable.
745 (Move To FPSCR Bit 1): Ditto.
746 (Move To FPSCR Bit 0): Ditto.
747 (Move To FPSCR Field Immediate): Ditto.
748 (Move to Condition Register from FPSCR): Simplify.
749 (invalid_arithemetic_operation): Generate a QNaN when invalid
750 operation exception disabled.
752 Tue May 20 10:22:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
754 * sim_calls.c (sim_open): Add callback argument.
755 (sim_set_callbacks): Delete.
757 Tue Apr 22 22:36:57 1997 Mike Meissner <meissner@cygnus.com>
759 * sim_callbacks.h (error): Make declaration match gdb's.
760 * main.c (error): Ditto.
762 Fri Apr 18 17:03:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
764 * sim_calls.c (sim_stop_reason): Simplify. Was running implies
765 stopped/SIGINT. Exit implies a status code.
767 * psim.c (cntrl_c_simulation): From main.c. Event function that
769 (psim_stop): New. Asynchronously schedule a stop simulator event.
770 (psim_run_until_stop): Delete. Made redundant by psim_stop.
772 * main.c (cntrl_c): Update.
773 (cntrl_c_simulation): Moved to psim.c.
775 * sim_calls.c (sim_stop): New function. Use psim_stop which
776 schedules a stop event.
777 (sim_resume): Drop SIGINT handler, now in gdb/main.c.
778 (sim_resume): Use psim_run as stop variable no longer needed.
780 Fri Apr 18 17:03:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
782 * psim.c (psim_options): Handle -E option correctly.
783 (psim_usage): Document.
785 Thu Apr 17 03:28:03 1997 Doug Evans <dje@canuck.cygnus.com>
787 * psim.c (psim_options): Ignore -E option (sets endianness).
788 * sim_calls.c: #include bfd.h.
789 (entry_point): New static local.
790 (sim_load): Return SIM_RC. New arg abfd. Set start address from bfd.
791 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
793 Tue Apr 15 14:57:18 1997 Ian Lance Taylor <ian@cygnus.com>
795 * Makefile.in (INSTALL): Set to @INSTALL@.
796 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
797 (install): Depend upon installdirs. Use $(program_transform_name)
798 directly, rather than using $(INSTALL_XFORM).
799 (installdirs): New target.
801 Fri Apr 4 17:54:36 1997 Jim Wilson <wilson@cygnus.com>
803 * Makefile.in (tmp-hw, tmp-pk): Use for loop to eliminate duplicates
804 rather than the non-portable cat -n.
806 Mon Apr 14 16:29:51 1997 Ian Lance Taylor <ian@cygnus.com>
808 * Makefile.in (INSTALL): Change install.sh to install-sh.
810 Tue Apr 1 18:15:14 1997 Jim Wilson <wilson@cygnus.com>
812 * ppc-instructions: Change milhwu to mulhwu.
814 Wed Apr 2 15:38:08 1997 Doug Evans <dje@canuck.cygnus.com>
816 * sim_calls.c (sim_open): New arg `kind'.
818 Wed Apr 2 14:51:17 1997 Ian Lance Taylor <ian@cygnus.com>
820 * COPYING: Update FSF address.
822 Tue Mar 25 16:17:59 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
824 * main.c (sim_io_read_stdin): Only compile unbuffered IO code if
825 all the required features are supported by the host OS.
827 Tue Mar 25 12:13:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
829 * emul_bugapi.c (emul_bugapi_create): Guard against NULL images.
831 * configure.in (enable-sim-endain): Correct typo in usage (from
832 Erik Landry <landry@ENGR.ORST.EDU>).
833 * configure: Re-generate.
835 Fri Mar 14 18:23:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
837 * Makefile.in (targ-vals.def): Re-do rule so that it works with
838 FreeBSD's make. Didn't like $<.
840 Thu Mar 13 12:55:48 1997 Doug Evans <dje@canuck.cygnus.com>
842 * sim_calls.c (sim_open): New SIM_DESC result. Argument is now
844 (other sim_*): New SIM_DESC argument.
846 Thu Feb 13 10:35:14 1997 Andrew Cagney <cagney@phydeaux.cygnus.com>
848 * ppc-opcode-simple-array, ppc-opcode-simple-goto,
849 ppc-opcode-simple-switch, ppc-opcode-complex-array,
850 ppc-opcode-complex-goto, ppc-opcode-complex-switch,
851 ppc-opcode-jump, ppc-opcode-goto, ppc-opcode-flat: Delete,
852 superseeded by --sim-decode-mechanism option.
854 * ppc-opcode-simple, dc-simple: Rename to be 8.3
855 * ppc-opcode-complex, dc-complex: Ditto.
856 * ppc-opcode-stupid, dc-stupid: Ditto.
857 * ppc-opcode-test-1, dc-test.01: Ditto.
858 * ppc-opcode-test-2, dc-test.02: Ditto.
860 * configure.in (--enable-sim-opcode): Change prefix to dc- instead
863 Wed Feb 12 19:33:45 1997 Andrew Cagney <cagney@phydeaux.cygnus.com>
865 * Many of the ppc-opcode-* files are identical baring the type of
866 lookup table. Instead of having multiple tables, igen can do this
867 via an additional option.
869 * ld-decode.h, ld-decode.c (force_decode_gen_type): New function,
870 allow the type of generated table specified in the decode file to
873 * ld-decode.c (load_decode_table): Allow the table type to be
876 * igen.c (main): Add -T <mechanism> option so that an overriding
877 instruction decode mechanism can be specified.
879 * configure.in: New option --sim-decode-mechanism to control
880 igen's new -T <mechanism> flag.
881 * Makefile.in (IGEN_FLAGS): Add IGEN_IDECODE_MECHANISM set by the
883 * configure: Regenerate.
885 Tue Feb 11 13:49:10 1997 Michael Meissner <meissner@tiktok.cygnus.com>
887 * events.c (event_queue_create): Don't use NULL to initialize an
889 (even_queue_{init,schedule_after_signal,tick}): Conditionalize use
890 of sigprocmask to appropriate autoconf test.
892 * main.c ({cntrl_c,main}): Use RETSIGTYPE for signal return type,
894 * sim_calls.c (sim_{ctrl_c,resume}): Ditto.
896 * Makefile.in (callback.o): Define HAVE_CONFIG_H, so callback.c
897 includes our config.h.
899 Tue Feb 4 13:42:59 1997 Doug Evans <dje@canuck.cygnus.com>
901 * configure.in: Fix typo in test for callback.c.
902 * configure: Regenerated.
904 Fri Feb 7 10:04:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
906 * emul_chirp.c (emul_chirp_create): Handle a virtbase of -1 being
907 found in the device tree.
909 Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
911 * Property create/initialization still wasn't correctly ordered.
912 Should be delaying everything related to ihandle creation until
913 after the rest of the tree has been established.
915 * device.c (device_find_ihandle_runtime_property): Update.
916 (device_add_ihandle_runtime_property): Update.
918 * tree.c (parse_ihandle_property): Delay lookup of the device to
919 be opened until the ihandle initialization phase.
920 * tree.c (print_properties): Update.
922 Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
924 * gen-icache.c (print_icache_extraction): Add a reason parameter.
925 Augment each extracted field with a comment citing the codes
926 origin. Should simplify tracking down incorrect cache
929 Tue Feb 4 17:44:51 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
931 * gen-icache.c: Generalize code handling XXX_is_NNN so that it
932 works for normal and boolean table entries.
934 * psim.c (psim_write_memory): last_cpu == -1 or nr_cpus is now
935 valid. Handle this just like *_{read,write}_register now handles
938 Mon Feb 3 17:18:16 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
940 * events.c (insert_event_entry): Correct loop termination
943 Fri Jan 31 16:20:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
945 * psim.c (psim_options): Add new option -c for max-iterations or
947 (psim_usage): Document.
948 (psim_max_iterations_exceeded): New function, abort simulation if
949 max iterations exceeded.
951 * gen-idecode.c: Re-work the table lookup code so that it assumes
952 that the entry is a leaf by default. Simplify the boolean table
953 entry code so that it involves a mask + test instead of shift +
956 * gen-idecode.c: Correct generated igen body so that it no drops
957 or doubles clock interrupts.
960 Thu Jan 30 11:23:20 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
962 * Makefile.in (BUILT_SRC_WO_CONFIG): Change targ-vals.* to
965 * configure.in (sim_callback, sim_targ_vals): Set sim_targ_valls
966 if common callback is present.
968 Wed Jan 29 12:32:41 1997 Michael Meissner <meissner@tiktok.cygnus.com>
970 * configure.in (sim_callback): If the gdb is post 4.16, configure
971 callback support from the common directory.
972 * configure: Regenerate.
974 * Makefile.in (BUILT_SRC_WO_CONFIG): Add targ-vals.{h,def} and
976 (GDB_OBJ): Add callback support configured in.
977 (gentmap,targ-vals.def): Build from common directory.
978 (targ-vals.h,targ-map.c): Build by running gentmap.
979 (callback.o): Build from source in common directory.
980 (targ-map.o): Add dependency.
981 (clean): Remove gentmap.
983 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
985 * igen wasn't aborting if the opcode table contained no valid
988 * misc.c (name2i): Possibly abort if an invalid name is
990 * ld-decode.c: Abort if the table type isn't found.
992 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
994 * When performance monitoring is disabled, it is still possible to
995 determine the simulation speed by looking at the number of elapsed
996 ticks recorded by the event queue.
998 * psim.c (psim_write_register, psim_read_register): Force the cpu
999 to zero when it is either of `-1' or `nr_cpus'. In both cases the
1000 next cpu would be zero any way.
1002 * mon.c (mon_print_info): If possible, print the system cycle
1003 performance. This is an indication of the number of instructions
1006 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1008 * The code to allow an event queue to be updated during a signal
1009 was missing. For main.c, a cntrl-c simulation termination wasn't
1012 * The simulation would not correctly restart if an event requested
1013 that the simulation be halted.
1015 * psim.c (psim_options): Add hack to -i option to optionally
1016 include a level vis -i2.
1017 (psim_usage): Document.
1019 * main.c (cntrl_c, cntrl_c_simulation): New functions. When a
1020 cntrl-c occures schedule an event to halt the simulation.
1021 (main): Catch CNTRL-C signals with the function cntrl_c.
1023 * events.c (event_queue_process): Mask interrupts while
1024 manipulating the async event queue.
1025 (event_queue_init): Ditto.
1026 (event_queue_schedule_after_signal): Ditto.
1028 * events.c (event_queue_process): Mark the event queue as being in
1029 the processing state when processing has started. Adjust code
1030 so that it is tolerant of halts.
1031 (event_queue_init): Start the event queue out with processing
1033 (event_queue_tick): Check that processing isn't still being
1036 * gen-idecode.c (print_run_until_stop_body): Call
1037 event_queue_process_events to clear possibly pending events before
1038 starting a simulation run. Re-arange main loop so that simulator
1039 is correctly restarted when an event halts the simulation.
1041 * psim.c (psim_halt): Handle an event halting the simulation.
1042 * psim.c (psim_init): Adjust initial cpu - == -1 - to match
1045 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1047 * ppc-opcode-complex: Correct typo - was expanding ORA instead of
1048 RA. Based on instruction frequency stats, expand additional
1050 * ppc-instructions: Change all `RA == 0' to RA_is_0.
1052 * ppc-opcode-stupid: Move all but the basic table in -complex into
1053 here. Update to new format.
1055 * Makefile.in (tmp-defines): New target. Force defines.h to always
1056 be built. Hence get ppc-opcode-goto to build.
1058 Tue Jan 28 13:00:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1060 * hw_com.c (hw_com_instance_read, hw_com_instance_write):
1063 Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1065 * hw_trace.c (hw_trace_init_data): Delete. The trace options need
1066 to be initialized independant of the rest of the simulation
1067 initalization. Otherwize a trace option explictly set from gdb
1068 could be overridden by hw_trace.
1070 * psim.c (psim_options): Clarify reason why the trace ioctl occures.
1072 * FIXME: The trace code is too scattered - hw_trace.c, psim.c,
1073 debug.c. It could be much simpler.
1075 Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1077 * Some devices support removable media. Add hooks to the disk
1078 device so that it supports this.
1080 * device.c (device_add_string_array_property,
1081 device_find_string_array_property): New functions, manipulate
1082 properties containing an array of strings.
1083 (device_find_string_property): Allow a string array.
1084 (device_init_static_properties): Update.
1085 (device_init_runtime_properties): Update.
1087 * hw_disk.c (hw_disk_ioctl): Add ioctl for changing the disk
1088 media. If no file image is specified, use the next one in the
1089 image property list.
1090 (hw_disk_init_address): Change the file property so that it is a
1091 string array - use the first entry for the initial file image.
1093 * tree.c (print_string_aray_property): New function - print a
1095 (print_properties): Adjust.
1096 (print_string): Write a string, handling double quotes.
1098 * device.h: Define an ioctl to `change-media' with an optional new
1101 * hw_disk.c: Allow floppy disk devices to be specified.
1103 * psim.c (psim_command): New function, parse more complex psim
1104 commands such as "change-media" and "trace".
1105 * sim_calls.c (sim_do_command): Use.
1107 Wed Jan 22 09:38:33 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1109 * For expressions like (RA == 0) that are entered in to the cache
1110 as RA_is_0. If possible generate the result of the expression so
1111 that the compiler gets a better chance of eliminating dead
1114 * gen-icache.c (print_icache_extraction): For a cache entry of
1115 the form <name>_is_<const> where it is a boolean field, generate
1116 the result of the expression instead of the expression its self.
1117 (print_icache_body): Remove code that was looking for *_is_0 and
1118 then generating corresponding definitions.
1120 * gen-icache.c (print_icache_struct): If there is no cache, do not
1121 output expressions in idecode.h file.
1123 * gen-icache.c (print_icache_body): Output them here.
1125 * ppc-opcode-complex: Clarify constant values for SPR==LR register
1128 * ppc-cache-rules (RA_is_0, SPR_is_256): Two new cache entries.
1130 Wed Jan 22 12:24:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1132 * The code that put values in and extracted values from the cache
1133 was too compilicated. The cache table did not allow values to be
1134 computed from cache entries. #defines could only be used when a
1135 cache was present, remove the restriction.
1137 * ld-cache.h, ld-cache.c: Add a new cache entry type - SCRATCH. A
1138 scratch variable is defined when a cache entry is beinf
1139 filled. Change the definition of a COMPUTE variable to be defined
1140 when the cache entry is being used.
1141 * gen-icache.c: Update.
1143 * ld-cache.h, ld-cache.c: Change field names so that their meaning
1144 is more obvious. old_name->field_name, new_name->derived_name.
1145 * gen-icache.c: Update
1147 * gen-icache.h, gen-icache.c (print_icache_body): Make the three
1148 different types of cache code - put into cache, extract from
1149 cache, no cache - an explicit argument to print_icache_body.
1150 * gen-icache.c (print_icache_extraction): Ditto.
1152 * gen-semantics.c (print_c_semantic): Update use.
1153 * gen-idecode.c (print_jump_insn): Update use.
1154 * gen-icache.c (print_icache_function): Update use.
1156 * igen.c (main): Change 'R' option so that it does not force the
1159 * configure.in (enable-sim-icache): Clarify description. Make
1160 #define one of the defaults regardless of the cache. Probably
1161 should revamp and add a separate option.
1163 Tue Jan 21 13:26:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1165 * pk_disklabel.c (block_is_fdisk): Tidy up traces - use dos
1166 partition numbering.
1167 (pk_disklabel_create_instance): Partition 1..4 are valid - not
1169 (is_iso9660): New function, verify a CD9660 File system.
1170 (pk_disklabel_create_instance): Start expanding so that active
1171 partition selection is supported.
1173 Mon Jan 20 11:20:15 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1175 * The cap object was retaining a reference to the instance of a
1176 device after it was deleted. Instead add and remove cap's from the
1177 cap db as they are created and deleted. This ensuring that a
1178 capibility is only used during the lifetime of the corresponding
1181 * cap.h, cap.c: Correct cap type - was signed32 should be
1184 * cap.c (cap_add, cap_remove): New methods for cap object that
1185 allow the explicit addition and removal of internal objects that
1186 the cap knows about.
1188 * cap.c (cap_init): Rewrite. Verify that the only objects
1189 remaining in the cap data base are those that were entered first.
1190 Thse objects will be the permenant ones.
1191 * device.c (device_init_address): Remember to initialize the cap
1194 * device.c (device_create_instance_from): Explicitly add device
1195 instances to the cap database. Simplify create code.
1196 (device_instance_delete): Explicitly remove device instances from
1199 * device.c (device_create_from): Explicitly add a device to the
1202 * device.c (device_create_from): Always set the cap members.
1204 * hw_disk.c: Output the instance when tracing.
1206 Sun Jan 19 16:44:29 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1208 * tree.c (split_device_specifier): Add support for aliases when
1209 looking up a device. Now needs a device as an argument.
1210 (split_property_specifier): Ditto.
1212 Sun Jan 19 15:28:23 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1214 * The memory "claim" and "release" methods take an address and
1215 size as arguments. These may be multi cell values. Initially fix
1216 the memory code so that they check/detect this. Leave the
1217 adjustment of any clients to later.
1219 * hw_memory.c (hw_memory_instance_claim,
1220 hw_memory_instance_release): Handle multi-cell memory devices.
1222 * hw_memory.c (hw_memory_instance_claim): Be tolerant towards the
1223 release of memory regions that were not claimed.
1225 Fri Jan 17 12:01:07 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1227 * device.h, device.c (device_instance_call_method): Correct return
1228 type - can return either 0 or -1, hence should be a signed type.
1229 * device_table.h: Ditto.
1231 * hw_memory.c (hw_memory_instance_claim,
1232 hw_memory_instance_release): Update.
1233 * hw_disk.c (hw_disk_max_transfer, hw_disk_block_size,
1234 hw_disk_nr_blocks): Ditto.
1236 Fri Jan 17 11:50:13 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1238 * emul_chirp.c (chirp_emul_claim): Implement using the "claim"
1239 method belonging to "/chosen/memory".
1240 (chirm_emul_release): Ditto.
1242 * Makefile.in (LIB_INLINE_SRC): Remove emul_* from list of files
1243 that are inlined. These modules are called via a table and are
1246 * hw_init.c (update_for_binary_section): Fix failure to allocate
1247 memory used by the binary in real-mode executions. If "claim"
1248 property is present, allocate memory from the "/chosen/memory"
1251 * emul_chirp.c (emul_chirp_create): Specify that memory should be
1252 claimed when loading a real image.
1254 * hw_memory.c (hw_memory_instance_claim): Don't page align memory
1257 * hw_memory.c (hw_memory_instance_release): Avoid infinite loop
1258 when merging adjacent memory chunks.
1260 Thu Jan 16 08:51:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1262 * vm.h (vm_data_map_read_buffer, vm_data_map_write_buffer): Add
1263 optional PROCESSOR & CIA args so that this routine also abort an
1266 * vm_n.h (vm_data_map_read_N, vm_data_map_write_N): For a
1267 miss-aligned access when a transfer fails abort.
1269 * emul_bugapi.c (emul_bugapi_do_write): Use emul_read_buffer
1270 instead of the vm_read_buffer.
1271 * emul_netbsd.c (do_write): Ditto.
1272 * emul_unix.c (do_unix_write): Ditto.
1274 Wed Jan 15 14:38:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1276 * configure.in (--enable-sim-jump): Default is NULL and not -E.
1277 * configure: Regenerate.
1279 * basics.h (__attribute__): Enable attributes if GCC >= 2.6.
1280 (UNUSED): Only enable UNUSED if GCC >= 2.7.
1282 * gen-icache.c (print_icache_extraction): Print UNUSED macro
1283 instead of explicit __unused__ attribute.
1284 (print_icache_body): Ditto.
1285 * idecode_expression.h (FPSCR_BEGIN): Use UNUSED.
1287 Wed Jan 15 13:54:50 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1289 * cpu.h, cpu.c (cpu_synchronize_context): Add CIA argument as
1292 * vm.c (vm_synchronize_context): Add PROCESSOR and CIA as
1293 arguments so that there is a reference point for recovery.
1294 (vm_synchronize_context): Pass processor+cia for errors.
1295 (om_unpack_sr): Ditto.
1296 (om_unpack_srs): Ditto.
1297 * vm.c (vm_create): Review error messages.
1299 * vm.c: Include "cpu.h" so that cpu_error is visible.
1301 * ppc-instructions (Return From Interrupt): Pass CIA.
1302 (Instruction Synchronize): Ditto.
1303 * psim.c (psim_init): Ditto.
1305 Wed Jan 15 12:25:11 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1307 * cpu.h, cpu.c (cpu_error): Aborts simulation with error message,
1308 but also saves current processor state.
1310 * basics.h: Move #include <stdarg.h> to here from device_table.h.
1312 * interrupts.c (perform_oea_interrupt): Use. No longer loose CIA
1313 when simulation aborted.
1314 (program_interrupt): Ditto.
1315 (floating_point_unavailable_interrupt): Ditto.
1316 (alignment_interrupt): Ditto.
1317 (floating_point_assist_interrupt): Ditto.
1318 (perform_oea_interrupt): Ditto.
1319 (machine_check_interrupt): Ditto.
1321 Tue Jan 14 12:19:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1323 * ppc-instructions (Move from Special Purpose Register): Support
1326 Mon Jan 13 16:58:12 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1328 * debug.h, debug.c: Add "interrupts" trace option.
1330 * interrupts.c (data_storage_interrupt): Add tracing.
1331 (machine_check_interrupt): Ditto.
1332 (instruction_storage_interrupt): Ditto.
1333 (alignment_interrupt): Ditto.
1334 (program_interrupt): Ditto.
1335 (floating_point_unavailable_interrupt): Ditto.
1336 (system_call_interrupt): Ditto.
1337 (floating_point_assist_interrupt): Ditto.
1338 (deliver_hardware_interrupt): Ditto.
1340 * interrupts.c (program_interrupt): For UEA mode, halt the
1341 processor - so that the current state is saved - instead of
1343 (floating_point_unavailable_interrupt): Ditto.
1344 (floating_point_assist_interrupt): Ditto.
1346 Thu Jan 2 09:10:41 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1348 * interrupts.c (perform_oea_interrupt): Halt rather than abort on
1351 Wed Jan 1 22:54:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1353 * ppc-instructions (Store Multiple Word, Load Multiple Word):
1356 * tree.c (print_properties): For an array consider printing it out
1357 as an integer array.
1359 * hw_memory.c (hw_memory_init_address): If an "available" property
1360 is present, use that to initialize the available memory instead of
1361 using the reg property.
1363 * emul_generic.c (emul_add_tree_hardware): Add "available"
1364 property to memory device.
1366 Fri Dec 20 13:19:07 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1368 * ppc-instructions (Rotate Left Word then AND with Mask): Enable.
1370 * device.c (device_instance_call_method): Was only looking at the
1373 * hw_disk.c (hw_disk_nr_blocks): Implement #blocks method.
1374 (hw_disk_block_size): Implement block-size method.
1375 (hw_disk_max_transfer): Implement max-transfer method.
1377 * hw_phb.c (hw_phb_init_address): Reinit the rest of the PHB.
1379 * emul_chirp.c (chirp_emul_instance_to_path): Recover from an
1381 (chirp_emul_instance_to_package): Ditto.
1382 (chirp_emul_method): Ditto.
1383 (chirp_emul_read): Ditto.
1384 (chirp_emul_write): Ditto.
1385 (chirp_emul_close): Ditto.
1386 (chirp_emul_seek): Ditto.
1387 (chirp_emul_package_to_path): Ditto (for phandle).
1388 (chirp_emul_package_to_path): Return the length.
1390 * psim.c (psim_merge_device_file): Allow continuation lines.
1392 Thu Dec 19 11:09:43 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1394 * emul_chirp.c (chirp_emul_boot): Implement. Well report the new
1397 * emul_chirp.c (chirp_emul_exit): Correct type of args struct
1398 members - *_cell not host dependant int.
1400 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1402 * interrupts.c (perform_oea_interrupt): Print additional
1403 information if a double interrupt is encountered.
1405 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1407 * psim.c (psim_merge_device_file): Tolerate an incorrect file-name
1408 being specified with the -f option.
1409 (psim_merge_device_file): Correct check for end of string.
1411 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1413 * emul_chirp.c (chirp_emul_peer): Was falling off the end of the
1414 list of devices. Return zero to the client instead.
1415 * emul_chirp.c (chirp_emul_child): Ditto
1416 * emul_chirp.c (chirp_emul_parent): Ditto
1418 * device.c (device_root): Assert assumption about the device being
1421 Tue Dec 17 15:12:38 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1423 * emul_chirp.c (emul_chirp_create): Add description property to
1424 each significant node in the device tree.
1425 * emul_bugapi.c (emul_bugapi_create): Ditto.
1427 Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1429 * main.c (sim_io_read_stdin): For a single byte STDIO read, use a
1430 tempoary two byte buffer. Single byte read with fgets will not
1432 * main.c: Include errno.h.
1433 (sim_io_read_stdin): For non-STDIO, make it work.
1435 * emul_chirp.c (chirp_emul_read): Return the correct error status.
1437 Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1439 * std-config.h (WITH_STDIO): Don't hard-wire the STDIO mechanism.
1440 Instead have each emulation default it to DO_USE_STDIO.
1442 * emul_generic.c (emul_add_tree_options): Select the STDIO I/O
1443 mechanism as the default if enabled or if nothing selected.
1445 * sim_calls.c (sim_io_read_stdin): Passify GCC's desire for a
1447 (sim_io_write_stdout): Ditto.
1448 (sim_io_write_stderr): Ditto.
1449 * main.c (sim_io_write_stdout): Ditto.
1450 (sim_io_write_stderr): Ditto.
1451 (sim_io_read_stdin): Ditto.
1453 Tue Dec 10 10:31:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1455 * emul_chirp.c (emul_chirp_instruction_call): Make *printf calls
1457 * vm.c (om_effective_to_virtual): Ditto.
1458 * events.c (event_queue_schedule{,_after_signal}): Ditto.
1459 (event_queue_{deschedule,process}): Ditto.
1460 * hw_htab.c (htab_decode_hash_table): Ditto.
1461 (htab_map_{page,binary}): Ditto.
1462 * hw_opic.c (hw_opic_init_data): Ditto.
1463 (handle_interrupt): Ditto.
1464 (do_processor_init_register_{read,write}): Ditto.
1465 (write_vector_priority_register): Ditto.
1466 ({read,write}_destination_register): Ditto.
1467 (do_suprious_vector_register_{read,write}): Ditto.
1468 (do_current_task_priority_register_N_{read,write}): Ditto.
1469 (do_timer_frequency_reporting_register_{read,write}): Ditto.
1470 (do_timer_N_{current,base}_count_register_{read,write}): Ditto.
1471 (do_ipi_N_dispatch_register_write): Ditto.
1472 (do_vendor_identification_register_read): Ditto.
1473 (do_feature_reporting_register_N_read): Ditto.
1474 (do_global_configuration_register_N_{read,write}): Ditto.
1475 * hw_phb.c (hw_phb_attach_address): Ditto.
1476 (hw_phb_unit_decode): Ditto.
1477 (hw_phb_address_to_attach_address): Ditto.
1478 (hw_phb_io_{read,write}_buffer): Ditto.
1479 * hw_ide.c (setup_fifo): Ditto.
1481 * sim_calls.c ({defs,callback,remote-sim}.h): Find gdb include
1482 files via -I<dir> instead of using "../../gdb/" prefixes.
1484 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1486 * debug.h: Add tracing for the pal device.
1489 * emul_chirp.c (chirp_emul_getprop): More tracing.
1491 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1493 * device.h, device.c (device_find_ihandle_runtime_property): New
1494 function. Reverse of add_ihandle_runtime property.
1495 (device_init_runtime_properties): Use it.
1497 * device.c (find_property_entry): New function returns the
1498 internal property spec.
1499 (device_set_property): Use.
1500 (device_find_property): Use.
1502 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1504 * psim.c (psim_merge_device_file): Strip newline from device
1507 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1509 * hw_htab.c (htab_map_binary): For overlapping text / data maps
1510 merge the two. Also check that the merge is safe.
1512 * emul_chirp.c (emul_chirp_create): Add a description property to
1513 the pte's so that they are easier to identify.
1515 (emul_chirp_create): Don't specify a load address for the CHRP
1516 image. Always use the values specified by the executable.
1518 * hw_htab.c (htab_map_page): Abort if a duplicate map is
1521 Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1523 * hw_htab.c (htab_map_page): Formatting.
1525 * emul_chirp.c (emul_chirp_instruction_call): Check for a NULL
1526 method name when handling the client call. Also check for other
1529 * emul_chirp.c (emul_chirp_create): Allow real-mode?, real-base,
1530 etc to be overriden.
1532 Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1534 * os_emul.c (os_emul_create): Use tree find property instead of
1535 device find property - sigh.
1537 Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1539 * 961205: Release snapshot 961205.
1541 Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1543 * configure.in (hostbitsize, bitsize): Fix typo in error message -
1544 cannot contain a comma.
1545 (sim-warnings): Check for more potential errors.
1547 * psim.c (psim_usage): Add -f <file> option. Specifies a file
1548 containing device tree specifications that should be merged into
1551 * configure.in: Sort options.
1552 * configure: Rebuild
1554 Wed Dec 4 13:57:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1556 * psim.c (psim_usage): Add -n option - specify number of
1559 * emul_chirp.c: Add description.
1560 * emul_bugapi.c: Ditto.
1561 * emul_unix.c: Ditto.
1562 * emul_netbsd.c: Ditto.
1564 Fri Nov 29 11:12:22 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1566 * hw_pal.c (hw_pal_attach_address): New function, if an attach is
1567 encountered, assume that it is the single disk.
1568 * hw_pal.c: Add generic device/size decode methods.
1570 * hw_nvram.c (hw_nvram_init_address): Use the first nonzero reg
1571 property entry when determining the nvram size.
1573 * hw_core.c: Add generic address/size decode methods.
1575 * emul_chirp.c (emul_chirp_instruction_call): Return and trace
1576 nonzero status from client functions.
1578 * main.c (error): Always include a cariage return when writing out
1581 Wed Nov 20 00:36:55 1996 Doug Evans <dje@canuck.cygnus.com>
1583 * sim_calls.c (sim_resume): Reset sim_should_run if single
1586 Thu Nov 28 13:19:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1588 * emul_bugapi.c (emul_bugapi_do_diskio): Add support for multiple
1591 * emul_generic.c (emul_add_tree_hardware): Drop the dummy eeprom.
1592 Attach the pal - for I/O - as a pseudo device haning from the
1595 * emul_bugapi.c (emul_bugapi_create): Add a small memory device to
1596 the device tree at the address of the hi-mem interrupt vector
1597 addreses. Used by bugapi to establish its trap instructions.
1599 * debug.h: Add a new macro DITRACE for tracing device instances.
1601 * debug.h: Extend the DTRACE macro so that it can also tests for
1602 device specific tracint.
1604 * device.h, device.c (device_trace): Add method to determine
1605 device specific tracing.
1606 (device_init_address): Set the devices tracing level.
1608 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1610 * tree.h, tree.c (tree_device): New files - separate out the
1611 device parser and other tree operations from the device.
1613 * inline.h, inline.c (INLINE_TREE): Add.
1614 * device.h, device.c (device_tree_add_parsed): Delete.
1615 * Makefile.in (tree.c): Add rules for new file.
1616 * Makefile.in: Better order the emul_* files.
1618 * emul_generic.c (emul_add_tree_hardware): Update.
1619 * emul_netbsd.c (emul_netbsd_create): Update.
1620 * emul_unix.c (emul_unix_create): Ditto.
1621 * emul_chirp.c (emul_chirp_create): Ditto.
1622 * emul_bugapi.c (emul_bugapi_create): Ditto.
1623 * psim.c (psim_tree): Ditto.
1626 * emul_generic.h: Include tree.h
1627 * Makefile.in: Add to EMUL_GENERIC_H dependencies.
1629 * device.h, device.c (device_root): New function - returns the
1633 * device.h, device.c (device_clean): New function, clean up device
1634 ready for next simulation run. This includes things like deleting
1635 interrupt edges and properties created during the simulation and
1636 also scrubbing any pre-defined properties.
1637 * tree.c (tree_init): Use.
1639 * device.h, device.c (device_init_static_properties): New
1640 function. Initialize any static predefined properties. By static
1641 we mean those that have values that can be determined before the
1642 device tree initialization has started.
1643 * tree.c (tree_init): Use.
1645 * device.h, device.c (device_init_address): Add code to
1646 check/verify the devices #address-cells and #size-cells.
1647 (device_add_integer_property): Delete corresponding code.
1648 (device_nr_address_cells, device_nr_data_cells): Check for
1649 property when returning value.
1651 * device.h, device.c (device_init_runtime_properties): New
1652 function. Initialize those properties that are not `static'. At
1653 present the only such property is the ihandle.
1654 * tree.c (tree_init): Use.
1656 * device.h, device.c (reg, ranges): Rework these so that they use
1657 an array of the fundamental type - single reg or single range
1660 * device.h, device.c (device_add_ihandle_runtime_property):
1661 Re-implement the adding of an ihandle during tree construction so
1662 that it better fits in with device initialization.
1664 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1666 * device.h, device.c (device_ioctl): Add additional argument -
1667 request - so that the caller must always specify the type of
1670 * device_table.h: Update.
1671 * hw_trace.c (hw_trace_ioctl): Ditto.
1672 * hw_vm.c (hw_vm_ioctl_callback): Ditto.
1673 * hw_init.c (hw_stack_ioctl_callback): Ditto.
1674 * psim.c (psim_options): Ditto.
1676 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1678 * BUGS: Updated a bit.
1680 Wed Nov 20 14:06:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1682 * hw_opic.c: Finish - third round.
1684 Wed Nov 20 12:02:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1686 * hw_glue.c (hw_glue_io_read_buffer_callback): Fix miscalc of glue
1688 (hw_glue_io_write_buffer_callback): Ditto.
1690 Tue Nov 19 21:17:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1692 * events.c (event_queue_process): Was incorrectly consuming future
1693 events on the queue when they should be left alone.
1695 * debug.h, debug.c (events): Add support for event queue tracing.
1696 * events.c: Add event tracing.
1698 * debug.h, debug.c: Order device trace options.
1700 Fri Nov 15 15:23:39 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1702 * pk_disklabel.c (pk_disklabel_create_instance): Fix up some
1703 warnings generated by GCC.
1705 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1707 * sim-endian.h: Add LE versions of byte swap macros. Needed for
1708 PCI devices which are little-endian.
1710 * sim-endian-n.h (endian_le2h_N, endian_h2le_N): Ditto
1712 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1714 * hw_iobus.c (hw_iobus_attach_address_callback): Change the iobus
1715 so that it is implementing a 1-1 address map.
1717 * emul_generic.c (emul_add_tree_hardware): Adjust.
1719 * emul_generic.c (emul_add_tree_hardware): Don't add the nvram as
1722 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1724 * device.c (split_find_device): Be tolerant of missing unit
1727 Fri Nov 15 16:49:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1729 * basics.h (port_direction): New type, specify the direction of
1732 * device.h, device.c (device_interrupt_decode): Include
1733 specification of port direction in operations.
1734 (device_interrupt_encode): Ditto.
1736 * device_table.h: Add a direction field to the interrupt port
1739 * device.c (device_tree_add_parsed): Specify port direction.
1741 Thu Nov 14 21:38:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1743 * hw_opic.c: Finish - second round.
1745 Thu Nov 7 00:18:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1747 * hw_htab.c (htab_init_data_callback): Allow the virtual-address
1748 to be specified as an array which allows 64bit addresses.
1750 * device.c (device_find_integer_array_property): New function.
1751 Simplify the querying of elements of an integer array.
1752 (device_add_integer_property, device_find_integer_property):
1753 Update to correctly use the cell type.
1755 * vm.c (om_unpack_sr): Clarify shifting comment.
1756 (om_pte_0_masked_vsid): Ditto. Add 64bit version.
1758 * emul_chirp.c (emul_chirp_create): Initialize the segment
1761 * vm.c (om_effective_to_virtual): Trace segment register use.
1763 * hw_htab.c (htab_map_page): Print out the pteg base address to
1764 simplify cross checking between vm and the htab.
1765 (htab_decode_hash_table): Use device_error instead of error.
1766 (htab_map_page): Ditto.
1767 (htab_dma_binary): Ditto.
1768 (htab_map_binary): Ditto.
1769 (htab_init_data_callback): Ditto.
1771 Wed Nov 6 20:20:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1773 * interrupts.h: Clarify what the optional instruction program
1774 interrupt is - a subset of illegal instruction program interrupt.
1776 * interrupts.c (program_interrupt): For UEA mode, clarify what an
1777 optional instruction program interrupt is.
1778 (program_interrupt): For OEA mode, as per spec, generate an
1779 illegal instruction program interrupt when an optional instruction
1782 * gen-semantics.c (print_semantic_body): Delete code
1783 differentiating between an unimplemented floating point and normal
1784 instruction. Instead, such a case can be handled explicitly.
1786 * ppc-instructions (store floating-point as integer word indexed):
1788 (Floating Convert to Integer Doubleword): Make the floating point
1789 assist interrupt explicit.
1790 (Floating Convert To Integer Doubleword with round towards Zero):
1792 (Floating Convert To Integer Word): Ditto
1793 (Move From FPSCR): Ditto.
1794 (Move to Condition Register from FPSCR): Ditto.
1795 (Move To FPSCR Fields): Ditto.
1796 (Move To FPSCR Field Immediate): Ditto.
1797 (Move To FPSCR Bit 0): Ditto.
1798 (Move To FPSCR Bit 1): Ditto.
1800 Mon Nov 4 12:49:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1802 * corefile.c (core_map_read_buffer, core_map_write_buffer): Avoid
1803 breaking up transfers.
1805 * corefile.c: Adjust arguments so that the client server
1806 relationship is clarified.
1808 * hw_glue.c (hw_glue_init_address): Update so it can be attached
1811 * hw_disk.c (hw_disk_instance_write): Add more checks to disk IO -
1812 looking for things like overflow/underflow.
1814 Sun Nov 3 18:45:20 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1816 * emul_generic.c (emul_add_tree_hardware): Hang the disk off the
1817 PAL device instead of the IOBUS. The disk must be attached to a
1820 * hw_disk.c (hw_disk_init_address): Just use the unit address
1821 directly in the attach - the rest isn't relevant.
1823 Sat Nov 2 21:48:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1825 * configure.in (sim-hardware, sim-packages): Allow additional
1826 hardware and packages to be prefixed as well as appended.
1828 * Makefile.in (tmp-hw, tmp-pk): Retain the user specified order of
1829 packages when building them. Consequently, a user can override a
1830 standard device by prefixing their own version.
1832 * Makefile.in (hw_opic.o, hw_pci.o, hw_ide.o): Add dependencies.
1834 Fri Nov 1 14:42:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1836 * mon.c (_cpu_mon): Add fields for counting 1, 2, 4, and 8 byte
1838 (mon_{read,write}): Count 1, 2, 4, and 8 byte reads/writes.
1839 (mon_print_info): Correct typo regarding # of unaligned reads and
1840 writes. Print out how many 1, 2, 4, and 8 byte reads/writes there
1843 Tue Oct 29 17:55:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1845 * configure.in (AC_CHECK_FUNCS): Add access.
1846 * config{.in,ure}: Regenerate.
1848 * emul_unix.c (do_unix_nop): System call that always succeeds.
1849 (do_unix_access): Support access system call.
1850 (solaris_descriptors): Make sigaltstack and sigaction nops.
1851 ({solaris,linux}_descriptors): Add support for access.
1853 Tue, 8 Oct 18:42:26 1996 Jason Molenda <crash@cygnus.co.jp>
1855 * Makefile.in (clean): Move config.log to distclean.
1857 Fri Nov 1 16:44:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1859 * corefile-n.h (core_map_write_N): Improve abort messages.
1861 * device.h, device.c (device_attach_address): Remove unused name
1863 (device_detach_address): Ditto.
1864 * device_table.h, device_table.c: Update.
1865 * hw_iobus.c (hw_iobus_attach_address_callback): Ditto.
1866 * hw_nvram.c (hw_nvram_init_address): Ditto.
1867 * hw_memory.c (hw_memory_init_address): Ditto.
1868 * hw_vm.c (hw_vm_init_address_callback): Ditto.
1869 (hw_vm_attach_address): Ditto.
1870 (hw_vm_add_space): Ditto.
1871 * hw_init.c (update_for_binary_section): Ditto.
1872 * hw_core.c (hw_core_attach_address_callback): Ditto.
1874 * hw_iobus.c (hw_iobus_attach_address_callback): Rewrite to handle
1875 configurable parent busses.
1877 Wed Oct 30 18:46:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1879 * device_table.c (generic_device_size_to_attach_size): Provide
1880 limited support for multi-cell sizes.
1881 (generic_device_address_to_attach_address): Ditto for addresses.
1883 Tue Oct 29 02:01:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1885 * device.c (device_add_integer_property): Check for setting of
1886 #address-cells and #size-cells properties. For these, update the
1887 corresponding device values.
1888 (device_nr_address_cells, device_nr_size_cells): Use the value
1889 from the device instead of the property.
1891 * hw_core.c: Use generic address and size conversions for the top
1894 * hw_memory.c (hw_memory_init_address): Tolerate case where
1895 #address and #size cells is greater than 1.
1897 * device.c (device_tree_print_device): Clean out printing of
1900 * device.c (split_device_specifier): Don't detect comments here -
1901 "#" can be a valid prefix - eg #size-cells.
1903 * psim.c (psim_merge_device_file): Suppress comments and blank
1906 * emul_generic.c (emul_add_tree_hardware): Fix typo of incorrect
1907 pal unit address. Add the property /#address-cells to the root of
1910 * device.c (device_template_create_device): Check that the unit
1911 address was successfully parsed.
1913 * device_table.c (generic_device_unit_decode): Rewrite to better
1914 handle multi-cell addresses.
1915 (generic_device_unit_encode): Ditto.
1917 * emul_generic.c (emul_add_tree_hardware): "reg" properties no
1918 longer need the explicit array type - the parser takes care of it.
1920 * pk_disklabel.c (pk_disklabel_create_instance): Add NULL return
1923 Mon Oct 28 22:55:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1925 * hw_ide.c: New file. Model of a basic IDE interface attached to
1928 * configure.in (hardware): Add the ide device to the default
1930 * configure: Regenerate.
1932 * debug.h, debug.c: Add tracing option for the IDE device.
1934 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1936 * hw_phb.c, hw_phb.h: New files - implement a PHB.
1938 * configure.in (hardware): Add the phb to the list of devices to
1941 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1943 * hw_com.c: Review description.
1946 * hw_eeprom.c: Ditto.
1950 * hw_com.c: Update event handling.
1952 * hw_disk.c: Implement tracing.
1954 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1956 * device_table.c (generic_device_init_address): Use
1957 assigned-addresses property in preference to any other reg
1960 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1962 * device.h, device.c (device_find_ranges_property): New function.
1963 Simplify the manipulation of "ranges" properties.
1965 * device.c (device_add_parsed): Extend to include support for the
1968 * device.c (device_add_parsed): Add assigned-addresses to the list
1969 of reg type properties.
1971 * device.c (device_tree_print_device): Add code to format and
1972 print a ranges property.
1974 * device.h, device.c (device_nr_address_cells,
1975 device_nr_size_cells): New functions. Determine the values of the
1976 standard properties #address-cells and #size-cells. Both of which
1977 are optional and have default values of two and one respectfuly.
1978 Previously, code that determined #address-cells was incorrectly
1979 using a value of one.
1981 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1983 * debug.h, debug.c: Sort debug options, Add entries for the
1986 Fri Oct 18 12:12:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1988 * ppc-instructions (Floating Select): Add support for fsel unless
1989 model is 601. Allow user to filter out instruction unless -Fs is
1991 (Store Floating-Point as Integer Word Indexed): Raise optional
1992 instruction program abort. Allow user to filter out instruction
1993 unless -Fs is passed to igen.
1994 (Floating Square Root{, Single}): Ditto.
1995 (Floating Reciprocal Estimate Single): Ditto.
1996 (Floating Reciprocal Square Root Estimate): Ditto.
1998 * configure.in (--enable-sim-filter): If not passed, pass 32,f,s
2000 * configure: Regenerate.
2002 * interrupts.h (program_interrupt_reasons): Add
2003 optional_instruction_program_interrupt.
2005 * interrupts.c (program_interrupt): Call error with more detailed
2006 information on program interrupts, particularly in user mode. Add
2007 support for optional_instruction_program_interrupt.
2009 Wed Sep 25 10:20:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2011 * hw_glue.c: New device. Hooks for manipulating interrupt ports.
2013 * debug.h, debug.c (trace_glue_device): Add tracing support for
2014 the interrupt glue logic device.
2016 * configure.in (hardware): Add glue device.
2017 * configure: Regenerate.
2019 Tue Sep 24 20:55:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2021 * device.c (device_tree_parse_integer_property): New function,
2022 parse a list of integers as an array property.
2023 (device_tree_add_parsed): Call it.
2025 * device.c (device_tree_parse_string_property): New function,
2026 parse a list of strings as a string property (with embeded
2027 null's). For moment, don't try to implement a complext string
2029 (device_tree_add_parsed): Call it.
2031 Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2033 * hw_opic.c: New file. OpenPIC interrupt controller.
2035 * configure.in (hardware): Add opic device.
2036 * configure: re-generate.
2038 * hw_pic.c: Delete, replaced with hw_opic.c.
2040 * debug.h, debug.c: Add debug option for OpenPIC device. -
2043 Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2045 * Makefile.in (psim.o, idecode.o): Since idecode and not psim is
2046 now the file that does all the inlining.
2048 * Makefile.in (LIB_SRC, LIB_INLINE_SRC, idecode.o): Break out the
2049 library source code that could be involved in an inlining. Make
2050 idecode.o only dependant on the inlined library source code.
2052 * Makefile.in (LIB_OBJ): Put options last on the list so that it
2055 * std-config.h (DEVICE_INLINE): Only inline locals when the
2056 default is to inline.
2058 Mon Sep 23 00:37:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2060 * hw_htab.c (htab_sum_binary): Determine the real-base for the
2063 * hw_htab.c (htab_map_binary): Depending on the value of the
2064 load-base, either map the program in as a contiguous section or as
2065 separate sections controled by th binaries lma values.
2066 (htab_init_data_callback): Ditto.
2068 Sun Sep 22 15:56:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2070 * emul_generic.c (emul_add_tree_options): Remove load-base option.
2072 * emul_chirp.c (map_over_chirp_note): Add load_base field to note
2073 struct. Don't require the load_base field to be present - just
2074 issue warning - it is a recent addition.
2075 (emul_chirp_create): Support both virtual and physical modes.
2077 * emul_chirp.c (emul_chirp_create): Add a stack initialization
2078 property so that any arguments specified on the command line can
2079 be passed on to user programs.
2081 * hw_init.c (create_ppc_chirp_bootargs): Add support for chirp
2082 argument passing to the pseudo device stack.
2084 Sat Sep 21 19:39:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2086 * device.c (device_error): Make it more tolerant to incomplete
2089 * hw_init.c (hw_data_init_data_callback): Extend the data device
2090 so that it can perform initialization operations either dma or a
2091 more complex instance open, seek, write operation.
2092 * hw_init.c: Update the description of the data device to reflect
2095 Sat Sep 21 00:13:02 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2097 * device.c (device_event_queue_schedule,
2098 device_event_queue_deschedule, device_event_queue_time): Have the
2099 device object export the event operations. Making these available
2100 from the device object should hopefully simplify writing device
2103 Fri Sep 20 14:04:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2105 * configure.in (sim-hardware): Add eeprom device to default build.
2107 * hw_eeprom.c: Rewrite so it works.
2109 * debug.h, debug.c: Add tracing support for the eeprom and com
2112 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2114 * debug.h: Add disklabel-package and disk-device trace options.
2115 debug.h (PTRACE): Add macro to simplify tracing in packages.
2117 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2119 * device.c (device_create_instance_from): Tighten up loop
2120 searching for device instances.
2121 (device_instance_delete): Ditto.
2122 (device_instance_delete): Only leaf instances need to be removed
2123 from a devices list of active instances.
2125 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2127 * hw_disk.c: Add the cdrom as an alias.
2129 * pk_disklabel.c (disklabel_delete): Implement, remembering to
2130 delete the raw disk instance while we're at it.
2132 * pk_disklabel.c (pk_disklabel_create_instance): Implement a
2133 little bit more - still a long way to go.
2135 * pk_disklabel.c (disklabel_write, disklabel_read): Remember the
2136 new head position after a read or write.
2138 Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2140 * emul_chirp.c (chirp_emul_read): Allow reads to be longer then
2141 the internal buffer.
2143 Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2145 * emul_chirp.c (chirp_read_t2h_args): Call memset-0 with the args
2146 in the correct order.
2148 * emul_chirp.c (chirp_emul_call_method): Correct computation for
2149 the address of the first stack argument passed in from the client
2152 Wed Sep 18 19:33:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2154 * words.h: Add new types signed_cell and unsigned_cell which
2155 correspond to the signed and unsigned IEEE 1275 memory locations.
2156 * device.h, device.c, emul_chirp.c: Where refering to an IEEE 1275
2157 memory cell, replace uses of unsigned32 with unsigned_cell.
2158 * device_table.h: Ditto.
2160 * sim-endian.h: Add new macros H2BE_cell and BE2H_cell which
2161 convert cell sized values to from big endian.
2162 * device.c, emul_chirp.c: Where refering to IEEE 1275 memory cells
2163 use these new macros.
2165 Tue Sep 17 15:57:44 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2167 * device.c (device_tree_add_parsed): Detect and report an
2168 interrupt being attached to an invalid device. Was dumping core.
2170 Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2172 * device.h, device.c (device_address_to_attach_address,
2173 device_size_to_attach_size): New functions. Convert a devices
2174 unit address or unit size structure into a form suitable for
2175 passing on to the attach and detach functions.
2176 * device_table.h: Add extra methods to device table.
2178 * device.h, device.c (device_find_reg_property): New function.
2179 For a reg type property, return the selected address + size
2180 tupple, along with a positive success status. Add a reg_property
2181 to the list of property types.
2182 * (device_tree_add_parsed): Make array properties with the name
2183 reg or alternate-reg of type reg_property.
2185 * hw_memory.c (hw_memory_init_address): Rewrite to use new
2186 find_reg_property method.
2187 * hw_nvram.c (hw_nvram_init_address): Ditto.
2189 * device.c (device_tree_print_device): Add code to print out a reg
2192 * device_table.c (generic_device_address_to_attach_address,
2193 generic_device_size_to_attach_size ): New functions. Generic
2194 functions for converting between unit and attach address or size.
2196 * device_table.c (generic_device_init_address): Rewrite to use the
2197 new find_reg and address convert functions. Look for both reg and
2198 alternate-reg properties.
2200 Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2202 * hw_com.c: New file. A '550 serial device that can quickly be
2203 attached to any bus.
2204 * configure.in (enable-sim-hardware): Add the com device.
2205 * configure: re-generate.
2207 Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2209 * device.c (device_tree_verify_reg_unit_address): New
2210 function. Check that the unit address as specified by the reg
2211 property correctly corresponds to any unit address previously
2212 specified by the devices name.
2213 (device_tree_add_parsed): When adding a reg property, verify
2214 that the unit-address - first value of property - correctly
2215 matches any previous value specified when creating the device
2218 Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2220 * mon.c (mon_event): Remove assertion that an unsigned is >= 0.
2222 Fri Aug 16 12:05:24 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2224 * device.c (device_full_name): Cast strdup to char *, since AIX
2225 3.2.5 mistakenly declares the function to be const char *.
2226 (device_create_from): Ditto.
2227 (device_create_instance_from): Ditto.
2228 (device_add_property): Ditto.
2230 Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2232 * debug.c (trace_option): For -t all, do not set the
2233 trace_dump_device_tree flag, so that the simulator is run.
2235 Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2237 * Makefile.in (options.o): Depend on defines.h.
2238 (defines.h): New rule, go through config.h and make strings of all
2239 of the #define HAVE_xxx macros.
2240 (distclean): Remove defines.h.
2242 * options.c (print_options): Print whether many of the
2243 configuration macros are defined.
2245 * main.c (main): If -t options and no filename, just print the
2246 options, and don't print the usage message.
2248 Mon Aug 12 18:42:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2250 * configure.in: Test whether /dev/zero works on the system, and if
2251 it does, define HAVE_DEVZERO.
2252 * configure: Regenerate.
2254 * emul_generic.c (emul_add_tree_hardware): Do not add /iobus/disk
2255 if we don't have a working /dev/zero on the system.
2257 * emul_bugapi.c (emul_bugapi_init): If HAVE_DEVZERO is not
2258 defined, don't add disk support.
2259 (emul_bugapi_do_diskio): Ditto.
2260 (emul_bugapi_instruction_call): Ditto.
2262 Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2264 * emul_unix.c (HAVE_TCGETATTR): If HAVE_TERMIOS_STRUCTURE is not
2265 defined, make sure HAVE_TCGETATTR is #undef'ed
2267 Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2269 * std-config.h (REGPARM): Only define REGPARM attributes if using
2270 GNU C. Test for __i686__ in case GCC ever defines it. If not on
2271 a x86 platform, define REGPARM as nothing.
2273 * sim-endian.h (WITH_HOST_BYTE_ORDER): Test for i686 and __i686__
2276 Wed Aug 7 20:19:55 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2278 * ld-decode.h, ld-decode.c: Rename goto_gen to the more correct
2280 * gen-idecode.c: Ditto.
2282 * gen-idecode.c (print_idecode_table): Comment out check for
2283 switch/table combination until a bug with it is fixed.
2285 * ppc-opcode-goto: New file. Like complex and flat but uses
2286 goto-switch instead of padded-switch for the tables.
2288 * gen-idecode.c (print_goto_switch_name): New function.
2289 (print_goto_switch_table_leaf): New function.
2290 (print_goto_switch_break): New function.
2291 (print_goto_switch_table): New function. Prints a jump table
2292 that can be jumped into instead of a switch statement.
2294 * gen-idecode.c (*switch_*): As an option output a switch that is
2295 implemented using a jump table but only if the switch is not
2298 Tue Aug 6 09:28:22 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2300 * configure.in (--enable-sim-{hardware,packages}): Fix typos.
2301 * configure: Regenerate.
2303 * device.c (device_instance_call_method): Fixup format message in
2304 error case. Return 0 in case of error to shut up compiler
2307 Wed Aug 7 00:17:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2309 * device_table.c (generic_device_unit_decode): Require a comma
2310 between elements of a unit address.
2312 * device.c (device_tree_print_device): For reg, alternate-reg and
2313 ranges properties use special print functions.
2314 (device_print_ranges_property): Print formatted ranges property.
2315 (device_print_reg_property): Print formatted reg property.
2317 Tue Aug 6 21:35:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2319 * device.c (device_tree_add_parsed): For reg, ranges and
2320 alternate-reg properties use a special parser.
2321 (device_tree_parse_reg_property): New function to parse a reg
2323 (device_tree_parse_ranges_property): New function to parse a
2325 (device_encode_unit): Wrapper for encode_unit callback.
2326 (device_decoce_unit): Wrapper for decode_unit callback.
2328 Wed Jul 31 00:02:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2330 * device_table.h (device_instance_callbacks): Relace the claim and
2331 release methods with a more general table mapping from method-name
2334 * device.c (device_instance_call_method): New function. Implement
2335 the OpenBoot call-method client interface. Attempts to locate the
2336 instances method in the callback table.
2337 (device_instance_claim, device_instance_release): Delete.
2338 Replaced with call-method and a lookup table.
2340 * emul_chirp.c (chirp_emul_call_method): Use the new device
2341 instance call method and let that handle a client claim call.
2343 * hw_htab.c (claim_memory): Wrapper function to call the memory
2344 devices "claim" method using the new device-instance call-method
2345 interface. Replaces the previous direct calls to claim.
2346 (htab_map_region): Use claim_memory.
2347 (htab_init_data_callback): Ditto.
2349 * hw_memory.c (hw_memory_instance_claim): Update function
2350 interface so that it is compatible with call-method.
2351 (hw_memory_instance_release): Ditto.
2352 (hw_memory_instance_methods): New table of memory specific
2353 methods claim and release. Add to the hw_memory_callback
2356 Tue Jul 30 21:26:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2358 * psim.c (psim_init): Back out of change to initial value of
2361 Tue Jul 30 21:12:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2363 * sim_callbacks.h (sim_io_printf_filtered): Replace
2364 printf_filtered with a local simulator specific version. Add
2365 #define printf_filtered to simplify updating of existing code.
2367 * sim_callbacks.h (sim_io_write_stdout, sim_io_read_stdin,
2368 sim_io_write_stderr): New functions. Read / write to the
2369 simulations stdin and stdout and stderr interfaces. Merge in code
2370 from hw_pal that previously handled async I/O.
2371 (sim_io_flush_stdoutput): Rename flush_stdoutput. Add #define
2372 flush_stdoutput to simplify updating of existing code.
2374 * hw_pal.c (scan_hw_pal, write_hw_pal,
2375 hw_pal_instance_write_callback): Use the new sim_io functions.
2377 * main.c: Implement standalone versions of the new sim_io
2378 functions. Include support for async I/O.
2379 * sim_calls.c: Ditto. This time using the gdb callback table.
2381 * std-config.h (CURRENT_STDIO, current_stdio): New macro. Set up
2382 stdio configuration so that it works in the same way as the rest
2384 * psim.c (psim_create): Initialize current_stdio from the device
2386 * emul_generic.c (emul_add_tree_options): Enter a default value
2387 for use-stdio in the device tree.
2389 Fri Jul 26 19:43:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2391 * gen-idecode.c (print_jump): Was always generating a jump back to
2392 idecode. Only necessary at tail of semantic code.
2393 (print_jump): Was always setting the processor's cia, even during
2394 startup when the processor was still undefined.
2395 (print_jump): For safety, restart smp loop when cpu_nr >= nr_cpus,
2398 * options.c (print_options): Add printing of WITH_REGPARM and
2401 * std-config.h (WITH_REGPARM, WITH_STDCALL): Provide default
2402 (disabled) values if not defined.
2404 Fri Jul 26 00:36:35 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2406 * ppc-cache-rules (cache): Change RS and RB to cache instead of
2407 compute. The block move instructions use them.
2409 * idecode_expression.h (FPSCR_SET): New macro, set specific FPSCR
2411 (CR_FIELD): New macro, extract specific CR register.
2412 (FPSCR_FIELD): New macro, extract specific FPSCR register.
2414 * registers.h (GPR): New macro, simplify accesses to GPR[i].
2416 * bits.c (INSERTED): Covert INSERTED macro into a function.
2417 (EXTRACTED): Conditionally compile on correct bit size macro.
2419 * bits.h (BIT8): New macro, set a single bit in an 8 bit byte.
2421 * ppc-instructions: With hints from Paul Martin, type in missing
2422 some instruction semantics. Leave disabled for the moment.
2423 (Load Multiple Word): Ditto.
2424 (Store Multiple Word): Ditto.
2425 (Load String Word Immediate): Ditto.
2426 (Load String Word Indexed): Ditto.
2427 (Store String Word Immedate): Ditto.
2428 (Store String Word Indexed): Ditto.
2429 (Move to Condition Register from XER): Ditto.
2430 (Move From Condition Register): Ditto.
2431 (Move From FPSCR): Ditto.
2432 (Move to Condition Register from FPSCR): Ditto.
2433 (Move To FPSCR Field Immediate): Ditto.
2434 (Move To FPSCR Fields): Ditto.
2435 (Move To FPSCR Bit 0): Ditto.
2436 (Move To FPSCR Bit 1): Ditto.
2438 Thu Jul 25 22:10:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2440 * std-config.h (SEMANTICS_INLINE): By default, mask out the
2441 inlining of semantic functions from DEFAULT_INLINE. Almost all
2442 configurations call the semantic code via a pointer so there is
2445 * std-config.h (ICACHE_INLINE): Ditto.
2447 Thu Jul 25 20:07:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2449 * configure.in (sim_regparm): Add configuration option for
2450 enabling GCC's regparm attribute.
2451 * (sim_stdcall): Add configuration option for enabling GCC's
2454 * Makefile.in (REGPARM_CFLAGS): Pass regparam configuration onto
2456 * (STDCALL_CFLAGS): Pass stdcall configuration onto compilations.
2458 * std-config.h (REGPARM): Extend construction of REGPARM macro so
2459 that it can include __stdcall__ function attribute.
2461 Wed Jul 24 19:04:20 1996 Andrew Cagney <cagney@sawnoff>
2463 * options.c (print_options): Include SUPPORT_INLINE in information
2466 * gen-idecode.c (print_run_until_stop_body): Only generate loop
2467 termination test if creating idecode_run_until_stop. Push the
2468 loop termination test back into each alternative branch.
2470 Wed Jul 24 15:47:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2472 * gen-icache.c (print_icache_function): Have the cache function
2473 always update the cache_entries semantic and address fields.
2475 * gen-idecode.c (print_idecode_switch_illegal): Include a break
2476 when generating illegal instructions. This was commented out
2477 which is a hangover from looking a at switch statements generated
2478 using indirect jumps.
2480 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2482 * igen.c (print_my_defines): Replaces print_define_my_index.
2483 Print both a definition for MY_INDEX and MY_PREFIX.
2484 * gen-icache.c (print_icache_function): Adjust.
2485 * gen-idecode.c (print_jump_insn): Adjust.
2486 * gen-semantics.c (print_c_semantic): Adjust.
2488 * gen-support.c (gen_support_h): Add optional include to created
2489 support.h so that, like cpu, it is optionally inlined for all
2490 modules that include it.
2491 * inline.h, inline.c: Adjust so that support.[hc] is handled the
2494 * idecode_fields.h (LABEL, GOTO): Macro's that create a unique
2495 name for a lable and then branch to it.
2497 * ppc-instructions (convert_to_integer, Floating Round to
2498 Single-Precision, Floating Convert from Integer Doubleword): Use
2499 LABEL and GOTO instead of the recently added switch statements.
2501 Wed Jul 24 14:02:42 1996 Andrew Cagney <cagney@sawnoff.highland.com.au>
2503 * gen-idecode.c (print_run_until_stop_body): Too many rparen in
2506 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2508 * configure.in (--enable-sim-line-nr): Typo - sim_line-nr.
2509 * (--enable-sim-inline): Reorder patern matching of arguments so
2510 that SUPPORT=ALL_INLINE is reconized as *=* and not *_INLINE.
2512 * configure: rebuild.
2514 Mon Jul 22 23:25:08 1996 Andrew Cagney <cagney@highland.com.au>
2516 * configure.in (--enable-sim-hardware, --enable-sim-packages): New
2517 configuration options. Let the user specify the packages or
2518 hardware devices that are to be included in the build. Makes it
2519 possible for user packages to be specified.
2521 * Makefile.in (tmp-pk, tmp-hw): Just use the list of packages and
2522 hardware instead of checking it using ls. configure.in should
2523 have taken care of any problems.
2524 (HW_SRC, HW_OBJ, PACKAGE_SRC, PACKAGE_OBJ): Set by configure.
2526 Mon Jul 22 22:38:59 1996 Andrew Cagney <cagney@highland.com.au>
2528 * psim.c (psim_options): Enter the argument to the memory size
2529 option directly into the device tree. Was using atol() which is
2530 dangerously non portable.
2532 Mon Jul 22 22:17:08 1996 Andrew Cagney <cagney@highland.com.au>
2534 * configure.in (icache): Extend icache flag to include an insn
2535 option. If specifyed the insn - aka instruction - is included in
2536 the instruction cache. Make this the default.
2537 * configure: re-generate.
2539 * igen.c (main), igen.h: Add option -S - inSn - for specifying
2540 that the instruction should be included in the icache.
2542 * gen-icache.c (print_icache_body): If enabled, output code to put
2543 the instruction into the icache.
2544 (print_icache_struct): If enabled, add insn to the icache struct.
2546 Mon Jul 22 20:46:12 1996 Andrew Cagney <cagney@highland.com.au>
2548 * Makefile.in (BUILD_CFLAGS): Include -g when building the
2551 Mon Jul 22 20:00:25 1996 Andrew Cagney <cagney@highland.com.au>
2553 * emul_generic.c (emul_add_tree_options): Was incorrectly setting
2554 the strict-alignment option when hardwired for non-strict
2557 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2559 * gen-semantics.c: Make the my_index variable a macro MY_INDEX.
2561 * ppc-instructions: Adjust so that references are to MY_INDEX and
2564 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2566 * gen-idecode.c: Output the complete run_until_stop function
2567 instead of just the code to handle a single instruction issue.
2568 * : Have the generated idecode.c include inline.c (instead of psim.c).
2570 * std-config.h: Change psim.c so that it isn't inlined (as this is
2573 * psim.c (run_until_stop): Delete the old run_until_stop function
2574 instead calling the idecode_run and idecode_run_until_stop
2575 functions that gen-idecode.c is now creating.
2577 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2579 * dgen.c: Maintenance - update to use new features found in lf.c.
2581 * filter_filename.c (filter_filename): Maintenance - make the
2584 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2586 * debug.c (TRACE, ITRACE, DTRACE): Have GCC instead of CPP
2587 eliminate trace statements.
2589 * debug.c: Change trace format so that it is consistent
2590 (file:line-nr) with CC's error output.
2592 * gen-itable.c (itable_c_insn): Add the source file name and
2593 source line number to the instruction's informational entry.
2595 * debug.c (ITRACE): Use the itable (and my_index) to get the
2596 current instructions name and source line number.
2598 * gen-semantics.c, gen-icache.c: Adjust generated ITRACE calls to
2599 match new interface.
2601 * emul_bugapi.c (emul_bugapi_instruction_call): Adjust
2602 corresponding call to ITRACE so that it still matches.
2604 * idecode_expression.h (ALU_END, CR0_COMPARE): Use TRACE instead
2605 of ITRACE. The CPP line directives would have previously set the
2606 line-nr and file name so ITRACE isn't needed.
2608 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2610 * gen-idecode.c (print_jump_until_stop_body): New function and
2611 idecode generation option. Instead of generating and calling
2612 separate functions containing the semantic and icache code
2613 generate a single monolythic function and use goto's (and GCC's
2614 indirect jump) to move between code blocks.
2616 * Makefile.in: Add sim_jump flag to those passed to igen.
2618 * configure.in: New option --enable-sim-jump (default disabled)
2620 * ppc-instructions: Eliminate any uses of labels and goto's.
2621 These result in duplicate declarations when a single flat function
2624 * ppc-opcode-jump: New file. Set of opcode rules useful when
2625 testing jumping idecodes.
2627 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2629 * gen-idecode.c: Optionally include the semantic code for an
2630 instruction in the function that is doing the decoding.
2632 * igen.c: Add option (-C) to generate semantics in the instruction
2635 * configure.in (--enable-sim-icache): Accept an option list such
2636 as 1024,define. Add a new choice to the list - semantic - which
2637 will cause igen to generate instruction decode functions that
2638 include the corresponding semantic code.
2640 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2642 * configure.in: New option --enable-sim-line-nr (default enabled).
2643 Enable/disable the inclusion of CPP line directives in the
2644 generated files. Such directives refer back to the source files
2645 used when generating the simulator code.
2647 * Makefile.in (sim_line_nr): Pass to igen.
2649 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2651 * igen.c (main): Revamp the options so that more letters are
2654 * configure.in: Adjust to match igen's revamped options
2656 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2658 * Makefile.in (pk.h, hw.h): Rewrite depenencies for hw.h (etc) so
2659 that they use the same technique as igen (ie a dummy targets
2660 tmp-pk and tmp-hw are created).
2662 Mon Jun 24 22:28:00 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2664 * Makefile.in (BUILD_CFLAGS): Include WARNING_CFLAGS.
2666 Wed Jun 19 21:45:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2668 * ld-cache.[hc], ld-decode.[hc], ld-insn.[hc]: New files. Separate
2669 out the loading of each of the tables from the rest of igen.
2670 * Makefile.in: Adjust.
2673 * gen-icache.[hc], gen-idecode.[hc], gen-itable.[hc],
2674 gen-model.[hc], gen-semantics.[hc]: New files. Separate out the
2675 code creating each separate set of generated files.
2676 * Makefile.in: Adjust.
2679 * gen-support.[ch]: New files. Output the support functions (found
2680 in the ppc-instructions file) into a separate file.
2682 * inline.h, inline.c: Add.
2683 * std-config.h: Add.
2685 * ld-cache.c: Re-design the cache table format.
2686 * ppc-cache-rules: Update to new format.
2688 * ld-decode.c: Re-design the decode table format.
2689 * ppc-opcode-simple: Update to new format
2690 * ppc-opcode-complex: Ditto
2691 * ppc-opcode-flat: Ditto
2693 * filter.h, filter.c: New files. Separate the opcode filter table
2694 reading code from the rest of igen.c. Re-design the filter so that
2695 it works inclusivly not exclusivly.
2696 * igen.c: Remove the opcode filter table loading code.
2697 * Makefile.in (filter.o): Adjust
2698 * configure.in: Adjust filter flag so that default includes 32bit
2700 * ppc-instructions: Clean up filter fields so that only in use
2701 entries are specifed (ie delete `be').
2703 * misc.c (name2i, i2name): New function. Map between a string and
2706 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2708 * sim_calls.c (sim_close): If simulator not created, skip printing
2711 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2713 * registers.c (register_description): Typo, insns not insn.
2715 * ppc-instructions (model_get_number_of_stalls): New model function,
2716 returns number of stalls for the specified processor.
2717 * psim.c (psim_read_register): Add call to new function
2718 model_get_number_of_stalls().
2720 * ppc-instructions (model_get_number_of_cycles): New model function,
2721 returns number of stalls for the specified processor.
2722 * psim.c (psim_read_register): Add call to new function
2723 model_get_number_of_cycles().
2725 Fri Jun 14 00:11:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2727 * device_table.h: Don't pass the parent device into a devices
2728 create function. This makes the create function consistent with
2730 * device.c (device_template_create_device): Ditto
2731 * hw_pal.c (hw_pal_create): Ditto
2732 * hw_core.c (hw_core_create): Ditto
2733 * hw_vm.c (hw_vm_create): Ditto
2734 * hw_disk.c (hw_disk_create): Ditto
2735 * hw_nvram.c (hw_nvram_create): Ditto
2736 * hw_memory.c (hw_memory_create): Ditto
2737 * hw_cpu.c (hw_cpu_create): Ditto.
2739 * device.c (split_find_device): Allow a null initial parent device.
2740 (device_template_create_device): Ditto.
2742 * device.c (device_create_from): Make local (static) only used
2744 * device_table.h: typedef device_callbacks moved here (from
2745 device.h) where it belongs.
2747 * hw_core.c: New file. Implements just the core device using the
2750 * corefile.c: Moved all core device functions into the new
2751 hw_core.c file. core_device_create() disapears.
2753 * psim.c (psim_tree): Use device_tree_add_parsed() to create the
2756 Thu Jun 13 00:09:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2758 * hw_init.c: Correct typo in comment.
2760 * corefile.c (core_init): Remove any remaining references to a
2762 (core_map_find_mapping): Ditto.
2764 Wed Jun 12 22:30:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2766 * corefile.c (core_init): Make function global so that other
2767 devices are able to use the full core object.
2769 * corefile.c (core_create, core_from_device): Break core_create
2770 into two functions. The first creates a core object, the second
2771 returns the core object associated with a core device.
2773 * corefile.c (core_device_create): Use core_create to make the
2776 * psim.c (psim_create): Use core_from_device() instead of
2779 * device.c (device_template_create_device): Make static as only
2780 needed by functions internal to device.c.
2782 Fri Jun 7 23:47:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2784 * ppc-opcode-test-2: Remove description of fields.
2785 * ppc-opcode-complex: Ditto
2786 * ppc-opcode-flat: Ditto
2787 * ppc-opcode-simple: Ditto
2788 * ppc-opcode-stupid: Ditto
2789 * ppc-opcode-test-1: Ditto
2790 * ppc-cache-rules: Ditto
2792 * igen.c: Add description of files as a comment at the front.
2794 Wed Jun 26 12:50:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2796 * configure.in: Check for whether the termios and termio
2797 structures are really defined, and whether or not, they define the
2799 * configure: Regenerate.
2801 * Makefile.in ({,TERMIO_}CFLAGS): Add TERMIO_CFLAGS options set by
2804 * emul_unix.c: Various changes to allow for building on systems
2805 with different termio and termios structures. If host has both
2806 termio and termios, just use termios. No longer include
2809 Wed Jun 26 12:26:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
2811 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
2812 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
2814 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
2815 (AC_PROG_INSTALL): Added.
2816 * configure: Rebuilt.
2818 Wed Jun 5 23:53:42 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2820 * corefile.h: Rewrite documentation so that it can be extracted and
2821 converted into texinfo (and hence ready for translation into html,
2825 Thu Jun 6 09:52:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2827 * hw_disk.c (SEEK_SET): If SEEK_SET is not defined, define as 0.
2829 Wed Jun 5 11:46:52 1996 Andrew Cagney <cagney@puddin>
2831 * hw_disk.c: Include <unistd.h> if available. Under SunOS, that
2832 is the source of SEEK_SET.
2834 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2836 * psim.c (psim_options): Correct type of dummy arguments being
2837 passed to a device_ioctl call.
2839 * hw_init.c (hw_data_init_data_callback): Adjust printf arguments.
2840 (write_stack_arguments): Ditto.
2841 * hw_trace.c: Instance callback entry no longer a table.
2843 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2845 * emul_unix.c (do_unix_umask): Cast printf argument.
2846 (convert_to_linux_termios): Use LINUX_VSWTC not LINUX_VSWCH
2848 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2850 * hw_init.c (update_for_binary_section): Abort if we find an
2851 .interp section, which indicates the need for shared libraries to
2854 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2856 * emul_unix.c (do_unix_{time,gettimeofday,getrusage}): Add support
2857 for time, gettimeofday, and getrusage system calls.
2858 ({solaris,linux}_descriptors): Add new system calls.
2859 (do_get{,e}{uid,gid}): Use gid_t/uid_t types.
2860 (do_get{,p}pid): Use pic_t types.
2862 * configure.in (AC_TYPE_{GETGROUPS,SIGNAL}): Define.
2863 (AC_TYPE_{MODE,OFF,PID,SIZE,UID}_T): Define.
2864 * config{.in,ure}: Regenerate.
2866 Mon Jun 3 23:19:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2868 * emul_netbsd.c (emul_netbsd_create): Use the more specific names
2869 `ppc-elf' and `ppc-xcoff' for the stack-type.
2870 * emul_unix.c (emul_unix_create): Ditto.
2871 * emul_bugapi.c (emul_bugapi_create): Ditto.
2872 * hw_init.c: Reconize the new names.
2874 * emul_unix.c (do_unix_break): Adjust so that the updated ioctl
2875 call is used (no system parameter).
2877 Sun Jun 2 11:21:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2879 * emul_unix.{h,c}: New files to provide Solaris and Linux system
2882 * Makefile.in (LIB_{SRC,OBJ}): Add emul_unix.{c,o}.
2883 (os_emul.o): Depend on emul_unix.h.
2884 (emul_unix.o): New dependency.
2886 * configure.in (--enable-sim-alignment): Add 0|default to mean set
2887 alignment to 0, which means use appropriate alignment for mode.
2888 (AC_CHECK_FUNCS): Add new functions needed by emul_unix.c.
2889 (AC_CHECK_HEADERS): Add new include files needed by emul_unix.c.
2890 * config.in: Regenerate.
2891 * configure: Regenerate.
2893 * emul_generic.c (emul_write2_status): New function to return
2894 results in r3 and r4 for Solaris system calls.
2895 (emul_do_system_call): If the system call is not support, but
2896 there is a string for the system call name, print out the string
2897 instead of the system call number.
2899 * emul_generic.h (emul_write2_status): Declare it.
2901 * emul_netbsd.c: Use /* */ around comment on #endif.
2903 * os_emul.c: Include emul_unix.h.
2904 (os_emulations): Add emulations for Solaris, and Linux.
2906 * psim.c (psim_usage): Add message about solaris, linux
2909 Thu May 30 00:00:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2911 * hw_iobus.c: Tidy up notes so that they can be auto-extracted.
2913 * README: Correct PSIM's title
2915 Wed May 29 23:50:26 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2917 * basics.h: New global type object_disposition, used to indicate
2918 the status of objects when things are restarted.
2920 Fri May 17 17:28:52 1996 Andrew Cagney <cagney@benjimen.highland.com.au>
2922 * device_table.h: Change the interrupt descriptor structure so
2923 that it includes an additional member - an upper bound on the
2924 interrupts by that name.
2926 * device.c (device_interrupt_decode): Allow a range of interrupt
2927 ports (eg rst0 .. rst6) if the port descriptors bound is non zero.
2929 * device.c (device_tree_print_device): Include a list of valid
2930 interrupt ports when listing supported devices.
2932 * device.h, device.c (device_child_interrupt_*): Delete. Not used.
2934 * emul_generic.c (emul_add_tree_hardware): Modify the creation of
2935 the interrupt net so that it uses int0 .. intN.
2937 Tue May 14 23:03:53 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2939 * device.h, device.c (device_ioctl): Drop the system argument.
2940 Devices can not obtain this using the device_system() call.
2941 * device_table.h: Adjust accordingly.
2942 * hw_*.c: Adjust accordingly.
2943 * emul_netbsd.c (do_break): Adjust call to vm device accordingly.
2944 * psim.c (psim_options): Use a device_ioctl call to force the
2945 hw_trace device to update the trace options.
2946 * hw_trace.c: Replace the init function with an ioctl call. Adjust
2949 * psim.c (psim_init): Re-order initialization so that the
2950 os-emulation is initialized after the device tree. Without this,
2951 os-emul's are not able to create instances or access properties
2952 that contain an instance handle.
2954 * device.h, device.c (device_add_*_property): Make these functions
2955 internal to device.c. The user has access to the more generic
2956 device_tree_add_parsed function. Differentiate between the initial
2957 and current value for each property.
2958 * (clean_device_properties): New function that deletes any
2959 properties created after the start of a simulation and restores
2960 the initial value of any others (ignoring ihandles).
2961 * (init_device_properties): (Re)Initialize any properties that
2962 contain ihandles. create
2964 * (device_tree_init): Include calls to clean the device tree's
2965 properties and then initialize them. Document this in the device.h
2968 Mon May 6 17:36:15 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2970 * interrupts.c (decrementer_interrupt): Always pend a decrementer
2971 interrupt even if it is not yet possible to deliver it.
2973 Wed May 1 12:26:51 1996 Andrew Cagney <cagney@benjimen>
2975 * mon.h, mon.c (mon_get_number_of_insns): Make this externally
2976 visable adjusting the arguments so that the interface is correct.
2977 (mon_print_info): Adjust calls.
2979 * registers.h, registers.c (register_description): Add phony
2980 cycle, insn and stall registers.
2982 * psim.c (psim_read_register): Return nr of instructions for given
2985 Tue Apr 30 22:09:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2987 * hw_htab.c: New file. Extract contents from disk_table.c.
2988 Contains a device that, during initialization will create a
2989 PowerPC htab in memory.
2990 * hw_register.c: New file. Extract contents from disk_table.c.
2991 Contains a device that, during initialization, will parse its
2992 property list and use that to initialize various processor
2993 registers (not target specific).
2994 * hw_vm.c: New file. Extract contents from disk_table.c. Contains
2995 a device that handles accesses to invalid virtual memory addresses
2997 * hw_init.c: New file. Extract contents from disk_table.c. Misc
2998 devices that can initialize memory from a file.
2999 * hw_trace.c: New file. Extract contents from disk_table.c.
3000 Configure trace options from property values.
3002 * Makefile.in (hw_htab.o, hw_register.o, hw_vm.o, hw_init.o,
3003 hw_trace.c): Add new device files.
3005 * device_table.c: Remove above code, now in separate independant
3008 Fri Apr 26 00:00:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3010 * hw_disk.c: New file. Disk and CDROM device.
3012 * Makefile.in (hw_disk.o): Add device hw_disk.c.
3014 * pk_disklabel.c: New file. Implement the miss-named disk-label
3017 * Makefile.in (pk.h): Create the file pk.h that contains a list of all
3020 * Makefile.in (hw.h, hw.c): Add dependancy on Makefile so that
3021 they are re-created when the makefile is updated.
3023 * emul_generic.c (emul_add_tree_hardware): Add a disk device
3024 (below the iobus) to the device tree. Include an ihandle of
3025 the disk as /chosen/disk.
3027 * emul_bugapi.c (emul_bugapi_create): Don't initialize the input,
3028 output and (new) disk handles yet.
3029 * (emul_bugapi_init): Initialize the input, output (and just added)
3031 * (emul_bugapi_do_diskio): New. Performs disk i/o (well at least
3032 what I think the behavour is).
3033 * emul_bugapi.c (emul_bugapi_instruction_call): Add hook to disk
3034 i/o bug call. For RETURN call, exit using gpr[3]'s status even
3035 though this isn't part of the spec - makes it possible for machine
3036 code to signal the aporting of a simulation run.
3038 * emul_chirp.c (chirp_emul_call_method): Add support for the
3039 claim/release methods.
3040 * (chirp_emul_exit): Add an optional exit status argument to
3041 the exit method. Makes it possible for chirp emul simulations
3042 to abort upon an error.
3043 * device.h, device.c (device_instance_claim,
3044 device_instance_release): New methods for claiming and releasing
3046 * hw_memory.c: add claim and release memory methods.
3047 * hw_*: Use the claim memory method when allocating physical
3050 Thu Apr 18 23:38:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3052 * hw_nvram.c (hw_nvram_update_clock): Use the current not previous
3053 time when updating the clock.
3055 * hw_nvram.c: Tidy up documentation
3057 Fri May 24 10:08:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3059 * configure.in (AC_STRUCT_ST_{BLKSIZE,BLOCKS,RDEV}): Use these
3060 macros to determine whether or not the appropriate st_<xxx> fields
3061 exist in the stat structure.
3062 (AC_CHECK_FUNCS): Check for all unix system calls used, except for
3063 the real basic ones like open, read, write, etc.
3064 * config{.in,ure}: Regenerate.
3066 * emul_netbsd.c: Add support for missing system calls, and/or
3067 missing stat fields.
3068 (MAXPATHLEN): Undefine if including unistd.h, since sys/param.h
3071 * hw_pal.c (WITH_STDIO): Redefine if O_NDELAY, F_GETFL, or F_SETFL
3073 (scan_hw_pal): Do not cause syntax error if O_NDELAY, F_GETFL, or
3074 F_SETFL not defined.
3076 Tue May 21 17:24:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3078 * emul_netbsd.c (write_stat): Don't convert st_blocks unless the
3081 Thu May 16 10:56:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3083 * configure.in (AC_CHECK_HEADERS): Add sys/ioctl.h.
3084 * config{.in,ure}: Regenerate.
3085 * emul_netbsd.c: If HAVE_SYS_IOCTL_H is not defined, don't include
3088 Tue May 7 17:28:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3090 * hw_pal.c (hw_pal_instance_read_callback): Remove unused
3093 * misc.c ({,target_}a2i): Rewrite to not use strtoul.
3095 * Makefile.in ({spreg,misc}.o): Add dependency on .c file.
3096 ({i,d}gen): Don't link in liberity. Use BUILD_LIBS instead of
3099 Mon May 6 11:31:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3101 * hw_pal.c (hw_pal_instance_read_callback): If using stdio, use
3102 fgets to read line. If not using stdio, do a simple blocking read
3105 Fri May 3 15:07:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3107 * Makefile.in: Correctly build simulator for build machine != host
3110 Tue Apr 30 18:46:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3112 * configure.in (--enable-hostendian): Rework so the default uses
3113 the AC_C_BIGENDIAN results. Only run AC_C_BIGENDIAN if not cross
3115 * configure: Regenerate.
3117 * sim-endian.h: Add more tests for host endian to support more
3118 platforms in a cross compilation environment.
3120 Wed Apr 17 14:38:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3122 * hw_pal.c ({scan,write}_hw_pal): If WITH_STDIO == DO_USE_STDIO,
3123 use stdio, instead of unpended read/printf_filtered.
3124 (hw_pal_instance_write_callback): If WITH_STDIO == DO_USE_STDIO,
3125 flush stdout after writing the characters.
3127 * options.c (print_options): Print out WITH_STDIO.
3129 * Makefile.in (STDIO_CFLAGS): Pass on result of @sim_stdio@
3130 configuration variable.
3131 (CONFIG_CFLAGS): Include STDIO_CFLAGS.
3132 (hw.{c,h}): Allow for source dir != build dir, and for HW_SRC
3133 files to contain directory pieces.
3135 * std-config.h (DO{,NT}_USE_STDIO): New flags for whether we
3136 should use stdio for console input.
3137 (WITH_STDIO): If not defined, define as DONT_USE_STDIO.
3139 * configure.in (--enable-sim-stdio): Add new switch to control
3140 whether stdio is used for console I/O.
3141 * configure: Regenerate.
3143 * interrupts.c (external_interrupt): Declare it to be
3144 INLINE_INTERRUPTS, not INLINE_CPU.
3146 Mon Apr 15 23:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3148 * events.c (insert_event_entry): Allow events to be scheduled
3149 *NOW* (at delta time 0). Add assertions to clarify behavour of
3152 * events.c (update_time_from_event): New function. Calculates the
3153 number of ticks from the next event. Use this.
3155 Sun Apr 14 21:39:45 1996 Andrew Cagney <cagney@highland.com.au>
3157 * emul_netbsd.c (do_break): Return 0 if success (instead of
3160 * device_table.c (vm_ioctl_callback): Don't return adjusted break
3163 Sun Apr 14 21:32:41 1996 Andrew Cagney <cagney@highland.com.au>
3165 * device_table.h: Change type of the device ioctl so that it
3166 returns an int (status).
3167 * device.h (device_ioctl): Ditto.
3168 * device.c (device_ioctl): Ditto.
3170 * device_table.c (stack_ioctl_callback): Return 0 status.
3171 (vm_ioctl_callback): Ditto
3173 Sat Apr 13 00:00:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3175 * emul_netbsd.c (do_read): Correctly set the return value.
3178 (do_geteuid): Ditto.
3180 (do_getegid): Ditto.
3182 (do_sigprocmask): Ditto.
3185 (do_gettimeofday): Ditto.
3186 (do_getrusage): Ditto.
3190 (do___sysctl): Ditto.
3192 Fri Apr 12 20:56:47 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3194 * device_table.c (vm_ioctl_callback): Don't access the processor
3195 registers directly, instead leave it to the caller to handle this.
3197 * emul_netbsd.c (do_break): Which calls vm_ioctl_callback to
3198 perform a break. Pass in the new break value and set the
3199 registers according to the result.
3201 * emul_generic.c (emul_write_status): Change so that r3 contains
3202 either status or errno and failure is indicated by SO.
3204 Thu Apr 4 23:03:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3206 * emul_bugapi.c (emul_bugapi_create): More strict check of OEA
3209 Thu Apr 4 20:58:05 1996 Andrew Cagney <cagney@highland.com.au>
3211 * interrupts.h (interrupts): New structure contains state of
3214 * cpu.c (cpu_interrupts): New function. Pending interrupt status
3215 in the cpu and grant access to it. Add interrupts to cpu
3218 Fri Mar 29 22:09:25 1996 Andrew Cagney <cagney@highland.com.au>
3220 * device.c (device_tree_add_parsed): Check that the creation of a
3221 device instance worked before using it.
3223 * psim.c (psim_halt): Remove cia argument from psim_halt. This
3224 function does not save the CIA so do not pass it in.
3226 Fri Mar 29 21:30:56 1996 Andrew Cagney <cagney@highland.com.au>
3228 * hw_pal.c (hw_pal): Merge the halt and icu and console devices
3229 found in device_table.c into a single hack pal.
3231 * device_table.c (halt, icu, console): Delete.
3233 * Makefile.in (hw_pal.o): New dependency.
3235 * emul_generic.c (emul_add_tree_hardware): Re-arange device tree
3236 so that it uses the pal instead of the icu/halt/console devices.
3237 Wire the pal's interrupt ports up to the cpu nodes.
3239 Fri Mar 29 20:17:17 1996 Andrew Cagney <cagney@highland.com.au>
3241 * hw_iobus.c (hw_iobus_attach_address_callback): Move from
3242 device_table.c to here.
3244 * Makefile.in (hw_iobus.o): New dependency.
3246 Fri Mar 29 12:17:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3248 * emul_bugapi.c (_os_emul_data): Add fields for output, input.
3249 (emul_bugapi_create): Create input, output from /chosen/stdin and
3251 (emul_bugapi_do_{read,write}): Switch to use device_instance
3253 (emul_bugapi_instruction_call): Change calls to
3254 emul_bugapi_do_{read,write} to pass device instance argument.
3256 Tue Mar 26 14:57:58 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3258 * igen.c (idecode_switch_end): Fix 2/26 change so that an extra
3259 default is not written out if a default was already written.
3261 * psim.c (psim_{read,write}_register): Use sizeof unsigned_8 to
3262 size cooked_buf, not sizeof natural_word, since floating point
3263 registers are 8 bytes.
3265 Mon Mar 25 22:07:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3267 * configure: Regenerate with autoconf 2.9.
3269 Thu Mar 21 00:14:26 1996 Andrew Cagney <cagney@highland.com.au>
3271 * device_table.h: Always include string headers.
3273 Thu Mar 21 00:06:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3275 * main.c (error): Be careful to not try to print out statistics
3276 when the simulation was never created.
3278 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3280 * basics.h: Move the event queue's definition to here so that it
3281 can be refered to globally with out importing all of events.h.
3283 * psim.h, psim.c (psim_event_queue): New function. Grant access
3284 to the simulation event queue. Will make this the single point of
3285 access (there is after all only one event queue in the
3288 * cpu.c (cpu_create): Use psim_event_queue to obtain the event
3289 queue instead of it being passed in. No longer allow access to
3290 the cpu's copy of the event queue.
3292 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3294 * events.h, events.c (event_handler): Remove event_queue from
3295 arguments passed to an event handler. That argument is redundant
3296 - the `data' should refer to a data structure that contains the
3297 event queue if queing is needed.
3299 * cpu.c (cpu_decrement_event): adjust
3301 * events.c (event_queue_process): adjust
3303 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3305 * device.h, device.c (device_system): New, returns a handle for
3306 the system given the device.
3308 * device.c (device_address_init): Store a pointer back to the
3309 system in each devices node.
3311 * device_table.h: Don't pass `system' into each device when it is
3312 being initialized, this is now available using device_system(me).
3314 * device.c (device_address_init, device_data_init): Adjust.
3316 * hw_cpu.c, hw_nvram.c, hw_memory.c, hw_eeprom.c, device_table.c:
3319 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3321 * interrupts.c (decrementer_interrupt, external_interrupt):
3322 Remember that an interrupt wasn't delivered so that it can be
3325 * interrupts.c (check_masked_interrupt): New function. (re)
3326 checks for the posibility that a recent change to the MSR may have
3327 made it possible to deliver an interrupt that was previously
3328 masked be the EE bit.
3330 * ppc-instructions (mtmsr, mfmsr, rfi): Check for posibility of
3331 a pending interrupt being delivered using check_masked_interrupt().
3333 * cpu.c (cpu_decrement_event): Just call decrementer_interrupt()
3334 leaving it to that module to handle both interrupt synchronization
3337 * cpu.c (struct _cpu): remove variables that were going to record
3338 pending decrementer and external interrupts.
3340 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3342 * hw_cpu.c, hw_cpu.h: New files. Implement a device that sits
3343 between the interrupt controller and the simulators internal
3344 processor model. Maps device interrupts onto the processor
3345 interrupt function calls.
3347 Mon Mar 4 06:06:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3349 * hw_nvram.c: NVRAM device that includes a real-time clock that is
3350 updated each second.
3352 Mon Mar 4 04:18:50 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3354 * device.h (attach_type): Remove attach_default type address
3355 spaces. Will replace with levels of callback memory.
3357 * corefile.h, corefile.c (new_core_mapping), corefile.c
3358 (core_map_attach): Replace default attach with a layerd callback
3361 Sun Mar 3 03:58:46 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3363 * device.c (split_property_specifier): ensure that only a single
3365 (split_value): New function, parses the value part of a device
3368 * device.c (device_tree_add_parsed): Use the interrupt conversion
3369 functions to determine the interrupt port numbers.
3371 * device_table.h: Add table that maps between an interrupts
3372 symbolic name and its port number.
3374 * device.h, device.c (device_interrupt_decode,
3375 device_interrupt_encode): new functions use the recently added
3376 interrupt port name/number tables to perform conversion.
3378 Sun Mar 3 03:23:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3380 * device.h, device.c (device_set_array_property,
3381 device_set_boolean_property, device_set_ihandle_property,
3382 device_set_integer_property, device_set_string_property): New
3383 functions - allow the value of a given property to be changed.
3385 * device.h, device.c: Re-order declaration and definition of
3388 Sun Mar 3 03:10:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3390 * device.c (device_tree_print_device, device_tree_add_parsed):
3391 Remove references to phandle properties.
3393 Wed Feb 28 00:43:07 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3395 * Makefile.in (corefile.o): missing dependency on device_table.h
3398 Tue Feb 27 23:59:35 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3400 * device_table.h: Revamp device init callbacks so that they are a
3402 * device.c (device_init_data, device_init_address): If an init
3403 callback is NULL assume it should do nothing.
3404 * device_table.c (ignore_device_init, unimp_device_init): delete
3406 * device_table.c, hw_memory.c: adjust.
3410 * (device_instance): ditto.
3412 * (address nee config_address): ditto.
3413 * (interrupt): ditto.
3415 Mon Feb 26 21:11:20 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3417 * igen.c (idecode_switch_end): Output a default entry when the
3418 switch statement is perfect. Firstly stops GCC complaining about
3419 an incomplete switch and secondly it will be eliminated by a good
3422 Mon Feb 26 22:47:15 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3424 * Makefile.in (hw.h, hw.c): New targets. Create from the list of
3425 hw_*.c files. hw.h declares a device descriptor table for each hw
3426 device while hw.c lists those tables in a form suitable for the
3427 construction of a top leveltable in device_table.c.
3429 * Makefile.in (device_table.o): now depends on hw.c a generated
3432 * device_table.c (device_table): Re-arange the table of devices so
3433 that two levels are possible. Make use of hw.c.
3434 * device_table.h: ditto.
3436 * device.c (device_template_create_device): Handle new two level
3437 device lookup table.
3438 * device.c (device_usage): ditto.
3440 Mon Feb 26 22:24:00 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3442 * device_table.c: Delete the memory device (moved to hw_memory.c).
3444 * hw_memory.c: New file. Just an OpenBoot memory device.
3446 Wed Jan 17 21:47:34 1996 Andrew Cagney <cagney@highland.com.au>
3448 * device.c (device_init_address): New. Split initialization into
3449 two stages, address and address spaces
3450 * device.c (device_init_data): New. ... and data or other work.
3451 With out this, devices try to modify memory before it as been
3454 * device.c (device_tree_init): Update to perform staged
3457 * device.c (device_init): Delete.
3459 Wed Jan 17 21:43:09 1996 Andrew Cagney <cagney@highland.com.au>
3461 * device_table.c (data_*): Rewrite to make heaver use of property
3462 nodes. Allow initialization by different data types.
3463 * device_table.c (htab_* pte_*): Rewrite to use properties.
3465 * emul_chirp.c (emul_chirp_create): Use
3466 * emul_bugapi.c (emul_bugapi_create): Ditto
3467 * emul_netbsd.c (emul_netbsd_create): Ditto
3469 Wed Jan 17 21:24:50 1996 Andrew Cagney <cagney@highland.com.au>
3471 * emul_generic.c (emul_add_tree_options): Annotate existing tree
3472 with options that haven't yet been specified.
3473 * emul_generic.c (emul_add_tree_hardware): Annotate existing tree
3474 with demo devices and properties.
3476 * emul_chirp.c (emul_chirp_create): Update to use new
3477 device_tree_add_parsed call and additional information now
3478 included in the device tree. Use emul_add_tree* functions to add
3479 any missing details.
3480 * emul_bugapi.c (emul_bugapi_create): Ditto
3481 * emul_netbsd.c (emul_netbsd_create): Ditto
3483 Wed Jan 17 21:18:27 1996 Andrew Cagney <cagney@highland.com.au>
3485 * device.c (device_instance_create): New. Create/delete and
3486 operate on instances of a device.
3487 * device.c (device_instance_delete): Ditto
3488 * device.c (device_instance_read): Ditto
3489 * device.c (device_instance_write): Ditto
3490 * device.c (device_instance_seek): Ditto
3491 * device.c (device_instance_data): Ditto
3492 * device.c (device_instance_name): Ditto
3493 * device.c (device_instance_path): Ditto
3495 * emul_chirp.c (chirp_emul_open): Implement using device_instance.
3496 * emul_chirp.c (chirp_emul_close): Ditto
3497 * emul_chirp.c (chirp_emul_read): Ditto
3498 * emul_chirp.c (chirp_emul_write): Ditto
3499 * emul_chirp.c (chirp_emul_seek): Ditto
3501 * emul_chirp.c (chirp_read_t2h_args): Read arguments from device.
3502 Being careful to convert all from target to host byte order.
3503 * emul_chirp.c (chirp_write_h2t_args): Converse.
3505 Wed Jan 17 20:07:15 1996 Andrew Cagney <cagney@highland.com.au>
3507 * device.c (device_tree_add_parsed): New. Rewrite code to add
3508 devices to the device tree so that a single printf style function
3511 * device.c (device_tree_add_*): Delete. Replaced by above.
3513 * device.c (split_device_specifier): Functions to manipulate a
3514 device specifier (path) breaking it into its components
3515 * device.c (split_property_specifier): Ditto
3516 * device.c (split_device_name): Ditto
3517 * device.c (split_find_device): Ditto
3519 * device.c (scan_*): Delete
3521 * device.c (device_tree_find_device): Rewrite to use above.
3522 * device.c (device_add_property): Ditto
3524 Wed Jan 17 19:51:56 1996 Andrew Cagney <cagney@highland.com.au>
3526 * psim.c(psim_options): Parse the psim options, installing their
3527 value in the device tree. Options are now first entered into a
3528 device tree and then extracted out again when needed. This allows
3529 greater flexability in configuration.
3531 * psim.c (psim_tree): Returns a basic device tree ready for
3532 parsing by psim_options.
3533 * psim.c (psim_usage): New. Give usage to varing levels of detail
3534 according to the verbosity. In turn output device and trace
3537 * main.c (main): Update to use new system
3538 * sim_calls.c (sim_open, sim_do_command): Ditto
3540 * psim.c (psim_options): Add `r' option - ram size.
3541 * psim.c (psim_options): Add `o' option - openboot tree entry.
3542 * psim.c (psim_options): Add `h'/`H' options - more help.
3544 * debug.c (trace_usage): Add more detailed help.
3545 * device.c (device_usage): New. Output help including a list of
3546 the devices currently available in the device table.
3547 * device_table.c: Add usage operator to each device.
3549 * corefile.c (core_create, core_device_create): Adjust so that the
3550 core device is created earlier for psim_tree(). Core can later be
3553 * psim.c (psim_create): Update to handle above way of creating
3554 things. Extract all information from the device tree.
3556 * device_tree.c (trace_*): New device node, its properties are
3557 used to set the value of the trace options. Init this device (in
3558 psim_options) when ever the options are updated.
3560 Wed Jan 17 19:46:07 1996 Andrew Cagney <cagney@highland.com.au>
3562 * debug.h: Add trace_print_info, trace_print_device_tree and
3563 trace_dump_device_tree. The first is a replacement for the
3564 variable `print_info' found in main.c and sim_calls.c. The latter
3565 two enable the dumping of the entire device tree.
3567 * debug.c: Add to trace_description table.
3569 * main.c (main): Use above trace instead of local variable
3570 * sim_calls.c (sim_close): Ditto
3572 * device.c (device_tree_print_device): New. Prints the device
3573 tree in a format that is consistent with what can be parsed by the
3574 device tree load from file code.
3576 * psim.c (psim_create): Dump device tree if enabled. If nump
3577 selected, exit psim immediatly.
3579 Wed Jan 17 19:36:52 1996 Andrew Cagney <cagney@highland.com.au>
3581 * corefile-n.h (core_map_read_N): When mapping from an address to
3582 a device, do not subtract the devices base. The device its self
3583 can do this. Brings the behavour into line with OpenBoot.
3584 * corefile-n.h (core_map_write_N): Ditto
3585 * corefile.c (core_map_read_buffer): Ditto
3586 * corefile.c (core_map_write_buffer): Ditto
3588 * device_table.c (console_io_read_buffer_callback): Adjust to
3589 handle biased address.
3590 * device_table.c (console_io_write_buffer_callback): Ditto
3592 Wed Jan 17 18:36:09 1996 Andrew Cagney <cagney@highland.com.au>
3594 * device.c (attach_device_interrupt_edge): New. Interrupt model
3595 did not allow interrupts to be wired up as a general net (edges).
3596 Re-implement so that interrupt events can be passed to multiple
3597 controllers and interrupt controllers can further propogate
3600 * device.c (attach_device_interrupt_edge) : New, Ditto
3601 * device.c (detach_device_interrupt_edge) : New, Ditto
3602 * device.c (clean_device_interrupt_edges) : New, Ditto
3603 * device.c (device_interrupt_event) : New, Ditto
3604 * device.c (device_interrupt_attach) : New, Ditto
3605 * device.c (device_interrupt_detach) : New, Ditto
3606 * device.c (device_child_interrupt_attach) : New, Ditto
3607 * device.c (device_child_interrupt_detach) : New, Ditto
3609 * device.c (device_attach_interrupt) : Delete old
3610 * device.c (device_detach_interrupt) : Delete old
3611 * device.c (device_interrupt) : Delete old
3612 * device.c (device_interrupt_ack) : Delete old
3614 * device_table.c (unimp_*) : Update to match
3616 * device_table.c (icu_io_write_buffer_callback) : Update to use
3618 * device_table.c (icu_interrupt_event_callback) : Ditto
3620 Wed Jan 17 18:18:40 1996 Andrew Cagney <cagney@highland.com.au>
3622 * device.c (external_to_device) : New function that provides a
3623 standard mapping between a devices internal representation (a
3624 pointer) and its external (or what is passed to a client)
3625 representation (a phandle). Implement using the cap object
3626 attached to the root node.
3628 * device.c (device_to_external) : Ditto
3629 * device.c (external_to_device_instance) : Ditto but for ihandle
3630 and device instance.
3631 * device.c (device_instance_to_external) : Ditto
3633 * Makefile (device.o): Add dependency on cap.
3635 * emul_chirp.c (struct _emul_chirp_data) : Elimate use of cap. Code
3636 needing to translate between internal and external representations
3637 changed to use the external_to_device et.al. device operations.
3638 * emul_chirp.c (chirp_emul_*) : Ditto
3640 * Makefile (emul_chirp.o): Remove dependency on cap
3642 Sat Jan 6 10:13:26 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3644 * emul_chirp.c (map_over_chirp_note): Tighten up (and fix) checks
3645 on OpenBoot note section.
3647 Fri Jan 5 20:28:53 1996 Andrew Cagney <cagney@hignland.com.au>
3649 * emul_generic.c (emul_write_buffer): Use vm faulting byte
3650 read/write calls for buffer transfers. This will cause a fault to
3651 occure if the transfer fails. CHRP catches the fault while the
3652 others suffer the consequences.
3653 (emul_read_buffer): Ditto.
3654 (emul_write_word): Ditto.
3655 (emul_read_word): Ditto.
3656 (emul_read_string): Ditto.
3658 Fri Jan 5 18:55:34 1996 Andrew Cagney <cagney@highland.com.au>
3660 * emul_chirp.c (emul_chirp_create, emul_chirp_instruction_call),
3661 emul_generic (emul_blr_instruction): Use a real blr instruction to
3662 return from a client service call.
3664 * emul_chirp.c (services): Add all OpenBoot services to table.
3666 * emul_generic.h, emul_bugapi.c (emul_bugapi_create), emul_chirp.c
3667 (emul_chirp_create) : Use names instead of numbers for
3668 instructions being stored in memory.
3670 Fri Jan 5 18:52:28 1996 Andrew Cagney <cagney@highland.com.au>
3672 * Makefile.in (maintainer-clean): Remove .log, core and *.core
3673 (From NetBSD) files.
3675 Wed May 29 22:57:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3677 * ChangeLog.00, ChangeLog: ChangeLog from gdb-4.16 becomes