1 2004-05-10 Daniel Jacobowitz <dan@debian.org>
3 * configure.in (sim_fpu_cflags): Add -I../common.
4 * configure: Regenerated.
6 2004-01-27 Andrew Cagney <cagney@redhat.com>
8 * ppc-instructions: Update copyright.
9 (convert_to_integer): Add trailing ";" to label.
11 2003-10-16 Michael Snyder <msnyder@redhat.com>
13 * emul_netbsd.c: Only a comment may follow an #endif.
15 2003-10-15 Michael Snyder <msnyder@redhat.com>
17 * Makefile.in (sim_calls.o): No longer depends on gdb/tm.h.
19 2003-06-22 Andrew Cagney <cagney@redhat.com>
21 Written by matthew green <mrg@redhat.com>, with fixes from Aldy
22 Hernandez <aldyh@redhat.com>, Jim Wilson <wilson@redhat.com>, and
23 Nick Clifton <nickc@redhat.com>.
25 * ppc-instructions: Include altivec.igen and e500.igen.
26 (model_busy, model_data): Add vr_busy and vscr_busy.
27 (model_trace_release): Trace vr_busy and vscr_busy.
28 (model_new_cycle): Update vr_busy and vscr_busy.
29 (model_make_busy): Update vr_busy and vscr_busy.
30 * registers.c (register_description): Add Altivec and e500
32 * psim.c (psim_read_register, psim_read_register): Handle Altivec
34 * ppc-spr-table (SPEFSCR): Add VRSAVE and SPEFSCR registers.
35 * configure.in (sim_filter): When *altivec* add "av". When *spe*
37 (sim_float): When *altivec* define WITH_ALTIVEC. When *spe* add
39 * configure: Re-generate.
40 * e500.igen, altivec.igen: New files.
41 * e500_expression.h, altivec_expression.h: New files.
42 * idecode_expression.h: Update copyright. Include
43 "e500_expression.h" and "altivec_expression.h".
44 * e500_registers.h, altivec_registers.h: New files.
45 * registers.h: Update copyright. Include "e500_registers.h" and
46 "altivec_registers.h".
47 (registers): Add Altivec and e500 specific registers.
48 * Makefile.in (IDECODE_H): Add "idecode_e500.h" and
50 (REGISTERS_H): Add "e500_registers.h" and "altivec_registers.h".
51 (tmp-igen): Add dependencies on altivec.igen and e500.igen .
53 2003-06-22 Andrew Cagney <cagney@redhat.com>
55 Problems reported by Joshua LeVasseur.
56 * emul_chirp.c: Update copyright.
57 (chirp_emul_nextprop): Return the first property.
58 * hw_htab.c: Update copyright.
59 (htab_decode_hash_table): Fix check for htab size.
61 2003-06-21 Andrew Cagney <cagney@redhat.com>
63 * interrupts.c: Update copyright.
64 (external_interrupt): Fix test for already pending interrupt.
65 Problem found by Joshua LeVasseur.
67 * ppc-instructions: Add missing +8 line. Found by blofeldus at
70 2003-06-21 Andrew Cagney <cagney@redhat.com>
72 From Ian Lance Taylor <ian@airs.com>: * hw_nvram.c
73 (hw_nvram_init_address): Correct call to memset--swap second and
76 2003-06-21 Andrew Cagney <cagney@redhat.com>
78 * hw_com.c (hw_com_device_init_data): Check that the output, and
79 not input file opened. Pointed out by masahino tky3.3web.ne.jp.
81 2003-06-20 Andrew Cagney <cagney@redhat.com>
83 * sim_calls.c (sim_create_inferior): Assert that
84 psim_write_register succeeded.
85 (sim_fetch_register, sim_store_register): Make "regname" constant.
86 Delete Altivec hack. Return result from psim_read_register /
88 * psim.h (psim_read_register, psim_write_register): Change return
89 type to int. Update comments.
90 * psim.c: Update copyright.
91 (psim_stack): Assert that the psim_read_register worked.
92 (psim_read_register, psim_read_register): Return the register's
93 size. Allocate the cooked buffer dynamically.
94 * hw_register.c: Update copyright.
95 (do_register_init): Check that psim_write_register succeeded.
96 * hw_init.c: Update copyright.
97 (create_ppc_elf_stack_frame, create_ppc_aix_stack_frame): Assert
98 that the register transfer worked.
100 2003-06-19 Andrew Cagney <cagney@redhat.com>
102 * ld-insn.h: Update copyright.
103 (cache_fields): Define.
104 (insn_table_fields): Add insn_field_6 and insn_field_7.
105 (load_insn_table): Pass in the "cache_rules".
106 * ld-insn.c: Update copyright.
107 (load_insn_table): Add parameter "cache_rules". Handle "cache",
108 "computed" and "scratch" fields.
109 (main): Pass "cache_rules" to load_insn_table.
110 * ld-cache.h: Update copyright.
111 (append_cache_table): Declare.
112 * ld-cache.c: Update copyright.
113 (append_cache_table): New function.
114 (load_cache_table): Call.
115 * gen-model.c: Include "ld-cache.h".
116 * gen-itable.c: Include "ld-cache.h".
117 * igen.c: Move #include "ld-cache.h" to earlier. Update
119 (main): Permit a NULL "cache_rules". Pass address of
120 "cache_rules" to load_insn_table.
121 * Makefile.in (tmp-ld-insn): Add "ld-cache.o".
122 (tmp-igen): Do not include ppc-cache-rules.
123 (gen-itable.o, gen-model.o): Add "ld-cache.h".
124 * ppc-cache-rules: Delete file.
125 * ppc-instructions: Add cache rules.
127 2003-06-19 Andrew Cagney <cagney@redhat.com>
129 * Makefile.in (ICACHE_CFLAGS, SEMANTICS_CFLAGS): Delete.
130 (SIM_FPU_FLAGS): Define.
131 (icache.o): Delete explicit compile command.
132 (semantics.o, idecode.o): Delete explicit compile command.
133 (NOWARN_CFLAGS, STD_CFLAGS): Append SIM_FPU_CFLAGS.
134 * gen-support.c (gen_support_c): Generate #include of
135 "sim-inline.h" and "sim-fpu.h", but conditional on
137 * gen-idecode.c (gen_idecode_c): Ditto.
138 * igen.c (gen_icache_c, gen_semantics_c): Wrap #include of
139 "sim-inline.h" and "sim-fpu.h" in HAVE_COMMON_FPU conditional.
140 Move to before "support.h".
141 * Makefile.in, gen-support.c, gen-idecode.c, igen.c: Update
144 2003-05-16 Ian Lance Taylor <ian@airs.com>
146 * Makefile.in (various): Use $(SHELL) whenever we invoke
149 2003-02-27 Andrew Cagney <cagney@redhat.com>
151 * sim_calls.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
153 2002-09-27 Andrew Cagney <ac131313@redhat.com>
155 * hw_disk.c (hw_disk_init_address): Set device type to "block",
158 2002-06-22 Andrew Cagney <ac131313@redhat.com>
160 * Makefile.in (INTL_SRC): Define.
161 (INTL_CFLAGS): Define.
163 (STD_CFLAGS): Add INTL_CFLAGS.
165 2002-06-17 Elena Zannoni <ezannoni@redhat.com>
167 * psim.c (psim_options): Don't choke when gdb invokes us with
168 the --architecture option, just ignore it.
170 2002-06-16 Andrew Cagney <ac131313@redhat.com>
172 * configure: Regenerated to track ../common/aclocal.m4 changes.
174 2002-06-08 Andrew Cagney <cagney@redhat.com>
176 * main.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
177 * sim_calls.c: Ditto.
179 2002-05-30 DJ Delorie <dj@redhat.com>
181 * lf.c (lf_print__gnu_copyleft): Convert multiline strings to
183 * gen-idecode.c (print_run_until_stop_body): Likewise.
184 * gen-model.c (gen_model_c): Likewise.
186 2002-04-15 Elena Zannoni <ezannoni@redhat.com>
188 * sim_calls.c (sim_fetch_register, sim_store_register): Return -1 for
189 AltiVec registers as a temporary stopgap.
191 2002-03-24 David O'Brien <obrien@FreeBSD.org>
193 * ppc/hw_disk.c: Export a disk device property.
195 2002-03-23 Andrew Cagney <ac131313@redhat.com>
197 From 2001-12-09 Julien Ducourthial <jducourt@noos.fr>:
198 * ppc-instructions (lswx): Do the register control with the
199 register count. Initialize the right register in the loop.
200 (mtfsfi) : Correct prefix for the instruction.
202 2002-02-24 Andrew Cagney <ac131313@redhat.com>
205 * std-config.h: Fix grammar and typos. Update copyright.
208 2002-01-12 matthew green <mrg@redhat.com>
210 * Makefile.in (tmp-igen): Pass -I $(srcdir) to igen.
211 * igen.c (main): Change -I to add include paths for :include:
213 Implement -G as per sim/igen, with just gen-icache=N support.
214 Call load_insn_table() with the built include path.
216 * ld-insn.c (parse_include_entry): New. Load an :include: file.
217 (load_insn_table): New `includes' argument. Look for :include:
218 entries and call parse_include_entry() for them.
219 (main): Adjust load_insn_table() call.
220 * ld-insn.h (model_include_fields): New enum.
221 (load_insn_table): Update prototype.
222 * table.c (struct _open_table, struct _table): Rework
223 structures to handle included files.
224 (table_push): Move the guts of table_open() here.
226 * table.c (struct _open table, struct table): Make table object an
227 indirect ptr to the current table file.
228 (current_line, new_table_entry, next_line): Make file arg type
230 (table_open): Use table_push.
231 (table_entry_read): Point variable file at current table, at eof, pop
234 * misc.h (NZALLOC): New macro. From sim/igen.
236 * table.h, table.c (table_push): New function.
238 2002-01-04 matthew green <mrg@redhat.com>
240 * bits.c (LSMASKED64): New inline function.
241 (LSEXTRACTED64): Likewise.
242 * bits.h (_LSB_POS, _LSMASKn, LSMASK64): New macros from
243 sim/common/sim-bits.h
244 (LSMASKED64, LSEXTRACTED64): New functions definitions.
245 * Makefile.in (sim-bits.o): Remove target.
247 * main.c (zalloc): Fix typo in error message.
249 2001-12-16 Andrew Cagney <ac131313@redhat.com>
251 * configure.in (sim_fpu): Don't add sim-bits.o.
252 * configure: Re-generate.
254 2001-12-15 matthew green <mrg@redhat.com>
256 * main.c: Include "defs.h", "bfd.h", "callback.h" and "remote-sim.h".
257 (sim_io_error): New function.
258 * sim_calls.c: (sim_io_error): New function.
260 2001-12-14 matthew green <mrg@redhat.com>
262 * Makefile.in (LIB_OBJ): Add @sim_fpu@.
263 (ICACHE_CFLAGS, SEMANTICS_CFLAGS): New variables.
264 (icache.o, semantics.o): Add new ICACHE_FLAGS & SEMANTICS_FLAGS.
265 (sim-fpu.o, sim-bits.o, tconfig.h): New targets.
266 * configure.in: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS. Add a
267 check for sim/common/sim-fpu.c. Output sim_fpu and sim_fpu_cflags.
268 * configure: Regenerate.
269 * device.h (device_find_integer_array_property): Match function definition.
270 * gen-icache.c (print_icache_internal_function_declaration): Rename
271 INLINE_ICACHE to PSIM_INLINE_ICACHE.
272 * gen-idecode.c (print_idecode_run_function_header): Rename INLINE_IDECODE
273 to PSIM_INLINE_IDECODE.
274 * gen-semantics.c (print_semantic_function_header): Rename
275 EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS.
276 * gen-support.c (print_support_function_name): Rename INLINE_SUPPORT to
278 * igen.c (print_function_name): Also escape `(' and `)'.
279 (gen_semantics_h): Rename EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS.
280 (gen_semantics_c): Likewise. Also output includes for "sim-fpu.h"
281 * inline.h (INLINE_SIM_ENDIAN): Renamed INLINE_PSIM_ENDIAN.
282 (EXTERN_SIM_ENDIAN): Renamed EXTERN_PSIM_ENDIAN.
283 (STATIC_INLINE_SIM_ENDIAN): Renamed STATIC_INLINE_PSIM_ENDIAN.
284 (INLINE_LOCALS): Renamed PSIM_INLINE_LOCALS.
285 (EXTERN_SUPPORT): Renamed PSIM_EXTERN_SUPPORT.
286 (INLINE_SUPPORT): Renamed PSIM_INLINE_SUPPORT.
287 (EXTERN_SEMANTICS): Renamed PSIM_EXTERN_SEMANTICS.
288 (INLINE_SEMANTICS): Renamed PSIM_INLINE_SEMANTICS.
289 (EXTERN_IDECODE): Renamed PSIM_EXTERN_IDECODE.
290 (INLINE_IDECODE): Renamed PSIM_INLINE_IDECODE.
291 (EXTERN_ICACHE): Renamed PSIM_EXTERN_ICACHE.
292 (INLINE_ICACHE): Renamed PSIM_INLINE_ICACHE.
293 * options.c (options_inline): Fix names.
294 * sim-endian-n.h: Change INLINE_SIM_ENDIAN to INLINE_PSIM_ENDIAN.
295 * sim-endian.h: Likewise.
296 * sim-main.h: New file.
297 * std-config.h: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS.
299 2001-12-01 Andrew Cagney <ac131313@redhat.com>
302 * ppc-spr-table: Add SDA and PIR.
304 2001-10-29 Andrew Cagney <ac131313@redhat.com>
306 * tree.c (parse_size): Assert #size-cells > 0.
307 (parse_address): Ditto for #address-cells.
308 (parse_reg_property): Only parse the size when #size-cells is
311 2001-10-25 Andrew Cagney <ac131313@redhat.com>
313 * emul_generic.c (OEA_MEMORY_SIZE): Increase to 4mb.
314 * hw_htab.c (htab_map_binary): Don't try to map the text section
316 * emul_chirp.c (map_over_chirp_note): Default load-base to -1 not
318 (emul_chirp_create): Map in the interrupt table.
320 2001-07-16 Daniel Jacobowitz <drow@mvista.com>
322 * Makefile.in: Add dependencies on $(CPU_H).
324 Wed Mar 7 10:45:12 HST 2001 Glen Nakamura <gen@lava.net>
326 * hw_init.c (dma_file): Fixed problem with loading last 1KB of
329 2001-03-04 Andrew Cagney <ac131313@redhat.com>
331 * emul_netbsd.c [WITH_NetBSD_HOST]: Include <sys/mount.h> and
333 (do_stat): Only do SYS test when SYS_stat defined.
334 (do_sigprocmask): Ditto for SYS_sigprocmask.
335 (do_fstat): Ditto for SYS_fstat.
336 (do_getdirentries): Ditto for SYS_getdirentries.
337 (do_lstat): Ditto for SYS_lstat.
339 2001-01-15 Geoffrey Keating <geoffk@redhat.com>
341 * emul_netbsd.c (do_open): Translate the flag parameter to the
342 open syscall to the numbers supported by the host.
344 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
346 * sim-endian.h: Don't have parameters on macro definitions which
347 are simply renaming functions, to permit use of XCONCAT2 in both
348 the macro name and the arguments in a use of such a definition.
350 2000-11-15 Jim Blandy <jimb@redhat.com>
352 * sim_calls.c: Doc fix.
353 (sim_fetch_register, sim_store_register): Call
354 gdbarch_register_name directly, instead of going through
357 2000-10-24 Geoff Keating <geoffk@cygnus.com>
359 * ppc-instructions (lfsux): Correct XO field of lfsux instruction.
361 Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
363 * configure: Regenerated to track ../common/aclocal.m4 changes.
365 Fri Apr 28 15:59:27 2000 Andrew Cagney <cagney@b1.cygnus.com>
367 * events.c (event_queue_process): Call update_time_from_event
368 every time an event is removed from the queue.
369 (update_time_from_event): Delete assertion that a negative
370 time_from_event implies an empty event queue.
372 Fri Apr 28 15:53:54 2000 Andrew Cagney <cagney@b1.cygnus.com>
374 * interrupts.c (deliver_hardware_interrupt): Print time trace in
376 * events.c (event_queue_process): Cleanup trace message.
377 (update_time_from_event): Trace full event queue.
379 2000-03-25 Geoff Keating <geoffk@cygnus.com>
381 * ppc-instructions (Disabled_Exponent_Underflow): Increment
382 the exponent when denormalizing.
384 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
386 * configure: Regenerated to track ../common/aclocal.m4 changes.
388 1999-05-08 Felix Lee <flee@cygnus.com>
390 * configure.in: Use AC_EXEEXT instead of AM_EXEEXT.
391 * configure: Regenerated to track ../common/aclocal.m4 changes.
393 1999-04-02 Keith Seitz <keiths@cygnus.com>
395 * sim_calls.c (POLL_QUIT_INTERVAL): Define. Used to tweak
396 the frequency at which the poll_quit callback is called.
397 (poll_quit_count): New global.
398 (sim_io_poll_quit): Only call the poll_quit callback
399 after the specified POLL_QUIT_INTERVAL.
401 1999-02-22 Jim Lemke <jlemke@cygnus.com>
403 * dc-complex: Force expansion on all bits of field BO.
404 Previously, the least-significant (prediction) bit was ignored.
405 * ppc-instructions (conditional branches): Implement mpc860c0 option.
406 * igen.c (gen_semantics_[ch]): Setup for mpc860c0 option.
407 * psim.c (is_num, psim_options): Added parsing for mpc860c0 option.
408 * interrupts.h: Added "mpc860c0_instruction_program_interrupt".
409 * interrupts.c (program_interrupt): Added handling for above interrupt.
411 1999-02-01 Jim Blandy <jimb@zwingli.cygnus.com>
413 Make the simulator compatible with the MPC750. It would be nicer
414 to make this a real multi-sim, but that's more work than we have
416 * emul_generic.c (emul_add_tree_options): Only require strict
417 alignment if it was explicitly requested at configuration time.
418 Don't make it the default for little-endian machines.
419 * ppc-spr-table (UMMCR0, UMMCR1, UPMC1, UPMC2, USIA, UPMC3, UPMC4,
420 MMCR0, PMC1, PMC2, SIA, MMCR1, PMC3, PMC4, L2CR, ICTC, THRM1,
421 THRM2, THRM3): Plop in the MPC750 SPR registers.
422 (DABR): This is weird. This was HID5, but the PPC spec says this
423 should be DABR; why did some random processor use it for something
424 else? The HID5 entry dates back to the original checkin of the
425 simulator code in 1995, so remove it.
426 * sim_calls.c (register_names): Delete this; since the user can
427 now change GDB's list of register names dynamically, we can't
428 pretend there's a static mapping here.
429 (sim_fetch_register, sim_store_register): Call GDB's REGISTER_NAME
430 function to get the register name. That ought to be accurate.
431 However, we're changing a compile-time dependency (using the
432 REGISTER_NAMES macro) into a link- and run-time dependency
433 (calling REGISTER_NAME, which happens to be a function call on the
436 1999-01-22 Jim Lemke <jlemke@cygnus.com>
438 * igen.c(gen_semantics_[ch]): setup/use of new option
440 interrupts.[ch](mpc860c0_instruction_program_interrupt): added.
441 ppc-instructions(the four branch insn groups): detect problematic br's.
442 psim.c(is_num - added, psim_options): Parse and init new option.
443 These changes are currently under #ifdef WITH_OPTION_MPC860C0.
445 1998-12-01 Ken Raeburn <raeburn@cygnus.com>
447 * hw_nvram.c (hw_nvram_bcd): Force value to fit in 0..99.
449 Fri Nov 20 12:17:28 1998 Andrew Cagney <cagney@b1.cygnus.com>
451 * main.c (sim_io_poll_quit): Stub function.
453 * events.c (SIM_EVENTS_POLL_RATE): Define.
454 (sim_events_poll): Copy function from common/sim-events.c.
455 (event_queue_init): Copy scheduling of sim_events_poll from same.
457 * sim_callbacks.h, sim_calls.c (sim_io_poll_quit): New function,
458 poll the external environment.
460 1998-11-19 Michael Meissner <meissner@cygnus.com>
462 * ppc-instructions (is_{NaN,inf}): Use unsigned64 to get the
463 fractional type, so that quiet NaN's aren't treated like
466 Mon Sep 28 09:42:45 1998 Drew Moseley <dmoseley@cygnus.com>
468 * table.c (table_open): For cygwin hosts, we need to use the
469 return value from the read routine as the number of bytes to
470 process. This apparently is due to text-mode vs binary-mode. If
471 the mounts are done text-mode, then the size returnedby fstat()
472 may be different than the number of bytes "read" in text mode.
474 Sun Oct 4 00:50:47 1998 Felix Lee <flee@cygnus.com>
476 * emul_netbsd.c (do_open): fix order-of-evaluation problem.
481 1998-09-03 Michael Meissner <meissner@cygnus.com>
483 * emul_{netbsd,unix}.c: Update copyright year.
485 Mon Jun 29 10:57:36 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
487 * sim_calls.c (sim_fetch_register, sim_store_register):
488 return zero when nothing to do.
490 1998-06-26 Michael Meissner <meissner@cygnus.com>
492 * configure.in (AC_CHECK_HEADERS): Don't check for sys/mount.h.
493 * configure: Regenerate.
494 * emul_{netbsd,unix}.c (toplevel): No longer try to include
495 sys/mount.h. It conflicts on Linux when gnu libc2 is used.
497 Tue May 12 12:10:33 PDT 1998 James Ingham <jingham@leda.cygnus.com>
499 * Makefile.in: The run target depended on a target psim$(EXEEXT),
500 but there was no such target, only plain psim. So I changed the
501 run target to depend on psim.
503 Sat May 2 01:10:12 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
505 * aclocal.m4: Remove defs of AM_EXEEXT and AM_CYGWIN32. These are
506 now defined in ../common/aclocal.m4, and the double definition causes
507 problems with AC_SUBST of EXEEXT.
508 * configure: Regenerate.
510 Wed Apr 29 15:44:52 1998 Geoffrey Noer <noer@cygnus.com>
512 * aclocal.m4: new file for AM_EXEEXT macro
513 * configure.in: call AM_EXEEXT
514 * configure: regenerate with autoconf 2.12.1.
515 * Makefile.in: add EXEEXT support
517 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
519 * configure: Regenerated to track ../common/aclocal.m4 changes.
522 Sun Apr 26 15:19:51 1998 Tom Tromey <tromey@cygnus.com>
524 * acconfig.h: New file.
525 * configure.in: Reverted change of Apr 24; use sinclude again.
526 Don't call AC_C_CROSS.
528 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
530 * configure: Regenerated to track ../common/aclocal.m4 changes.
533 Fri Apr 24 11:18:46 1998 Tom Tromey <tromey@cygnus.com>
535 * Makefile.in (top_builddir): New macro.
536 (INTLLIBS): New macro.
537 (INTLDEPS): Likewise.
538 (psim): Depend on INTLDEPS; link against INTLLIBS.
539 * configure.in: Call CY_GNU_GETTEXT.
541 Wed Apr 22 14:28:48 1998 Michael Meissner <meissner@cygnus.com>
543 * configure: Regenerate with autoconf 2.12.1.
545 Fri Mar 13 09:25:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
547 * psim.c (psim_read_register, psim_write_register): Handle updates
550 * registers.c (register_description): Reconize "FPSCR".
552 * emul_netbsd.c (emul_netbsd_create): When FP available, enable
553 MSR FP exception mode. Do not enable FPSCR bits.
554 * emul_unix.c (emul_unix_create): Ditto.
556 Tue Feb 17 12:48:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
558 * sim_calls.c (sim_store_register, sim_fetch_register): Pass in
559 length parameter. Return -1.
561 Mon Feb 9 14:13:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
563 * ppc-instructions (fdiv, fdivs): Check for divide by zero.
564 (is_invalid_zero_divide, invalid_zero_divide_operation): New
567 Wed Dec 10 17:38:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
569 * sim_calls.c (sim_load): Do not parse PROG using buildargv, use
572 1997-11-05 Felix Lee <flee@cygnus.com>
574 * emul_chirp.c: #ifdef HAVE_UNISTD_H
576 Wed Oct 15 08:50:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
578 * corefile.c (core_attach): Pad out allocated memory regions so
579 that they are always correctly aligned.
580 (struct _core_mapping, core_map_attach, core_init,
581 new_core_mapping): Change free_buffer to type void*.
583 Mon Oct 6 18:09:26 1997 Michael Meissner <meissner@cygnus.com>
585 * sim_calls.c (zfree): Call free correctly.
587 Mon Sep 29 10:05:01 1997 Andrew Cagney <cagney@b1.cygnus.com>
589 * sim_calls.c (zfree): Use free, not mfree.
590 (sim_io_flush_stdoutput): Replace gdb_flush with callback ->
593 Fri Sep 26 09:50:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
595 * ppc-instructions (sraw, slw, srw): From Charles Lefurgy, Fix
596 mask extracting shift amount. Correctly condition for setting XER
598 (ldhau): From Johannes Reisinger, update rA after load.
600 Tue Sep 9 22:13:23 1997 Felix Lee <flee@cygnus.com>
602 * basics.h (CONCAT*): token-pasting macros, if ALMOST_STDC,
604 * words.h: __int64 instead of long long for MSVC.
606 Wed Aug 27 10:24:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
608 * sim_calls.c (sim_create_inferior): Check the simulator was
609 initialized before creating inferior.
611 * idecode_expression.h (ALU_END): From Charles Lefurgy - Extract
612 sign bit using 64 bit and not a 32 bit mask.
614 Wed Aug 27 10:15:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
616 * sim_calls.c (sim_load): From Ian Lance Taylor - free argv after
617 it has been used, not before.
619 Tue Aug 26 10:41:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
621 * sim_calls.c (sim_kill): Delete.
622 (sim_create_inferior): Add ABFD argument.
623 (entry_point): Delete variable.
624 (sim_load): Move setting of PC from here.
625 (sim_create_inferior): To here.
627 Mon Aug 25 16:17:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
629 * sim_calls.c (sim_open): Add ABFD argument.
631 Thu Jul 3 10:18:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
633 * ppc-instructions (PPC_INSN_INT): From Michael Thies - Monitoring
634 CR register updates dependant on RC value had logic backwards.
636 * ppc-instructions (Load String Word Immediate): From Brad Parker
637 - sense of wrap test in check for overwriting RA wrong.
638 (Load String Word Indexed): Ditto.
640 * configure.in: From Erik Landry - set sim_default_model not
641 sim_model for sim-default-model option.
642 * configure: Regenerate.
644 * interrupts.c (check_masked_interrupts): Schedule a hardware
645 interrupt delivery when FP interrupts get enabled.
646 (program_interrupt): Generate FP exceptions instead of aborting.
647 (deliver_hardware_interrupt): Deliver a FP exception if so
650 * registers.h: Add definition of fpscr_vx_bits.
652 * idecode_expression.h (FPSCR_END): Always update FEX and VX bits
654 (FPSCR_END): Explicitly check for possible floating point
655 exception conditions.
656 (FPSCR_BEGIN): Simplify.
658 * ppc-instructions (Move From FPSCR): Enable.
659 (Move To FPSCR Bit 1): Ditto.
660 (Move To FPSCR Bit 0): Ditto.
661 (Move To FPSCR Field Immediate): Ditto.
662 (Move to Condition Register from FPSCR): Simplify.
663 (invalid_arithemetic_operation): Generate a QNaN when invalid
664 operation exception disabled.
666 Tue May 20 10:22:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
668 * sim_calls.c (sim_open): Add callback argument.
669 (sim_set_callbacks): Delete.
671 Tue Apr 22 22:36:57 1997 Mike Meissner <meissner@cygnus.com>
673 * sim_callbacks.h (error): Make declaration match gdb's.
674 * main.c (error): Ditto.
676 Fri Apr 18 17:03:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
678 * sim_calls.c (sim_stop_reason): Simplify. Was running implies
679 stopped/SIGINT. Exit implies a status code.
681 * psim.c (cntrl_c_simulation): From main.c. Event function that
683 (psim_stop): New. Asynchronously schedule a stop simulator event.
684 (psim_run_until_stop): Delete. Made redundant by psim_stop.
686 * main.c (cntrl_c): Update.
687 (cntrl_c_simulation): Moved to psim.c.
689 * sim_calls.c (sim_stop): New function. Use psim_stop which
690 schedules a stop event.
691 (sim_resume): Drop SIGINT handler, now in gdb/main.c.
692 (sim_resume): Use psim_run as stop variable no longer needed.
694 Fri Apr 18 17:03:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
696 * psim.c (psim_options): Handle -E option correctly.
697 (psim_usage): Document.
699 Thu Apr 17 03:28:03 1997 Doug Evans <dje@canuck.cygnus.com>
701 * psim.c (psim_options): Ignore -E option (sets endianness).
702 * sim_calls.c: #include bfd.h.
703 (entry_point): New static local.
704 (sim_load): Return SIM_RC. New arg abfd. Set start address from bfd.
705 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
707 Tue Apr 15 14:57:18 1997 Ian Lance Taylor <ian@cygnus.com>
709 * Makefile.in (INSTALL): Set to @INSTALL@.
710 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
711 (install): Depend upon installdirs. Use $(program_transform_name)
712 directly, rather than using $(INSTALL_XFORM).
713 (installdirs): New target.
715 Fri Apr 4 17:54:36 1997 Jim Wilson <wilson@cygnus.com>
717 * Makefile.in (tmp-hw, tmp-pk): Use for loop to eliminate duplicates
718 rather than the non-portable cat -n.
720 Mon Apr 14 16:29:51 1997 Ian Lance Taylor <ian@cygnus.com>
722 * Makefile.in (INSTALL): Change install.sh to install-sh.
724 Tue Apr 1 18:15:14 1997 Jim Wilson <wilson@cygnus.com>
726 * ppc-instructions: Change milhwu to mulhwu.
728 Wed Apr 2 15:38:08 1997 Doug Evans <dje@canuck.cygnus.com>
730 * sim_calls.c (sim_open): New arg `kind'.
732 Wed Apr 2 14:51:17 1997 Ian Lance Taylor <ian@cygnus.com>
734 * COPYING: Update FSF address.
736 Tue Mar 25 16:17:59 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
738 * main.c (sim_io_read_stdin): Only compile unbuffered IO code if
739 all the required features are supported by the host OS.
741 Tue Mar 25 12:13:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
743 * emul_bugapi.c (emul_bugapi_create): Guard against NULL images.
745 * configure.in (enable-sim-endain): Correct typo in usage (from
746 Erik Landry <landry@ENGR.ORST.EDU>).
747 * configure: Re-generate.
749 Fri Mar 14 18:23:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
751 * Makefile.in (targ-vals.def): Re-do rule so that it works with
752 FreeBSD's make. Didn't like $<.
754 Thu Mar 13 12:55:48 1997 Doug Evans <dje@canuck.cygnus.com>
756 * sim_calls.c (sim_open): New SIM_DESC result. Argument is now
758 (other sim_*): New SIM_DESC argument.
760 Thu Feb 13 10:35:14 1997 Andrew Cagney <cagney@phydeaux.cygnus.com>
762 * ppc-opcode-simple-array, ppc-opcode-simple-goto,
763 ppc-opcode-simple-switch, ppc-opcode-complex-array,
764 ppc-opcode-complex-goto, ppc-opcode-complex-switch,
765 ppc-opcode-jump, ppc-opcode-goto, ppc-opcode-flat: Delete,
766 superseeded by --sim-decode-mechanism option.
768 * ppc-opcode-simple, dc-simple: Rename to be 8.3
769 * ppc-opcode-complex, dc-complex: Ditto.
770 * ppc-opcode-stupid, dc-stupid: Ditto.
771 * ppc-opcode-test-1, dc-test.01: Ditto.
772 * ppc-opcode-test-2, dc-test.02: Ditto.
774 * configure.in (--enable-sim-opcode): Change prefix to dc- instead
777 Wed Feb 12 19:33:45 1997 Andrew Cagney <cagney@phydeaux.cygnus.com>
779 * Many of the ppc-opcode-* files are identical baring the type of
780 lookup table. Instead of having multiple tables, igen can do this
781 via an additional option.
783 * ld-decode.h, ld-decode.c (force_decode_gen_type): New function,
784 allow the type of generated table specified in the decode file to
787 * ld-decode.c (load_decode_table): Allow the table type to be
790 * igen.c (main): Add -T <mechanism> option so that an overriding
791 instruction decode mechanism can be specified.
793 * configure.in: New option --sim-decode-mechanism to control
794 igen's new -T <mechanism> flag.
795 * Makefile.in (IGEN_FLAGS): Add IGEN_IDECODE_MECHANISM set by the
797 * configure: Regenerate.
799 Tue Feb 11 13:49:10 1997 Michael Meissner <meissner@tiktok.cygnus.com>
801 * events.c (event_queue_create): Don't use NULL to initialize an
803 (even_queue_{init,schedule_after_signal,tick}): Conditionalize use
804 of sigprocmask to appropriate autoconf test.
806 * main.c ({cntrl_c,main}): Use RETSIGTYPE for signal return type,
808 * sim_calls.c (sim_{ctrl_c,resume}): Ditto.
810 * Makefile.in (callback.o): Define HAVE_CONFIG_H, so callback.c
811 includes our config.h.
813 Tue Feb 4 13:42:59 1997 Doug Evans <dje@canuck.cygnus.com>
815 * configure.in: Fix typo in test for callback.c.
816 * configure: Regenerated.
818 Fri Feb 7 10:04:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
820 * emul_chirp.c (emul_chirp_create): Handle a virtbase of -1 being
821 found in the device tree.
823 Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
825 * Property create/initialization still wasn't correctly ordered.
826 Should be delaying everything related to ihandle creation until
827 after the rest of the tree has been established.
829 * device.c (device_find_ihandle_runtime_property): Update.
830 (device_add_ihandle_runtime_property): Update.
832 * tree.c (parse_ihandle_property): Delay lookup of the device to
833 be opened until the ihandle initialization phase.
834 * tree.c (print_properties): Update.
836 Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
838 * gen-icache.c (print_icache_extraction): Add a reason parameter.
839 Augment each extracted field with a comment citing the codes
840 origin. Should simplify tracking down incorrect cache
843 Tue Feb 4 17:44:51 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
845 * gen-icache.c: Generalize code handling XXX_is_NNN so that it
846 works for normal and boolean table entries.
848 * psim.c (psim_write_memory): last_cpu == -1 or nr_cpus is now
849 valid. Handle this just like *_{read,write}_register now handles
852 Mon Feb 3 17:18:16 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
854 * events.c (insert_event_entry): Correct loop termination
857 Fri Jan 31 16:20:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
859 * psim.c (psim_options): Add new option -c for max-iterations or
861 (psim_usage): Document.
862 (psim_max_iterations_exceeded): New function, abort simulation if
863 max iterations exceeded.
865 * gen-idecode.c: Re-work the table lookup code so that it assumes
866 that the entry is a leaf by default. Simplify the boolean table
867 entry code so that it involves a mask + test instead of shift +
870 * gen-idecode.c: Correct generated igen body so that it no drops
871 or doubles clock interrupts.
874 Thu Jan 30 11:23:20 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
876 * Makefile.in (BUILT_SRC_WO_CONFIG): Change targ-vals.* to
879 * configure.in (sim_callback, sim_targ_vals): Set sim_targ_valls
880 if common callback is present.
882 Wed Jan 29 12:32:41 1997 Michael Meissner <meissner@tiktok.cygnus.com>
884 * configure.in (sim_callback): If the gdb is post 4.16, configure
885 callback support from the common directory.
886 * configure: Regenerate.
888 * Makefile.in (BUILT_SRC_WO_CONFIG): Add targ-vals.{h,def} and
890 (GDB_OBJ): Add callback support configured in.
891 (gentmap,targ-vals.def): Build from common directory.
892 (targ-vals.h,targ-map.c): Build by running gentmap.
893 (callback.o): Build from source in common directory.
894 (targ-map.o): Add dependency.
895 (clean): Remove gentmap.
897 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
899 * igen wasn't aborting if the opcode table contained no valid
902 * misc.c (name2i): Possibly abort if an invalid name is
904 * ld-decode.c: Abort if the table type isn't found.
906 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
908 * When performance monitoring is disabled, it is still possible to
909 determine the simulation speed by looking at the number of elapsed
910 ticks recorded by the event queue.
912 * psim.c (psim_write_register, psim_read_register): Force the cpu
913 to zero when it is either of `-1' or `nr_cpus'. In both cases the
914 next cpu would be zero any way.
916 * mon.c (mon_print_info): If possible, print the system cycle
917 performance. This is an indication of the number of instructions
920 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
922 * The code to allow an event queue to be updated during a signal
923 was missing. For main.c, a cntrl-c simulation termination wasn't
926 * The simulation would not correctly restart if an event requested
927 that the simulation be halted.
929 * psim.c (psim_options): Add hack to -i option to optionally
930 include a level vis -i2.
931 (psim_usage): Document.
933 * main.c (cntrl_c, cntrl_c_simulation): New functions. When a
934 cntrl-c occures schedule an event to halt the simulation.
935 (main): Catch CNTRL-C signals with the function cntrl_c.
937 * events.c (event_queue_process): Mask interrupts while
938 manipulating the async event queue.
939 (event_queue_init): Ditto.
940 (event_queue_schedule_after_signal): Ditto.
942 * events.c (event_queue_process): Mark the event queue as being in
943 the processing state when processing has started. Adjust code
944 so that it is tolerant of halts.
945 (event_queue_init): Start the event queue out with processing
947 (event_queue_tick): Check that processing isn't still being
950 * gen-idecode.c (print_run_until_stop_body): Call
951 event_queue_process_events to clear possibly pending events before
952 starting a simulation run. Re-arange main loop so that simulator
953 is correctly restarted when an event halts the simulation.
955 * psim.c (psim_halt): Handle an event halting the simulation.
956 * psim.c (psim_init): Adjust initial cpu - == -1 - to match
959 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
961 * ppc-opcode-complex: Correct typo - was expanding ORA instead of
962 RA. Based on instruction frequency stats, expand additional
964 * ppc-instructions: Change all `RA == 0' to RA_is_0.
966 * ppc-opcode-stupid: Move all but the basic table in -complex into
967 here. Update to new format.
969 * Makefile.in (tmp-defines): New target. Force defines.h to always
970 be built. Hence get ppc-opcode-goto to build.
972 Tue Jan 28 13:00:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
974 * hw_com.c (hw_com_instance_read, hw_com_instance_write):
977 Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
979 * hw_trace.c (hw_trace_init_data): Delete. The trace options need
980 to be initialized independant of the rest of the simulation
981 initalization. Otherwize a trace option explictly set from gdb
982 could be overridden by hw_trace.
984 * psim.c (psim_options): Clarify reason why the trace ioctl occures.
986 * FIXME: The trace code is too scattered - hw_trace.c, psim.c,
987 debug.c. It could be much simpler.
989 Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
991 * Some devices support removable media. Add hooks to the disk
992 device so that it supports this.
994 * device.c (device_add_string_array_property,
995 device_find_string_array_property): New functions, manipulate
996 properties containing an array of strings.
997 (device_find_string_property): Allow a string array.
998 (device_init_static_properties): Update.
999 (device_init_runtime_properties): Update.
1001 * hw_disk.c (hw_disk_ioctl): Add ioctl for changing the disk
1002 media. If no file image is specified, use the next one in the
1003 image property list.
1004 (hw_disk_init_address): Change the file property so that it is a
1005 string array - use the first entry for the initial file image.
1007 * tree.c (print_string_aray_property): New function - print a
1009 (print_properties): Adjust.
1010 (print_string): Write a string, handling double quotes.
1012 * device.h: Define an ioctl to `change-media' with an optional new
1015 * hw_disk.c: Allow floppy disk devices to be specified.
1017 * psim.c (psim_command): New function, parse more complex psim
1018 commands such as "change-media" and "trace".
1019 * sim_calls.c (sim_do_command): Use.
1021 Wed Jan 22 09:38:33 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1023 * For expressions like (RA == 0) that are entered in to the cache
1024 as RA_is_0. If possible generate the result of the expression so
1025 that the compiler gets a better chance of eliminating dead
1028 * gen-icache.c (print_icache_extraction): For a cache entry of
1029 the form <name>_is_<const> where it is a boolean field, generate
1030 the result of the expression instead of the expression its self.
1031 (print_icache_body): Remove code that was looking for *_is_0 and
1032 then generating corresponding definitions.
1034 * gen-icache.c (print_icache_struct): If there is no cache, do not
1035 output expressions in idecode.h file.
1037 * gen-icache.c (print_icache_body): Output them here.
1039 * ppc-opcode-complex: Clarify constant values for SPR==LR register
1042 * ppc-cache-rules (RA_is_0, SPR_is_256): Two new cache entries.
1044 Wed Jan 22 12:24:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1046 * The code that put values in and extracted values from the cache
1047 was too compilicated. The cache table did not allow values to be
1048 computed from cache entries. #defines could only be used when a
1049 cache was present, remove the restriction.
1051 * ld-cache.h, ld-cache.c: Add a new cache entry type - SCRATCH. A
1052 scratch variable is defined when a cache entry is beinf
1053 filled. Change the definition of a COMPUTE variable to be defined
1054 when the cache entry is being used.
1055 * gen-icache.c: Update.
1057 * ld-cache.h, ld-cache.c: Change field names so that their meaning
1058 is more obvious. old_name->field_name, new_name->derived_name.
1059 * gen-icache.c: Update
1061 * gen-icache.h, gen-icache.c (print_icache_body): Make the three
1062 different types of cache code - put into cache, extract from
1063 cache, no cache - an explicit argument to print_icache_body.
1064 * gen-icache.c (print_icache_extraction): Ditto.
1066 * gen-semantics.c (print_c_semantic): Update use.
1067 * gen-idecode.c (print_jump_insn): Update use.
1068 * gen-icache.c (print_icache_function): Update use.
1070 * igen.c (main): Change 'R' option so that it does not force the
1073 * configure.in (enable-sim-icache): Clarify description. Make
1074 #define one of the defaults regardless of the cache. Probably
1075 should revamp and add a separate option.
1077 Tue Jan 21 13:26:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1079 * pk_disklabel.c (block_is_fdisk): Tidy up traces - use dos
1080 partition numbering.
1081 (pk_disklabel_create_instance): Partition 1..4 are valid - not
1083 (is_iso9660): New function, verify a CD9660 File system.
1084 (pk_disklabel_create_instance): Start expanding so that active
1085 partition selection is supported.
1087 Mon Jan 20 11:20:15 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1089 * The cap object was retaining a reference to the instance of a
1090 device after it was deleted. Instead add and remove cap's from the
1091 cap db as they are created and deleted. This ensuring that a
1092 capibility is only used during the lifetime of the corresponding
1095 * cap.h, cap.c: Correct cap type - was signed32 should be
1098 * cap.c (cap_add, cap_remove): New methods for cap object that
1099 allow the explicit addition and removal of internal objects that
1100 the cap knows about.
1102 * cap.c (cap_init): Rewrite. Verify that the only objects
1103 remaining in the cap data base are those that were entered first.
1104 Thse objects will be the permenant ones.
1105 * device.c (device_init_address): Remember to initialize the cap
1108 * device.c (device_create_instance_from): Explicitly add device
1109 instances to the cap database. Simplify create code.
1110 (device_instance_delete): Explicitly remove device instances from
1113 * device.c (device_create_from): Explicitly add a device to the
1116 * device.c (device_create_from): Always set the cap members.
1118 * hw_disk.c: Output the instance when tracing.
1120 Sun Jan 19 16:44:29 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1122 * tree.c (split_device_specifier): Add support for aliases when
1123 looking up a device. Now needs a device as an argument.
1124 (split_property_specifier): Ditto.
1126 Sun Jan 19 15:28:23 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1128 * The memory "claim" and "release" methods take an address and
1129 size as arguments. These may be multi cell values. Initially fix
1130 the memory code so that they check/detect this. Leave the
1131 adjustment of any clients to later.
1133 * hw_memory.c (hw_memory_instance_claim,
1134 hw_memory_instance_release): Handle multi-cell memory devices.
1136 * hw_memory.c (hw_memory_instance_claim): Be tolerant towards the
1137 release of memory regions that were not claimed.
1139 Fri Jan 17 12:01:07 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1141 * device.h, device.c (device_instance_call_method): Correct return
1142 type - can return either 0 or -1, hence should be a signed type.
1143 * device_table.h: Ditto.
1145 * hw_memory.c (hw_memory_instance_claim,
1146 hw_memory_instance_release): Update.
1147 * hw_disk.c (hw_disk_max_transfer, hw_disk_block_size,
1148 hw_disk_nr_blocks): Ditto.
1150 Fri Jan 17 11:50:13 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1152 * emul_chirp.c (chirp_emul_claim): Implement using the "claim"
1153 method belonging to "/chosen/memory".
1154 (chirm_emul_release): Ditto.
1156 * Makefile.in (LIB_INLINE_SRC): Remove emul_* from list of files
1157 that are inlined. These modules are called via a table and are
1160 * hw_init.c (update_for_binary_section): Fix failure to allocate
1161 memory used by the binary in real-mode executions. If "claim"
1162 property is present, allocate memory from the "/chosen/memory"
1165 * emul_chirp.c (emul_chirp_create): Specify that memory should be
1166 claimed when loading a real image.
1168 * hw_memory.c (hw_memory_instance_claim): Don't page align memory
1171 * hw_memory.c (hw_memory_instance_release): Avoid infinite loop
1172 when merging adjacent memory chunks.
1174 Thu Jan 16 08:51:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1176 * vm.h (vm_data_map_read_buffer, vm_data_map_write_buffer): Add
1177 optional PROCESSOR & CIA args so that this routine also abort an
1180 * vm_n.h (vm_data_map_read_N, vm_data_map_write_N): For a
1181 miss-aligned access when a transfer fails abort.
1183 * emul_bugapi.c (emul_bugapi_do_write): Use emul_read_buffer
1184 instead of the vm_read_buffer.
1185 * emul_netbsd.c (do_write): Ditto.
1186 * emul_unix.c (do_unix_write): Ditto.
1188 Wed Jan 15 14:38:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1190 * configure.in (--enable-sim-jump): Default is NULL and not -E.
1191 * configure: Regenerate.
1193 * basics.h (__attribute__): Enable attributes if GCC >= 2.6.
1194 (UNUSED): Only enable UNUSED if GCC >= 2.7.
1196 * gen-icache.c (print_icache_extraction): Print UNUSED macro
1197 instead of explicit __unused__ attribute.
1198 (print_icache_body): Ditto.
1199 * idecode_expression.h (FPSCR_BEGIN): Use UNUSED.
1201 Wed Jan 15 13:54:50 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1203 * cpu.h, cpu.c (cpu_synchronize_context): Add CIA argument as
1206 * vm.c (vm_synchronize_context): Add PROCESSOR and CIA as
1207 arguments so that there is a reference point for recovery.
1208 (vm_synchronize_context): Pass processor+cia for errors.
1209 (om_unpack_sr): Ditto.
1210 (om_unpack_srs): Ditto.
1211 * vm.c (vm_create): Review error messages.
1213 * vm.c: Include "cpu.h" so that cpu_error is visible.
1215 * ppc-instructions (Return From Interrupt): Pass CIA.
1216 (Instruction Synchronize): Ditto.
1217 * psim.c (psim_init): Ditto.
1219 Wed Jan 15 12:25:11 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1221 * cpu.h, cpu.c (cpu_error): Aborts simulation with error message,
1222 but also saves current processor state.
1224 * basics.h: Move #include <stdarg.h> to here from device_table.h.
1226 * interrupts.c (perform_oea_interrupt): Use. No longer loose CIA
1227 when simulation aborted.
1228 (program_interrupt): Ditto.
1229 (floating_point_unavailable_interrupt): Ditto.
1230 (alignment_interrupt): Ditto.
1231 (floating_point_assist_interrupt): Ditto.
1232 (perform_oea_interrupt): Ditto.
1233 (machine_check_interrupt): Ditto.
1235 Tue Jan 14 12:19:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1237 * ppc-instructions (Move from Special Purpose Register): Support
1240 Mon Jan 13 16:58:12 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1242 * debug.h, debug.c: Add "interrupts" trace option.
1244 * interrupts.c (data_storage_interrupt): Add tracing.
1245 (machine_check_interrupt): Ditto.
1246 (instruction_storage_interrupt): Ditto.
1247 (alignment_interrupt): Ditto.
1248 (program_interrupt): Ditto.
1249 (floating_point_unavailable_interrupt): Ditto.
1250 (system_call_interrupt): Ditto.
1251 (floating_point_assist_interrupt): Ditto.
1252 (deliver_hardware_interrupt): Ditto.
1254 * interrupts.c (program_interrupt): For UEA mode, halt the
1255 processor - so that the current state is saved - instead of
1257 (floating_point_unavailable_interrupt): Ditto.
1258 (floating_point_assist_interrupt): Ditto.
1260 Thu Jan 2 09:10:41 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1262 * interrupts.c (perform_oea_interrupt): Halt rather than abort on
1265 Wed Jan 1 22:54:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1267 * ppc-instructions (Store Multiple Word, Load Multiple Word):
1270 * tree.c (print_properties): For an array consider printing it out
1271 as an integer array.
1273 * hw_memory.c (hw_memory_init_address): If an "available" property
1274 is present, use that to initialize the available memory instead of
1275 using the reg property.
1277 * emul_generic.c (emul_add_tree_hardware): Add "available"
1278 property to memory device.
1280 Fri Dec 20 13:19:07 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1282 * ppc-instructions (Rotate Left Word then AND with Mask): Enable.
1284 * device.c (device_instance_call_method): Was only looking at the
1287 * hw_disk.c (hw_disk_nr_blocks): Implement #blocks method.
1288 (hw_disk_block_size): Implement block-size method.
1289 (hw_disk_max_transfer): Implement max-transfer method.
1291 * hw_phb.c (hw_phb_init_address): Reinit the rest of the PHB.
1293 * emul_chirp.c (chirp_emul_instance_to_path): Recover from an
1295 (chirp_emul_instance_to_package): Ditto.
1296 (chirp_emul_method): Ditto.
1297 (chirp_emul_read): Ditto.
1298 (chirp_emul_write): Ditto.
1299 (chirp_emul_close): Ditto.
1300 (chirp_emul_seek): Ditto.
1301 (chirp_emul_package_to_path): Ditto (for phandle).
1302 (chirp_emul_package_to_path): Return the length.
1304 * psim.c (psim_merge_device_file): Allow continuation lines.
1306 Thu Dec 19 11:09:43 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1308 * emul_chirp.c (chirp_emul_boot): Implement. Well report the new
1311 * emul_chirp.c (chirp_emul_exit): Correct type of args struct
1312 members - *_cell not host dependant int.
1314 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1316 * interrupts.c (perform_oea_interrupt): Print additional
1317 information if a double interrupt is encountered.
1319 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1321 * psim.c (psim_merge_device_file): Tolerate an incorrect file-name
1322 being specified with the -f option.
1323 (psim_merge_device_file): Correct check for end of string.
1325 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1327 * emul_chirp.c (chirp_emul_peer): Was falling off the end of the
1328 list of devices. Return zero to the client instead.
1329 * emul_chirp.c (chirp_emul_child): Ditto
1330 * emul_chirp.c (chirp_emul_parent): Ditto
1332 * device.c (device_root): Assert assumption about the device being
1335 Tue Dec 17 15:12:38 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1337 * emul_chirp.c (emul_chirp_create): Add description property to
1338 each significant node in the device tree.
1339 * emul_bugapi.c (emul_bugapi_create): Ditto.
1341 Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1343 * main.c (sim_io_read_stdin): For a single byte STDIO read, use a
1344 tempoary two byte buffer. Single byte read with fgets will not
1346 * main.c: Include errno.h.
1347 (sim_io_read_stdin): For non-STDIO, make it work.
1349 * emul_chirp.c (chirp_emul_read): Return the correct error status.
1351 Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1353 * std-config.h (WITH_STDIO): Don't hard-wire the STDIO mechanism.
1354 Instead have each emulation default it to DO_USE_STDIO.
1356 * emul_generic.c (emul_add_tree_options): Select the STDIO I/O
1357 mechanism as the default if enabled or if nothing selected.
1359 * sim_calls.c (sim_io_read_stdin): Passify GCC's desire for a
1361 (sim_io_write_stdout): Ditto.
1362 (sim_io_write_stderr): Ditto.
1363 * main.c (sim_io_write_stdout): Ditto.
1364 (sim_io_write_stderr): Ditto.
1365 (sim_io_read_stdin): Ditto.
1367 Tue Dec 10 10:31:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1369 * emul_chirp.c (emul_chirp_instruction_call): Make *printf calls
1371 * vm.c (om_effective_to_virtual): Ditto.
1372 * events.c (event_queue_schedule{,_after_signal}): Ditto.
1373 (event_queue_{deschedule,process}): Ditto.
1374 * hw_htab.c (htab_decode_hash_table): Ditto.
1375 (htab_map_{page,binary}): Ditto.
1376 * hw_opic.c (hw_opic_init_data): Ditto.
1377 (handle_interrupt): Ditto.
1378 (do_processor_init_register_{read,write}): Ditto.
1379 (write_vector_priority_register): Ditto.
1380 ({read,write}_destination_register): Ditto.
1381 (do_suprious_vector_register_{read,write}): Ditto.
1382 (do_current_task_priority_register_N_{read,write}): Ditto.
1383 (do_timer_frequency_reporting_register_{read,write}): Ditto.
1384 (do_timer_N_{current,base}_count_register_{read,write}): Ditto.
1385 (do_ipi_N_dispatch_register_write): Ditto.
1386 (do_vendor_identification_register_read): Ditto.
1387 (do_feature_reporting_register_N_read): Ditto.
1388 (do_global_configuration_register_N_{read,write}): Ditto.
1389 * hw_phb.c (hw_phb_attach_address): Ditto.
1390 (hw_phb_unit_decode): Ditto.
1391 (hw_phb_address_to_attach_address): Ditto.
1392 (hw_phb_io_{read,write}_buffer): Ditto.
1393 * hw_ide.c (setup_fifo): Ditto.
1395 * sim_calls.c ({defs,callback,remote-sim}.h): Find gdb include
1396 files via -I<dir> instead of using "../../gdb/" prefixes.
1398 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1400 * debug.h: Add tracing for the pal device.
1403 * emul_chirp.c (chirp_emul_getprop): More tracing.
1405 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1407 * device.h, device.c (device_find_ihandle_runtime_property): New
1408 function. Reverse of add_ihandle_runtime property.
1409 (device_init_runtime_properties): Use it.
1411 * device.c (find_property_entry): New function returns the
1412 internal property spec.
1413 (device_set_property): Use.
1414 (device_find_property): Use.
1416 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1418 * psim.c (psim_merge_device_file): Strip newline from device
1421 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1423 * hw_htab.c (htab_map_binary): For overlapping text / data maps
1424 merge the two. Also check that the merge is safe.
1426 * emul_chirp.c (emul_chirp_create): Add a description property to
1427 the pte's so that they are easier to identify.
1429 (emul_chirp_create): Don't specify a load address for the CHRP
1430 image. Always use the values specified by the executable.
1432 * hw_htab.c (htab_map_page): Abort if a duplicate map is
1435 Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1437 * hw_htab.c (htab_map_page): Formatting.
1439 * emul_chirp.c (emul_chirp_instruction_call): Check for a NULL
1440 method name when handling the client call. Also check for other
1443 * emul_chirp.c (emul_chirp_create): Allow real-mode?, real-base,
1444 etc to be overriden.
1446 Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1448 * os_emul.c (os_emul_create): Use tree find property instead of
1449 device find property - sigh.
1451 Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1453 * 961205: Release snapshot 961205.
1455 Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1457 * configure.in (hostbitsize, bitsize): Fix typo in error message -
1458 cannot contain a comma.
1459 (sim-warnings): Check for more potential errors.
1461 * psim.c (psim_usage): Add -f <file> option. Specifies a file
1462 containing device tree specifications that should be merged into
1465 * configure.in: Sort options.
1466 * configure: Rebuild
1468 Wed Dec 4 13:57:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1470 * psim.c (psim_usage): Add -n option - specify number of
1473 * emul_chirp.c: Add description.
1474 * emul_bugapi.c: Ditto.
1475 * emul_unix.c: Ditto.
1476 * emul_netbsd.c: Ditto.
1478 Fri Nov 29 11:12:22 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1480 * hw_pal.c (hw_pal_attach_address): New function, if an attach is
1481 encountered, assume that it is the single disk.
1482 * hw_pal.c: Add generic device/size decode methods.
1484 * hw_nvram.c (hw_nvram_init_address): Use the first nonzero reg
1485 property entry when determining the nvram size.
1487 * hw_core.c: Add generic address/size decode methods.
1489 * emul_chirp.c (emul_chirp_instruction_call): Return and trace
1490 nonzero status from client functions.
1492 * main.c (error): Always include a cariage return when writing out
1495 Wed Nov 20 00:36:55 1996 Doug Evans <dje@canuck.cygnus.com>
1497 * sim_calls.c (sim_resume): Reset sim_should_run if single
1500 Thu Nov 28 13:19:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1502 * emul_bugapi.c (emul_bugapi_do_diskio): Add support for multiple
1505 * emul_generic.c (emul_add_tree_hardware): Drop the dummy eeprom.
1506 Attach the pal - for I/O - as a pseudo device haning from the
1509 * emul_bugapi.c (emul_bugapi_create): Add a small memory device to
1510 the device tree at the address of the hi-mem interrupt vector
1511 addreses. Used by bugapi to establish its trap instructions.
1513 * debug.h: Add a new macro DITRACE for tracing device instances.
1515 * debug.h: Extend the DTRACE macro so that it can also tests for
1516 device specific tracint.
1518 * device.h, device.c (device_trace): Add method to determine
1519 device specific tracing.
1520 (device_init_address): Set the devices tracing level.
1522 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1524 * tree.h, tree.c (tree_device): New files - separate out the
1525 device parser and other tree operations from the device.
1527 * inline.h, inline.c (INLINE_TREE): Add.
1528 * device.h, device.c (device_tree_add_parsed): Delete.
1529 * Makefile.in (tree.c): Add rules for new file.
1530 * Makefile.in: Better order the emul_* files.
1532 * emul_generic.c (emul_add_tree_hardware): Update.
1533 * emul_netbsd.c (emul_netbsd_create): Update.
1534 * emul_unix.c (emul_unix_create): Ditto.
1535 * emul_chirp.c (emul_chirp_create): Ditto.
1536 * emul_bugapi.c (emul_bugapi_create): Ditto.
1537 * psim.c (psim_tree): Ditto.
1540 * emul_generic.h: Include tree.h
1541 * Makefile.in: Add to EMUL_GENERIC_H dependencies.
1543 * device.h, device.c (device_root): New function - returns the
1547 * device.h, device.c (device_clean): New function, clean up device
1548 ready for next simulation run. This includes things like deleting
1549 interrupt edges and properties created during the simulation and
1550 also scrubbing any pre-defined properties.
1551 * tree.c (tree_init): Use.
1553 * device.h, device.c (device_init_static_properties): New
1554 function. Initialize any static predefined properties. By static
1555 we mean those that have values that can be determined before the
1556 device tree initialization has started.
1557 * tree.c (tree_init): Use.
1559 * device.h, device.c (device_init_address): Add code to
1560 check/verify the devices #address-cells and #size-cells.
1561 (device_add_integer_property): Delete corresponding code.
1562 (device_nr_address_cells, device_nr_data_cells): Check for
1563 property when returning value.
1565 * device.h, device.c (device_init_runtime_properties): New
1566 function. Initialize those properties that are not `static'. At
1567 present the only such property is the ihandle.
1568 * tree.c (tree_init): Use.
1570 * device.h, device.c (reg, ranges): Rework these so that they use
1571 an array of the fundamental type - single reg or single range
1574 * device.h, device.c (device_add_ihandle_runtime_property):
1575 Re-implement the adding of an ihandle during tree construction so
1576 that it better fits in with device initialization.
1578 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1580 * device.h, device.c (device_ioctl): Add additional argument -
1581 request - so that the caller must always specify the type of
1584 * device_table.h: Update.
1585 * hw_trace.c (hw_trace_ioctl): Ditto.
1586 * hw_vm.c (hw_vm_ioctl_callback): Ditto.
1587 * hw_init.c (hw_stack_ioctl_callback): Ditto.
1588 * psim.c (psim_options): Ditto.
1590 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1592 * BUGS: Updated a bit.
1594 Wed Nov 20 14:06:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1596 * hw_opic.c: Finish - third round.
1598 Wed Nov 20 12:02:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1600 * hw_glue.c (hw_glue_io_read_buffer_callback): Fix miscalc of glue
1602 (hw_glue_io_write_buffer_callback): Ditto.
1604 Tue Nov 19 21:17:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1606 * events.c (event_queue_process): Was incorrectly consuming future
1607 events on the queue when they should be left alone.
1609 * debug.h, debug.c (events): Add support for event queue tracing.
1610 * events.c: Add event tracing.
1612 * debug.h, debug.c: Order device trace options.
1614 Fri Nov 15 15:23:39 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1616 * pk_disklabel.c (pk_disklabel_create_instance): Fix up some
1617 warnings generated by GCC.
1619 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1621 * sim-endian.h: Add LE versions of byte swap macros. Needed for
1622 PCI devices which are little-endian.
1624 * sim-endian-n.h (endian_le2h_N, endian_h2le_N): Ditto
1626 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1628 * hw_iobus.c (hw_iobus_attach_address_callback): Change the iobus
1629 so that it is implementing a 1-1 address map.
1631 * emul_generic.c (emul_add_tree_hardware): Adjust.
1633 * emul_generic.c (emul_add_tree_hardware): Don't add the nvram as
1636 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1638 * device.c (split_find_device): Be tolerant of missing unit
1641 Fri Nov 15 16:49:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1643 * basics.h (port_direction): New type, specify the direction of
1646 * device.h, device.c (device_interrupt_decode): Include
1647 specification of port direction in operations.
1648 (device_interrupt_encode): Ditto.
1650 * device_table.h: Add a direction field to the interrupt port
1653 * device.c (device_tree_add_parsed): Specify port direction.
1655 Thu Nov 14 21:38:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1657 * hw_opic.c: Finish - second round.
1659 Thu Nov 7 00:18:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1661 * hw_htab.c (htab_init_data_callback): Allow the virtual-address
1662 to be specified as an array which allows 64bit addresses.
1664 * device.c (device_find_integer_array_property): New function.
1665 Simplify the querying of elements of an integer array.
1666 (device_add_integer_property, device_find_integer_property):
1667 Update to correctly use the cell type.
1669 * vm.c (om_unpack_sr): Clarify shifting comment.
1670 (om_pte_0_masked_vsid): Ditto. Add 64bit version.
1672 * emul_chirp.c (emul_chirp_create): Initialize the segment
1675 * vm.c (om_effective_to_virtual): Trace segment register use.
1677 * hw_htab.c (htab_map_page): Print out the pteg base address to
1678 simplify cross checking between vm and the htab.
1679 (htab_decode_hash_table): Use device_error instead of error.
1680 (htab_map_page): Ditto.
1681 (htab_dma_binary): Ditto.
1682 (htab_map_binary): Ditto.
1683 (htab_init_data_callback): Ditto.
1685 Wed Nov 6 20:20:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1687 * interrupts.h: Clarify what the optional instruction program
1688 interrupt is - a subset of illegal instruction program interrupt.
1690 * interrupts.c (program_interrupt): For UEA mode, clarify what an
1691 optional instruction program interrupt is.
1692 (program_interrupt): For OEA mode, as per spec, generate an
1693 illegal instruction program interrupt when an optional instruction
1696 * gen-semantics.c (print_semantic_body): Delete code
1697 differentiating between an unimplemented floating point and normal
1698 instruction. Instead, such a case can be handled explicitly.
1700 * ppc-instructions (store floating-point as integer word indexed):
1702 (Floating Convert to Integer Doubleword): Make the floating point
1703 assist interrupt explicit.
1704 (Floating Convert To Integer Doubleword with round towards Zero):
1706 (Floating Convert To Integer Word): Ditto
1707 (Move From FPSCR): Ditto.
1708 (Move to Condition Register from FPSCR): Ditto.
1709 (Move To FPSCR Fields): Ditto.
1710 (Move To FPSCR Field Immediate): Ditto.
1711 (Move To FPSCR Bit 0): Ditto.
1712 (Move To FPSCR Bit 1): Ditto.
1714 Mon Nov 4 12:49:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1716 * corefile.c (core_map_read_buffer, core_map_write_buffer): Avoid
1717 breaking up transfers.
1719 * corefile.c: Adjust arguments so that the client server
1720 relationship is clarified.
1722 * hw_glue.c (hw_glue_init_address): Update so it can be attached
1725 * hw_disk.c (hw_disk_instance_write): Add more checks to disk IO -
1726 looking for things like overflow/underflow.
1728 Sun Nov 3 18:45:20 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1730 * emul_generic.c (emul_add_tree_hardware): Hang the disk off the
1731 PAL device instead of the IOBUS. The disk must be attached to a
1734 * hw_disk.c (hw_disk_init_address): Just use the unit address
1735 directly in the attach - the rest isn't relevant.
1737 Sat Nov 2 21:48:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1739 * configure.in (sim-hardware, sim-packages): Allow additional
1740 hardware and packages to be prefixed as well as appended.
1742 * Makefile.in (tmp-hw, tmp-pk): Retain the user specified order of
1743 packages when building them. Consequently, a user can override a
1744 standard device by prefixing their own version.
1746 * Makefile.in (hw_opic.o, hw_pci.o, hw_ide.o): Add dependencies.
1748 Fri Nov 1 14:42:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1750 * mon.c (_cpu_mon): Add fields for counting 1, 2, 4, and 8 byte
1752 (mon_{read,write}): Count 1, 2, 4, and 8 byte reads/writes.
1753 (mon_print_info): Correct typo regarding # of unaligned reads and
1754 writes. Print out how many 1, 2, 4, and 8 byte reads/writes there
1757 Tue Oct 29 17:55:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1759 * configure.in (AC_CHECK_FUNCS): Add access.
1760 * config{.in,ure}: Regenerate.
1762 * emul_unix.c (do_unix_nop): System call that always succeeds.
1763 (do_unix_access): Support access system call.
1764 (solaris_descriptors): Make sigaltstack and sigaction nops.
1765 ({solaris,linux}_descriptors): Add support for access.
1767 Tue, 8 Oct 18:42:26 1996 Jason Molenda <crash@cygnus.co.jp>
1769 * Makefile.in (clean): Move config.log to distclean.
1771 Fri Nov 1 16:44:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1773 * corefile-n.h (core_map_write_N): Improve abort messages.
1775 * device.h, device.c (device_attach_address): Remove unused name
1777 (device_detach_address): Ditto.
1778 * device_table.h, device_table.c: Update.
1779 * hw_iobus.c (hw_iobus_attach_address_callback): Ditto.
1780 * hw_nvram.c (hw_nvram_init_address): Ditto.
1781 * hw_memory.c (hw_memory_init_address): Ditto.
1782 * hw_vm.c (hw_vm_init_address_callback): Ditto.
1783 (hw_vm_attach_address): Ditto.
1784 (hw_vm_add_space): Ditto.
1785 * hw_init.c (update_for_binary_section): Ditto.
1786 * hw_core.c (hw_core_attach_address_callback): Ditto.
1788 * hw_iobus.c (hw_iobus_attach_address_callback): Rewrite to handle
1789 configurable parent busses.
1791 Wed Oct 30 18:46:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1793 * device_table.c (generic_device_size_to_attach_size): Provide
1794 limited support for multi-cell sizes.
1795 (generic_device_address_to_attach_address): Ditto for addresses.
1797 Tue Oct 29 02:01:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1799 * device.c (device_add_integer_property): Check for setting of
1800 #address-cells and #size-cells properties. For these, update the
1801 corresponding device values.
1802 (device_nr_address_cells, device_nr_size_cells): Use the value
1803 from the device instead of the property.
1805 * hw_core.c: Use generic address and size conversions for the top
1808 * hw_memory.c (hw_memory_init_address): Tolerate case where
1809 #address and #size cells is greater than 1.
1811 * device.c (device_tree_print_device): Clean out printing of
1814 * device.c (split_device_specifier): Don't detect comments here -
1815 "#" can be a valid prefix - eg #size-cells.
1817 * psim.c (psim_merge_device_file): Suppress comments and blank
1820 * emul_generic.c (emul_add_tree_hardware): Fix typo of incorrect
1821 pal unit address. Add the property /#address-cells to the root of
1824 * device.c (device_template_create_device): Check that the unit
1825 address was successfully parsed.
1827 * device_table.c (generic_device_unit_decode): Rewrite to better
1828 handle multi-cell addresses.
1829 (generic_device_unit_encode): Ditto.
1831 * emul_generic.c (emul_add_tree_hardware): "reg" properties no
1832 longer need the explicit array type - the parser takes care of it.
1834 * pk_disklabel.c (pk_disklabel_create_instance): Add NULL return
1837 Mon Oct 28 22:55:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1839 * hw_ide.c: New file. Model of a basic IDE interface attached to
1842 * configure.in (hardware): Add the ide device to the default
1844 * configure: Regenerate.
1846 * debug.h, debug.c: Add tracing option for the IDE device.
1848 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1850 * hw_phb.c, hw_phb.h: New files - implement a PHB.
1852 * configure.in (hardware): Add the phb to the list of devices to
1855 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1857 * hw_com.c: Review description.
1860 * hw_eeprom.c: Ditto.
1864 * hw_com.c: Update event handling.
1866 * hw_disk.c: Implement tracing.
1868 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1870 * device_table.c (generic_device_init_address): Use
1871 assigned-addresses property in preference to any other reg
1874 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1876 * device.h, device.c (device_find_ranges_property): New function.
1877 Simplify the manipulation of "ranges" properties.
1879 * device.c (device_add_parsed): Extend to include support for the
1882 * device.c (device_add_parsed): Add assigned-addresses to the list
1883 of reg type properties.
1885 * device.c (device_tree_print_device): Add code to format and
1886 print a ranges property.
1888 * device.h, device.c (device_nr_address_cells,
1889 device_nr_size_cells): New functions. Determine the values of the
1890 standard properties #address-cells and #size-cells. Both of which
1891 are optional and have default values of two and one respectfuly.
1892 Previously, code that determined #address-cells was incorrectly
1893 using a value of one.
1895 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1897 * debug.h, debug.c: Sort debug options, Add entries for the
1900 Fri Oct 18 12:12:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1902 * ppc-instructions (Floating Select): Add support for fsel unless
1903 model is 601. Allow user to filter out instruction unless -Fs is
1905 (Store Floating-Point as Integer Word Indexed): Raise optional
1906 instruction program abort. Allow user to filter out instruction
1907 unless -Fs is passed to igen.
1908 (Floating Square Root{, Single}): Ditto.
1909 (Floating Reciprocal Estimate Single): Ditto.
1910 (Floating Reciprocal Square Root Estimate): Ditto.
1912 * configure.in (--enable-sim-filter): If not passed, pass 32,f,s
1914 * configure: Regenerate.
1916 * interrupts.h (program_interrupt_reasons): Add
1917 optional_instruction_program_interrupt.
1919 * interrupts.c (program_interrupt): Call error with more detailed
1920 information on program interrupts, particularly in user mode. Add
1921 support for optional_instruction_program_interrupt.
1923 Wed Sep 25 10:20:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1925 * hw_glue.c: New device. Hooks for manipulating interrupt ports.
1927 * debug.h, debug.c (trace_glue_device): Add tracing support for
1928 the interrupt glue logic device.
1930 * configure.in (hardware): Add glue device.
1931 * configure: Regenerate.
1933 Tue Sep 24 20:55:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1935 * device.c (device_tree_parse_integer_property): New function,
1936 parse a list of integers as an array property.
1937 (device_tree_add_parsed): Call it.
1939 * device.c (device_tree_parse_string_property): New function,
1940 parse a list of strings as a string property (with embeded
1941 null's). For moment, don't try to implement a complext string
1943 (device_tree_add_parsed): Call it.
1945 Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1947 * hw_opic.c: New file. OpenPIC interrupt controller.
1949 * configure.in (hardware): Add opic device.
1950 * configure: re-generate.
1952 * hw_pic.c: Delete, replaced with hw_opic.c.
1954 * debug.h, debug.c: Add debug option for OpenPIC device. -
1957 Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1959 * Makefile.in (psim.o, idecode.o): Since idecode and not psim is
1960 now the file that does all the inlining.
1962 * Makefile.in (LIB_SRC, LIB_INLINE_SRC, idecode.o): Break out the
1963 library source code that could be involved in an inlining. Make
1964 idecode.o only dependant on the inlined library source code.
1966 * Makefile.in (LIB_OBJ): Put options last on the list so that it
1969 * std-config.h (DEVICE_INLINE): Only inline locals when the
1970 default is to inline.
1972 Mon Sep 23 00:37:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1974 * hw_htab.c (htab_sum_binary): Determine the real-base for the
1977 * hw_htab.c (htab_map_binary): Depending on the value of the
1978 load-base, either map the program in as a contiguous section or as
1979 separate sections controled by th binaries lma values.
1980 (htab_init_data_callback): Ditto.
1982 Sun Sep 22 15:56:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1984 * emul_generic.c (emul_add_tree_options): Remove load-base option.
1986 * emul_chirp.c (map_over_chirp_note): Add load_base field to note
1987 struct. Don't require the load_base field to be present - just
1988 issue warning - it is a recent addition.
1989 (emul_chirp_create): Support both virtual and physical modes.
1991 * emul_chirp.c (emul_chirp_create): Add a stack initialization
1992 property so that any arguments specified on the command line can
1993 be passed on to user programs.
1995 * hw_init.c (create_ppc_chirp_bootargs): Add support for chirp
1996 argument passing to the pseudo device stack.
1998 Sat Sep 21 19:39:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2000 * device.c (device_error): Make it more tolerant to incomplete
2003 * hw_init.c (hw_data_init_data_callback): Extend the data device
2004 so that it can perform initialization operations either dma or a
2005 more complex instance open, seek, write operation.
2006 * hw_init.c: Update the description of the data device to reflect
2009 Sat Sep 21 00:13:02 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2011 * device.c (device_event_queue_schedule,
2012 device_event_queue_deschedule, device_event_queue_time): Have the
2013 device object export the event operations. Making these available
2014 from the device object should hopefully simplify writing device
2017 Fri Sep 20 14:04:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2019 * configure.in (sim-hardware): Add eeprom device to default build.
2021 * hw_eeprom.c: Rewrite so it works.
2023 * debug.h, debug.c: Add tracing support for the eeprom and com
2026 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2028 * debug.h: Add disklabel-package and disk-device trace options.
2029 debug.h (PTRACE): Add macro to simplify tracing in packages.
2031 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2033 * device.c (device_create_instance_from): Tighten up loop
2034 searching for device instances.
2035 (device_instance_delete): Ditto.
2036 (device_instance_delete): Only leaf instances need to be removed
2037 from a devices list of active instances.
2039 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2041 * hw_disk.c: Add the cdrom as an alias.
2043 * pk_disklabel.c (disklabel_delete): Implement, remembering to
2044 delete the raw disk instance while we're at it.
2046 * pk_disklabel.c (pk_disklabel_create_instance): Implement a
2047 little bit more - still a long way to go.
2049 * pk_disklabel.c (disklabel_write, disklabel_read): Remember the
2050 new head position after a read or write.
2052 Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2054 * emul_chirp.c (chirp_emul_read): Allow reads to be longer then
2055 the internal buffer.
2057 Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2059 * emul_chirp.c (chirp_read_t2h_args): Call memset-0 with the args
2060 in the correct order.
2062 * emul_chirp.c (chirp_emul_call_method): Correct computation for
2063 the address of the first stack argument passed in from the client
2066 Wed Sep 18 19:33:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2068 * words.h: Add new types signed_cell and unsigned_cell which
2069 correspond to the signed and unsigned IEEE 1275 memory locations.
2070 * device.h, device.c, emul_chirp.c: Where refering to an IEEE 1275
2071 memory cell, replace uses of unsigned32 with unsigned_cell.
2072 * device_table.h: Ditto.
2074 * sim-endian.h: Add new macros H2BE_cell and BE2H_cell which
2075 convert cell sized values to from big endian.
2076 * device.c, emul_chirp.c: Where refering to IEEE 1275 memory cells
2077 use these new macros.
2079 Tue Sep 17 15:57:44 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2081 * device.c (device_tree_add_parsed): Detect and report an
2082 interrupt being attached to an invalid device. Was dumping core.
2084 Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2086 * device.h, device.c (device_address_to_attach_address,
2087 device_size_to_attach_size): New functions. Convert a devices
2088 unit address or unit size structure into a form suitable for
2089 passing on to the attach and detach functions.
2090 * device_table.h: Add extra methods to device table.
2092 * device.h, device.c (device_find_reg_property): New function.
2093 For a reg type property, return the selected address + size
2094 tupple, along with a positive success status. Add a reg_property
2095 to the list of property types.
2096 * (device_tree_add_parsed): Make array properties with the name
2097 reg or alternate-reg of type reg_property.
2099 * hw_memory.c (hw_memory_init_address): Rewrite to use new
2100 find_reg_property method.
2101 * hw_nvram.c (hw_nvram_init_address): Ditto.
2103 * device.c (device_tree_print_device): Add code to print out a reg
2106 * device_table.c (generic_device_address_to_attach_address,
2107 generic_device_size_to_attach_size ): New functions. Generic
2108 functions for converting between unit and attach address or size.
2110 * device_table.c (generic_device_init_address): Rewrite to use the
2111 new find_reg and address convert functions. Look for both reg and
2112 alternate-reg properties.
2114 Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2116 * hw_com.c: New file. A '550 serial device that can quickly be
2117 attached to any bus.
2118 * configure.in (enable-sim-hardware): Add the com device.
2119 * configure: re-generate.
2121 Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2123 * device.c (device_tree_verify_reg_unit_address): New
2124 function. Check that the unit address as specified by the reg
2125 property correctly corresponds to any unit address previously
2126 specified by the devices name.
2127 (device_tree_add_parsed): When adding a reg property, verify
2128 that the unit-address - first value of property - correctly
2129 matches any previous value specified when creating the device
2132 Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2134 * mon.c (mon_event): Remove assertion that an unsigned is >= 0.
2136 Fri Aug 16 12:05:24 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2138 * device.c (device_full_name): Cast strdup to char *, since AIX
2139 3.2.5 mistakenly declares the function to be const char *.
2140 (device_create_from): Ditto.
2141 (device_create_instance_from): Ditto.
2142 (device_add_property): Ditto.
2144 Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2146 * debug.c (trace_option): For -t all, do not set the
2147 trace_dump_device_tree flag, so that the simulator is run.
2149 Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2151 * Makefile.in (options.o): Depend on defines.h.
2152 (defines.h): New rule, go through config.h and make strings of all
2153 of the #define HAVE_xxx macros.
2154 (distclean): Remove defines.h.
2156 * options.c (print_options): Print whether many of the
2157 configuration macros are defined.
2159 * main.c (main): If -t options and no filename, just print the
2160 options, and don't print the usage message.
2162 Mon Aug 12 18:42:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2164 * configure.in: Test whether /dev/zero works on the system, and if
2165 it does, define HAVE_DEVZERO.
2166 * configure: Regenerate.
2168 * emul_generic.c (emul_add_tree_hardware): Do not add /iobus/disk
2169 if we don't have a working /dev/zero on the system.
2171 * emul_bugapi.c (emul_bugapi_init): If HAVE_DEVZERO is not
2172 defined, don't add disk support.
2173 (emul_bugapi_do_diskio): Ditto.
2174 (emul_bugapi_instruction_call): Ditto.
2176 Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2178 * emul_unix.c (HAVE_TCGETATTR): If HAVE_TERMIOS_STRUCTURE is not
2179 defined, make sure HAVE_TCGETATTR is #undef'ed
2181 Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2183 * std-config.h (REGPARM): Only define REGPARM attributes if using
2184 GNU C. Test for __i686__ in case GCC ever defines it. If not on
2185 a x86 platform, define REGPARM as nothing.
2187 * sim-endian.h (WITH_HOST_BYTE_ORDER): Test for i686 and __i686__
2190 Wed Aug 7 20:19:55 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2192 * ld-decode.h, ld-decode.c: Rename goto_gen to the more correct
2194 * gen-idecode.c: Ditto.
2196 * gen-idecode.c (print_idecode_table): Comment out check for
2197 switch/table combination until a bug with it is fixed.
2199 * ppc-opcode-goto: New file. Like complex and flat but uses
2200 goto-switch instead of padded-switch for the tables.
2202 * gen-idecode.c (print_goto_switch_name): New function.
2203 (print_goto_switch_table_leaf): New function.
2204 (print_goto_switch_break): New function.
2205 (print_goto_switch_table): New function. Prints a jump table
2206 that can be jumped into instead of a switch statement.
2208 * gen-idecode.c (*switch_*): As an option output a switch that is
2209 implemented using a jump table but only if the switch is not
2212 Tue Aug 6 09:28:22 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2214 * configure.in (--enable-sim-{hardware,packages}): Fix typos.
2215 * configure: Regenerate.
2217 * device.c (device_instance_call_method): Fixup format message in
2218 error case. Return 0 in case of error to shut up compiler
2221 Wed Aug 7 00:17:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2223 * device_table.c (generic_device_unit_decode): Require a comma
2224 between elements of a unit address.
2226 * device.c (device_tree_print_device): For reg, alternate-reg and
2227 ranges properties use special print functions.
2228 (device_print_ranges_property): Print formatted ranges property.
2229 (device_print_reg_property): Print formatted reg property.
2231 Tue Aug 6 21:35:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2233 * device.c (device_tree_add_parsed): For reg, ranges and
2234 alternate-reg properties use a special parser.
2235 (device_tree_parse_reg_property): New function to parse a reg
2237 (device_tree_parse_ranges_property): New function to parse a
2239 (device_encode_unit): Wrapper for encode_unit callback.
2240 (device_decoce_unit): Wrapper for decode_unit callback.
2242 Wed Jul 31 00:02:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2244 * device_table.h (device_instance_callbacks): Relace the claim and
2245 release methods with a more general table mapping from method-name
2248 * device.c (device_instance_call_method): New function. Implement
2249 the OpenBoot call-method client interface. Attempts to locate the
2250 instances method in the callback table.
2251 (device_instance_claim, device_instance_release): Delete.
2252 Replaced with call-method and a lookup table.
2254 * emul_chirp.c (chirp_emul_call_method): Use the new device
2255 instance call method and let that handle a client claim call.
2257 * hw_htab.c (claim_memory): Wrapper function to call the memory
2258 devices "claim" method using the new device-instance call-method
2259 interface. Replaces the previous direct calls to claim.
2260 (htab_map_region): Use claim_memory.
2261 (htab_init_data_callback): Ditto.
2263 * hw_memory.c (hw_memory_instance_claim): Update function
2264 interface so that it is compatible with call-method.
2265 (hw_memory_instance_release): Ditto.
2266 (hw_memory_instance_methods): New table of memory specific
2267 methods claim and release. Add to the hw_memory_callback
2270 Tue Jul 30 21:26:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2272 * psim.c (psim_init): Back out of change to initial value of
2275 Tue Jul 30 21:12:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2277 * sim_callbacks.h (sim_io_printf_filtered): Replace
2278 printf_filtered with a local simulator specific version. Add
2279 #define printf_filtered to simplify updating of existing code.
2281 * sim_callbacks.h (sim_io_write_stdout, sim_io_read_stdin,
2282 sim_io_write_stderr): New functions. Read / write to the
2283 simulations stdin and stdout and stderr interfaces. Merge in code
2284 from hw_pal that previously handled async I/O.
2285 (sim_io_flush_stdoutput): Rename flush_stdoutput. Add #define
2286 flush_stdoutput to simplify updating of existing code.
2288 * hw_pal.c (scan_hw_pal, write_hw_pal,
2289 hw_pal_instance_write_callback): Use the new sim_io functions.
2291 * main.c: Implement standalone versions of the new sim_io
2292 functions. Include support for async I/O.
2293 * sim_calls.c: Ditto. This time using the gdb callback table.
2295 * std-config.h (CURRENT_STDIO, current_stdio): New macro. Set up
2296 stdio configuration so that it works in the same way as the rest
2298 * psim.c (psim_create): Initialize current_stdio from the device
2300 * emul_generic.c (emul_add_tree_options): Enter a default value
2301 for use-stdio in the device tree.
2303 Fri Jul 26 19:43:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2305 * gen-idecode.c (print_jump): Was always generating a jump back to
2306 idecode. Only necessary at tail of semantic code.
2307 (print_jump): Was always setting the processor's cia, even during
2308 startup when the processor was still undefined.
2309 (print_jump): For safety, restart smp loop when cpu_nr >= nr_cpus,
2312 * options.c (print_options): Add printing of WITH_REGPARM and
2315 * std-config.h (WITH_REGPARM, WITH_STDCALL): Provide default
2316 (disabled) values if not defined.
2318 Fri Jul 26 00:36:35 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2320 * ppc-cache-rules (cache): Change RS and RB to cache instead of
2321 compute. The block move instructions use them.
2323 * idecode_expression.h (FPSCR_SET): New macro, set specific FPSCR
2325 (CR_FIELD): New macro, extract specific CR register.
2326 (FPSCR_FIELD): New macro, extract specific FPSCR register.
2328 * registers.h (GPR): New macro, simplify accesses to GPR[i].
2330 * bits.c (INSERTED): Covert INSERTED macro into a function.
2331 (EXTRACTED): Conditionally compile on correct bit size macro.
2333 * bits.h (BIT8): New macro, set a single bit in an 8 bit byte.
2335 * ppc-instructions: With hints from Paul Martin, type in missing
2336 some instruction semantics. Leave disabled for the moment.
2337 (Load Multiple Word): Ditto.
2338 (Store Multiple Word): Ditto.
2339 (Load String Word Immediate): Ditto.
2340 (Load String Word Indexed): Ditto.
2341 (Store String Word Immedate): Ditto.
2342 (Store String Word Indexed): Ditto.
2343 (Move to Condition Register from XER): Ditto.
2344 (Move From Condition Register): Ditto.
2345 (Move From FPSCR): Ditto.
2346 (Move to Condition Register from FPSCR): Ditto.
2347 (Move To FPSCR Field Immediate): Ditto.
2348 (Move To FPSCR Fields): Ditto.
2349 (Move To FPSCR Bit 0): Ditto.
2350 (Move To FPSCR Bit 1): Ditto.
2352 Thu Jul 25 22:10:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2354 * std-config.h (SEMANTICS_INLINE): By default, mask out the
2355 inlining of semantic functions from DEFAULT_INLINE. Almost all
2356 configurations call the semantic code via a pointer so there is
2359 * std-config.h (ICACHE_INLINE): Ditto.
2361 Thu Jul 25 20:07:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2363 * configure.in (sim_regparm): Add configuration option for
2364 enabling GCC's regparm attribute.
2365 * (sim_stdcall): Add configuration option for enabling GCC's
2368 * Makefile.in (REGPARM_CFLAGS): Pass regparam configuration onto
2370 * (STDCALL_CFLAGS): Pass stdcall configuration onto compilations.
2372 * std-config.h (REGPARM): Extend construction of REGPARM macro so
2373 that it can include __stdcall__ function attribute.
2375 Wed Jul 24 19:04:20 1996 Andrew Cagney <cagney@sawnoff>
2377 * options.c (print_options): Include SUPPORT_INLINE in information
2380 * gen-idecode.c (print_run_until_stop_body): Only generate loop
2381 termination test if creating idecode_run_until_stop. Push the
2382 loop termination test back into each alternative branch.
2384 Wed Jul 24 15:47:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2386 * gen-icache.c (print_icache_function): Have the cache function
2387 always update the cache_entries semantic and address fields.
2389 * gen-idecode.c (print_idecode_switch_illegal): Include a break
2390 when generating illegal instructions. This was commented out
2391 which is a hangover from looking a at switch statements generated
2392 using indirect jumps.
2394 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2396 * igen.c (print_my_defines): Replaces print_define_my_index.
2397 Print both a definition for MY_INDEX and MY_PREFIX.
2398 * gen-icache.c (print_icache_function): Adjust.
2399 * gen-idecode.c (print_jump_insn): Adjust.
2400 * gen-semantics.c (print_c_semantic): Adjust.
2402 * gen-support.c (gen_support_h): Add optional include to created
2403 support.h so that, like cpu, it is optionally inlined for all
2404 modules that include it.
2405 * inline.h, inline.c: Adjust so that support.[hc] is handled the
2408 * idecode_fields.h (LABEL, GOTO): Macro's that create a unique
2409 name for a lable and then branch to it.
2411 * ppc-instructions (convert_to_integer, Floating Round to
2412 Single-Precision, Floating Convert from Integer Doubleword): Use
2413 LABEL and GOTO instead of the recently added switch statements.
2415 Wed Jul 24 14:02:42 1996 Andrew Cagney <cagney@sawnoff.highland.com.au>
2417 * gen-idecode.c (print_run_until_stop_body): Too many rparen in
2420 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2422 * configure.in (--enable-sim-line-nr): Typo - sim_line-nr.
2423 * (--enable-sim-inline): Reorder patern matching of arguments so
2424 that SUPPORT=ALL_INLINE is reconized as *=* and not *_INLINE.
2426 * configure: rebuild.
2428 Mon Jul 22 23:25:08 1996 Andrew Cagney <cagney@highland.com.au>
2430 * configure.in (--enable-sim-hardware, --enable-sim-packages): New
2431 configuration options. Let the user specify the packages or
2432 hardware devices that are to be included in the build. Makes it
2433 possible for user packages to be specified.
2435 * Makefile.in (tmp-pk, tmp-hw): Just use the list of packages and
2436 hardware instead of checking it using ls. configure.in should
2437 have taken care of any problems.
2438 (HW_SRC, HW_OBJ, PACKAGE_SRC, PACKAGE_OBJ): Set by configure.
2440 Mon Jul 22 22:38:59 1996 Andrew Cagney <cagney@highland.com.au>
2442 * psim.c (psim_options): Enter the argument to the memory size
2443 option directly into the device tree. Was using atol() which is
2444 dangerously non portable.
2446 Mon Jul 22 22:17:08 1996 Andrew Cagney <cagney@highland.com.au>
2448 * configure.in (icache): Extend icache flag to include an insn
2449 option. If specifyed the insn - aka instruction - is included in
2450 the instruction cache. Make this the default.
2451 * configure: re-generate.
2453 * igen.c (main), igen.h: Add option -S - inSn - for specifying
2454 that the instruction should be included in the icache.
2456 * gen-icache.c (print_icache_body): If enabled, output code to put
2457 the instruction into the icache.
2458 (print_icache_struct): If enabled, add insn to the icache struct.
2460 Mon Jul 22 20:46:12 1996 Andrew Cagney <cagney@highland.com.au>
2462 * Makefile.in (BUILD_CFLAGS): Include -g when building the
2465 Mon Jul 22 20:00:25 1996 Andrew Cagney <cagney@highland.com.au>
2467 * emul_generic.c (emul_add_tree_options): Was incorrectly setting
2468 the strict-alignment option when hardwired for non-strict
2471 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2473 * gen-semantics.c: Make the my_index variable a macro MY_INDEX.
2475 * ppc-instructions: Adjust so that references are to MY_INDEX and
2478 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2480 * gen-idecode.c: Output the complete run_until_stop function
2481 instead of just the code to handle a single instruction issue.
2482 * : Have the generated idecode.c include inline.c (instead of psim.c).
2484 * std-config.h: Change psim.c so that it isn't inlined (as this is
2487 * psim.c (run_until_stop): Delete the old run_until_stop function
2488 instead calling the idecode_run and idecode_run_until_stop
2489 functions that gen-idecode.c is now creating.
2491 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2493 * dgen.c: Maintenance - update to use new features found in lf.c.
2495 * filter_filename.c (filter_filename): Maintenance - make the
2498 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2500 * debug.c (TRACE, ITRACE, DTRACE): Have GCC instead of CPP
2501 eliminate trace statements.
2503 * debug.c: Change trace format so that it is consistent
2504 (file:line-nr) with CC's error output.
2506 * gen-itable.c (itable_c_insn): Add the source file name and
2507 source line number to the instruction's informational entry.
2509 * debug.c (ITRACE): Use the itable (and my_index) to get the
2510 current instructions name and source line number.
2512 * gen-semantics.c, gen-icache.c: Adjust generated ITRACE calls to
2513 match new interface.
2515 * emul_bugapi.c (emul_bugapi_instruction_call): Adjust
2516 corresponding call to ITRACE so that it still matches.
2518 * idecode_expression.h (ALU_END, CR0_COMPARE): Use TRACE instead
2519 of ITRACE. The CPP line directives would have previously set the
2520 line-nr and file name so ITRACE isn't needed.
2522 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2524 * gen-idecode.c (print_jump_until_stop_body): New function and
2525 idecode generation option. Instead of generating and calling
2526 separate functions containing the semantic and icache code
2527 generate a single monolythic function and use goto's (and GCC's
2528 indirect jump) to move between code blocks.
2530 * Makefile.in: Add sim_jump flag to those passed to igen.
2532 * configure.in: New option --enable-sim-jump (default disabled)
2534 * ppc-instructions: Eliminate any uses of labels and goto's.
2535 These result in duplicate declarations when a single flat function
2538 * ppc-opcode-jump: New file. Set of opcode rules useful when
2539 testing jumping idecodes.
2541 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2543 * gen-idecode.c: Optionally include the semantic code for an
2544 instruction in the function that is doing the decoding.
2546 * igen.c: Add option (-C) to generate semantics in the instruction
2549 * configure.in (--enable-sim-icache): Accept an option list such
2550 as 1024,define. Add a new choice to the list - semantic - which
2551 will cause igen to generate instruction decode functions that
2552 include the corresponding semantic code.
2554 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2556 * configure.in: New option --enable-sim-line-nr (default enabled).
2557 Enable/disable the inclusion of CPP line directives in the
2558 generated files. Such directives refer back to the source files
2559 used when generating the simulator code.
2561 * Makefile.in (sim_line_nr): Pass to igen.
2563 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2565 * igen.c (main): Revamp the options so that more letters are
2568 * configure.in: Adjust to match igen's revamped options
2570 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2572 * Makefile.in (pk.h, hw.h): Rewrite depenencies for hw.h (etc) so
2573 that they use the same technique as igen (ie a dummy targets
2574 tmp-pk and tmp-hw are created).
2576 Mon Jun 24 22:28:00 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2578 * Makefile.in (BUILD_CFLAGS): Include WARNING_CFLAGS.
2580 Wed Jun 19 21:45:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2582 * ld-cache.[hc], ld-decode.[hc], ld-insn.[hc]: New files. Separate
2583 out the loading of each of the tables from the rest of igen.
2584 * Makefile.in: Adjust.
2587 * gen-icache.[hc], gen-idecode.[hc], gen-itable.[hc],
2588 gen-model.[hc], gen-semantics.[hc]: New files. Separate out the
2589 code creating each separate set of generated files.
2590 * Makefile.in: Adjust.
2593 * gen-support.[ch]: New files. Output the support functions (found
2594 in the ppc-instructions file) into a separate file.
2596 * inline.h, inline.c: Add.
2597 * std-config.h: Add.
2599 * ld-cache.c: Re-design the cache table format.
2600 * ppc-cache-rules: Update to new format.
2602 * ld-decode.c: Re-design the decode table format.
2603 * ppc-opcode-simple: Update to new format
2604 * ppc-opcode-complex: Ditto
2605 * ppc-opcode-flat: Ditto
2607 * filter.h, filter.c: New files. Separate the opcode filter table
2608 reading code from the rest of igen.c. Re-design the filter so that
2609 it works inclusivly not exclusivly.
2610 * igen.c: Remove the opcode filter table loading code.
2611 * Makefile.in (filter.o): Adjust
2612 * configure.in: Adjust filter flag so that default includes 32bit
2614 * ppc-instructions: Clean up filter fields so that only in use
2615 entries are specifed (ie delete `be').
2617 * misc.c (name2i, i2name): New function. Map between a string and
2620 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2622 * sim_calls.c (sim_close): If simulator not created, skip printing
2625 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2627 * registers.c (register_description): Typo, insns not insn.
2629 * ppc-instructions (model_get_number_of_stalls): New model function,
2630 returns number of stalls for the specified processor.
2631 * psim.c (psim_read_register): Add call to new function
2632 model_get_number_of_stalls().
2634 * ppc-instructions (model_get_number_of_cycles): New model function,
2635 returns number of stalls for the specified processor.
2636 * psim.c (psim_read_register): Add call to new function
2637 model_get_number_of_cycles().
2639 Fri Jun 14 00:11:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2641 * device_table.h: Don't pass the parent device into a devices
2642 create function. This makes the create function consistent with
2644 * device.c (device_template_create_device): Ditto
2645 * hw_pal.c (hw_pal_create): Ditto
2646 * hw_core.c (hw_core_create): Ditto
2647 * hw_vm.c (hw_vm_create): Ditto
2648 * hw_disk.c (hw_disk_create): Ditto
2649 * hw_nvram.c (hw_nvram_create): Ditto
2650 * hw_memory.c (hw_memory_create): Ditto
2651 * hw_cpu.c (hw_cpu_create): Ditto.
2653 * device.c (split_find_device): Allow a null initial parent device.
2654 (device_template_create_device): Ditto.
2656 * device.c (device_create_from): Make local (static) only used
2658 * device_table.h: typedef device_callbacks moved here (from
2659 device.h) where it belongs.
2661 * hw_core.c: New file. Implements just the core device using the
2664 * corefile.c: Moved all core device functions into the new
2665 hw_core.c file. core_device_create() disapears.
2667 * psim.c (psim_tree): Use device_tree_add_parsed() to create the
2670 Thu Jun 13 00:09:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2672 * hw_init.c: Correct typo in comment.
2674 * corefile.c (core_init): Remove any remaining references to a
2676 (core_map_find_mapping): Ditto.
2678 Wed Jun 12 22:30:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2680 * corefile.c (core_init): Make function global so that other
2681 devices are able to use the full core object.
2683 * corefile.c (core_create, core_from_device): Break core_create
2684 into two functions. The first creates a core object, the second
2685 returns the core object associated with a core device.
2687 * corefile.c (core_device_create): Use core_create to make the
2690 * psim.c (psim_create): Use core_from_device() instead of
2693 * device.c (device_template_create_device): Make static as only
2694 needed by functions internal to device.c.
2696 Fri Jun 7 23:47:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2698 * ppc-opcode-test-2: Remove description of fields.
2699 * ppc-opcode-complex: Ditto
2700 * ppc-opcode-flat: Ditto
2701 * ppc-opcode-simple: Ditto
2702 * ppc-opcode-stupid: Ditto
2703 * ppc-opcode-test-1: Ditto
2704 * ppc-cache-rules: Ditto
2706 * igen.c: Add description of files as a comment at the front.
2708 Wed Jun 26 12:50:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2710 * configure.in: Check for whether the termios and termio
2711 structures are really defined, and whether or not, they define the
2713 * configure: Regenerate.
2715 * Makefile.in ({,TERMIO_}CFLAGS): Add TERMIO_CFLAGS options set by
2718 * emul_unix.c: Various changes to allow for building on systems
2719 with different termio and termios structures. If host has both
2720 termio and termios, just use termios. No longer include
2723 Wed Jun 26 12:26:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
2725 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
2726 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
2728 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
2729 (AC_PROG_INSTALL): Added.
2730 * configure: Rebuilt.
2732 Wed Jun 5 23:53:42 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2734 * corefile.h: Rewrite documentation so that it can be extracted and
2735 converted into texinfo (and hence ready for translation into html,
2739 Thu Jun 6 09:52:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2741 * hw_disk.c (SEEK_SET): If SEEK_SET is not defined, define as 0.
2743 Wed Jun 5 11:46:52 1996 Andrew Cagney <cagney@puddin>
2745 * hw_disk.c: Include <unistd.h> if available. Under SunOS, that
2746 is the source of SEEK_SET.
2748 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2750 * psim.c (psim_options): Correct type of dummy arguments being
2751 passed to a device_ioctl call.
2753 * hw_init.c (hw_data_init_data_callback): Adjust printf arguments.
2754 (write_stack_arguments): Ditto.
2755 * hw_trace.c: Instance callback entry no longer a table.
2757 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2759 * emul_unix.c (do_unix_umask): Cast printf argument.
2760 (convert_to_linux_termios): Use LINUX_VSWTC not LINUX_VSWCH
2762 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2764 * hw_init.c (update_for_binary_section): Abort if we find an
2765 .interp section, which indicates the need for shared libraries to
2768 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2770 * emul_unix.c (do_unix_{time,gettimeofday,getrusage}): Add support
2771 for time, gettimeofday, and getrusage system calls.
2772 ({solaris,linux}_descriptors): Add new system calls.
2773 (do_get{,e}{uid,gid}): Use gid_t/uid_t types.
2774 (do_get{,p}pid): Use pic_t types.
2776 * configure.in (AC_TYPE_{GETGROUPS,SIGNAL}): Define.
2777 (AC_TYPE_{MODE,OFF,PID,SIZE,UID}_T): Define.
2778 * config{.in,ure}: Regenerate.
2780 Mon Jun 3 23:19:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2782 * emul_netbsd.c (emul_netbsd_create): Use the more specific names
2783 `ppc-elf' and `ppc-xcoff' for the stack-type.
2784 * emul_unix.c (emul_unix_create): Ditto.
2785 * emul_bugapi.c (emul_bugapi_create): Ditto.
2786 * hw_init.c: Reconize the new names.
2788 * emul_unix.c (do_unix_break): Adjust so that the updated ioctl
2789 call is used (no system parameter).
2791 Sun Jun 2 11:21:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2793 * emul_unix.{h,c}: New files to provide Solaris and Linux system
2796 * Makefile.in (LIB_{SRC,OBJ}): Add emul_unix.{c,o}.
2797 (os_emul.o): Depend on emul_unix.h.
2798 (emul_unix.o): New dependency.
2800 * configure.in (--enable-sim-alignment): Add 0|default to mean set
2801 alignment to 0, which means use appropriate alignment for mode.
2802 (AC_CHECK_FUNCS): Add new functions needed by emul_unix.c.
2803 (AC_CHECK_HEADERS): Add new include files needed by emul_unix.c.
2804 * config.in: Regenerate.
2805 * configure: Regenerate.
2807 * emul_generic.c (emul_write2_status): New function to return
2808 results in r3 and r4 for Solaris system calls.
2809 (emul_do_system_call): If the system call is not support, but
2810 there is a string for the system call name, print out the string
2811 instead of the system call number.
2813 * emul_generic.h (emul_write2_status): Declare it.
2815 * emul_netbsd.c: Use /* */ around comment on #endif.
2817 * os_emul.c: Include emul_unix.h.
2818 (os_emulations): Add emulations for Solaris, and Linux.
2820 * psim.c (psim_usage): Add message about solaris, linux
2823 Thu May 30 00:00:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2825 * hw_iobus.c: Tidy up notes so that they can be auto-extracted.
2827 * README: Correct PSIM's title
2829 Wed May 29 23:50:26 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2831 * basics.h: New global type object_disposition, used to indicate
2832 the status of objects when things are restarted.
2834 Fri May 17 17:28:52 1996 Andrew Cagney <cagney@benjimen.highland.com.au>
2836 * device_table.h: Change the interrupt descriptor structure so
2837 that it includes an additional member - an upper bound on the
2838 interrupts by that name.
2840 * device.c (device_interrupt_decode): Allow a range of interrupt
2841 ports (eg rst0 .. rst6) if the port descriptors bound is non zero.
2843 * device.c (device_tree_print_device): Include a list of valid
2844 interrupt ports when listing supported devices.
2846 * device.h, device.c (device_child_interrupt_*): Delete. Not used.
2848 * emul_generic.c (emul_add_tree_hardware): Modify the creation of
2849 the interrupt net so that it uses int0 .. intN.
2851 Tue May 14 23:03:53 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2853 * device.h, device.c (device_ioctl): Drop the system argument.
2854 Devices can not obtain this using the device_system() call.
2855 * device_table.h: Adjust accordingly.
2856 * hw_*.c: Adjust accordingly.
2857 * emul_netbsd.c (do_break): Adjust call to vm device accordingly.
2858 * psim.c (psim_options): Use a device_ioctl call to force the
2859 hw_trace device to update the trace options.
2860 * hw_trace.c: Replace the init function with an ioctl call. Adjust
2863 * psim.c (psim_init): Re-order initialization so that the
2864 os-emulation is initialized after the device tree. Without this,
2865 os-emul's are not able to create instances or access properties
2866 that contain an instance handle.
2868 * device.h, device.c (device_add_*_property): Make these functions
2869 internal to device.c. The user has access to the more generic
2870 device_tree_add_parsed function. Differentiate between the initial
2871 and current value for each property.
2872 * (clean_device_properties): New function that deletes any
2873 properties created after the start of a simulation and restores
2874 the initial value of any others (ignoring ihandles).
2875 * (init_device_properties): (Re)Initialize any properties that
2876 contain ihandles. create
2878 * (device_tree_init): Include calls to clean the device tree's
2879 properties and then initialize them. Document this in the device.h
2882 Mon May 6 17:36:15 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2884 * interrupts.c (decrementer_interrupt): Always pend a decrementer
2885 interrupt even if it is not yet possible to deliver it.
2887 Wed May 1 12:26:51 1996 Andrew Cagney <cagney@benjimen>
2889 * mon.h, mon.c (mon_get_number_of_insns): Make this externally
2890 visable adjusting the arguments so that the interface is correct.
2891 (mon_print_info): Adjust calls.
2893 * registers.h, registers.c (register_description): Add phony
2894 cycle, insn and stall registers.
2896 * psim.c (psim_read_register): Return nr of instructions for given
2899 Tue Apr 30 22:09:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2901 * hw_htab.c: New file. Extract contents from disk_table.c.
2902 Contains a device that, during initialization will create a
2903 PowerPC htab in memory.
2904 * hw_register.c: New file. Extract contents from disk_table.c.
2905 Contains a device that, during initialization, will parse its
2906 property list and use that to initialize various processor
2907 registers (not target specific).
2908 * hw_vm.c: New file. Extract contents from disk_table.c. Contains
2909 a device that handles accesses to invalid virtual memory addresses
2911 * hw_init.c: New file. Extract contents from disk_table.c. Misc
2912 devices that can initialize memory from a file.
2913 * hw_trace.c: New file. Extract contents from disk_table.c.
2914 Configure trace options from property values.
2916 * Makefile.in (hw_htab.o, hw_register.o, hw_vm.o, hw_init.o,
2917 hw_trace.c): Add new device files.
2919 * device_table.c: Remove above code, now in separate independant
2922 Fri Apr 26 00:00:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2924 * hw_disk.c: New file. Disk and CDROM device.
2926 * Makefile.in (hw_disk.o): Add device hw_disk.c.
2928 * pk_disklabel.c: New file. Implement the miss-named disk-label
2931 * Makefile.in (pk.h): Create the file pk.h that contains a list of all
2934 * Makefile.in (hw.h, hw.c): Add dependancy on Makefile so that
2935 they are re-created when the makefile is updated.
2937 * emul_generic.c (emul_add_tree_hardware): Add a disk device
2938 (below the iobus) to the device tree. Include an ihandle of
2939 the disk as /chosen/disk.
2941 * emul_bugapi.c (emul_bugapi_create): Don't initialize the input,
2942 output and (new) disk handles yet.
2943 * (emul_bugapi_init): Initialize the input, output (and just added)
2945 * (emul_bugapi_do_diskio): New. Performs disk i/o (well at least
2946 what I think the behavour is).
2947 * emul_bugapi.c (emul_bugapi_instruction_call): Add hook to disk
2948 i/o bug call. For RETURN call, exit using gpr[3]'s status even
2949 though this isn't part of the spec - makes it possible for machine
2950 code to signal the aporting of a simulation run.
2952 * emul_chirp.c (chirp_emul_call_method): Add support for the
2953 claim/release methods.
2954 * (chirp_emul_exit): Add an optional exit status argument to
2955 the exit method. Makes it possible for chirp emul simulations
2956 to abort upon an error.
2957 * device.h, device.c (device_instance_claim,
2958 device_instance_release): New methods for claiming and releasing
2960 * hw_memory.c: add claim and release memory methods.
2961 * hw_*: Use the claim memory method when allocating physical
2964 Thu Apr 18 23:38:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2966 * hw_nvram.c (hw_nvram_update_clock): Use the current not previous
2967 time when updating the clock.
2969 * hw_nvram.c: Tidy up documentation
2971 Fri May 24 10:08:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2973 * configure.in (AC_STRUCT_ST_{BLKSIZE,BLOCKS,RDEV}): Use these
2974 macros to determine whether or not the appropriate st_<xxx> fields
2975 exist in the stat structure.
2976 (AC_CHECK_FUNCS): Check for all unix system calls used, except for
2977 the real basic ones like open, read, write, etc.
2978 * config{.in,ure}: Regenerate.
2980 * emul_netbsd.c: Add support for missing system calls, and/or
2981 missing stat fields.
2982 (MAXPATHLEN): Undefine if including unistd.h, since sys/param.h
2985 * hw_pal.c (WITH_STDIO): Redefine if O_NDELAY, F_GETFL, or F_SETFL
2987 (scan_hw_pal): Do not cause syntax error if O_NDELAY, F_GETFL, or
2988 F_SETFL not defined.
2990 Tue May 21 17:24:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2992 * emul_netbsd.c (write_stat): Don't convert st_blocks unless the
2995 Thu May 16 10:56:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2997 * configure.in (AC_CHECK_HEADERS): Add sys/ioctl.h.
2998 * config{.in,ure}: Regenerate.
2999 * emul_netbsd.c: If HAVE_SYS_IOCTL_H is not defined, don't include
3002 Tue May 7 17:28:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3004 * hw_pal.c (hw_pal_instance_read_callback): Remove unused
3007 * misc.c ({,target_}a2i): Rewrite to not use strtoul.
3009 * Makefile.in ({spreg,misc}.o): Add dependency on .c file.
3010 ({i,d}gen): Don't link in liberity. Use BUILD_LIBS instead of
3013 Mon May 6 11:31:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3015 * hw_pal.c (hw_pal_instance_read_callback): If using stdio, use
3016 fgets to read line. If not using stdio, do a simple blocking read
3019 Fri May 3 15:07:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3021 * Makefile.in: Correctly build simulator for build machine != host
3024 Tue Apr 30 18:46:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3026 * configure.in (--enable-hostendian): Rework so the default uses
3027 the AC_C_BIGENDIAN results. Only run AC_C_BIGENDIAN if not cross
3029 * configure: Regenerate.
3031 * sim-endian.h: Add more tests for host endian to support more
3032 platforms in a cross compilation environment.
3034 Wed Apr 17 14:38:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3036 * hw_pal.c ({scan,write}_hw_pal): If WITH_STDIO == DO_USE_STDIO,
3037 use stdio, instead of unpended read/printf_filtered.
3038 (hw_pal_instance_write_callback): If WITH_STDIO == DO_USE_STDIO,
3039 flush stdout after writing the characters.
3041 * options.c (print_options): Print out WITH_STDIO.
3043 * Makefile.in (STDIO_CFLAGS): Pass on result of @sim_stdio@
3044 configuration variable.
3045 (CONFIG_CFLAGS): Include STDIO_CFLAGS.
3046 (hw.{c,h}): Allow for source dir != build dir, and for HW_SRC
3047 files to contain directory pieces.
3049 * std-config.h (DO{,NT}_USE_STDIO): New flags for whether we
3050 should use stdio for console input.
3051 (WITH_STDIO): If not defined, define as DONT_USE_STDIO.
3053 * configure.in (--enable-sim-stdio): Add new switch to control
3054 whether stdio is used for console I/O.
3055 * configure: Regenerate.
3057 * interrupts.c (external_interrupt): Declare it to be
3058 INLINE_INTERRUPTS, not INLINE_CPU.
3060 Mon Apr 15 23:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3062 * events.c (insert_event_entry): Allow events to be scheduled
3063 *NOW* (at delta time 0). Add assertions to clarify behavour of
3066 * events.c (update_time_from_event): New function. Calculates the
3067 number of ticks from the next event. Use this.
3069 Sun Apr 14 21:39:45 1996 Andrew Cagney <cagney@highland.com.au>
3071 * emul_netbsd.c (do_break): Return 0 if success (instead of
3074 * device_table.c (vm_ioctl_callback): Don't return adjusted break
3077 Sun Apr 14 21:32:41 1996 Andrew Cagney <cagney@highland.com.au>
3079 * device_table.h: Change type of the device ioctl so that it
3080 returns an int (status).
3081 * device.h (device_ioctl): Ditto.
3082 * device.c (device_ioctl): Ditto.
3084 * device_table.c (stack_ioctl_callback): Return 0 status.
3085 (vm_ioctl_callback): Ditto
3087 Sat Apr 13 00:00:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3089 * emul_netbsd.c (do_read): Correctly set the return value.
3092 (do_geteuid): Ditto.
3094 (do_getegid): Ditto.
3096 (do_sigprocmask): Ditto.
3099 (do_gettimeofday): Ditto.
3100 (do_getrusage): Ditto.
3104 (do___sysctl): Ditto.
3106 Fri Apr 12 20:56:47 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3108 * device_table.c (vm_ioctl_callback): Don't access the processor
3109 registers directly, instead leave it to the caller to handle this.
3111 * emul_netbsd.c (do_break): Which calls vm_ioctl_callback to
3112 perform a break. Pass in the new break value and set the
3113 registers according to the result.
3115 * emul_generic.c (emul_write_status): Change so that r3 contains
3116 either status or errno and failure is indicated by SO.
3118 Thu Apr 4 23:03:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3120 * emul_bugapi.c (emul_bugapi_create): More strict check of OEA
3123 Thu Apr 4 20:58:05 1996 Andrew Cagney <cagney@highland.com.au>
3125 * interrupts.h (interrupts): New structure contains state of
3128 * cpu.c (cpu_interrupts): New function. Pending interrupt status
3129 in the cpu and grant access to it. Add interrupts to cpu
3132 Fri Mar 29 22:09:25 1996 Andrew Cagney <cagney@highland.com.au>
3134 * device.c (device_tree_add_parsed): Check that the creation of a
3135 device instance worked before using it.
3137 * psim.c (psim_halt): Remove cia argument from psim_halt. This
3138 function does not save the CIA so do not pass it in.
3140 Fri Mar 29 21:30:56 1996 Andrew Cagney <cagney@highland.com.au>
3142 * hw_pal.c (hw_pal): Merge the halt and icu and console devices
3143 found in device_table.c into a single hack pal.
3145 * device_table.c (halt, icu, console): Delete.
3147 * Makefile.in (hw_pal.o): New dependency.
3149 * emul_generic.c (emul_add_tree_hardware): Re-arange device tree
3150 so that it uses the pal instead of the icu/halt/console devices.
3151 Wire the pal's interrupt ports up to the cpu nodes.
3153 Fri Mar 29 20:17:17 1996 Andrew Cagney <cagney@highland.com.au>
3155 * hw_iobus.c (hw_iobus_attach_address_callback): Move from
3156 device_table.c to here.
3158 * Makefile.in (hw_iobus.o): New dependency.
3160 Fri Mar 29 12:17:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3162 * emul_bugapi.c (_os_emul_data): Add fields for output, input.
3163 (emul_bugapi_create): Create input, output from /chosen/stdin and
3165 (emul_bugapi_do_{read,write}): Switch to use device_instance
3167 (emul_bugapi_instruction_call): Change calls to
3168 emul_bugapi_do_{read,write} to pass device instance argument.
3170 Tue Mar 26 14:57:58 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3172 * igen.c (idecode_switch_end): Fix 2/26 change so that an extra
3173 default is not written out if a default was already written.
3175 * psim.c (psim_{read,write}_register): Use sizeof unsigned_8 to
3176 size cooked_buf, not sizeof natural_word, since floating point
3177 registers are 8 bytes.
3179 Mon Mar 25 22:07:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3181 * configure: Regenerate with autoconf 2.9.
3183 Thu Mar 21 00:14:26 1996 Andrew Cagney <cagney@highland.com.au>
3185 * device_table.h: Always include string headers.
3187 Thu Mar 21 00:06:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3189 * main.c (error): Be careful to not try to print out statistics
3190 when the simulation was never created.
3192 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3194 * basics.h: Move the event queue's definition to here so that it
3195 can be refered to globally with out importing all of events.h.
3197 * psim.h, psim.c (psim_event_queue): New function. Grant access
3198 to the simulation event queue. Will make this the single point of
3199 access (there is after all only one event queue in the
3202 * cpu.c (cpu_create): Use psim_event_queue to obtain the event
3203 queue instead of it being passed in. No longer allow access to
3204 the cpu's copy of the event queue.
3206 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3208 * events.h, events.c (event_handler): Remove event_queue from
3209 arguments passed to an event handler. That argument is redundant
3210 - the `data' should refer to a data structure that contains the
3211 event queue if queing is needed.
3213 * cpu.c (cpu_decrement_event): adjust
3215 * events.c (event_queue_process): adjust
3217 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3219 * device.h, device.c (device_system): New, returns a handle for
3220 the system given the device.
3222 * device.c (device_address_init): Store a pointer back to the
3223 system in each devices node.
3225 * device_table.h: Don't pass `system' into each device when it is
3226 being initialized, this is now available using device_system(me).
3228 * device.c (device_address_init, device_data_init): Adjust.
3230 * hw_cpu.c, hw_nvram.c, hw_memory.c, hw_eeprom.c, device_table.c:
3233 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3235 * interrupts.c (decrementer_interrupt, external_interrupt):
3236 Remember that an interrupt wasn't delivered so that it can be
3239 * interrupts.c (check_masked_interrupt): New function. (re)
3240 checks for the posibility that a recent change to the MSR may have
3241 made it possible to deliver an interrupt that was previously
3242 masked be the EE bit.
3244 * ppc-instructions (mtmsr, mfmsr, rfi): Check for posibility of
3245 a pending interrupt being delivered using check_masked_interrupt().
3247 * cpu.c (cpu_decrement_event): Just call decrementer_interrupt()
3248 leaving it to that module to handle both interrupt synchronization
3251 * cpu.c (struct _cpu): remove variables that were going to record
3252 pending decrementer and external interrupts.
3254 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3256 * hw_cpu.c, hw_cpu.h: New files. Implement a device that sits
3257 between the interrupt controller and the simulators internal
3258 processor model. Maps device interrupts onto the processor
3259 interrupt function calls.
3261 Mon Mar 4 06:06:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3263 * hw_nvram.c: NVRAM device that includes a real-time clock that is
3264 updated each second.
3266 Mon Mar 4 04:18:50 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3268 * device.h (attach_type): Remove attach_default type address
3269 spaces. Will replace with levels of callback memory.
3271 * corefile.h, corefile.c (new_core_mapping), corefile.c
3272 (core_map_attach): Replace default attach with a layerd callback
3275 Sun Mar 3 03:58:46 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3277 * device.c (split_property_specifier): ensure that only a single
3279 (split_value): New function, parses the value part of a device
3282 * device.c (device_tree_add_parsed): Use the interrupt conversion
3283 functions to determine the interrupt port numbers.
3285 * device_table.h: Add table that maps between an interrupts
3286 symbolic name and its port number.
3288 * device.h, device.c (device_interrupt_decode,
3289 device_interrupt_encode): new functions use the recently added
3290 interrupt port name/number tables to perform conversion.
3292 Sun Mar 3 03:23:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3294 * device.h, device.c (device_set_array_property,
3295 device_set_boolean_property, device_set_ihandle_property,
3296 device_set_integer_property, device_set_string_property): New
3297 functions - allow the value of a given property to be changed.
3299 * device.h, device.c: Re-order declaration and definition of
3302 Sun Mar 3 03:10:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3304 * device.c (device_tree_print_device, device_tree_add_parsed):
3305 Remove references to phandle properties.
3307 Wed Feb 28 00:43:07 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3309 * Makefile.in (corefile.o): missing dependency on device_table.h
3312 Tue Feb 27 23:59:35 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3314 * device_table.h: Revamp device init callbacks so that they are a
3316 * device.c (device_init_data, device_init_address): If an init
3317 callback is NULL assume it should do nothing.
3318 * device_table.c (ignore_device_init, unimp_device_init): delete
3320 * device_table.c, hw_memory.c: adjust.
3324 * (device_instance): ditto.
3326 * (address nee config_address): ditto.
3327 * (interrupt): ditto.
3329 Mon Feb 26 21:11:20 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3331 * igen.c (idecode_switch_end): Output a default entry when the
3332 switch statement is perfect. Firstly stops GCC complaining about
3333 an incomplete switch and secondly it will be eliminated by a good
3336 Mon Feb 26 22:47:15 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3338 * Makefile.in (hw.h, hw.c): New targets. Create from the list of
3339 hw_*.c files. hw.h declares a device descriptor table for each hw
3340 device while hw.c lists those tables in a form suitable for the
3341 construction of a top leveltable in device_table.c.
3343 * Makefile.in (device_table.o): now depends on hw.c a generated
3346 * device_table.c (device_table): Re-arange the table of devices so
3347 that two levels are possible. Make use of hw.c.
3348 * device_table.h: ditto.
3350 * device.c (device_template_create_device): Handle new two level
3351 device lookup table.
3352 * device.c (device_usage): ditto.
3354 Mon Feb 26 22:24:00 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3356 * device_table.c: Delete the memory device (moved to hw_memory.c).
3358 * hw_memory.c: New file. Just an OpenBoot memory device.
3360 Wed Jan 17 21:47:34 1996 Andrew Cagney <cagney@highland.com.au>
3362 * device.c (device_init_address): New. Split initialization into
3363 two stages, address and address spaces
3364 * device.c (device_init_data): New. ... and data or other work.
3365 With out this, devices try to modify memory before it as been
3368 * device.c (device_tree_init): Update to perform staged
3371 * device.c (device_init): Delete.
3373 Wed Jan 17 21:43:09 1996 Andrew Cagney <cagney@highland.com.au>
3375 * device_table.c (data_*): Rewrite to make heaver use of property
3376 nodes. Allow initialization by different data types.
3377 * device_table.c (htab_* pte_*): Rewrite to use properties.
3379 * emul_chirp.c (emul_chirp_create): Use
3380 * emul_bugapi.c (emul_bugapi_create): Ditto
3381 * emul_netbsd.c (emul_netbsd_create): Ditto
3383 Wed Jan 17 21:24:50 1996 Andrew Cagney <cagney@highland.com.au>
3385 * emul_generic.c (emul_add_tree_options): Annotate existing tree
3386 with options that haven't yet been specified.
3387 * emul_generic.c (emul_add_tree_hardware): Annotate existing tree
3388 with demo devices and properties.
3390 * emul_chirp.c (emul_chirp_create): Update to use new
3391 device_tree_add_parsed call and additional information now
3392 included in the device tree. Use emul_add_tree* functions to add
3393 any missing details.
3394 * emul_bugapi.c (emul_bugapi_create): Ditto
3395 * emul_netbsd.c (emul_netbsd_create): Ditto
3397 Wed Jan 17 21:18:27 1996 Andrew Cagney <cagney@highland.com.au>
3399 * device.c (device_instance_create): New. Create/delete and
3400 operate on instances of a device.
3401 * device.c (device_instance_delete): Ditto
3402 * device.c (device_instance_read): Ditto
3403 * device.c (device_instance_write): Ditto
3404 * device.c (device_instance_seek): Ditto
3405 * device.c (device_instance_data): Ditto
3406 * device.c (device_instance_name): Ditto
3407 * device.c (device_instance_path): Ditto
3409 * emul_chirp.c (chirp_emul_open): Implement using device_instance.
3410 * emul_chirp.c (chirp_emul_close): Ditto
3411 * emul_chirp.c (chirp_emul_read): Ditto
3412 * emul_chirp.c (chirp_emul_write): Ditto
3413 * emul_chirp.c (chirp_emul_seek): Ditto
3415 * emul_chirp.c (chirp_read_t2h_args): Read arguments from device.
3416 Being careful to convert all from target to host byte order.
3417 * emul_chirp.c (chirp_write_h2t_args): Converse.
3419 Wed Jan 17 20:07:15 1996 Andrew Cagney <cagney@highland.com.au>
3421 * device.c (device_tree_add_parsed): New. Rewrite code to add
3422 devices to the device tree so that a single printf style function
3425 * device.c (device_tree_add_*): Delete. Replaced by above.
3427 * device.c (split_device_specifier): Functions to manipulate a
3428 device specifier (path) breaking it into its components
3429 * device.c (split_property_specifier): Ditto
3430 * device.c (split_device_name): Ditto
3431 * device.c (split_find_device): Ditto
3433 * device.c (scan_*): Delete
3435 * device.c (device_tree_find_device): Rewrite to use above.
3436 * device.c (device_add_property): Ditto
3438 Wed Jan 17 19:51:56 1996 Andrew Cagney <cagney@highland.com.au>
3440 * psim.c(psim_options): Parse the psim options, installing their
3441 value in the device tree. Options are now first entered into a
3442 device tree and then extracted out again when needed. This allows
3443 greater flexability in configuration.
3445 * psim.c (psim_tree): Returns a basic device tree ready for
3446 parsing by psim_options.
3447 * psim.c (psim_usage): New. Give usage to varing levels of detail
3448 according to the verbosity. In turn output device and trace
3451 * main.c (main): Update to use new system
3452 * sim_calls.c (sim_open, sim_do_command): Ditto
3454 * psim.c (psim_options): Add `r' option - ram size.
3455 * psim.c (psim_options): Add `o' option - openboot tree entry.
3456 * psim.c (psim_options): Add `h'/`H' options - more help.
3458 * debug.c (trace_usage): Add more detailed help.
3459 * device.c (device_usage): New. Output help including a list of
3460 the devices currently available in the device table.
3461 * device_table.c: Add usage operator to each device.
3463 * corefile.c (core_create, core_device_create): Adjust so that the
3464 core device is created earlier for psim_tree(). Core can later be
3467 * psim.c (psim_create): Update to handle above way of creating
3468 things. Extract all information from the device tree.
3470 * device_tree.c (trace_*): New device node, its properties are
3471 used to set the value of the trace options. Init this device (in
3472 psim_options) when ever the options are updated.
3474 Wed Jan 17 19:46:07 1996 Andrew Cagney <cagney@highland.com.au>
3476 * debug.h: Add trace_print_info, trace_print_device_tree and
3477 trace_dump_device_tree. The first is a replacement for the
3478 variable `print_info' found in main.c and sim_calls.c. The latter
3479 two enable the dumping of the entire device tree.
3481 * debug.c: Add to trace_description table.
3483 * main.c (main): Use above trace instead of local variable
3484 * sim_calls.c (sim_close): Ditto
3486 * device.c (device_tree_print_device): New. Prints the device
3487 tree in a format that is consistent with what can be parsed by the
3488 device tree load from file code.
3490 * psim.c (psim_create): Dump device tree if enabled. If nump
3491 selected, exit psim immediatly.
3493 Wed Jan 17 19:36:52 1996 Andrew Cagney <cagney@highland.com.au>
3495 * corefile-n.h (core_map_read_N): When mapping from an address to
3496 a device, do not subtract the devices base. The device its self
3497 can do this. Brings the behavour into line with OpenBoot.
3498 * corefile-n.h (core_map_write_N): Ditto
3499 * corefile.c (core_map_read_buffer): Ditto
3500 * corefile.c (core_map_write_buffer): Ditto
3502 * device_table.c (console_io_read_buffer_callback): Adjust to
3503 handle biased address.
3504 * device_table.c (console_io_write_buffer_callback): Ditto
3506 Wed Jan 17 18:36:09 1996 Andrew Cagney <cagney@highland.com.au>
3508 * device.c (attach_device_interrupt_edge): New. Interrupt model
3509 did not allow interrupts to be wired up as a general net (edges).
3510 Re-implement so that interrupt events can be passed to multiple
3511 controllers and interrupt controllers can further propogate
3514 * device.c (attach_device_interrupt_edge) : New, Ditto
3515 * device.c (detach_device_interrupt_edge) : New, Ditto
3516 * device.c (clean_device_interrupt_edges) : New, Ditto
3517 * device.c (device_interrupt_event) : New, Ditto
3518 * device.c (device_interrupt_attach) : New, Ditto
3519 * device.c (device_interrupt_detach) : New, Ditto
3520 * device.c (device_child_interrupt_attach) : New, Ditto
3521 * device.c (device_child_interrupt_detach) : New, Ditto
3523 * device.c (device_attach_interrupt) : Delete old
3524 * device.c (device_detach_interrupt) : Delete old
3525 * device.c (device_interrupt) : Delete old
3526 * device.c (device_interrupt_ack) : Delete old
3528 * device_table.c (unimp_*) : Update to match
3530 * device_table.c (icu_io_write_buffer_callback) : Update to use
3532 * device_table.c (icu_interrupt_event_callback) : Ditto
3534 Wed Jan 17 18:18:40 1996 Andrew Cagney <cagney@highland.com.au>
3536 * device.c (external_to_device) : New function that provides a
3537 standard mapping between a devices internal representation (a
3538 pointer) and its external (or what is passed to a client)
3539 representation (a phandle). Implement using the cap object
3540 attached to the root node.
3542 * device.c (device_to_external) : Ditto
3543 * device.c (external_to_device_instance) : Ditto but for ihandle
3544 and device instance.
3545 * device.c (device_instance_to_external) : Ditto
3547 * Makefile (device.o): Add dependency on cap.
3549 * emul_chirp.c (struct _emul_chirp_data) : Elimate use of cap. Code
3550 needing to translate between internal and external representations
3551 changed to use the external_to_device et.al. device operations.
3552 * emul_chirp.c (chirp_emul_*) : Ditto
3554 * Makefile (emul_chirp.o): Remove dependency on cap
3556 Sat Jan 6 10:13:26 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3558 * emul_chirp.c (map_over_chirp_note): Tighten up (and fix) checks
3559 on OpenBoot note section.
3561 Fri Jan 5 20:28:53 1996 Andrew Cagney <cagney@hignland.com.au>
3563 * emul_generic.c (emul_write_buffer): Use vm faulting byte
3564 read/write calls for buffer transfers. This will cause a fault to
3565 occure if the transfer fails. CHRP catches the fault while the
3566 others suffer the consequences.
3567 (emul_read_buffer): Ditto.
3568 (emul_write_word): Ditto.
3569 (emul_read_word): Ditto.
3570 (emul_read_string): Ditto.
3572 Fri Jan 5 18:55:34 1996 Andrew Cagney <cagney@highland.com.au>
3574 * emul_chirp.c (emul_chirp_create, emul_chirp_instruction_call),
3575 emul_generic (emul_blr_instruction): Use a real blr instruction to
3576 return from a client service call.
3578 * emul_chirp.c (services): Add all OpenBoot services to table.
3580 * emul_generic.h, emul_bugapi.c (emul_bugapi_create), emul_chirp.c
3581 (emul_chirp_create) : Use names instead of numbers for
3582 instructions being stored in memory.
3584 Fri Jan 5 18:52:28 1996 Andrew Cagney <cagney@highland.com.au>
3586 * Makefile.in (maintainer-clean): Remove .log, core and *.core
3587 (From NetBSD) files.
3589 Wed May 29 22:57:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3591 * ChangeLog.00, ChangeLog: ChangeLog from gdb-4.16 becomes