]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/ppc/ChangeLog
Update the copyright header of various files...
[thirdparty/binutils-gdb.git] / sim / ppc / ChangeLog
1 2012-01-02 Joel Brobecker <brobecker@adacore.com>
2
3 * dp-bit.c: Reformat copyright header.
4
5 2011-02-11 Ben Golding <ben_golding@yahoo.co.uk>
6
7 * events.c: add #include <stdlib.h> for free(). Fix PR build/13372.
8
9 2011-10-17 Mike Frysinger <vapier@gentoo.org>
10
11 * configure.ac: Change include to common/acinclude.m4.
12
13 2011-10-17 Mike Frysinger <vapier@gentoo.org>
14
15 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
16 call. Replace common.m4 include with SIM_AC_COMMON.
17 * configure: Regenerate.
18
19 2011-06-09 Joel Brobecker <brobecker@adacore.com>
20
21 * psim.c (psim_options): Fix length of comparison when checking
22 for --sysroot= option.
23
24 2011-06-08 Joel Brobecker <brobecker@adacore.com>
25
26 * psim.c (psim_options): Add option that cause the error
27 in invalid-option error messages. Print the usage when
28 detecting an invalid long-name option.
29
30 2011-06-08 Joel Brobecker <brobecker@adacore.com>
31
32 * psim.c (psim_options): Accept and ignore `--sysroot=...'.
33
34 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
35
36 From Stephen Kitt <steve@sk2.org>
37 * vm.c (vm_synchronize_context): Spelling fix in function
38 documentation.
39
40 2011-04-16 Mike Frysinger <vapier@gentoo.org>
41
42 * sim_calls.c (sim_complete_command): New stub function.
43
44 2011-02-14 Mike Frysinger <vapier@gentoo.org>
45
46 * cap.c (cap_remove): Change zfree to free.
47 * corefile.c (core_init): Likewise.
48 * device.c (detach_device_interrupt_edge): Likewise.
49 (clean_device_interrupt_edges): Likewise.
50 (device_instance_delete): Likewise.
51 (device_set_property): Likewise.
52 (clean_device_properties): Likewise.
53 (device_add_range_array_property): Likewise.
54 (device_add_reg_array_property): Likewise.
55 * emul_bugapi.c (emul_bugapi_do_read): Likewise.
56 (emul_bugapi_do_write)
57 * emul_netbsd.c (write_direntries): Likewise.
58 (do_read): Likewise.
59 (do_write): Likewise.
60 (do_getdirentries): Likewise.
61 * emul_unix.c (do_unix_read): Likewise.
62 (do_unix_write): Likewise.
63 * events.c (event_queue_init): Likewise.
64 (event_queue_deschedule): Likewise.
65 (event_queue_process): Likewise.
66 * hw_disk.c (open_disk_image): Likewise.
67 (hw_disk_instance_delete): Likewise.
68 * hw_eeprom.c (hw_eeprom_instance_delete): Likewise.
69 * hw_htab.c (htab_dma_binary): Likewise.
70 * hw_init.c (update_for_binary_section): Likewise.
71 * hw_memory.c (hw_memory_set_available): Likewise.
72 (hw_memory_init_address): Likewise.
73 (hw_memory_instance_release): Likewise.
74 * pk_disklabel.c (disklabel_delete): Likewise.
75 * table.c (table_push): Likewise.
76 * tree.c (parse_reg_property): Likewise.
77 (parse_ranges_property): Likewise.
78 (parse_string_property): Likewise.
79 * main.c (zfree): Delete.
80 * sim_calls.c (zfree): Likewise.
81 * sim_callbacks.h (zfree): Likewise.
82
83 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
84
85 * gdb-sim.c (sim_store_register): Update return value to
86 match new API.
87
88 2011-01-05 Joel Brobecker <brobecker@adacore.com>
89
90 * psim.texinfo: Copyright year update.
91
92 2010-04-14 Mike Frysinger <vapier@gentoo.org>
93
94 * sim_calls.c (sim_write): Add const to buf arg.
95
96 2010-02-14 Andreas Schwab <schwab@linux-m68k.org>
97
98 * ppc-instructions: Fix missing assignment in last change.
99
100 2010-02-05 Andreas Schwab <schwab@linux-m68k.org>
101
102 * ppc-instructions: Fix aliasing bugs when calling
103 invalid_arithemetic_operation.
104
105 2009-11-13 Nathan Froyd <froydnj@codesourcery.com>
106
107 * configure.ac: If build != host, create a separate build-config.h
108 file desecribing the build machine.
109 * configure: Regenerate.
110 * lf.c: Include build-config.h instead of config.h.
111 * dgen.c: Likewise.
112 * igen.c: Likewise.
113 * misc.c: Likewise.
114 * misc.h: Likewise.
115 * filter.c: Likewise.
116 * table.c: Likewise.
117
118 2009-10-15 Joel Sherrill <joel.sherrill@oarcorp.com>
119
120 * std-config.h: Fix spelling error.
121
122 2009-09-22 Joel Sherrill <joel.sherrill@oarcorp.com>
123
124 * main.c: Fix spelling error.
125
126 2009-09-15 Andreas Tobler <andreast-list@fgznet.ch>
127 Doug Evans <dje@google.com>
128
129 * configure.ac (sim_hwflags): Use AC_DEFINE to define HAVE_UNION_SEMUN.
130 * configure: Regenerate.
131 * config.in: Regenerate.
132 * hw_sem.c: (HAVE_UNION_SEMUN): Renamed from HAS_UNION_SEMUN.
133
134 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
135
136 * config.in: Regenerate.
137 * configure: Likewise.
138
139 * configure: Regenerate.
140
141 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
142
143 * Makefile.in (datarootdir): New variable.
144
145 2009-01-12 Nathan Froyd <froydnj@codesourcery.com>
146
147 * ppc-instructions (sync): Add L field.
148
149 2008-12-15 Joel Sherrill <joel.sherrill@oarcorp.com>
150
151 * ppc-instructions, ppc-spr-table: Add ability
152 to read tbrl and tbru special registers.
153
154 2008-11-18 Joel Sherrill <joel.sherrill@oarcorp.com>
155
156 * configure: Regenerated.
157 * configure.ac: Add test for System V shared memory and semaphore.
158 * debug.c, debug.h: Add trace support for new devices.
159 * hw_sem.c, hw_shm.c: New files.
160 * Makefile.in: Add hw_sem.c and hw_shm.c.
161
162 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
163
164 * configure.ac: Add test for libz and zlib.h.
165 * Makefile.in (LIBS): Set from @LIBS@.
166 * configure: Regenerate.
167 * config.in: Ditto.
168
169 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
170 Daniel Jacobowitz <dan@codesourcery.com>
171 Joseph Myers <joseph@codesourcery.com>
172
173 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
174 * configure, config.in: Regenerated.
175 * Makefile.in (LIB_OBJ): Add version.o.
176 (version.c, version.o): New rules.
177 * psim.c (psim_usage): Add help parameter. Print the bug URL.
178 Exit with code 0 for help.
179 (psim_options): Update calls to psim_usage. Handle --help and
180 --version.
181 * psim.h (psim_usage): Update prototype.
182 * main.c (main): Update psim_usage call.
183
184 2008-03-14 Nick Hudson <nick.hudson@dsl.pipex.com
185
186 * configure.ac: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR.
187 * configure: Regenerate.
188
189 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
190
191 * gdb-sim.c (regnum2spr): Rename to...
192 (sim_spr_register_name): ... this. Make global.
193
194 2007-09-04 Jerome Guitton <guitton@adacore.com>
195
196 * sim/ppc/emul_bugapi.c (emul_bugapi_create): quote the file
197 name property before parsing it.
198
199 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
200
201 * acconfig.h: Remove.
202 * config.in: Regenerate.
203
204 2006-11-22 Tom Marn <tom.marn@telargo.com>
205
206 Committed by Andrew Cagney.
207 * ppc-instructions: Implement optional PowerPC stfiwx instruction.
208
209 2006-07-12 Fred Fish <fnf@specifix.com>
210
211 * sim-endian.h (asm/byteorder.h): Don't include private kernel
212 header.
213
214 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
215
216 * configure: Regenerated.
217
218 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
219
220 * Makefile.in: Replace INTLLIBS and INTLDEPS with LIBINTL
221 and LIBINTL_DEP everywhere.
222 (INTL_DIR, INTL_SRC): Remove.
223 (INTL_CFLAGS): Use INCINTL.
224 * configure.ac: Use ZW_GNU_GETTEXT_SISTER_DIR.
225 * configure: Regenerated.
226
227 2006-05-05 Andreas Schwab <schwab@suse.de>
228
229 * configure.ac (CFLAGS_FOR_BUILD): Set and substitute.
230 * configure: Regenerate.
231
232 * Makefile.in (CFLAGS_FOR_BUILD): Define.
233 (BUILD_CFLAGS): Use it instead of hardcoding "-g -O".
234 (gentmap): Fix typo BUILD_FLAGS -> BUILD_CFLAGS.
235
236 2006-04-23 Andreas Schwab <schwab@suse.de>
237
238 * Makefile.in (tmp-ld-decode): Fix dependencies.
239 (tmp-ld-cache): Likewise.
240 (tmp-ld-insn): Likewise.
241
242 2006-02-01 Mark Mitchell <mark@codesourcery.com>
243
244 * emul_netbsd.c (emul_netbsd_create): Quote file-name property.
245 * emul_unix.c (emul_unix_create): Likewise.
246 * tree.c (libiberty.h): Include it.
247 (tree_quote_property): New function.
248 * tree.h (tree_quote_property): Declare.
249
250 2006-01-25 Mark Mitchell <mark@codesourcery.com>
251
252 * words.h (natural32): Define as "int".
253
254 2006-01-23 Mark Mitchell <mark@codesourcery.com>
255
256 * words.h (signed32): Define as "int".
257 (unsigned32): Define as "unsigned int".
258
259 2005-11-28 Mark Mitchell <mark@codesourcery.com>
260
261 * configure.ac (USE_WIN32API): Define it.
262 * configure.in: Regenerate.
263 * config.in: Likewise.
264 * emul_netbsd.c (write_timezone): Guard with HAVE_GETTIMEOFDAY.
265 * emul_unix.c (do_unix_mkdir): Handle Win32 1-argument mkdir.
266
267 2005-11-28 Mark Mitchell <mark@codesourcery.com>
268
269 * psim.c: Include gdb/signals.h.
270
271 * sim_calls.c (gdb/signals.h): Include it.
272 (sim_stop_reason): Use TARGET_SIGNAL_*.
273 * psim.c (cntrl_c_simulation): Use TARGET_SIGNAL_*.
274
275 2005-07-15 Ben Elliston <bje@au.ibm.com>
276
277 * hw_htab.c (bfd_get_section_lma): Remove macro; use BFD's.
278
279 2005-07-15 Ben Elliston <bje@au.ibm.com>
280
281 * hw_init.c: Comment out tokens after #endif directive.
282 * hw_register.c: Likewise.
283 * hw_trace.c: Likewise.
284 * hw_vm.c: Likewise.
285
286 2005-04-20 Manoj Iyer <manjo@austin.ibm.com>
287
288 * psim.c: Added libiberty.h header file.
289
290 2005-04-18 Manoj Iyer <manjo@austin.ibm.com>
291
292 * configure.ac: Added check for long long.
293 * config.in: Regenerated.
294 * configure: Regenerated.
295 * words.h: Modified logic to check for HAVE_LONG_LONG instead of
296 __GNUC__, added config.h header file.
297
298 2005-03-25 Anthony Green <green@redhat.com>
299
300 * tree.c (parse_reg_property): Fix memset usage.
301
302 2005-03-23 Mark Kettenis <kettenis@gnu.org>
303
304 * configure: Regenerate.
305
306 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
307
308 * configure.ac: Delete AC_CONFIG_AUX_DIR.
309 * configure: Re-generate.
310
311 2005-01-07 Andrew Cagney <cagney@gnu.org>
312
313 * configure.ac: Rename configure.in, require autoconf 2.59.
314 * configure: Re-generate.
315
316 2005-01-03 Andreas Schwab <schwab@suse.de>
317
318 * Makefile.in (hw_com.o, hw_eeprom.o): Depend on
319 $(DEVICE_TABLE_H).
320
321 2004-11-16 Andreas Schwab <schwab@suse.de>
322
323 * Makefile.in (defines.h): Depend on tmp-defines.
324 (hw.c hw.h): Depend on tmp-hw.
325 (pk.h): Depend on tmp-pk.
326
327 2004-11-11 Andreas Schwab <schwab@suse.de>
328
329 * sim_calls.c: Include "libiberty.h".
330
331 2004-09-24 Ian Lance Taylor <ian@wasabisystems.com>
332
333 Committed by Andrew Cagney.
334 * configure.in: Check for sys/mount.h, sys/vfs.h, sys/statfs.h.
335 Check for struct statfs.
336 * emul_netbsd.c: If not HAVE_STRUCT_STATFS, #undef HAVE_FSTATFS.
337 * configure, config.in: Regenerate.
338
339 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
340
341 * Makefile.in (GDB_INCLUDES): Remove bogus reference to mmalloc.
342
343 2004-08-04 Andrew Cagney <cagney@gnu.org>
344 Jim Blandy <jimb@redhat.com>
345
346 * sim_callbacks.h (simulator): Declare.
347 * Makefile.in (gdb-sim.o): New rule.
348 (MAIN_SRC, GDB_OBJ): Add gdb-sim.o, gdb-sim.c.
349 (DEFS_H): Delete.
350 (GDB_SIM_PPC_H): Define.
351 * gdb-sim.c: New file.
352 * sim_calls.c: Do not include "defs.h".
353 (simulator): Drop static.
354 (sim_store_register, sim_fetch_register): Delete.
355
356 2004-08-04 Andrew Cagney <cagney@gnu.org>
357
358 * Back out accidently committed change.
359
360 2004-08-04 Jim Blandy <jimb@redhat.com>
361
362 Use a fixed register numbering when communicating with the PowerPC
363 simulator.
364 * sim_calls.c: #include "registers.h" and "gdb/sim-ppc.h"; do not
365 include GDB's "defs.h".
366 (gdb_register_name_table): New variable.
367 (gdb_register_name_table_size): New enum constant.
368 (gdb_register_name): New function.
369 (sim_fetch_register, sim_store_register): Use gdb_register_name,
370 instead of calling gdbarch_register_name.
371 * Makefile.in (GDB_SIM_PPC_H): New variable.
372 (DEFS_H): Delete variable.
373 (sim_calls.o): Update dependencies.
374
375 2004-07-26 Andrew Cagney <cagney@gnu.org>
376
377 Problem from Olaf Hering <olh@suse.de>.
378 * Makefile.in (install, installdirs): Add DESTDIR.
379
380 2004-07-10 Ben Elliston <bje@au.ibm.com>
381
382 * tree.c (parse_integer_property): Comment typo fix.
383
384 2004-07-06 Jim Blandy <jimb@redhat.com>
385
386 * Makefile.in: Update all dependency information.
387 (BASICS_H, CPU_H, IDECODE_H, PSIM_H, REGISTERS_H, DEVICE_TABLE_H)
388 (EMUL_GENERIC_H): Values updated.
389 (ACCONFIG_H, ALTIVEC_EXPRESSION_H, ALTIVEC_REGISTERS_H)
390 (ANSIDECL_H, BFD_H, BITS_H, CAP_H, COMMON_SIM_BASE_H)
391 (COMMON_SIM_BASICS_H, COMMON_SIM_FPU_H, COMMON_SIM_INLINE_H)
392 (COMMON_SIM_SIGNAL_H, CONFIG_H, COREFILE_H, COREFILE_N_H, DEBUG_H)
393 (DEFINES_H, DEFS_H, DEVICE_H, E500_EXPRESSION_H, E500_REGISTERS_H)
394 (EMUL_BUGAPI_H, EMUL_CHIRP_H, EMUL_NETBSD_H, EMUL_UNIX_H, EVENTS_H)
395 (FILTER_FILENAME_H, FILTER_H, GDB_CALLBACK_H, GDB_REMOTE_SIM_H)
396 (GEN_ICACHE_H, GEN_IDECODE_H, GEN_ITABLE_H, GEN_MODEL_H)
397 (GEN_SEMANTICS_H, GEN_SUPPORT_H, HW_CPU_H, HW_H, HW_PHB_H)
398 (ICACHE_H, IDECODE_BRANCH_H, IDECODE_EXPRESSION_H)
399 (IDECODE_FIELDS_H, IGEN_H, INLINE_H, INTERRUPTS_H, ITABLE_H)
400 (LD_CACHE_H, LD_DECODE_H, LD_INSN_H, LF_H, MISC_H, MODEL_H, MON_H)
401 (OPTIONS_H, OS_EMUL_H, PK_H, PPC_CONFIG_H, SEMANTICS_H)
402 (SIM_CALLBACKS_H, SIM_ENDIAN_H, SIM_ENDIAN_N_H, SIM_MAIN_H)
403 (SPREG_H, STD_CONFIG_H, SUPPORT_H, TABLE_H, TARG_VALS_H, TCONFIG_H)
404 (TREE_H, VM_H, VM_N_H, WORDS_H): New variables.
405 (callback.o, cap.o, corefile.o, debug.o, device.o, device_table.o)
406 (dgen.o, emul_bugapi.o, emul_chirp.o, emul_netbsd.o, emul_unix.o)
407 (events.o, filter.o, filter_filename.o, filter_host.o)
408 (gen-icache.o, gen-idecode.o, gen-itable.o, gen-model.o)
409 (gen-semantics.o, gen-support.o, hw_core.o, hw_cpu.o, hw_disk.o)
410 (hw_htab.o, hw_init.o, hw_phb.o, hw_register.o, icache.o)
411 (idecode.o, igen.o, interrupts.o, itable.o, ld-cache.o)
412 (ld-decode.o, ld-insn.o, lf.o, main.o, misc.o, model.o, mon.o)
413 (options.o, os_emul.o, pk_disklabel.o, psim.o, registers.o)
414 (semantics.o, sim-endian.o, sim-fpu.o, sim_calls.o, spreg.o)
415 (support.o, table.o, targ-map.o, tree.o, vm.o): Update dependencies.
416
417 2004-06-28 Jim Blandy <jimb@redhat.com>
418
419 * e500_registers.h (EVR): Cast the 32-bit value of the GPR to an
420 unsigned type before or-ing it with a 64-bit value.
421
422 2004-06-15 Alan Modra <amodra@bigpond.net.au>
423
424 * hw_htab.c (htab_sum_binary(bfd): Use bfd_get_section_size
425 instead of bfd_get_section_size_before_reloc.
426 (htab_dma_binary(bfd): Likewise.
427 * hw_init.c (update_for_binary_section(bfd): Likewise.
428
429 2004-05-10 Daniel Jacobowitz <dan@debian.org>
430
431 * configure.in (sim_fpu_cflags): Add -I../common.
432 * configure: Regenerated.
433
434 2004-01-27 Andrew Cagney <cagney@redhat.com>
435
436 * ppc-instructions: Update copyright.
437 (convert_to_integer): Add trailing ";" to label.
438
439 2003-10-16 Michael Snyder <msnyder@redhat.com>
440
441 * emul_netbsd.c: Only a comment may follow an #endif.
442
443 2003-10-15 Michael Snyder <msnyder@redhat.com>
444
445 * Makefile.in (sim_calls.o): No longer depends on gdb/tm.h.
446
447 2003-06-22 Andrew Cagney <cagney@redhat.com>
448
449 Written by matthew green <mrg@redhat.com>, with fixes from Aldy
450 Hernandez <aldyh@redhat.com>, Jim Wilson <wilson@redhat.com>, and
451 Nick Clifton <nickc@redhat.com>.
452
453 * ppc-instructions: Include altivec.igen and e500.igen.
454 (model_busy, model_data): Add vr_busy and vscr_busy.
455 (model_trace_release): Trace vr_busy and vscr_busy.
456 (model_new_cycle): Update vr_busy and vscr_busy.
457 (model_make_busy): Update vr_busy and vscr_busy.
458 * registers.c (register_description): Add Altivec and e500
459 registers.
460 * psim.c (psim_read_register, psim_read_register): Handle Altivec
461 and e500 registers.
462 * ppc-spr-table (SPEFSCR): Add VRSAVE and SPEFSCR registers.
463 * configure.in (sim_filter): When *altivec* add "av". When *spe*
464 or *simd* add e500.
465 (sim_float): When *altivec* define WITH_ALTIVEC. When *spe* add
466 WITH_E500.
467 * configure: Re-generate.
468 * e500.igen, altivec.igen: New files.
469 * e500_expression.h, altivec_expression.h: New files.
470 * idecode_expression.h: Update copyright. Include
471 "e500_expression.h" and "altivec_expression.h".
472 * e500_registers.h, altivec_registers.h: New files.
473 * registers.h: Update copyright. Include "e500_registers.h" and
474 "altivec_registers.h".
475 (registers): Add Altivec and e500 specific registers.
476 * Makefile.in (IDECODE_H): Add "idecode_e500.h" and
477 "idecode_altivec.h".
478 (REGISTERS_H): Add "e500_registers.h" and "altivec_registers.h".
479 (tmp-igen): Add dependencies on altivec.igen and e500.igen .
480
481 2003-06-22 Andrew Cagney <cagney@redhat.com>
482
483 Problems reported by Joshua LeVasseur.
484 * emul_chirp.c: Update copyright.
485 (chirp_emul_nextprop): Return the first property.
486 * hw_htab.c: Update copyright.
487 (htab_decode_hash_table): Fix check for htab size.
488
489 2003-06-21 Andrew Cagney <cagney@redhat.com>
490
491 * interrupts.c: Update copyright.
492 (external_interrupt): Fix test for already pending interrupt.
493 Problem found by Joshua LeVasseur.
494
495 * ppc-instructions: Add missing +8 line. Found by blofeldus at
496 yahoo.com.
497
498 2003-06-21 Andrew Cagney <cagney@redhat.com>
499
500 From Ian Lance Taylor <ian@airs.com>: * hw_nvram.c
501 (hw_nvram_init_address): Correct call to memset--swap second and
502 third arguments.
503
504 2003-06-21 Andrew Cagney <cagney@redhat.com>
505
506 * hw_com.c (hw_com_device_init_data): Check that the output, and
507 not input file opened. Pointed out by masahino tky3.3web.ne.jp.
508
509 2003-06-20 Andrew Cagney <cagney@redhat.com>
510
511 * sim_calls.c (sim_create_inferior): Assert that
512 psim_write_register succeeded.
513 (sim_fetch_register, sim_store_register): Make "regname" constant.
514 Delete Altivec hack. Return result from psim_read_register /
515 psim_write_register.
516 * psim.h (psim_read_register, psim_write_register): Change return
517 type to int. Update comments.
518 * psim.c: Update copyright.
519 (psim_stack): Assert that the psim_read_register worked.
520 (psim_read_register, psim_read_register): Return the register's
521 size. Allocate the cooked buffer dynamically.
522 * hw_register.c: Update copyright.
523 (do_register_init): Check that psim_write_register succeeded.
524 * hw_init.c: Update copyright.
525 (create_ppc_elf_stack_frame, create_ppc_aix_stack_frame): Assert
526 that the register transfer worked.
527
528 2003-06-19 Andrew Cagney <cagney@redhat.com>
529
530 * ld-insn.h: Update copyright.
531 (cache_fields): Define.
532 (insn_table_fields): Add insn_field_6 and insn_field_7.
533 (load_insn_table): Pass in the "cache_rules".
534 * ld-insn.c: Update copyright.
535 (load_insn_table): Add parameter "cache_rules". Handle "cache",
536 "computed" and "scratch" fields.
537 (main): Pass "cache_rules" to load_insn_table.
538 * ld-cache.h: Update copyright.
539 (append_cache_table): Declare.
540 * ld-cache.c: Update copyright.
541 (append_cache_table): New function.
542 (load_cache_table): Call.
543 * gen-model.c: Include "ld-cache.h".
544 * gen-itable.c: Include "ld-cache.h".
545 * igen.c: Move #include "ld-cache.h" to earlier. Update
546 copyright.
547 (main): Permit a NULL "cache_rules". Pass address of
548 "cache_rules" to load_insn_table.
549 * Makefile.in (tmp-ld-insn): Add "ld-cache.o".
550 (tmp-igen): Do not include ppc-cache-rules.
551 (gen-itable.o, gen-model.o): Add "ld-cache.h".
552 * ppc-cache-rules: Delete file.
553 * ppc-instructions: Add cache rules.
554
555 2003-06-19 Andrew Cagney <cagney@redhat.com>
556
557 * Makefile.in (ICACHE_CFLAGS, SEMANTICS_CFLAGS): Delete.
558 (SIM_FPU_FLAGS): Define.
559 (icache.o): Delete explicit compile command.
560 (semantics.o, idecode.o): Delete explicit compile command.
561 (NOWARN_CFLAGS, STD_CFLAGS): Append SIM_FPU_CFLAGS.
562 * gen-support.c (gen_support_c): Generate #include of
563 "sim-inline.h" and "sim-fpu.h", but conditional on
564 HAVE_COMMON_FPU.
565 * gen-idecode.c (gen_idecode_c): Ditto.
566 * igen.c (gen_icache_c, gen_semantics_c): Wrap #include of
567 "sim-inline.h" and "sim-fpu.h" in HAVE_COMMON_FPU conditional.
568 Move to before "support.h".
569 * Makefile.in, gen-support.c, gen-idecode.c, igen.c: Update
570 copyright.
571
572 2003-05-16 Ian Lance Taylor <ian@airs.com>
573
574 * Makefile.in (various): Use $(SHELL) whenever we invoke
575 move-if-change.
576
577 2003-02-27 Andrew Cagney <cagney@redhat.com>
578
579 * sim_calls.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
580
581 2002-09-27 Andrew Cagney <ac131313@redhat.com>
582
583 * hw_disk.c (hw_disk_init_address): Set device type to "block",
584 not "disk".
585
586 2002-06-22 Andrew Cagney <ac131313@redhat.com>
587
588 * Makefile.in (INTL_SRC): Define.
589 (INTL_CFLAGS): Define.
590 (INTL_DIR): Define.
591 (STD_CFLAGS): Add INTL_CFLAGS.
592
593 2002-06-17 Elena Zannoni <ezannoni@redhat.com>
594
595 * psim.c (psim_options): Don't choke when gdb invokes us with
596 the --architecture option, just ignore it.
597
598 2002-06-16 Andrew Cagney <ac131313@redhat.com>
599
600 * configure: Regenerated to track ../common/aclocal.m4 changes.
601
602 2002-06-08 Andrew Cagney <cagney@redhat.com>
603
604 * main.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
605 * sim_calls.c: Ditto.
606
607 2002-05-30 DJ Delorie <dj@redhat.com>
608
609 * lf.c (lf_print__gnu_copyleft): Convert multiline strings to
610 compatible format.
611 * gen-idecode.c (print_run_until_stop_body): Likewise.
612 * gen-model.c (gen_model_c): Likewise.
613
614 2002-04-15 Elena Zannoni <ezannoni@redhat.com>
615
616 * sim_calls.c (sim_fetch_register, sim_store_register): Return -1 for
617 AltiVec registers as a temporary stopgap.
618
619 2002-03-24 David O'Brien <obrien@FreeBSD.org>
620
621 * ppc/hw_disk.c: Export a disk device property.
622
623 2002-03-23 Andrew Cagney <ac131313@redhat.com>
624
625 From 2001-12-09 Julien Ducourthial <jducourt@noos.fr>:
626 * ppc-instructions (lswx): Do the register control with the
627 register count. Initialize the right register in the loop.
628 (mtfsfi) : Correct prefix for the instruction.
629
630 2002-02-24 Andrew Cagney <ac131313@redhat.com>
631
632 From wiz at danbala:
633 * std-config.h: Fix grammar and typos. Update copyright.
634 Fix PR gdb/287.
635
636 2002-01-12 matthew green <mrg@redhat.com>
637
638 * Makefile.in (tmp-igen): Pass -I $(srcdir) to igen.
639 * igen.c (main): Change -I to add include paths for :include:
640 files.
641 Implement -G as per sim/igen, with just gen-icache=N support.
642 Call load_insn_table() with the built include path.
643
644 * ld-insn.c (parse_include_entry): New. Load an :include: file.
645 (load_insn_table): New `includes' argument. Look for :include:
646 entries and call parse_include_entry() for them.
647 (main): Adjust load_insn_table() call.
648 * ld-insn.h (model_include_fields): New enum.
649 (load_insn_table): Update prototype.
650 * table.c (struct _open_table, struct _table): Rework
651 structures to handle included files.
652 (table_push): Move the guts of table_open() here.
653
654 * table.c (struct _open table, struct table): Make table object an
655 indirect ptr to the current table file.
656 (current_line, new_table_entry, next_line): Make file arg type
657 open_table.
658 (table_open): Use table_push.
659 (table_entry_read): Point variable file at current table, at eof, pop
660 last open table.
661
662 * misc.h (NZALLOC): New macro. From sim/igen.
663
664 * table.h, table.c (table_push): New function.
665
666 2002-01-04 matthew green <mrg@redhat.com>
667
668 * bits.c (LSMASKED64): New inline function.
669 (LSEXTRACTED64): Likewise.
670 * bits.h (_LSB_POS, _LSMASKn, LSMASK64): New macros from
671 sim/common/sim-bits.h
672 (LSMASKED64, LSEXTRACTED64): New functions definitions.
673 * Makefile.in (sim-bits.o): Remove target.
674
675 * main.c (zalloc): Fix typo in error message.
676
677 2001-12-16 Andrew Cagney <ac131313@redhat.com>
678
679 * configure.in (sim_fpu): Don't add sim-bits.o.
680 * configure: Re-generate.
681
682 2001-12-15 matthew green <mrg@redhat.com>
683
684 * main.c: Include "defs.h", "bfd.h", "callback.h" and "remote-sim.h".
685 (sim_io_error): New function.
686 * sim_calls.c: (sim_io_error): New function.
687
688 2001-12-14 matthew green <mrg@redhat.com>
689
690 * Makefile.in (LIB_OBJ): Add @sim_fpu@.
691 (ICACHE_CFLAGS, SEMANTICS_CFLAGS): New variables.
692 (icache.o, semantics.o): Add new ICACHE_FLAGS & SEMANTICS_FLAGS.
693 (sim-fpu.o, sim-bits.o, tconfig.h): New targets.
694 * configure.in: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS. Add a
695 check for sim/common/sim-fpu.c. Output sim_fpu and sim_fpu_cflags.
696 * configure: Regenerate.
697 * device.h (device_find_integer_array_property): Match function definition.
698 * gen-icache.c (print_icache_internal_function_declaration): Rename
699 INLINE_ICACHE to PSIM_INLINE_ICACHE.
700 * gen-idecode.c (print_idecode_run_function_header): Rename INLINE_IDECODE
701 to PSIM_INLINE_IDECODE.
702 * gen-semantics.c (print_semantic_function_header): Rename
703 EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS.
704 * gen-support.c (print_support_function_name): Rename INLINE_SUPPORT to
705 PSIM_INLINE_SUPPORT.
706 * igen.c (print_function_name): Also escape `(' and `)'.
707 (gen_semantics_h): Rename EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS.
708 (gen_semantics_c): Likewise. Also output includes for "sim-fpu.h"
709 * inline.h (INLINE_SIM_ENDIAN): Renamed INLINE_PSIM_ENDIAN.
710 (EXTERN_SIM_ENDIAN): Renamed EXTERN_PSIM_ENDIAN.
711 (STATIC_INLINE_SIM_ENDIAN): Renamed STATIC_INLINE_PSIM_ENDIAN.
712 (INLINE_LOCALS): Renamed PSIM_INLINE_LOCALS.
713 (EXTERN_SUPPORT): Renamed PSIM_EXTERN_SUPPORT.
714 (INLINE_SUPPORT): Renamed PSIM_INLINE_SUPPORT.
715 (EXTERN_SEMANTICS): Renamed PSIM_EXTERN_SEMANTICS.
716 (INLINE_SEMANTICS): Renamed PSIM_INLINE_SEMANTICS.
717 (EXTERN_IDECODE): Renamed PSIM_EXTERN_IDECODE.
718 (INLINE_IDECODE): Renamed PSIM_INLINE_IDECODE.
719 (EXTERN_ICACHE): Renamed PSIM_EXTERN_ICACHE.
720 (INLINE_ICACHE): Renamed PSIM_INLINE_ICACHE.
721 * options.c (options_inline): Fix names.
722 * sim-endian-n.h: Change INLINE_SIM_ENDIAN to INLINE_PSIM_ENDIAN.
723 * sim-endian.h: Likewise.
724 * sim-main.h: New file.
725 * std-config.h: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS.
726
727 2001-12-01 Andrew Cagney <ac131313@redhat.com>
728
729 From Mark Peek.
730 * ppc-spr-table: Add SDA and PIR.
731
732 2001-10-29 Andrew Cagney <ac131313@redhat.com>
733
734 * tree.c (parse_size): Assert #size-cells > 0.
735 (parse_address): Ditto for #address-cells.
736 (parse_reg_property): Only parse the size when #size-cells is
737 non-zero.
738
739 2001-10-25 Andrew Cagney <ac131313@redhat.com>
740
741 * emul_generic.c (OEA_MEMORY_SIZE): Increase to 4mb.
742 * hw_htab.c (htab_map_binary): Don't try to map the text section
743 when it is empty.
744 * emul_chirp.c (map_over_chirp_note): Default load-base to -1 not
745 CHIRP_LOAD_BASE.
746 (emul_chirp_create): Map in the interrupt table.
747
748 2001-07-16 Daniel Jacobowitz <drow@mvista.com>
749
750 * Makefile.in: Add dependencies on $(CPU_H).
751
752 Wed Mar 7 10:45:12 HST 2001 Glen Nakamura <gen@lava.net>
753
754 * hw_init.c (dma_file): Fixed problem with loading last 1KB of
755 file.
756
757 2001-03-04 Andrew Cagney <ac131313@redhat.com>
758
759 * emul_netbsd.c [WITH_NetBSD_HOST]: Include <sys/mount.h> and
760 <errno.h>.
761 (do_stat): Only do SYS test when SYS_stat defined.
762 (do_sigprocmask): Ditto for SYS_sigprocmask.
763 (do_fstat): Ditto for SYS_fstat.
764 (do_getdirentries): Ditto for SYS_getdirentries.
765 (do_lstat): Ditto for SYS_lstat.
766
767 2001-01-15 Geoffrey Keating <geoffk@redhat.com>
768
769 * emul_netbsd.c (do_open): Translate the flag parameter to the
770 open syscall to the numbers supported by the host.
771
772 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
773
774 * sim-endian.h: Don't have parameters on macro definitions which
775 are simply renaming functions, to permit use of XCONCAT2 in both
776 the macro name and the arguments in a use of such a definition.
777
778 2000-11-15 Jim Blandy <jimb@redhat.com>
779
780 * sim_calls.c: Doc fix.
781 (sim_fetch_register, sim_store_register): Call
782 gdbarch_register_name directly, instead of going through
783 REGISTER_NAME macro.
784
785 2000-10-24 Geoff Keating <geoffk@cygnus.com>
786
787 * ppc-instructions (lfsux): Correct XO field of lfsux instruction.
788
789 Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
790
791 * configure: Regenerated to track ../common/aclocal.m4 changes.
792
793 Fri Apr 28 15:59:27 2000 Andrew Cagney <cagney@b1.cygnus.com>
794
795 * events.c (event_queue_process): Call update_time_from_event
796 every time an event is removed from the queue.
797 (update_time_from_event): Delete assertion that a negative
798 time_from_event implies an empty event queue.
799
800 Fri Apr 28 15:53:54 2000 Andrew Cagney <cagney@b1.cygnus.com>
801
802 * interrupts.c (deliver_hardware_interrupt): Print time trace in
803 decimal.
804 * events.c (event_queue_process): Cleanup trace message.
805 (update_time_from_event): Trace full event queue.
806
807 2000-03-25 Geoff Keating <geoffk@cygnus.com>
808
809 * ppc-instructions (Disabled_Exponent_Underflow): Increment
810 the exponent when denormalizing.
811
812 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
813
814 * configure: Regenerated to track ../common/aclocal.m4 changes.
815
816 1999-05-08 Felix Lee <flee@cygnus.com>
817
818 * configure.in: Use AC_EXEEXT instead of AM_EXEEXT.
819 * configure: Regenerated to track ../common/aclocal.m4 changes.
820
821 1999-04-02 Keith Seitz <keiths@cygnus.com>
822
823 * sim_calls.c (POLL_QUIT_INTERVAL): Define. Used to tweak
824 the frequency at which the poll_quit callback is called.
825 (poll_quit_count): New global.
826 (sim_io_poll_quit): Only call the poll_quit callback
827 after the specified POLL_QUIT_INTERVAL.
828
829 1999-02-22 Jim Lemke <jlemke@cygnus.com>
830
831 * dc-complex: Force expansion on all bits of field BO.
832 Previously, the least-significant (prediction) bit was ignored.
833 * ppc-instructions (conditional branches): Implement mpc860c0 option.
834 * igen.c (gen_semantics_[ch]): Setup for mpc860c0 option.
835 * psim.c (is_num, psim_options): Added parsing for mpc860c0 option.
836 * interrupts.h: Added "mpc860c0_instruction_program_interrupt".
837 * interrupts.c (program_interrupt): Added handling for above interrupt.
838
839 1999-02-01 Jim Blandy <jimb@zwingli.cygnus.com>
840
841 Make the simulator compatible with the MPC750. It would be nicer
842 to make this a real multi-sim, but that's more work than we have
843 time for.
844 * emul_generic.c (emul_add_tree_options): Only require strict
845 alignment if it was explicitly requested at configuration time.
846 Don't make it the default for little-endian machines.
847 * ppc-spr-table (UMMCR0, UMMCR1, UPMC1, UPMC2, USIA, UPMC3, UPMC4,
848 MMCR0, PMC1, PMC2, SIA, MMCR1, PMC3, PMC4, L2CR, ICTC, THRM1,
849 THRM2, THRM3): Plop in the MPC750 SPR registers.
850 (DABR): This is weird. This was HID5, but the PPC spec says this
851 should be DABR; why did some random processor use it for something
852 else? The HID5 entry dates back to the original checkin of the
853 simulator code in 1995, so remove it.
854 * sim_calls.c (register_names): Delete this; since the user can
855 now change GDB's list of register names dynamically, we can't
856 pretend there's a static mapping here.
857 (sim_fetch_register, sim_store_register): Call GDB's REGISTER_NAME
858 function to get the register name. That ought to be accurate.
859 However, we're changing a compile-time dependency (using the
860 REGISTER_NAMES macro) into a link- and run-time dependency
861 (calling REGISTER_NAME, which happens to be a function call on the
862 PPC).
863
864 1999-01-22 Jim Lemke <jlemke@cygnus.com>
865
866 * igen.c(gen_semantics_[ch]): setup/use of new option
867 (-o mpc860c0[=n]).
868 interrupts.[ch](mpc860c0_instruction_program_interrupt): added.
869 ppc-instructions(the four branch insn groups): detect problematic br's.
870 psim.c(is_num - added, psim_options): Parse and init new option.
871 These changes are currently under #ifdef WITH_OPTION_MPC860C0.
872
873 1998-12-01 Ken Raeburn <raeburn@cygnus.com>
874
875 * hw_nvram.c (hw_nvram_bcd): Force value to fit in 0..99.
876
877 Fri Nov 20 12:17:28 1998 Andrew Cagney <cagney@b1.cygnus.com>
878
879 * main.c (sim_io_poll_quit): Stub function.
880
881 * events.c (SIM_EVENTS_POLL_RATE): Define.
882 (sim_events_poll): Copy function from common/sim-events.c.
883 (event_queue_init): Copy scheduling of sim_events_poll from same.
884
885 * sim_callbacks.h, sim_calls.c (sim_io_poll_quit): New function,
886 poll the external environment.
887
888 1998-11-19 Michael Meissner <meissner@cygnus.com>
889
890 * ppc-instructions (is_{NaN,inf}): Use unsigned64 to get the
891 fractional type, so that quiet NaN's aren't treated like
892 Infinities.
893
894 Mon Sep 28 09:42:45 1998 Drew Moseley <dmoseley@cygnus.com>
895
896 * table.c (table_open): For cygwin hosts, we need to use the
897 return value from the read routine as the number of bytes to
898 process. This apparently is due to text-mode vs binary-mode. If
899 the mounts are done text-mode, then the size returnedby fstat()
900 may be different than the number of bytes "read" in text mode.
901
902 Sun Oct 4 00:50:47 1998 Felix Lee <flee@cygnus.com>
903
904 * emul_netbsd.c (do_open): fix order-of-evaluation problem.
905 (do_close): ditto.
906 (do_fstat): ditto.
907 (do_lstat): ditto.
908
909 1998-09-03 Michael Meissner <meissner@cygnus.com>
910
911 * emul_{netbsd,unix}.c: Update copyright year.
912
913 Mon Jun 29 10:57:36 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
914
915 * sim_calls.c (sim_fetch_register, sim_store_register):
916 return zero when nothing to do.
917
918 1998-06-26 Michael Meissner <meissner@cygnus.com>
919
920 * configure.in (AC_CHECK_HEADERS): Don't check for sys/mount.h.
921 * configure: Regenerate.
922 * emul_{netbsd,unix}.c (toplevel): No longer try to include
923 sys/mount.h. It conflicts on Linux when gnu libc2 is used.
924
925 Tue May 12 12:10:33 PDT 1998 James Ingham <jingham@leda.cygnus.com>
926
927 * Makefile.in: The run target depended on a target psim$(EXEEXT),
928 but there was no such target, only plain psim. So I changed the
929 run target to depend on psim.
930
931 Sat May 2 01:10:12 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
932
933 * aclocal.m4: Remove defs of AM_EXEEXT and AM_CYGWIN32. These are
934 now defined in ../common/aclocal.m4, and the double definition causes
935 problems with AC_SUBST of EXEEXT.
936 * configure: Regenerate.
937
938 Wed Apr 29 15:44:52 1998 Geoffrey Noer <noer@cygnus.com>
939
940 * aclocal.m4: new file for AM_EXEEXT macro
941 * configure.in: call AM_EXEEXT
942 * configure: regenerate with autoconf 2.12.1.
943 * Makefile.in: add EXEEXT support
944
945 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
946
947 * configure: Regenerated to track ../common/aclocal.m4 changes.
948 * config.in: Ditto.
949
950 Sun Apr 26 15:19:51 1998 Tom Tromey <tromey@cygnus.com>
951
952 * acconfig.h: New file.
953 * configure.in: Reverted change of Apr 24; use sinclude again.
954 Don't call AC_C_CROSS.
955
956 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
957
958 * configure: Regenerated to track ../common/aclocal.m4 changes.
959 * config.in: Ditto.
960
961 Fri Apr 24 11:18:46 1998 Tom Tromey <tromey@cygnus.com>
962
963 * Makefile.in (top_builddir): New macro.
964 (INTLLIBS): New macro.
965 (INTLDEPS): Likewise.
966 (psim): Depend on INTLDEPS; link against INTLLIBS.
967 * configure.in: Call CY_GNU_GETTEXT.
968
969 Wed Apr 22 14:28:48 1998 Michael Meissner <meissner@cygnus.com>
970
971 * configure: Regenerate with autoconf 2.12.1.
972
973 Fri Mar 13 09:25:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
974
975 * psim.c (psim_read_register, psim_write_register): Handle updates
976 for FPSCR.
977
978 * registers.c (register_description): Reconize "FPSCR".
979
980 * emul_netbsd.c (emul_netbsd_create): When FP available, enable
981 MSR FP exception mode. Do not enable FPSCR bits.
982 * emul_unix.c (emul_unix_create): Ditto.
983
984 Tue Feb 17 12:48:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
985
986 * sim_calls.c (sim_store_register, sim_fetch_register): Pass in
987 length parameter. Return -1.
988
989 Mon Feb 9 14:13:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
990
991 * ppc-instructions (fdiv, fdivs): Check for divide by zero.
992 (is_invalid_zero_divide, invalid_zero_divide_operation): New
993 functions.
994
995 Wed Dec 10 17:38:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
996
997 * sim_calls.c (sim_load): Do not parse PROG using buildargv, use
998 raw value instead.
999
1000 1997-11-05 Felix Lee <flee@cygnus.com>
1001
1002 * emul_chirp.c: #ifdef HAVE_UNISTD_H
1003
1004 Wed Oct 15 08:50:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
1005
1006 * corefile.c (core_attach): Pad out allocated memory regions so
1007 that they are always correctly aligned.
1008 (struct _core_mapping, core_map_attach, core_init,
1009 new_core_mapping): Change free_buffer to type void*.
1010
1011 Mon Oct 6 18:09:26 1997 Michael Meissner <meissner@cygnus.com>
1012
1013 * sim_calls.c (zfree): Call free correctly.
1014
1015 Mon Sep 29 10:05:01 1997 Andrew Cagney <cagney@b1.cygnus.com>
1016
1017 * sim_calls.c (zfree): Use free, not mfree.
1018 (sim_io_flush_stdoutput): Replace gdb_flush with callback ->
1019 flush_stdout.
1020
1021 Fri Sep 26 09:50:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
1022
1023 * ppc-instructions (sraw, slw, srw): From Charles Lefurgy, Fix
1024 mask extracting shift amount. Correctly condition for setting XER
1025 in sraw.
1026 (ldhau): From Johannes Reisinger, update rA after load.
1027
1028 Tue Sep 9 22:13:23 1997 Felix Lee <flee@cygnus.com>
1029
1030 * basics.h (CONCAT*): token-pasting macros, if ALMOST_STDC,
1031 for MSVC.
1032 * words.h: __int64 instead of long long for MSVC.
1033
1034 Wed Aug 27 10:24:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
1035
1036 * sim_calls.c (sim_create_inferior): Check the simulator was
1037 initialized before creating inferior.
1038
1039 * idecode_expression.h (ALU_END): From Charles Lefurgy - Extract
1040 sign bit using 64 bit and not a 32 bit mask.
1041
1042 Wed Aug 27 10:15:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
1043
1044 * sim_calls.c (sim_load): From Ian Lance Taylor - free argv after
1045 it has been used, not before.
1046
1047 Tue Aug 26 10:41:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
1048
1049 * sim_calls.c (sim_kill): Delete.
1050 (sim_create_inferior): Add ABFD argument.
1051 (entry_point): Delete variable.
1052 (sim_load): Move setting of PC from here.
1053 (sim_create_inferior): To here.
1054
1055 Mon Aug 25 16:17:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
1056
1057 * sim_calls.c (sim_open): Add ABFD argument.
1058
1059 Thu Jul 3 10:18:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
1060
1061 * ppc-instructions (PPC_INSN_INT): From Michael Thies - Monitoring
1062 CR register updates dependant on RC value had logic backwards.
1063
1064 * ppc-instructions (Load String Word Immediate): From Brad Parker
1065 - sense of wrap test in check for overwriting RA wrong.
1066 (Load String Word Indexed): Ditto.
1067
1068 * configure.in: From Erik Landry - set sim_default_model not
1069 sim_model for sim-default-model option.
1070 * configure: Regenerate.
1071
1072 * interrupts.c (check_masked_interrupts): Schedule a hardware
1073 interrupt delivery when FP interrupts get enabled.
1074 (program_interrupt): Generate FP exceptions instead of aborting.
1075 (deliver_hardware_interrupt): Deliver a FP exception if so
1076 enabled.
1077
1078 * registers.h: Add definition of fpscr_vx_bits.
1079
1080 * idecode_expression.h (FPSCR_END): Always update FEX and VX bits
1081 in FPSCR.
1082 (FPSCR_END): Explicitly check for possible floating point
1083 exception conditions.
1084 (FPSCR_BEGIN): Simplify.
1085
1086 * ppc-instructions (Move From FPSCR): Enable.
1087 (Move To FPSCR Bit 1): Ditto.
1088 (Move To FPSCR Bit 0): Ditto.
1089 (Move To FPSCR Field Immediate): Ditto.
1090 (Move to Condition Register from FPSCR): Simplify.
1091 (invalid_arithemetic_operation): Generate a QNaN when invalid
1092 operation exception disabled.
1093
1094 Tue May 20 10:22:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
1095
1096 * sim_calls.c (sim_open): Add callback argument.
1097 (sim_set_callbacks): Delete.
1098
1099 Tue Apr 22 22:36:57 1997 Mike Meissner <meissner@cygnus.com>
1100
1101 * sim_callbacks.h (error): Make declaration match gdb's.
1102 * main.c (error): Ditto.
1103
1104 Fri Apr 18 17:03:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
1105
1106 * sim_calls.c (sim_stop_reason): Simplify. Was running implies
1107 stopped/SIGINT. Exit implies a status code.
1108
1109 * psim.c (cntrl_c_simulation): From main.c. Event function that
1110 halts the simulator.
1111 (psim_stop): New. Asynchronously schedule a stop simulator event.
1112 (psim_run_until_stop): Delete. Made redundant by psim_stop.
1113
1114 * main.c (cntrl_c): Update.
1115 (cntrl_c_simulation): Moved to psim.c.
1116
1117 * sim_calls.c (sim_stop): New function. Use psim_stop which
1118 schedules a stop event.
1119 (sim_resume): Drop SIGINT handler, now in gdb/main.c.
1120 (sim_resume): Use psim_run as stop variable no longer needed.
1121
1122 Fri Apr 18 17:03:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
1123
1124 * psim.c (psim_options): Handle -E option correctly.
1125 (psim_usage): Document.
1126
1127 Thu Apr 17 03:28:03 1997 Doug Evans <dje@canuck.cygnus.com>
1128
1129 * psim.c (psim_options): Ignore -E option (sets endianness).
1130 * sim_calls.c: #include bfd.h.
1131 (entry_point): New static local.
1132 (sim_load): Return SIM_RC. New arg abfd. Set start address from bfd.
1133 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
1134
1135 Tue Apr 15 14:57:18 1997 Ian Lance Taylor <ian@cygnus.com>
1136
1137 * Makefile.in (INSTALL): Set to @INSTALL@.
1138 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
1139 (install): Depend upon installdirs. Use $(program_transform_name)
1140 directly, rather than using $(INSTALL_XFORM).
1141 (installdirs): New target.
1142
1143 Fri Apr 4 17:54:36 1997 Jim Wilson <wilson@cygnus.com>
1144
1145 * Makefile.in (tmp-hw, tmp-pk): Use for loop to eliminate duplicates
1146 rather than the non-portable cat -n.
1147
1148 Mon Apr 14 16:29:51 1997 Ian Lance Taylor <ian@cygnus.com>
1149
1150 * Makefile.in (INSTALL): Change install.sh to install-sh.
1151
1152 Tue Apr 1 18:15:14 1997 Jim Wilson <wilson@cygnus.com>
1153
1154 * ppc-instructions: Change milhwu to mulhwu.
1155
1156 Wed Apr 2 15:38:08 1997 Doug Evans <dje@canuck.cygnus.com>
1157
1158 * sim_calls.c (sim_open): New arg `kind'.
1159
1160 Wed Apr 2 14:51:17 1997 Ian Lance Taylor <ian@cygnus.com>
1161
1162 * COPYING: Update FSF address.
1163
1164 Tue Mar 25 16:17:59 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1165
1166 * main.c (sim_io_read_stdin): Only compile unbuffered IO code if
1167 all the required features are supported by the host OS.
1168
1169 Tue Mar 25 12:13:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1170
1171 * emul_bugapi.c (emul_bugapi_create): Guard against NULL images.
1172
1173 * configure.in (enable-sim-endain): Correct typo in usage (from
1174 Erik Landry <landry@ENGR.ORST.EDU>).
1175 * configure: Re-generate.
1176
1177 Fri Mar 14 18:23:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1178
1179 * Makefile.in (targ-vals.def): Re-do rule so that it works with
1180 FreeBSD's make. Didn't like $<.
1181
1182 Thu Mar 13 12:55:48 1997 Doug Evans <dje@canuck.cygnus.com>
1183
1184 * sim_calls.c (sim_open): New SIM_DESC result. Argument is now
1185 in argv form.
1186 (other sim_*): New SIM_DESC argument.
1187
1188 Thu Feb 13 10:35:14 1997 Andrew Cagney <cagney@phydeaux.cygnus.com>
1189
1190 * ppc-opcode-simple-array, ppc-opcode-simple-goto,
1191 ppc-opcode-simple-switch, ppc-opcode-complex-array,
1192 ppc-opcode-complex-goto, ppc-opcode-complex-switch,
1193 ppc-opcode-jump, ppc-opcode-goto, ppc-opcode-flat: Delete,
1194 superseeded by --sim-decode-mechanism option.
1195
1196 * ppc-opcode-simple, dc-simple: Rename to be 8.3
1197 * ppc-opcode-complex, dc-complex: Ditto.
1198 * ppc-opcode-stupid, dc-stupid: Ditto.
1199 * ppc-opcode-test-1, dc-test.01: Ditto.
1200 * ppc-opcode-test-2, dc-test.02: Ditto.
1201
1202 * configure.in (--enable-sim-opcode): Change prefix to dc- instead
1203 of ppc-opcode-.
1204
1205 Wed Feb 12 19:33:45 1997 Andrew Cagney <cagney@phydeaux.cygnus.com>
1206
1207 * Many of the ppc-opcode-* files are identical baring the type of
1208 lookup table. Instead of having multiple tables, igen can do this
1209 via an additional option.
1210
1211 * ld-decode.h, ld-decode.c (force_decode_gen_type): New function,
1212 allow the type of generated table specified in the decode file to
1213 be overridden.
1214
1215 * ld-decode.c (load_decode_table): Allow the table type to be
1216 overridden.
1217
1218 * igen.c (main): Add -T <mechanism> option so that an overriding
1219 instruction decode mechanism can be specified.
1220
1221 * configure.in: New option --sim-decode-mechanism to control
1222 igen's new -T <mechanism> flag.
1223 * Makefile.in (IGEN_FLAGS): Add IGEN_IDECODE_MECHANISM set by the
1224 configure script.
1225 * configure: Regenerate.
1226
1227 Tue Feb 11 13:49:10 1997 Michael Meissner <meissner@tiktok.cygnus.com>
1228
1229 * events.c (event_queue_create): Don't use NULL to initialize an
1230 integer field.
1231 (even_queue_{init,schedule_after_signal,tick}): Conditionalize use
1232 of sigprocmask to appropriate autoconf test.
1233
1234 * main.c ({cntrl_c,main}): Use RETSIGTYPE for signal return type,
1235 don't assume void.
1236 * sim_calls.c (sim_{ctrl_c,resume}): Ditto.
1237
1238 * Makefile.in (callback.o): Define HAVE_CONFIG_H, so callback.c
1239 includes our config.h.
1240
1241 Tue Feb 4 13:42:59 1997 Doug Evans <dje@canuck.cygnus.com>
1242
1243 * configure.in: Fix typo in test for callback.c.
1244 * configure: Regenerated.
1245
1246 Fri Feb 7 10:04:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1247
1248 * emul_chirp.c (emul_chirp_create): Handle a virtbase of -1 being
1249 found in the device tree.
1250
1251 Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1252
1253 * Property create/initialization still wasn't correctly ordered.
1254 Should be delaying everything related to ihandle creation until
1255 after the rest of the tree has been established.
1256
1257 * device.c (device_find_ihandle_runtime_property): Update.
1258 (device_add_ihandle_runtime_property): Update.
1259
1260 * tree.c (parse_ihandle_property): Delay lookup of the device to
1261 be opened until the ihandle initialization phase.
1262 * tree.c (print_properties): Update.
1263
1264 Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1265
1266 * gen-icache.c (print_icache_extraction): Add a reason parameter.
1267 Augment each extracted field with a comment citing the codes
1268 origin. Should simplify tracking down incorrect cache
1269 extractions.
1270
1271 Tue Feb 4 17:44:51 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1272
1273 * gen-icache.c: Generalize code handling XXX_is_NNN so that it
1274 works for normal and boolean table entries.
1275
1276 * psim.c (psim_write_memory): last_cpu == -1 or nr_cpus is now
1277 valid. Handle this just like *_{read,write}_register now handles
1278 it.
1279
1280 Mon Feb 3 17:18:16 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1281
1282 * events.c (insert_event_entry): Correct loop termination
1283 assertions.
1284
1285 Fri Jan 31 16:20:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1286
1287 * psim.c (psim_options): Add new option -c for max-iterations or
1288 count.
1289 (psim_usage): Document.
1290 (psim_max_iterations_exceeded): New function, abort simulation if
1291 max iterations exceeded.
1292
1293 * gen-idecode.c: Re-work the table lookup code so that it assumes
1294 that the entry is a leaf by default. Simplify the boolean table
1295 entry code so that it involves a mask + test instead of shift +
1296 shift + mask + test.
1297
1298 * gen-idecode.c: Correct generated igen body so that it no drops
1299 or doubles clock interrupts.
1300
1301
1302 Thu Jan 30 11:23:20 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1303
1304 * Makefile.in (BUILT_SRC_WO_CONFIG): Change targ-vals.* to
1305 @sim_targ_vals@
1306
1307 * configure.in (sim_callback, sim_targ_vals): Set sim_targ_valls
1308 if common callback is present.
1309
1310 Wed Jan 29 12:32:41 1997 Michael Meissner <meissner@tiktok.cygnus.com>
1311
1312 * configure.in (sim_callback): If the gdb is post 4.16, configure
1313 callback support from the common directory.
1314 * configure: Regenerate.
1315
1316 * Makefile.in (BUILT_SRC_WO_CONFIG): Add targ-vals.{h,def} and
1317 targ-map.c.
1318 (GDB_OBJ): Add callback support configured in.
1319 (gentmap,targ-vals.def): Build from common directory.
1320 (targ-vals.h,targ-map.c): Build by running gentmap.
1321 (callback.o): Build from source in common directory.
1322 (targ-map.o): Add dependency.
1323 (clean): Remove gentmap.
1324
1325 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1326
1327 * igen wasn't aborting if the opcode table contained no valid
1328 fields.
1329
1330 * misc.c (name2i): Possibly abort if an invalid name is
1331 encountered.
1332 * ld-decode.c: Abort if the table type isn't found.
1333
1334 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1335
1336 * When performance monitoring is disabled, it is still possible to
1337 determine the simulation speed by looking at the number of elapsed
1338 ticks recorded by the event queue.
1339
1340 * psim.c (psim_write_register, psim_read_register): Force the cpu
1341 to zero when it is either of `-1' or `nr_cpus'. In both cases the
1342 next cpu would be zero any way.
1343
1344 * mon.c (mon_print_info): If possible, print the system cycle
1345 performance. This is an indication of the number of instructions
1346 per second.
1347
1348 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1349
1350 * The code to allow an event queue to be updated during a signal
1351 was missing. For main.c, a cntrl-c simulation termination wasn't
1352 handled cleanly.
1353
1354 * The simulation would not correctly restart if an event requested
1355 that the simulation be halted.
1356
1357 * psim.c (psim_options): Add hack to -i option to optionally
1358 include a level vis -i2.
1359 (psim_usage): Document.
1360
1361 * main.c (cntrl_c, cntrl_c_simulation): New functions. When a
1362 cntrl-c occures schedule an event to halt the simulation.
1363 (main): Catch CNTRL-C signals with the function cntrl_c.
1364
1365 * events.c (event_queue_process): Mask interrupts while
1366 manipulating the async event queue.
1367 (event_queue_init): Ditto.
1368 (event_queue_schedule_after_signal): Ditto.
1369
1370 * events.c (event_queue_process): Mark the event queue as being in
1371 the processing state when processing has started. Adjust code
1372 so that it is tolerant of halts.
1373 (event_queue_init): Start the event queue out with processing
1374 false.
1375 (event_queue_tick): Check that processing isn't still being
1376 performed.
1377
1378 * gen-idecode.c (print_run_until_stop_body): Call
1379 event_queue_process_events to clear possibly pending events before
1380 starting a simulation run. Re-arange main loop so that simulator
1381 is correctly restarted when an event halts the simulation.
1382
1383 * psim.c (psim_halt): Handle an event halting the simulation.
1384 * psim.c (psim_init): Adjust initial cpu - == -1 - to match
1385 reworked idecode.
1386
1387 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1388
1389 * ppc-opcode-complex: Correct typo - was expanding ORA instead of
1390 RA. Based on instruction frequency stats, expand additional
1391 instructions.
1392 * ppc-instructions: Change all `RA == 0' to RA_is_0.
1393
1394 * ppc-opcode-stupid: Move all but the basic table in -complex into
1395 here. Update to new format.
1396
1397 * Makefile.in (tmp-defines): New target. Force defines.h to always
1398 be built. Hence get ppc-opcode-goto to build.
1399
1400 Tue Jan 28 13:00:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1401
1402 * hw_com.c (hw_com_instance_read, hw_com_instance_write):
1403 Implement.
1404
1405 Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1406
1407 * hw_trace.c (hw_trace_init_data): Delete. The trace options need
1408 to be initialized independant of the rest of the simulation
1409 initalization. Otherwize a trace option explictly set from gdb
1410 could be overridden by hw_trace.
1411
1412 * psim.c (psim_options): Clarify reason why the trace ioctl occures.
1413
1414 * FIXME: The trace code is too scattered - hw_trace.c, psim.c,
1415 debug.c. It could be much simpler.
1416
1417 Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1418
1419 * Some devices support removable media. Add hooks to the disk
1420 device so that it supports this.
1421
1422 * device.c (device_add_string_array_property,
1423 device_find_string_array_property): New functions, manipulate
1424 properties containing an array of strings.
1425 (device_find_string_property): Allow a string array.
1426 (device_init_static_properties): Update.
1427 (device_init_runtime_properties): Update.
1428
1429 * hw_disk.c (hw_disk_ioctl): Add ioctl for changing the disk
1430 media. If no file image is specified, use the next one in the
1431 image property list.
1432 (hw_disk_init_address): Change the file property so that it is a
1433 string array - use the first entry for the initial file image.
1434
1435 * tree.c (print_string_aray_property): New function - print a
1436 string array.
1437 (print_properties): Adjust.
1438 (print_string): Write a string, handling double quotes.
1439
1440 * device.h: Define an ioctl to `change-media' with an optional new
1441 media image.
1442
1443 * hw_disk.c: Allow floppy disk devices to be specified.
1444
1445 * psim.c (psim_command): New function, parse more complex psim
1446 commands such as "change-media" and "trace".
1447 * sim_calls.c (sim_do_command): Use.
1448
1449 Wed Jan 22 09:38:33 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1450
1451 * For expressions like (RA == 0) that are entered in to the cache
1452 as RA_is_0. If possible generate the result of the expression so
1453 that the compiler gets a better chance of eliminating dead
1454 branches.
1455
1456 * gen-icache.c (print_icache_extraction): For a cache entry of
1457 the form <name>_is_<const> where it is a boolean field, generate
1458 the result of the expression instead of the expression its self.
1459 (print_icache_body): Remove code that was looking for *_is_0 and
1460 then generating corresponding definitions.
1461
1462 * gen-icache.c (print_icache_struct): If there is no cache, do not
1463 output expressions in idecode.h file.
1464
1465 * gen-icache.c (print_icache_body): Output them here.
1466
1467 * ppc-opcode-complex: Clarify constant values for SPR==LR register
1468 expansion.
1469
1470 * ppc-cache-rules (RA_is_0, SPR_is_256): Two new cache entries.
1471
1472 Wed Jan 22 12:24:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1473
1474 * The code that put values in and extracted values from the cache
1475 was too compilicated. The cache table did not allow values to be
1476 computed from cache entries. #defines could only be used when a
1477 cache was present, remove the restriction.
1478
1479 * ld-cache.h, ld-cache.c: Add a new cache entry type - SCRATCH. A
1480 scratch variable is defined when a cache entry is beinf
1481 filled. Change the definition of a COMPUTE variable to be defined
1482 when the cache entry is being used.
1483 * gen-icache.c: Update.
1484
1485 * ld-cache.h, ld-cache.c: Change field names so that their meaning
1486 is more obvious. old_name->field_name, new_name->derived_name.
1487 * gen-icache.c: Update
1488
1489 * gen-icache.h, gen-icache.c (print_icache_body): Make the three
1490 different types of cache code - put into cache, extract from
1491 cache, no cache - an explicit argument to print_icache_body.
1492 * gen-icache.c (print_icache_extraction): Ditto.
1493
1494 * gen-semantics.c (print_c_semantic): Update use.
1495 * gen-idecode.c (print_jump_insn): Update use.
1496 * gen-icache.c (print_icache_function): Update use.
1497
1498 * igen.c (main): Change 'R' option so that it does not force the
1499 cache.
1500
1501 * configure.in (enable-sim-icache): Clarify description. Make
1502 #define one of the defaults regardless of the cache. Probably
1503 should revamp and add a separate option.
1504
1505 Tue Jan 21 13:26:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1506
1507 * pk_disklabel.c (block_is_fdisk): Tidy up traces - use dos
1508 partition numbering.
1509 (pk_disklabel_create_instance): Partition 1..4 are valid - not
1510 1..3.
1511 (is_iso9660): New function, verify a CD9660 File system.
1512 (pk_disklabel_create_instance): Start expanding so that active
1513 partition selection is supported.
1514
1515 Mon Jan 20 11:20:15 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1516
1517 * The cap object was retaining a reference to the instance of a
1518 device after it was deleted. Instead add and remove cap's from the
1519 cap db as they are created and deleted. This ensuring that a
1520 capibility is only used during the lifetime of the corresponding
1521 object.
1522
1523 * cap.h, cap.c: Correct cap type - was signed32 should be
1524 signed_cell.
1525
1526 * cap.c (cap_add, cap_remove): New methods for cap object that
1527 allow the explicit addition and removal of internal objects that
1528 the cap knows about.
1529
1530 * cap.c (cap_init): Rewrite. Verify that the only objects
1531 remaining in the cap data base are those that were entered first.
1532 Thse objects will be the permenant ones.
1533 * device.c (device_init_address): Remember to initialize the cap
1534 database.
1535
1536 * device.c (device_create_instance_from): Explicitly add device
1537 instances to the cap database. Simplify create code.
1538 (device_instance_delete): Explicitly remove device instances from
1539 the cap database.
1540
1541 * device.c (device_create_from): Explicitly add a device to the
1542 cap data base.
1543
1544 * device.c (device_create_from): Always set the cap members.
1545
1546 * hw_disk.c: Output the instance when tracing.
1547
1548 Sun Jan 19 16:44:29 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1549
1550 * tree.c (split_device_specifier): Add support for aliases when
1551 looking up a device. Now needs a device as an argument.
1552 (split_property_specifier): Ditto.
1553
1554 Sun Jan 19 15:28:23 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1555
1556 * The memory "claim" and "release" methods take an address and
1557 size as arguments. These may be multi cell values. Initially fix
1558 the memory code so that they check/detect this. Leave the
1559 adjustment of any clients to later.
1560
1561 * hw_memory.c (hw_memory_instance_claim,
1562 hw_memory_instance_release): Handle multi-cell memory devices.
1563
1564 * hw_memory.c (hw_memory_instance_claim): Be tolerant towards the
1565 release of memory regions that were not claimed.
1566
1567 Fri Jan 17 12:01:07 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1568
1569 * device.h, device.c (device_instance_call_method): Correct return
1570 type - can return either 0 or -1, hence should be a signed type.
1571 * device_table.h: Ditto.
1572
1573 * hw_memory.c (hw_memory_instance_claim,
1574 hw_memory_instance_release): Update.
1575 * hw_disk.c (hw_disk_max_transfer, hw_disk_block_size,
1576 hw_disk_nr_blocks): Ditto.
1577
1578 Fri Jan 17 11:50:13 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1579
1580 * emul_chirp.c (chirp_emul_claim): Implement using the "claim"
1581 method belonging to "/chosen/memory".
1582 (chirm_emul_release): Ditto.
1583
1584 * Makefile.in (LIB_INLINE_SRC): Remove emul_* from list of files
1585 that are inlined. These modules are called via a table and are
1586 not made inline.
1587
1588 * hw_init.c (update_for_binary_section): Fix failure to allocate
1589 memory used by the binary in real-mode executions. If "claim"
1590 property is present, allocate memory from the "/chosen/memory"
1591 device.
1592
1593 * emul_chirp.c (emul_chirp_create): Specify that memory should be
1594 claimed when loading a real image.
1595
1596 * hw_memory.c (hw_memory_instance_claim): Don't page align memory
1597 allocations.
1598
1599 * hw_memory.c (hw_memory_instance_release): Avoid infinite loop
1600 when merging adjacent memory chunks.
1601
1602 Thu Jan 16 08:51:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1603
1604 * vm.h (vm_data_map_read_buffer, vm_data_map_write_buffer): Add
1605 optional PROCESSOR & CIA args so that this routine also abort an
1606 access.
1607
1608 * vm_n.h (vm_data_map_read_N, vm_data_map_write_N): For a
1609 miss-aligned access when a transfer fails abort.
1610
1611 * emul_bugapi.c (emul_bugapi_do_write): Use emul_read_buffer
1612 instead of the vm_read_buffer.
1613 * emul_netbsd.c (do_write): Ditto.
1614 * emul_unix.c (do_unix_write): Ditto.
1615
1616 Wed Jan 15 14:38:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1617
1618 * configure.in (--enable-sim-jump): Default is NULL and not -E.
1619 * configure: Regenerate.
1620
1621 * basics.h (__attribute__): Enable attributes if GCC >= 2.6.
1622 (UNUSED): Only enable UNUSED if GCC >= 2.7.
1623
1624 * gen-icache.c (print_icache_extraction): Print UNUSED macro
1625 instead of explicit __unused__ attribute.
1626 (print_icache_body): Ditto.
1627 * idecode_expression.h (FPSCR_BEGIN): Use UNUSED.
1628
1629 Wed Jan 15 13:54:50 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1630
1631 * cpu.h, cpu.c (cpu_synchronize_context): Add CIA argument as
1632 reference point.
1633
1634 * vm.c (vm_synchronize_context): Add PROCESSOR and CIA as
1635 arguments so that there is a reference point for recovery.
1636 (vm_synchronize_context): Pass processor+cia for errors.
1637 (om_unpack_sr): Ditto.
1638 (om_unpack_srs): Ditto.
1639 * vm.c (vm_create): Review error messages.
1640
1641 * vm.c: Include "cpu.h" so that cpu_error is visible.
1642
1643 * ppc-instructions (Return From Interrupt): Pass CIA.
1644 (Instruction Synchronize): Ditto.
1645 * psim.c (psim_init): Ditto.
1646
1647 Wed Jan 15 12:25:11 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1648
1649 * cpu.h, cpu.c (cpu_error): Aborts simulation with error message,
1650 but also saves current processor state.
1651
1652 * basics.h: Move #include <stdarg.h> to here from device_table.h.
1653
1654 * interrupts.c (perform_oea_interrupt): Use. No longer loose CIA
1655 when simulation aborted.
1656 (program_interrupt): Ditto.
1657 (floating_point_unavailable_interrupt): Ditto.
1658 (alignment_interrupt): Ditto.
1659 (floating_point_assist_interrupt): Ditto.
1660 (perform_oea_interrupt): Ditto.
1661 (machine_check_interrupt): Ditto.
1662
1663 Tue Jan 14 12:19:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1664
1665 * ppc-instructions (Move from Special Purpose Register): Support
1666 move from DEC.
1667
1668 Mon Jan 13 16:58:12 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1669
1670 * debug.h, debug.c: Add "interrupts" trace option.
1671
1672 * interrupts.c (data_storage_interrupt): Add tracing.
1673 (machine_check_interrupt): Ditto.
1674 (instruction_storage_interrupt): Ditto.
1675 (alignment_interrupt): Ditto.
1676 (program_interrupt): Ditto.
1677 (floating_point_unavailable_interrupt): Ditto.
1678 (system_call_interrupt): Ditto.
1679 (floating_point_assist_interrupt): Ditto.
1680 (deliver_hardware_interrupt): Ditto.
1681
1682 * interrupts.c (program_interrupt): For UEA mode, halt the
1683 processor - so that the current state is saved - instead of
1684 aborting.
1685 (floating_point_unavailable_interrupt): Ditto.
1686 (floating_point_assist_interrupt): Ditto.
1687
1688 Thu Jan 2 09:10:41 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1689
1690 * interrupts.c (perform_oea_interrupt): Halt rather than abort on
1691 a double interrupt.
1692
1693 Wed Jan 1 22:54:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1694
1695 * ppc-instructions (Store Multiple Word, Load Multiple Word):
1696 Enable.
1697
1698 * tree.c (print_properties): For an array consider printing it out
1699 as an integer array.
1700
1701 * hw_memory.c (hw_memory_init_address): If an "available" property
1702 is present, use that to initialize the available memory instead of
1703 using the reg property.
1704
1705 * emul_generic.c (emul_add_tree_hardware): Add "available"
1706 property to memory device.
1707
1708 Fri Dec 20 13:19:07 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1709
1710 * ppc-instructions (Rotate Left Word then AND with Mask): Enable.
1711
1712 * device.c (device_instance_call_method): Was only looking at the
1713 first method.
1714
1715 * hw_disk.c (hw_disk_nr_blocks): Implement #blocks method.
1716 (hw_disk_block_size): Implement block-size method.
1717 (hw_disk_max_transfer): Implement max-transfer method.
1718
1719 * hw_phb.c (hw_phb_init_address): Reinit the rest of the PHB.
1720
1721 * emul_chirp.c (chirp_emul_instance_to_path): Recover from an
1722 invalid ihandle.
1723 (chirp_emul_instance_to_package): Ditto.
1724 (chirp_emul_method): Ditto.
1725 (chirp_emul_read): Ditto.
1726 (chirp_emul_write): Ditto.
1727 (chirp_emul_close): Ditto.
1728 (chirp_emul_seek): Ditto.
1729 (chirp_emul_package_to_path): Ditto (for phandle).
1730 (chirp_emul_package_to_path): Return the length.
1731
1732 * psim.c (psim_merge_device_file): Allow continuation lines.
1733
1734 Thu Dec 19 11:09:43 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1735
1736 * emul_chirp.c (chirp_emul_boot): Implement. Well report the new
1737 string and exit.
1738
1739 * emul_chirp.c (chirp_emul_exit): Correct type of args struct
1740 members - *_cell not host dependant int.
1741
1742 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1743
1744 * interrupts.c (perform_oea_interrupt): Print additional
1745 information if a double interrupt is encountered.
1746
1747 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1748
1749 * psim.c (psim_merge_device_file): Tolerate an incorrect file-name
1750 being specified with the -f option.
1751 (psim_merge_device_file): Correct check for end of string.
1752
1753 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1754
1755 * emul_chirp.c (chirp_emul_peer): Was falling off the end of the
1756 list of devices. Return zero to the client instead.
1757 * emul_chirp.c (chirp_emul_child): Ditto
1758 * emul_chirp.c (chirp_emul_parent): Ditto
1759
1760 * device.c (device_root): Assert assumption about the device being
1761 valid.
1762
1763 Tue Dec 17 15:12:38 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1764
1765 * emul_chirp.c (emul_chirp_create): Add description property to
1766 each significant node in the device tree.
1767 * emul_bugapi.c (emul_bugapi_create): Ditto.
1768
1769 Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1770
1771 * main.c (sim_io_read_stdin): For a single byte STDIO read, use a
1772 tempoary two byte buffer. Single byte read with fgets will not
1773 work.
1774 * main.c: Include errno.h.
1775 (sim_io_read_stdin): For non-STDIO, make it work.
1776
1777 * emul_chirp.c (chirp_emul_read): Return the correct error status.
1778
1779 Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1780
1781 * std-config.h (WITH_STDIO): Don't hard-wire the STDIO mechanism.
1782 Instead have each emulation default it to DO_USE_STDIO.
1783
1784 * emul_generic.c (emul_add_tree_options): Select the STDIO I/O
1785 mechanism as the default if enabled or if nothing selected.
1786
1787 * sim_calls.c (sim_io_read_stdin): Passify GCC's desire for a
1788 return value.
1789 (sim_io_write_stdout): Ditto.
1790 (sim_io_write_stderr): Ditto.
1791 * main.c (sim_io_write_stdout): Ditto.
1792 (sim_io_write_stderr): Ditto.
1793 (sim_io_read_stdin): Ditto.
1794
1795 Tue Dec 10 10:31:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1796
1797 * emul_chirp.c (emul_chirp_instruction_call): Make *printf calls
1798 type correct.
1799 * vm.c (om_effective_to_virtual): Ditto.
1800 * events.c (event_queue_schedule{,_after_signal}): Ditto.
1801 (event_queue_{deschedule,process}): Ditto.
1802 * hw_htab.c (htab_decode_hash_table): Ditto.
1803 (htab_map_{page,binary}): Ditto.
1804 * hw_opic.c (hw_opic_init_data): Ditto.
1805 (handle_interrupt): Ditto.
1806 (do_processor_init_register_{read,write}): Ditto.
1807 (write_vector_priority_register): Ditto.
1808 ({read,write}_destination_register): Ditto.
1809 (do_suprious_vector_register_{read,write}): Ditto.
1810 (do_current_task_priority_register_N_{read,write}): Ditto.
1811 (do_timer_frequency_reporting_register_{read,write}): Ditto.
1812 (do_timer_N_{current,base}_count_register_{read,write}): Ditto.
1813 (do_ipi_N_dispatch_register_write): Ditto.
1814 (do_vendor_identification_register_read): Ditto.
1815 (do_feature_reporting_register_N_read): Ditto.
1816 (do_global_configuration_register_N_{read,write}): Ditto.
1817 * hw_phb.c (hw_phb_attach_address): Ditto.
1818 (hw_phb_unit_decode): Ditto.
1819 (hw_phb_address_to_attach_address): Ditto.
1820 (hw_phb_io_{read,write}_buffer): Ditto.
1821 * hw_ide.c (setup_fifo): Ditto.
1822
1823 * sim_calls.c ({defs,callback,remote-sim}.h): Find gdb include
1824 files via -I<dir> instead of using "../../gdb/" prefixes.
1825
1826 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1827
1828 * debug.h: Add tracing for the pal device.
1829 * hw_pal.c: Update.
1830
1831 * emul_chirp.c (chirp_emul_getprop): More tracing.
1832
1833 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1834
1835 * device.h, device.c (device_find_ihandle_runtime_property): New
1836 function. Reverse of add_ihandle_runtime property.
1837 (device_init_runtime_properties): Use it.
1838
1839 * device.c (find_property_entry): New function returns the
1840 internal property spec.
1841 (device_set_property): Use.
1842 (device_find_property): Use.
1843
1844 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1845
1846 * psim.c (psim_merge_device_file): Strip newline from device
1847 specs.
1848
1849 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1850
1851 * hw_htab.c (htab_map_binary): For overlapping text / data maps
1852 merge the two. Also check that the merge is safe.
1853
1854 * emul_chirp.c (emul_chirp_create): Add a description property to
1855 the pte's so that they are easier to identify.
1856
1857 (emul_chirp_create): Don't specify a load address for the CHRP
1858 image. Always use the values specified by the executable.
1859
1860 * hw_htab.c (htab_map_page): Abort if a duplicate map is
1861 encountered.
1862
1863 Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1864
1865 * hw_htab.c (htab_map_page): Formatting.
1866
1867 * emul_chirp.c (emul_chirp_instruction_call): Check for a NULL
1868 method name when handling the client call. Also check for other
1869 bad call arguments.
1870
1871 * emul_chirp.c (emul_chirp_create): Allow real-mode?, real-base,
1872 etc to be overriden.
1873
1874 Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1875
1876 * os_emul.c (os_emul_create): Use tree find property instead of
1877 device find property - sigh.
1878
1879 Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1880
1881 * 961205: Release snapshot 961205.
1882
1883 Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1884
1885 * configure.in (hostbitsize, bitsize): Fix typo in error message -
1886 cannot contain a comma.
1887 (sim-warnings): Check for more potential errors.
1888
1889 * psim.c (psim_usage): Add -f <file> option. Specifies a file
1890 containing device tree specifications that should be merged into
1891 the device tree.
1892
1893 * configure.in: Sort options.
1894 * configure: Rebuild
1895
1896 Wed Dec 4 13:57:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1897
1898 * psim.c (psim_usage): Add -n option - specify number of
1899 processors.
1900
1901 * emul_chirp.c: Add description.
1902 * emul_bugapi.c: Ditto.
1903 * emul_unix.c: Ditto.
1904 * emul_netbsd.c: Ditto.
1905
1906 Fri Nov 29 11:12:22 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1907
1908 * hw_pal.c (hw_pal_attach_address): New function, if an attach is
1909 encountered, assume that it is the single disk.
1910 * hw_pal.c: Add generic device/size decode methods.
1911
1912 * hw_nvram.c (hw_nvram_init_address): Use the first nonzero reg
1913 property entry when determining the nvram size.
1914
1915 * hw_core.c: Add generic address/size decode methods.
1916
1917 * emul_chirp.c (emul_chirp_instruction_call): Return and trace
1918 nonzero status from client functions.
1919
1920 * main.c (error): Always include a cariage return when writing out
1921 errors.
1922
1923 Wed Nov 20 00:36:55 1996 Doug Evans <dje@canuck.cygnus.com>
1924
1925 * sim_calls.c (sim_resume): Reset sim_should_run if single
1926 stepping.
1927
1928 Thu Nov 28 13:19:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1929
1930 * emul_bugapi.c (emul_bugapi_do_diskio): Add support for multiple
1931 optional disks.
1932
1933 * emul_generic.c (emul_add_tree_hardware): Drop the dummy eeprom.
1934 Attach the pal - for I/O - as a pseudo device haning from the
1935 firmware sub tree.
1936
1937 * emul_bugapi.c (emul_bugapi_create): Add a small memory device to
1938 the device tree at the address of the hi-mem interrupt vector
1939 addreses. Used by bugapi to establish its trap instructions.
1940
1941 * debug.h: Add a new macro DITRACE for tracing device instances.
1942
1943 * debug.h: Extend the DTRACE macro so that it can also tests for
1944 device specific tracint.
1945
1946 * device.h, device.c (device_trace): Add method to determine
1947 device specific tracing.
1948 (device_init_address): Set the devices tracing level.
1949
1950 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1951
1952 * tree.h, tree.c (tree_device): New files - separate out the
1953 device parser and other tree operations from the device.
1954
1955 * inline.h, inline.c (INLINE_TREE): Add.
1956 * device.h, device.c (device_tree_add_parsed): Delete.
1957 * Makefile.in (tree.c): Add rules for new file.
1958 * Makefile.in: Better order the emul_* files.
1959
1960 * emul_generic.c (emul_add_tree_hardware): Update.
1961 * emul_netbsd.c (emul_netbsd_create): Update.
1962 * emul_unix.c (emul_unix_create): Ditto.
1963 * emul_chirp.c (emul_chirp_create): Ditto.
1964 * emul_bugapi.c (emul_bugapi_create): Ditto.
1965 * psim.c (psim_tree): Ditto.
1966 * hw_init.c: Ditto.
1967
1968 * emul_generic.h: Include tree.h
1969 * Makefile.in: Add to EMUL_GENERIC_H dependencies.
1970
1971 * device.h, device.c (device_root): New function - returns the
1972 root of the tree.
1973 * corefile.c: Use.
1974
1975 * device.h, device.c (device_clean): New function, clean up device
1976 ready for next simulation run. This includes things like deleting
1977 interrupt edges and properties created during the simulation and
1978 also scrubbing any pre-defined properties.
1979 * tree.c (tree_init): Use.
1980
1981 * device.h, device.c (device_init_static_properties): New
1982 function. Initialize any static predefined properties. By static
1983 we mean those that have values that can be determined before the
1984 device tree initialization has started.
1985 * tree.c (tree_init): Use.
1986
1987 * device.h, device.c (device_init_address): Add code to
1988 check/verify the devices #address-cells and #size-cells.
1989 (device_add_integer_property): Delete corresponding code.
1990 (device_nr_address_cells, device_nr_data_cells): Check for
1991 property when returning value.
1992
1993 * device.h, device.c (device_init_runtime_properties): New
1994 function. Initialize those properties that are not `static'. At
1995 present the only such property is the ihandle.
1996 * tree.c (tree_init): Use.
1997
1998 * device.h, device.c (reg, ranges): Rework these so that they use
1999 an array of the fundamental type - single reg or single range
2000 entry.
2001
2002 * device.h, device.c (device_add_ihandle_runtime_property):
2003 Re-implement the adding of an ihandle during tree construction so
2004 that it better fits in with device initialization.
2005
2006 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2007
2008 * device.h, device.c (device_ioctl): Add additional argument -
2009 request - so that the caller must always specify the type of
2010 the ioctl request.
2011
2012 * device_table.h: Update.
2013 * hw_trace.c (hw_trace_ioctl): Ditto.
2014 * hw_vm.c (hw_vm_ioctl_callback): Ditto.
2015 * hw_init.c (hw_stack_ioctl_callback): Ditto.
2016 * psim.c (psim_options): Ditto.
2017
2018 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2019
2020 * BUGS: Updated a bit.
2021
2022 Wed Nov 20 14:06:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2023
2024 * hw_opic.c: Finish - third round.
2025
2026 Wed Nov 20 12:02:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2027
2028 * hw_glue.c (hw_glue_io_read_buffer_callback): Fix miscalc of glue
2029 reg index.
2030 (hw_glue_io_write_buffer_callback): Ditto.
2031
2032 Tue Nov 19 21:17:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2033
2034 * events.c (event_queue_process): Was incorrectly consuming future
2035 events on the queue when they should be left alone.
2036
2037 * debug.h, debug.c (events): Add support for event queue tracing.
2038 * events.c: Add event tracing.
2039
2040 * debug.h, debug.c: Order device trace options.
2041
2042 Fri Nov 15 15:23:39 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2043
2044 * pk_disklabel.c (pk_disklabel_create_instance): Fix up some
2045 warnings generated by GCC.
2046
2047 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2048
2049 * sim-endian.h: Add LE versions of byte swap macros. Needed for
2050 PCI devices which are little-endian.
2051
2052 * sim-endian-n.h (endian_le2h_N, endian_h2le_N): Ditto
2053
2054 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2055
2056 * hw_iobus.c (hw_iobus_attach_address_callback): Change the iobus
2057 so that it is implementing a 1-1 address map.
2058
2059 * emul_generic.c (emul_add_tree_hardware): Adjust.
2060
2061 * emul_generic.c (emul_add_tree_hardware): Don't add the nvram as
2062 a default.
2063
2064 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2065
2066 * device.c (split_find_device): Be tolerant of missing unit
2067 addresses.
2068
2069 Fri Nov 15 16:49:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2070
2071 * basics.h (port_direction): New type, specify the direction of
2072 any `port'.
2073
2074 * device.h, device.c (device_interrupt_decode): Include
2075 specification of port direction in operations.
2076 (device_interrupt_encode): Ditto.
2077
2078 * device_table.h: Add a direction field to the interrupt port
2079 table.
2080
2081 * device.c (device_tree_add_parsed): Specify port direction.
2082
2083 Thu Nov 14 21:38:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2084
2085 * hw_opic.c: Finish - second round.
2086
2087 Thu Nov 7 00:18:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2088
2089 * hw_htab.c (htab_init_data_callback): Allow the virtual-address
2090 to be specified as an array which allows 64bit addresses.
2091
2092 * device.c (device_find_integer_array_property): New function.
2093 Simplify the querying of elements of an integer array.
2094 (device_add_integer_property, device_find_integer_property):
2095 Update to correctly use the cell type.
2096
2097 * vm.c (om_unpack_sr): Clarify shifting comment.
2098 (om_pte_0_masked_vsid): Ditto. Add 64bit version.
2099
2100 * emul_chirp.c (emul_chirp_create): Initialize the segment
2101 registers.
2102
2103 * vm.c (om_effective_to_virtual): Trace segment register use.
2104
2105 * hw_htab.c (htab_map_page): Print out the pteg base address to
2106 simplify cross checking between vm and the htab.
2107 (htab_decode_hash_table): Use device_error instead of error.
2108 (htab_map_page): Ditto.
2109 (htab_dma_binary): Ditto.
2110 (htab_map_binary): Ditto.
2111 (htab_init_data_callback): Ditto.
2112
2113 Wed Nov 6 20:20:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2114
2115 * interrupts.h: Clarify what the optional instruction program
2116 interrupt is - a subset of illegal instruction program interrupt.
2117
2118 * interrupts.c (program_interrupt): For UEA mode, clarify what an
2119 optional instruction program interrupt is.
2120 (program_interrupt): For OEA mode, as per spec, generate an
2121 illegal instruction program interrupt when an optional instruction
2122 is encountered.
2123
2124 * gen-semantics.c (print_semantic_body): Delete code
2125 differentiating between an unimplemented floating point and normal
2126 instruction. Instead, such a case can be handled explicitly.
2127
2128 * ppc-instructions (store floating-point as integer word indexed):
2129 Mark as optional.
2130 (Floating Convert to Integer Doubleword): Make the floating point
2131 assist interrupt explicit.
2132 (Floating Convert To Integer Doubleword with round towards Zero):
2133 Ditto.
2134 (Floating Convert To Integer Word): Ditto
2135 (Move From FPSCR): Ditto.
2136 (Move to Condition Register from FPSCR): Ditto.
2137 (Move To FPSCR Fields): Ditto.
2138 (Move To FPSCR Field Immediate): Ditto.
2139 (Move To FPSCR Bit 0): Ditto.
2140 (Move To FPSCR Bit 1): Ditto.
2141
2142 Mon Nov 4 12:49:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2143
2144 * corefile.c (core_map_read_buffer, core_map_write_buffer): Avoid
2145 breaking up transfers.
2146
2147 * corefile.c: Adjust arguments so that the client server
2148 relationship is clarified.
2149
2150 * hw_glue.c (hw_glue_init_address): Update so it can be attached
2151 to a PCI bus.
2152
2153 * hw_disk.c (hw_disk_instance_write): Add more checks to disk IO -
2154 looking for things like overflow/underflow.
2155
2156 Sun Nov 3 18:45:20 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2157
2158 * emul_generic.c (emul_add_tree_hardware): Hang the disk off the
2159 PAL device instead of the IOBUS. The disk must be attached to a
2160 logical bus.
2161
2162 * hw_disk.c (hw_disk_init_address): Just use the unit address
2163 directly in the attach - the rest isn't relevant.
2164
2165 Sat Nov 2 21:48:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2166
2167 * configure.in (sim-hardware, sim-packages): Allow additional
2168 hardware and packages to be prefixed as well as appended.
2169
2170 * Makefile.in (tmp-hw, tmp-pk): Retain the user specified order of
2171 packages when building them. Consequently, a user can override a
2172 standard device by prefixing their own version.
2173
2174 * Makefile.in (hw_opic.o, hw_pci.o, hw_ide.o): Add dependencies.
2175
2176 Fri Nov 1 14:42:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2177
2178 * mon.c (_cpu_mon): Add fields for counting 1, 2, 4, and 8 byte
2179 reads and writes.
2180 (mon_{read,write}): Count 1, 2, 4, and 8 byte reads/writes.
2181 (mon_print_info): Correct typo regarding # of unaligned reads and
2182 writes. Print out how many 1, 2, 4, and 8 byte reads/writes there
2183 are.
2184
2185 Tue Oct 29 17:55:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2186
2187 * configure.in (AC_CHECK_FUNCS): Add access.
2188 * config{.in,ure}: Regenerate.
2189
2190 * emul_unix.c (do_unix_nop): System call that always succeeds.
2191 (do_unix_access): Support access system call.
2192 (solaris_descriptors): Make sigaltstack and sigaction nops.
2193 ({solaris,linux}_descriptors): Add support for access.
2194
2195 Tue, 8 Oct 18:42:26 1996 Jason Molenda <crash@cygnus.co.jp>
2196
2197 * Makefile.in (clean): Move config.log to distclean.
2198
2199 Fri Nov 1 16:44:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2200
2201 * corefile-n.h (core_map_write_N): Improve abort messages.
2202
2203 * device.h, device.c (device_attach_address): Remove unused name
2204 parameter.
2205 (device_detach_address): Ditto.
2206 * device_table.h, device_table.c: Update.
2207 * hw_iobus.c (hw_iobus_attach_address_callback): Ditto.
2208 * hw_nvram.c (hw_nvram_init_address): Ditto.
2209 * hw_memory.c (hw_memory_init_address): Ditto.
2210 * hw_vm.c (hw_vm_init_address_callback): Ditto.
2211 (hw_vm_attach_address): Ditto.
2212 (hw_vm_add_space): Ditto.
2213 * hw_init.c (update_for_binary_section): Ditto.
2214 * hw_core.c (hw_core_attach_address_callback): Ditto.
2215
2216 * hw_iobus.c (hw_iobus_attach_address_callback): Rewrite to handle
2217 configurable parent busses.
2218
2219 Wed Oct 30 18:46:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2220
2221 * device_table.c (generic_device_size_to_attach_size): Provide
2222 limited support for multi-cell sizes.
2223 (generic_device_address_to_attach_address): Ditto for addresses.
2224
2225 Tue Oct 29 02:01:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2226
2227 * device.c (device_add_integer_property): Check for setting of
2228 #address-cells and #size-cells properties. For these, update the
2229 corresponding device values.
2230 (device_nr_address_cells, device_nr_size_cells): Use the value
2231 from the device instead of the property.
2232
2233 * hw_core.c: Use generic address and size conversions for the top
2234 bus.
2235
2236 * hw_memory.c (hw_memory_init_address): Tolerate case where
2237 #address and #size cells is greater than 1.
2238
2239 * device.c (device_tree_print_device): Clean out printing of
2240 properties.
2241
2242 * device.c (split_device_specifier): Don't detect comments here -
2243 "#" can be a valid prefix - eg #size-cells.
2244
2245 * psim.c (psim_merge_device_file): Suppress comments and blank
2246 lines here.
2247
2248 * emul_generic.c (emul_add_tree_hardware): Fix typo of incorrect
2249 pal unit address. Add the property /#address-cells to the root of
2250 the tree.
2251
2252 * device.c (device_template_create_device): Check that the unit
2253 address was successfully parsed.
2254
2255 * device_table.c (generic_device_unit_decode): Rewrite to better
2256 handle multi-cell addresses.
2257 (generic_device_unit_encode): Ditto.
2258
2259 * emul_generic.c (emul_add_tree_hardware): "reg" properties no
2260 longer need the explicit array type - the parser takes care of it.
2261
2262 * pk_disklabel.c (pk_disklabel_create_instance): Add NULL return
2263 to keep GCC happy.
2264
2265 Mon Oct 28 22:55:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2266
2267 * hw_ide.c: New file. Model of a basic IDE interface attached to
2268 a PCI bus.
2269
2270 * configure.in (hardware): Add the ide device to the default
2271 configuration.
2272 * configure: Regenerate.
2273
2274 * debug.h, debug.c: Add tracing option for the IDE device.
2275
2276 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2277
2278 * hw_phb.c, hw_phb.h: New files - implement a PHB.
2279
2280 * configure.in (hardware): Add the phb to the list of devices to
2281 build by default.
2282
2283 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2284
2285 * hw_com.c: Review description.
2286 * hw_disk.c: Ditto.
2287 * hw_htab.c: Ditto.
2288 * hw_eeprom.c: Ditto.
2289 * hw_init.c: Ditto.
2290 * hw_cpu.c: Ditto.
2291
2292 * hw_com.c: Update event handling.
2293
2294 * hw_disk.c: Implement tracing.
2295
2296 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2297
2298 * device_table.c (generic_device_init_address): Use
2299 assigned-addresses property in preference to any other reg
2300 property.
2301
2302 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2303
2304 * device.h, device.c (device_find_ranges_property): New function.
2305 Simplify the manipulation of "ranges" properties.
2306
2307 * device.c (device_add_parsed): Extend to include support for the
2308 ranges property.
2309
2310 * device.c (device_add_parsed): Add assigned-addresses to the list
2311 of reg type properties.
2312
2313 * device.c (device_tree_print_device): Add code to format and
2314 print a ranges property.
2315
2316 * device.h, device.c (device_nr_address_cells,
2317 device_nr_size_cells): New functions. Determine the values of the
2318 standard properties #address-cells and #size-cells. Both of which
2319 are optional and have default values of two and one respectfuly.
2320 Previously, code that determined #address-cells was incorrectly
2321 using a value of one.
2322
2323 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2324
2325 * debug.h, debug.c: Sort debug options, Add entries for the
2326 comming PHB device.
2327
2328 Fri Oct 18 12:12:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2329
2330 * ppc-instructions (Floating Select): Add support for fsel unless
2331 model is 601. Allow user to filter out instruction unless -Fs is
2332 passed to igen.
2333 (Store Floating-Point as Integer Word Indexed): Raise optional
2334 instruction program abort. Allow user to filter out instruction
2335 unless -Fs is passed to igen.
2336 (Floating Square Root{, Single}): Ditto.
2337 (Floating Reciprocal Estimate Single): Ditto.
2338 (Floating Reciprocal Square Root Estimate): Ditto.
2339
2340 * configure.in (--enable-sim-filter): If not passed, pass 32,f,s
2341 to igen.
2342 * configure: Regenerate.
2343
2344 * interrupts.h (program_interrupt_reasons): Add
2345 optional_instruction_program_interrupt.
2346
2347 * interrupts.c (program_interrupt): Call error with more detailed
2348 information on program interrupts, particularly in user mode. Add
2349 support for optional_instruction_program_interrupt.
2350
2351 Wed Sep 25 10:20:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2352
2353 * hw_glue.c: New device. Hooks for manipulating interrupt ports.
2354
2355 * debug.h, debug.c (trace_glue_device): Add tracing support for
2356 the interrupt glue logic device.
2357
2358 * configure.in (hardware): Add glue device.
2359 * configure: Regenerate.
2360
2361 Tue Sep 24 20:55:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2362
2363 * device.c (device_tree_parse_integer_property): New function,
2364 parse a list of integers as an array property.
2365 (device_tree_add_parsed): Call it.
2366
2367 * device.c (device_tree_parse_string_property): New function,
2368 parse a list of strings as a string property (with embeded
2369 null's). For moment, don't try to implement a complext string
2370 parser.
2371 (device_tree_add_parsed): Call it.
2372
2373 Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2374
2375 * hw_opic.c: New file. OpenPIC interrupt controller.
2376
2377 * configure.in (hardware): Add opic device.
2378 * configure: re-generate.
2379
2380 * hw_pic.c: Delete, replaced with hw_opic.c.
2381
2382 * debug.h, debug.c: Add debug option for OpenPIC device. -
2383 opic-device.
2384
2385 Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2386
2387 * Makefile.in (psim.o, idecode.o): Since idecode and not psim is
2388 now the file that does all the inlining.
2389
2390 * Makefile.in (LIB_SRC, LIB_INLINE_SRC, idecode.o): Break out the
2391 library source code that could be involved in an inlining. Make
2392 idecode.o only dependant on the inlined library source code.
2393
2394 * Makefile.in (LIB_OBJ): Put options last on the list so that it
2395 is compiled last.
2396
2397 * std-config.h (DEVICE_INLINE): Only inline locals when the
2398 default is to inline.
2399
2400 Mon Sep 23 00:37:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2401
2402 * hw_htab.c (htab_sum_binary): Determine the real-base for the
2403 binary.
2404
2405 * hw_htab.c (htab_map_binary): Depending on the value of the
2406 load-base, either map the program in as a contiguous section or as
2407 separate sections controled by th binaries lma values.
2408 (htab_init_data_callback): Ditto.
2409
2410 Sun Sep 22 15:56:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2411
2412 * emul_generic.c (emul_add_tree_options): Remove load-base option.
2413
2414 * emul_chirp.c (map_over_chirp_note): Add load_base field to note
2415 struct. Don't require the load_base field to be present - just
2416 issue warning - it is a recent addition.
2417 (emul_chirp_create): Support both virtual and physical modes.
2418
2419 * emul_chirp.c (emul_chirp_create): Add a stack initialization
2420 property so that any arguments specified on the command line can
2421 be passed on to user programs.
2422
2423 * hw_init.c (create_ppc_chirp_bootargs): Add support for chirp
2424 argument passing to the pseudo device stack.
2425
2426 Sat Sep 21 19:39:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2427
2428 * device.c (device_error): Make it more tolerant to incomplete
2429 devices.
2430
2431 * hw_init.c (hw_data_init_data_callback): Extend the data device
2432 so that it can perform initialization operations either dma or a
2433 more complex instance open, seek, write operation.
2434 * hw_init.c: Update the description of the data device to reflect
2435 this.
2436
2437 Sat Sep 21 00:13:02 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2438
2439 * device.c (device_event_queue_schedule,
2440 device_event_queue_deschedule, device_event_queue_time): Have the
2441 device object export the event operations. Making these available
2442 from the device object should hopefully simplify writing device
2443 models.
2444
2445 Fri Sep 20 14:04:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2446
2447 * configure.in (sim-hardware): Add eeprom device to default build.
2448
2449 * hw_eeprom.c: Rewrite so it works.
2450
2451 * debug.h, debug.c: Add tracing support for the eeprom and com
2452 devices.
2453
2454 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2455
2456 * debug.h: Add disklabel-package and disk-device trace options.
2457 debug.h (PTRACE): Add macro to simplify tracing in packages.
2458
2459 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2460
2461 * device.c (device_create_instance_from): Tighten up loop
2462 searching for device instances.
2463 (device_instance_delete): Ditto.
2464 (device_instance_delete): Only leaf instances need to be removed
2465 from a devices list of active instances.
2466
2467 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2468
2469 * hw_disk.c: Add the cdrom as an alias.
2470
2471 * pk_disklabel.c (disklabel_delete): Implement, remembering to
2472 delete the raw disk instance while we're at it.
2473
2474 * pk_disklabel.c (pk_disklabel_create_instance): Implement a
2475 little bit more - still a long way to go.
2476
2477 * pk_disklabel.c (disklabel_write, disklabel_read): Remember the
2478 new head position after a read or write.
2479
2480 Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2481
2482 * emul_chirp.c (chirp_emul_read): Allow reads to be longer then
2483 the internal buffer.
2484
2485 Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2486
2487 * emul_chirp.c (chirp_read_t2h_args): Call memset-0 with the args
2488 in the correct order.
2489
2490 * emul_chirp.c (chirp_emul_call_method): Correct computation for
2491 the address of the first stack argument passed in from the client
2492 program.
2493
2494 Wed Sep 18 19:33:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2495
2496 * words.h: Add new types signed_cell and unsigned_cell which
2497 correspond to the signed and unsigned IEEE 1275 memory locations.
2498 * device.h, device.c, emul_chirp.c: Where refering to an IEEE 1275
2499 memory cell, replace uses of unsigned32 with unsigned_cell.
2500 * device_table.h: Ditto.
2501
2502 * sim-endian.h: Add new macros H2BE_cell and BE2H_cell which
2503 convert cell sized values to from big endian.
2504 * device.c, emul_chirp.c: Where refering to IEEE 1275 memory cells
2505 use these new macros.
2506
2507 Tue Sep 17 15:57:44 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2508
2509 * device.c (device_tree_add_parsed): Detect and report an
2510 interrupt being attached to an invalid device. Was dumping core.
2511
2512 Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2513
2514 * device.h, device.c (device_address_to_attach_address,
2515 device_size_to_attach_size): New functions. Convert a devices
2516 unit address or unit size structure into a form suitable for
2517 passing on to the attach and detach functions.
2518 * device_table.h: Add extra methods to device table.
2519
2520 * device.h, device.c (device_find_reg_property): New function.
2521 For a reg type property, return the selected address + size
2522 tupple, along with a positive success status. Add a reg_property
2523 to the list of property types.
2524 * (device_tree_add_parsed): Make array properties with the name
2525 reg or alternate-reg of type reg_property.
2526
2527 * hw_memory.c (hw_memory_init_address): Rewrite to use new
2528 find_reg_property method.
2529 * hw_nvram.c (hw_nvram_init_address): Ditto.
2530
2531 * device.c (device_tree_print_device): Add code to print out a reg
2532 property.
2533
2534 * device_table.c (generic_device_address_to_attach_address,
2535 generic_device_size_to_attach_size ): New functions. Generic
2536 functions for converting between unit and attach address or size.
2537
2538 * device_table.c (generic_device_init_address): Rewrite to use the
2539 new find_reg and address convert functions. Look for both reg and
2540 alternate-reg properties.
2541
2542 Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2543
2544 * hw_com.c: New file. A '550 serial device that can quickly be
2545 attached to any bus.
2546 * configure.in (enable-sim-hardware): Add the com device.
2547 * configure: re-generate.
2548
2549 Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2550
2551 * device.c (device_tree_verify_reg_unit_address): New
2552 function. Check that the unit address as specified by the reg
2553 property correctly corresponds to any unit address previously
2554 specified by the devices name.
2555 (device_tree_add_parsed): When adding a reg property, verify
2556 that the unit-address - first value of property - correctly
2557 matches any previous value specified when creating the device
2558 node.
2559
2560 Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2561
2562 * mon.c (mon_event): Remove assertion that an unsigned is >= 0.
2563
2564 Fri Aug 16 12:05:24 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2565
2566 * device.c (device_full_name): Cast strdup to char *, since AIX
2567 3.2.5 mistakenly declares the function to be const char *.
2568 (device_create_from): Ditto.
2569 (device_create_instance_from): Ditto.
2570 (device_add_property): Ditto.
2571
2572 Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2573
2574 * debug.c (trace_option): For -t all, do not set the
2575 trace_dump_device_tree flag, so that the simulator is run.
2576
2577 Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2578
2579 * Makefile.in (options.o): Depend on defines.h.
2580 (defines.h): New rule, go through config.h and make strings of all
2581 of the #define HAVE_xxx macros.
2582 (distclean): Remove defines.h.
2583
2584 * options.c (print_options): Print whether many of the
2585 configuration macros are defined.
2586
2587 * main.c (main): If -t options and no filename, just print the
2588 options, and don't print the usage message.
2589
2590 Mon Aug 12 18:42:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2591
2592 * configure.in: Test whether /dev/zero works on the system, and if
2593 it does, define HAVE_DEVZERO.
2594 * configure: Regenerate.
2595
2596 * emul_generic.c (emul_add_tree_hardware): Do not add /iobus/disk
2597 if we don't have a working /dev/zero on the system.
2598
2599 * emul_bugapi.c (emul_bugapi_init): If HAVE_DEVZERO is not
2600 defined, don't add disk support.
2601 (emul_bugapi_do_diskio): Ditto.
2602 (emul_bugapi_instruction_call): Ditto.
2603
2604 Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2605
2606 * emul_unix.c (HAVE_TCGETATTR): If HAVE_TERMIOS_STRUCTURE is not
2607 defined, make sure HAVE_TCGETATTR is #undef'ed
2608
2609 Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2610
2611 * std-config.h (REGPARM): Only define REGPARM attributes if using
2612 GNU C. Test for __i686__ in case GCC ever defines it. If not on
2613 a x86 platform, define REGPARM as nothing.
2614
2615 * sim-endian.h (WITH_HOST_BYTE_ORDER): Test for i686 and __i686__
2616 also.
2617
2618 Wed Aug 7 20:19:55 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2619
2620 * ld-decode.h, ld-decode.c: Rename goto_gen to the more correct
2621 goto_switch_gen.
2622 * gen-idecode.c: Ditto.
2623
2624 * gen-idecode.c (print_idecode_table): Comment out check for
2625 switch/table combination until a bug with it is fixed.
2626
2627 * ppc-opcode-goto: New file. Like complex and flat but uses
2628 goto-switch instead of padded-switch for the tables.
2629
2630 * gen-idecode.c (print_goto_switch_name): New function.
2631 (print_goto_switch_table_leaf): New function.
2632 (print_goto_switch_break): New function.
2633 (print_goto_switch_table): New function. Prints a jump table
2634 that can be jumped into instead of a switch statement.
2635
2636 * gen-idecode.c (*switch_*): As an option output a switch that is
2637 implemented using a jump table but only if the switch is not
2638 boolean.
2639
2640 Tue Aug 6 09:28:22 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2641
2642 * configure.in (--enable-sim-{hardware,packages}): Fix typos.
2643 * configure: Regenerate.
2644
2645 * device.c (device_instance_call_method): Fixup format message in
2646 error case. Return 0 in case of error to shut up compiler
2647 warnings.
2648
2649 Wed Aug 7 00:17:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2650
2651 * device_table.c (generic_device_unit_decode): Require a comma
2652 between elements of a unit address.
2653
2654 * device.c (device_tree_print_device): For reg, alternate-reg and
2655 ranges properties use special print functions.
2656 (device_print_ranges_property): Print formatted ranges property.
2657 (device_print_reg_property): Print formatted reg property.
2658
2659 Tue Aug 6 21:35:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2660
2661 * device.c (device_tree_add_parsed): For reg, ranges and
2662 alternate-reg properties use a special parser.
2663 (device_tree_parse_reg_property): New function to parse a reg
2664 property.
2665 (device_tree_parse_ranges_property): New function to parse a
2666 ranges property.
2667 (device_encode_unit): Wrapper for encode_unit callback.
2668 (device_decoce_unit): Wrapper for decode_unit callback.
2669
2670 Wed Jul 31 00:02:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2671
2672 * device_table.h (device_instance_callbacks): Relace the claim and
2673 release methods with a more general table mapping from method-name
2674 to method-function.
2675
2676 * device.c (device_instance_call_method): New function. Implement
2677 the OpenBoot call-method client interface. Attempts to locate the
2678 instances method in the callback table.
2679 (device_instance_claim, device_instance_release): Delete.
2680 Replaced with call-method and a lookup table.
2681
2682 * emul_chirp.c (chirp_emul_call_method): Use the new device
2683 instance call method and let that handle a client claim call.
2684
2685 * hw_htab.c (claim_memory): Wrapper function to call the memory
2686 devices "claim" method using the new device-instance call-method
2687 interface. Replaces the previous direct calls to claim.
2688 (htab_map_region): Use claim_memory.
2689 (htab_init_data_callback): Ditto.
2690
2691 * hw_memory.c (hw_memory_instance_claim): Update function
2692 interface so that it is compatible with call-method.
2693 (hw_memory_instance_release): Ditto.
2694 (hw_memory_instance_methods): New table of memory specific
2695 methods claim and release. Add to the hw_memory_callback
2696 table.
2697
2698 Tue Jul 30 21:26:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2699
2700 * psim.c (psim_init): Back out of change to initial value of
2701 system->last_cpu.
2702
2703 Tue Jul 30 21:12:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2704
2705 * sim_callbacks.h (sim_io_printf_filtered): Replace
2706 printf_filtered with a local simulator specific version. Add
2707 #define printf_filtered to simplify updating of existing code.
2708
2709 * sim_callbacks.h (sim_io_write_stdout, sim_io_read_stdin,
2710 sim_io_write_stderr): New functions. Read / write to the
2711 simulations stdin and stdout and stderr interfaces. Merge in code
2712 from hw_pal that previously handled async I/O.
2713 (sim_io_flush_stdoutput): Rename flush_stdoutput. Add #define
2714 flush_stdoutput to simplify updating of existing code.
2715
2716 * hw_pal.c (scan_hw_pal, write_hw_pal,
2717 hw_pal_instance_write_callback): Use the new sim_io functions.
2718
2719 * main.c: Implement standalone versions of the new sim_io
2720 functions. Include support for async I/O.
2721 * sim_calls.c: Ditto. This time using the gdb callback table.
2722
2723 * std-config.h (CURRENT_STDIO, current_stdio): New macro. Set up
2724 stdio configuration so that it works in the same way as the rest
2725 of the simulation.
2726 * psim.c (psim_create): Initialize current_stdio from the device
2727 tree.
2728 * emul_generic.c (emul_add_tree_options): Enter a default value
2729 for use-stdio in the device tree.
2730
2731 Fri Jul 26 19:43:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2732
2733 * gen-idecode.c (print_jump): Was always generating a jump back to
2734 idecode. Only necessary at tail of semantic code.
2735 (print_jump): Was always setting the processor's cia, even during
2736 startup when the processor was still undefined.
2737 (print_jump): For safety, restart smp loop when cpu_nr >= nr_cpus,
2738 not just equal.
2739
2740 * options.c (print_options): Add printing of WITH_REGPARM and
2741 WITH_STDCALL.
2742
2743 * std-config.h (WITH_REGPARM, WITH_STDCALL): Provide default
2744 (disabled) values if not defined.
2745
2746 Fri Jul 26 00:36:35 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2747
2748 * ppc-cache-rules (cache): Change RS and RB to cache instead of
2749 compute. The block move instructions use them.
2750
2751 * idecode_expression.h (FPSCR_SET): New macro, set specific FPSCR
2752 register.
2753 (CR_FIELD): New macro, extract specific CR register.
2754 (FPSCR_FIELD): New macro, extract specific FPSCR register.
2755
2756 * registers.h (GPR): New macro, simplify accesses to GPR[i].
2757
2758 * bits.c (INSERTED): Covert INSERTED macro into a function.
2759 (EXTRACTED): Conditionally compile on correct bit size macro.
2760
2761 * bits.h (BIT8): New macro, set a single bit in an 8 bit byte.
2762
2763 * ppc-instructions: With hints from Paul Martin, type in missing
2764 some instruction semantics. Leave disabled for the moment.
2765 (Load Multiple Word): Ditto.
2766 (Store Multiple Word): Ditto.
2767 (Load String Word Immediate): Ditto.
2768 (Load String Word Indexed): Ditto.
2769 (Store String Word Immedate): Ditto.
2770 (Store String Word Indexed): Ditto.
2771 (Move to Condition Register from XER): Ditto.
2772 (Move From Condition Register): Ditto.
2773 (Move From FPSCR): Ditto.
2774 (Move to Condition Register from FPSCR): Ditto.
2775 (Move To FPSCR Field Immediate): Ditto.
2776 (Move To FPSCR Fields): Ditto.
2777 (Move To FPSCR Bit 0): Ditto.
2778 (Move To FPSCR Bit 1): Ditto.
2779
2780 Thu Jul 25 22:10:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2781
2782 * std-config.h (SEMANTICS_INLINE): By default, mask out the
2783 inlining of semantic functions from DEFAULT_INLINE. Almost all
2784 configurations call the semantic code via a pointer so there is
2785 little benefit.
2786
2787 * std-config.h (ICACHE_INLINE): Ditto.
2788
2789 Thu Jul 25 20:07:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2790
2791 * configure.in (sim_regparm): Add configuration option for
2792 enabling GCC's regparm attribute.
2793 * (sim_stdcall): Add configuration option for enabling GCC's
2794 stdcall attribute.
2795
2796 * Makefile.in (REGPARM_CFLAGS): Pass regparam configuration onto
2797 compilations.
2798 * (STDCALL_CFLAGS): Pass stdcall configuration onto compilations.
2799
2800 * std-config.h (REGPARM): Extend construction of REGPARM macro so
2801 that it can include __stdcall__ function attribute.
2802
2803 Wed Jul 24 19:04:20 1996 Andrew Cagney <cagney@sawnoff>
2804
2805 * options.c (print_options): Include SUPPORT_INLINE in information
2806 dump.
2807
2808 * gen-idecode.c (print_run_until_stop_body): Only generate loop
2809 termination test if creating idecode_run_until_stop. Push the
2810 loop termination test back into each alternative branch.
2811
2812 Wed Jul 24 15:47:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2813
2814 * gen-icache.c (print_icache_function): Have the cache function
2815 always update the cache_entries semantic and address fields.
2816
2817 * gen-idecode.c (print_idecode_switch_illegal): Include a break
2818 when generating illegal instructions. This was commented out
2819 which is a hangover from looking a at switch statements generated
2820 using indirect jumps.
2821
2822 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2823
2824 * igen.c (print_my_defines): Replaces print_define_my_index.
2825 Print both a definition for MY_INDEX and MY_PREFIX.
2826 * gen-icache.c (print_icache_function): Adjust.
2827 * gen-idecode.c (print_jump_insn): Adjust.
2828 * gen-semantics.c (print_c_semantic): Adjust.
2829
2830 * gen-support.c (gen_support_h): Add optional include to created
2831 support.h so that, like cpu, it is optionally inlined for all
2832 modules that include it.
2833 * inline.h, inline.c: Adjust so that support.[hc] is handled the
2834 same as cpu.[hc].
2835
2836 * idecode_fields.h (LABEL, GOTO): Macro's that create a unique
2837 name for a lable and then branch to it.
2838
2839 * ppc-instructions (convert_to_integer, Floating Round to
2840 Single-Precision, Floating Convert from Integer Doubleword): Use
2841 LABEL and GOTO instead of the recently added switch statements.
2842
2843 Wed Jul 24 14:02:42 1996 Andrew Cagney <cagney@sawnoff.highland.com.au>
2844
2845 * gen-idecode.c (print_run_until_stop_body): Too many rparen in
2846 generated code.
2847
2848 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2849
2850 * configure.in (--enable-sim-line-nr): Typo - sim_line-nr.
2851 * (--enable-sim-inline): Reorder patern matching of arguments so
2852 that SUPPORT=ALL_INLINE is reconized as *=* and not *_INLINE.
2853
2854 * configure: rebuild.
2855
2856 Mon Jul 22 23:25:08 1996 Andrew Cagney <cagney@highland.com.au>
2857
2858 * configure.in (--enable-sim-hardware, --enable-sim-packages): New
2859 configuration options. Let the user specify the packages or
2860 hardware devices that are to be included in the build. Makes it
2861 possible for user packages to be specified.
2862
2863 * Makefile.in (tmp-pk, tmp-hw): Just use the list of packages and
2864 hardware instead of checking it using ls. configure.in should
2865 have taken care of any problems.
2866 (HW_SRC, HW_OBJ, PACKAGE_SRC, PACKAGE_OBJ): Set by configure.
2867
2868 Mon Jul 22 22:38:59 1996 Andrew Cagney <cagney@highland.com.au>
2869
2870 * psim.c (psim_options): Enter the argument to the memory size
2871 option directly into the device tree. Was using atol() which is
2872 dangerously non portable.
2873
2874 Mon Jul 22 22:17:08 1996 Andrew Cagney <cagney@highland.com.au>
2875
2876 * configure.in (icache): Extend icache flag to include an insn
2877 option. If specifyed the insn - aka instruction - is included in
2878 the instruction cache. Make this the default.
2879 * configure: re-generate.
2880
2881 * igen.c (main), igen.h: Add option -S - inSn - for specifying
2882 that the instruction should be included in the icache.
2883
2884 * gen-icache.c (print_icache_body): If enabled, output code to put
2885 the instruction into the icache.
2886 (print_icache_struct): If enabled, add insn to the icache struct.
2887
2888 Mon Jul 22 20:46:12 1996 Andrew Cagney <cagney@highland.com.au>
2889
2890 * Makefile.in (BUILD_CFLAGS): Include -g when building the
2891 generators.
2892
2893 Mon Jul 22 20:00:25 1996 Andrew Cagney <cagney@highland.com.au>
2894
2895 * emul_generic.c (emul_add_tree_options): Was incorrectly setting
2896 the strict-alignment option when hardwired for non-strict
2897 alignment.
2898
2899 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2900
2901 * gen-semantics.c: Make the my_index variable a macro MY_INDEX.
2902
2903 * ppc-instructions: Adjust so that references are to MY_INDEX and
2904 not my_index.
2905
2906 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2907
2908 * gen-idecode.c: Output the complete run_until_stop function
2909 instead of just the code to handle a single instruction issue.
2910 * : Have the generated idecode.c include inline.c (instead of psim.c).
2911
2912 * std-config.h: Change psim.c so that it isn't inlined (as this is
2913 no longer needed).
2914
2915 * psim.c (run_until_stop): Delete the old run_until_stop function
2916 instead calling the idecode_run and idecode_run_until_stop
2917 functions that gen-idecode.c is now creating.
2918
2919 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2920
2921 * dgen.c: Maintenance - update to use new features found in lf.c.
2922
2923 * filter_filename.c (filter_filename): Maintenance - make the
2924 string constant.
2925
2926 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2927
2928 * debug.c (TRACE, ITRACE, DTRACE): Have GCC instead of CPP
2929 eliminate trace statements.
2930
2931 * debug.c: Change trace format so that it is consistent
2932 (file:line-nr) with CC's error output.
2933
2934 * gen-itable.c (itable_c_insn): Add the source file name and
2935 source line number to the instruction's informational entry.
2936
2937 * debug.c (ITRACE): Use the itable (and my_index) to get the
2938 current instructions name and source line number.
2939
2940 * gen-semantics.c, gen-icache.c: Adjust generated ITRACE calls to
2941 match new interface.
2942
2943 * emul_bugapi.c (emul_bugapi_instruction_call): Adjust
2944 corresponding call to ITRACE so that it still matches.
2945
2946 * idecode_expression.h (ALU_END, CR0_COMPARE): Use TRACE instead
2947 of ITRACE. The CPP line directives would have previously set the
2948 line-nr and file name so ITRACE isn't needed.
2949
2950 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2951
2952 * gen-idecode.c (print_jump_until_stop_body): New function and
2953 idecode generation option. Instead of generating and calling
2954 separate functions containing the semantic and icache code
2955 generate a single monolythic function and use goto's (and GCC's
2956 indirect jump) to move between code blocks.
2957
2958 * Makefile.in: Add sim_jump flag to those passed to igen.
2959
2960 * configure.in: New option --enable-sim-jump (default disabled)
2961
2962 * ppc-instructions: Eliminate any uses of labels and goto's.
2963 These result in duplicate declarations when a single flat function
2964 is being create.
2965
2966 * ppc-opcode-jump: New file. Set of opcode rules useful when
2967 testing jumping idecodes.
2968
2969 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2970
2971 * gen-idecode.c: Optionally include the semantic code for an
2972 instruction in the function that is doing the decoding.
2973
2974 * igen.c: Add option (-C) to generate semantics in the instruction
2975 decode functions.
2976
2977 * configure.in (--enable-sim-icache): Accept an option list such
2978 as 1024,define. Add a new choice to the list - semantic - which
2979 will cause igen to generate instruction decode functions that
2980 include the corresponding semantic code.
2981
2982 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2983
2984 * configure.in: New option --enable-sim-line-nr (default enabled).
2985 Enable/disable the inclusion of CPP line directives in the
2986 generated files. Such directives refer back to the source files
2987 used when generating the simulator code.
2988
2989 * Makefile.in (sim_line_nr): Pass to igen.
2990
2991 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2992
2993 * igen.c (main): Revamp the options so that more letters are
2994 available.
2995
2996 * configure.in: Adjust to match igen's revamped options
2997
2998 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2999
3000 * Makefile.in (pk.h, hw.h): Rewrite depenencies for hw.h (etc) so
3001 that they use the same technique as igen (ie a dummy targets
3002 tmp-pk and tmp-hw are created).
3003
3004 Mon Jun 24 22:28:00 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3005
3006 * Makefile.in (BUILD_CFLAGS): Include WARNING_CFLAGS.
3007
3008 Wed Jun 19 21:45:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3009
3010 * ld-cache.[hc], ld-decode.[hc], ld-insn.[hc]: New files. Separate
3011 out the loading of each of the tables from the rest of igen.
3012 * Makefile.in: Adjust.
3013 * igen.c: Adjust.
3014
3015 * gen-icache.[hc], gen-idecode.[hc], gen-itable.[hc],
3016 gen-model.[hc], gen-semantics.[hc]: New files. Separate out the
3017 code creating each separate set of generated files.
3018 * Makefile.in: Adjust.
3019 * igen.c: Adjust.
3020
3021 * gen-support.[ch]: New files. Output the support functions (found
3022 in the ppc-instructions file) into a separate file.
3023 * Makefile.in: Add.
3024 * inline.h, inline.c: Add.
3025 * std-config.h: Add.
3026
3027 * ld-cache.c: Re-design the cache table format.
3028 * ppc-cache-rules: Update to new format.
3029
3030 * ld-decode.c: Re-design the decode table format.
3031 * ppc-opcode-simple: Update to new format
3032 * ppc-opcode-complex: Ditto
3033 * ppc-opcode-flat: Ditto
3034
3035 * filter.h, filter.c: New files. Separate the opcode filter table
3036 reading code from the rest of igen.c. Re-design the filter so that
3037 it works inclusivly not exclusivly.
3038 * igen.c: Remove the opcode filter table loading code.
3039 * Makefile.in (filter.o): Adjust
3040 * configure.in: Adjust filter flag so that default includes 32bit
3041 and floating point.
3042 * ppc-instructions: Clean up filter fields so that only in use
3043 entries are specified (ie delete `be').
3044
3045 * misc.c (name2i, i2name): New function. Map between a string and
3046 an integer value.
3047
3048 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3049
3050 * sim_calls.c (sim_close): If simulator not created, skip printing
3051 of run information.
3052
3053 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3054
3055 * registers.c (register_description): Typo, insns not insn.
3056
3057 * ppc-instructions (model_get_number_of_stalls): New model function,
3058 returns number of stalls for the specified processor.
3059 * psim.c (psim_read_register): Add call to new function
3060 model_get_number_of_stalls().
3061
3062 * ppc-instructions (model_get_number_of_cycles): New model function,
3063 returns number of stalls for the specified processor.
3064 * psim.c (psim_read_register): Add call to new function
3065 model_get_number_of_cycles().
3066
3067 Fri Jun 14 00:11:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3068
3069 * device_table.h: Don't pass the parent device into a devices
3070 create function. This makes the create function consistent with
3071 the documentation.
3072 * device.c (device_template_create_device): Ditto
3073 * hw_pal.c (hw_pal_create): Ditto
3074 * hw_core.c (hw_core_create): Ditto
3075 * hw_vm.c (hw_vm_create): Ditto
3076 * hw_disk.c (hw_disk_create): Ditto
3077 * hw_nvram.c (hw_nvram_create): Ditto
3078 * hw_memory.c (hw_memory_create): Ditto
3079 * hw_cpu.c (hw_cpu_create): Ditto.
3080
3081 * device.c (split_find_device): Allow a null initial parent device.
3082 (device_template_create_device): Ditto.
3083
3084 * device.c (device_create_from): Make local (static) only used
3085 within device.c.
3086 * device_table.h: typedef device_callbacks moved here (from
3087 device.h) where it belongs.
3088
3089 * hw_core.c: New file. Implements just the core device using the
3090 core object.
3091
3092 * corefile.c: Moved all core device functions into the new
3093 hw_core.c file. core_device_create() disapears.
3094
3095 * psim.c (psim_tree): Use device_tree_add_parsed() to create the
3096 core device.
3097
3098 Thu Jun 13 00:09:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3099
3100 * hw_init.c: Correct typo in comment.
3101
3102 * corefile.c (core_init): Remove any remaining references to a
3103 default map.
3104 (core_map_find_mapping): Ditto.
3105
3106 Wed Jun 12 22:30:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3107
3108 * corefile.c (core_init): Make function global so that other
3109 devices are able to use the full core object.
3110
3111 * corefile.c (core_create, core_from_device): Break core_create
3112 into two functions. The first creates a core object, the second
3113 returns the core object associated with a core device.
3114
3115 * corefile.c (core_device_create): Use core_create to make the
3116 core object.
3117
3118 * psim.c (psim_create): Use core_from_device() instead of
3119 core_create().
3120
3121 * device.c (device_template_create_device): Make static as only
3122 needed by functions internal to device.c.
3123
3124 Fri Jun 7 23:47:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3125
3126 * ppc-opcode-test-2: Remove description of fields.
3127 * ppc-opcode-complex: Ditto
3128 * ppc-opcode-flat: Ditto
3129 * ppc-opcode-simple: Ditto
3130 * ppc-opcode-stupid: Ditto
3131 * ppc-opcode-test-1: Ditto
3132 * ppc-cache-rules: Ditto
3133
3134 * igen.c: Add description of files as a comment at the front.
3135
3136 Wed Jun 26 12:50:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3137
3138 * configure.in: Check for whether the termios and termio
3139 structures are really defined, and whether or not, they define the
3140 c_line field.
3141 * configure: Regenerate.
3142
3143 * Makefile.in ({,TERMIO_}CFLAGS): Add TERMIO_CFLAGS options set by
3144 configure.
3145
3146 * emul_unix.c: Various changes to allow for building on systems
3147 with different termio and termios structures. If host has both
3148 termio and termios, just use termios. No longer include
3149 sys/ioctl.h.
3150
3151 Wed Jun 26 12:26:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
3152
3153 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
3154 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
3155 (docdir): Removed.
3156 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
3157 (AC_PROG_INSTALL): Added.
3158 * configure: Rebuilt.
3159
3160 Wed Jun 5 23:53:42 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3161
3162 * corefile.h: Rewrite documentation so that it can be extracted and
3163 converted into texinfo (and hence ready for translation into html,
3164 tex or nroff).
3165 * device.h: Ditto
3166
3167 Thu Jun 6 09:52:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3168
3169 * hw_disk.c (SEEK_SET): If SEEK_SET is not defined, define as 0.
3170
3171 Wed Jun 5 11:46:52 1996 Andrew Cagney <cagney@puddin>
3172
3173 * hw_disk.c: Include <unistd.h> if available. Under SunOS, that
3174 is the source of SEEK_SET.
3175
3176 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3177
3178 * psim.c (psim_options): Correct type of dummy arguments being
3179 passed to a device_ioctl call.
3180
3181 * hw_init.c (hw_data_init_data_callback): Adjust printf arguments.
3182 (write_stack_arguments): Ditto.
3183 * hw_trace.c: Instance callback entry no longer a table.
3184
3185 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3186
3187 * emul_unix.c (do_unix_umask): Cast printf argument.
3188 (convert_to_linux_termios): Use LINUX_VSWTC not LINUX_VSWCH
3189
3190 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3191
3192 * hw_init.c (update_for_binary_section): Abort if we find an
3193 .interp section, which indicates the need for shared libraries to
3194 be loaded.
3195
3196 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3197
3198 * emul_unix.c (do_unix_{time,gettimeofday,getrusage}): Add support
3199 for time, gettimeofday, and getrusage system calls.
3200 ({solaris,linux}_descriptors): Add new system calls.
3201 (do_get{,e}{uid,gid}): Use gid_t/uid_t types.
3202 (do_get{,p}pid): Use pic_t types.
3203
3204 * configure.in (AC_TYPE_{GETGROUPS,SIGNAL}): Define.
3205 (AC_TYPE_{MODE,OFF,PID,SIZE,UID}_T): Define.
3206 * config{.in,ure}: Regenerate.
3207
3208 Mon Jun 3 23:19:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3209
3210 * emul_netbsd.c (emul_netbsd_create): Use the more specific names
3211 `ppc-elf' and `ppc-xcoff' for the stack-type.
3212 * emul_unix.c (emul_unix_create): Ditto.
3213 * emul_bugapi.c (emul_bugapi_create): Ditto.
3214 * hw_init.c: Reconize the new names.
3215
3216 * emul_unix.c (do_unix_break): Adjust so that the updated ioctl
3217 call is used (no system parameter).
3218
3219 Sun Jun 2 11:21:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3220
3221 * emul_unix.{h,c}: New files to provide Solaris and Linux system
3222 call emulations.
3223
3224 * Makefile.in (LIB_{SRC,OBJ}): Add emul_unix.{c,o}.
3225 (os_emul.o): Depend on emul_unix.h.
3226 (emul_unix.o): New dependency.
3227
3228 * configure.in (--enable-sim-alignment): Add 0|default to mean set
3229 alignment to 0, which means use appropriate alignment for mode.
3230 (AC_CHECK_FUNCS): Add new functions needed by emul_unix.c.
3231 (AC_CHECK_HEADERS): Add new include files needed by emul_unix.c.
3232 * config.in: Regenerate.
3233 * configure: Regenerate.
3234
3235 * emul_generic.c (emul_write2_status): New function to return
3236 results in r3 and r4 for Solaris system calls.
3237 (emul_do_system_call): If the system call is not support, but
3238 there is a string for the system call name, print out the string
3239 instead of the system call number.
3240
3241 * emul_generic.h (emul_write2_status): Declare it.
3242
3243 * emul_netbsd.c: Use /* */ around comment on #endif.
3244
3245 * os_emul.c: Include emul_unix.h.
3246 (os_emulations): Add emulations for Solaris, and Linux.
3247
3248 * psim.c (psim_usage): Add message about solaris, linux
3249 emulations.
3250
3251 Thu May 30 00:00:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3252
3253 * hw_iobus.c: Tidy up notes so that they can be auto-extracted.
3254
3255 * README: Correct PSIM's title
3256
3257 Wed May 29 23:50:26 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3258
3259 * basics.h: New global type object_disposition, used to indicate
3260 the status of objects when things are restarted.
3261
3262 Fri May 17 17:28:52 1996 Andrew Cagney <cagney@benjimen.highland.com.au>
3263
3264 * device_table.h: Change the interrupt descriptor structure so
3265 that it includes an additional member - an upper bound on the
3266 interrupts by that name.
3267
3268 * device.c (device_interrupt_decode): Allow a range of interrupt
3269 ports (eg rst0 .. rst6) if the port descriptors bound is non zero.
3270
3271 * device.c (device_tree_print_device): Include a list of valid
3272 interrupt ports when listing supported devices.
3273
3274 * device.h, device.c (device_child_interrupt_*): Delete. Not used.
3275
3276 * emul_generic.c (emul_add_tree_hardware): Modify the creation of
3277 the interrupt net so that it uses int0 .. intN.
3278
3279 Tue May 14 23:03:53 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3280
3281 * device.h, device.c (device_ioctl): Drop the system argument.
3282 Devices can not obtain this using the device_system() call.
3283 * device_table.h: Adjust accordingly.
3284 * hw_*.c: Adjust accordingly.
3285 * emul_netbsd.c (do_break): Adjust call to vm device accordingly.
3286 * psim.c (psim_options): Use a device_ioctl call to force the
3287 hw_trace device to update the trace options.
3288 * hw_trace.c: Replace the init function with an ioctl call. Adjust
3289 doc accordingly.
3290
3291 * psim.c (psim_init): Re-order initialization so that the
3292 os-emulation is initialized after the device tree. Without this,
3293 os-emul's are not able to create instances or access properties
3294 that contain an instance handle.
3295
3296 * device.h, device.c (device_add_*_property): Make these functions
3297 internal to device.c. The user has access to the more generic
3298 device_tree_add_parsed function. Differentiate between the initial
3299 and current value for each property.
3300 * (clean_device_properties): New function that deletes any
3301 properties created after the start of a simulation and restores
3302 the initial value of any others (ignoring ihandles).
3303 * (init_device_properties): (Re)Initialize any properties that
3304 contain ihandles. create
3305
3306 * (device_tree_init): Include calls to clean the device tree's
3307 properties and then initialize them. Document this in the device.h
3308 file.
3309
3310 Mon May 6 17:36:15 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3311
3312 * interrupts.c (decrementer_interrupt): Always pend a decrementer
3313 interrupt even if it is not yet possible to deliver it.
3314
3315 Wed May 1 12:26:51 1996 Andrew Cagney <cagney@benjimen>
3316
3317 * mon.h, mon.c (mon_get_number_of_insns): Make this externally
3318 visable adjusting the arguments so that the interface is correct.
3319 (mon_print_info): Adjust calls.
3320
3321 * registers.h, registers.c (register_description): Add phony
3322 cycle, insn and stall registers.
3323
3324 * psim.c (psim_read_register): Return nr of instructions for given
3325 processor.
3326
3327 Tue Apr 30 22:09:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3328
3329 * hw_htab.c: New file. Extract contents from disk_table.c.
3330 Contains a device that, during initialization will create a
3331 PowerPC htab in memory.
3332 * hw_register.c: New file. Extract contents from disk_table.c.
3333 Contains a device that, during initialization, will parse its
3334 property list and use that to initialize various processor
3335 registers (not target specific).
3336 * hw_vm.c: New file. Extract contents from disk_table.c. Contains
3337 a device that handles accesses to invalid virtual memory addresses
3338 (in user mode).
3339 * hw_init.c: New file. Extract contents from disk_table.c. Misc
3340 devices that can initialize memory from a file.
3341 * hw_trace.c: New file. Extract contents from disk_table.c.
3342 Configure trace options from property values.
3343
3344 * Makefile.in (hw_htab.o, hw_register.o, hw_vm.o, hw_init.o,
3345 hw_trace.c): Add new device files.
3346
3347 * device_table.c: Remove above code, now in separate independant
3348 files.
3349
3350 Fri Apr 26 00:00:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3351
3352 * hw_disk.c: New file. Disk and CDROM device.
3353
3354 * Makefile.in (hw_disk.o): Add device hw_disk.c.
3355
3356 * pk_disklabel.c: New file. Implement the miss-named disk-label
3357 package.
3358
3359 * Makefile.in (pk.h): Create the file pk.h that contains a list of all
3360 the packages.
3361
3362 * Makefile.in (hw.h, hw.c): Add dependancy on Makefile so that
3363 they are re-created when the makefile is updated.
3364
3365 * emul_generic.c (emul_add_tree_hardware): Add a disk device
3366 (below the iobus) to the device tree. Include an ihandle of
3367 the disk as /chosen/disk.
3368
3369 * emul_bugapi.c (emul_bugapi_create): Don't initialize the input,
3370 output and (new) disk handles yet.
3371 * (emul_bugapi_init): Initialize the input, output (and just added)
3372 disk ihandles here.
3373 * (emul_bugapi_do_diskio): New. Performs disk i/o (well at least
3374 what I think the behavour is).
3375 * emul_bugapi.c (emul_bugapi_instruction_call): Add hook to disk
3376 i/o bug call. For RETURN call, exit using gpr[3]'s status even
3377 though this isn't part of the spec - makes it possible for machine
3378 code to signal the aporting of a simulation run.
3379
3380 * emul_chirp.c (chirp_emul_call_method): Add support for the
3381 claim/release methods.
3382 * (chirp_emul_exit): Add an optional exit status argument to
3383 the exit method. Makes it possible for chirp emul simulations
3384 to abort upon an error.
3385 * device.h, device.c (device_instance_claim,
3386 device_instance_release): New methods for claiming and releasing
3387 memory.
3388 * hw_memory.c: add claim and release memory methods.
3389 * hw_*: Use the claim memory method when allocating physical
3390 memory.
3391
3392 Thu Apr 18 23:38:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3393
3394 * hw_nvram.c (hw_nvram_update_clock): Use the current not previous
3395 time when updating the clock.
3396
3397 * hw_nvram.c: Tidy up documentation
3398
3399 Fri May 24 10:08:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3400
3401 * configure.in (AC_STRUCT_ST_{BLKSIZE,BLOCKS,RDEV}): Use these
3402 macros to determine whether or not the appropriate st_<xxx> fields
3403 exist in the stat structure.
3404 (AC_CHECK_FUNCS): Check for all unix system calls used, except for
3405 the real basic ones like open, read, write, etc.
3406 * config{.in,ure}: Regenerate.
3407
3408 * emul_netbsd.c: Add support for missing system calls, and/or
3409 missing stat fields.
3410 (MAXPATHLEN): Undefine if including unistd.h, since sys/param.h
3411 might define it.
3412
3413 * hw_pal.c (WITH_STDIO): Redefine if O_NDELAY, F_GETFL, or F_SETFL
3414 are not defined.
3415 (scan_hw_pal): Do not cause syntax error if O_NDELAY, F_GETFL, or
3416 F_SETFL not defined.
3417
3418 Tue May 21 17:24:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3419
3420 * emul_netbsd.c (write_stat): Don't convert st_blocks unless the
3421 host is netbsd.
3422
3423 Thu May 16 10:56:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3424
3425 * configure.in (AC_CHECK_HEADERS): Add sys/ioctl.h.
3426 * config{.in,ure}: Regenerate.
3427 * emul_netbsd.c: If HAVE_SYS_IOCTL_H is not defined, don't include
3428 sys/ioctl.h.
3429
3430 Tue May 7 17:28:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3431
3432 * hw_pal.c (hw_pal_instance_read_callback): Remove unused
3433 variable.
3434
3435 * misc.c ({,target_}a2i): Rewrite to not use strtoul.
3436
3437 * Makefile.in ({spreg,misc}.o): Add dependency on .c file.
3438 ({i,d}gen): Don't link in liberity. Use BUILD_LIBS instead of
3439 LIBS.
3440
3441 Mon May 6 11:31:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3442
3443 * hw_pal.c (hw_pal_instance_read_callback): If using stdio, use
3444 fgets to read line. If not using stdio, do a simple blocking read
3445 of len bytes.
3446
3447 Fri May 3 15:07:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3448
3449 * Makefile.in: Correctly build simulator for build machine != host
3450 machine.
3451
3452 Tue Apr 30 18:46:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3453
3454 * configure.in (--enable-hostendian): Rework so the default uses
3455 the AC_C_BIGENDIAN results. Only run AC_C_BIGENDIAN if not cross
3456 compiling.
3457 * configure: Regenerate.
3458
3459 * sim-endian.h: Add more tests for host endian to support more
3460 platforms in a cross compilation environment.
3461
3462 Wed Apr 17 14:38:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3463
3464 * hw_pal.c ({scan,write}_hw_pal): If WITH_STDIO == DO_USE_STDIO,
3465 use stdio, instead of unpended read/printf_filtered.
3466 (hw_pal_instance_write_callback): If WITH_STDIO == DO_USE_STDIO,
3467 flush stdout after writing the characters.
3468
3469 * options.c (print_options): Print out WITH_STDIO.
3470
3471 * Makefile.in (STDIO_CFLAGS): Pass on result of @sim_stdio@
3472 configuration variable.
3473 (CONFIG_CFLAGS): Include STDIO_CFLAGS.
3474 (hw.{c,h}): Allow for source dir != build dir, and for HW_SRC
3475 files to contain directory pieces.
3476
3477 * std-config.h (DO{,NT}_USE_STDIO): New flags for whether we
3478 should use stdio for console input.
3479 (WITH_STDIO): If not defined, define as DONT_USE_STDIO.
3480
3481 * configure.in (--enable-sim-stdio): Add new switch to control
3482 whether stdio is used for console I/O.
3483 * configure: Regenerate.
3484
3485 * interrupts.c (external_interrupt): Declare it to be
3486 INLINE_INTERRUPTS, not INLINE_CPU.
3487
3488 Mon Apr 15 23:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3489
3490 * events.c (insert_event_entry): Allow events to be scheduled
3491 *NOW* (at delta time 0). Add assertions to clarify behavour of
3492 event queue.
3493
3494 * events.c (update_time_from_event): New function. Calculates the
3495 number of ticks from the next event. Use this.
3496
3497 Sun Apr 14 21:39:45 1996 Andrew Cagney <cagney@highland.com.au>
3498
3499 * emul_netbsd.c (do_break): Return 0 if success (instead of
3500 adjusted break).
3501
3502 * device_table.c (vm_ioctl_callback): Don't return adjusted break
3503 (isn't needed).
3504
3505 Sun Apr 14 21:32:41 1996 Andrew Cagney <cagney@highland.com.au>
3506
3507 * device_table.h: Change type of the device ioctl so that it
3508 returns an int (status).
3509 * device.h (device_ioctl): Ditto.
3510 * device.c (device_ioctl): Ditto.
3511
3512 * device_table.c (stack_ioctl_callback): Return 0 status.
3513 (vm_ioctl_callback): Ditto
3514
3515 Sat Apr 13 00:00:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3516
3517 * emul_netbsd.c (do_read): Correctly set the return value.
3518 (do_getpid): Ditto.
3519 (do_getuid): Ditto.
3520 (do_geteuid): Ditto.
3521 (do_dup): Ditto.
3522 (do_getegid): Ditto.
3523 (do_getgid): Ditto.
3524 (do_sigprocmask): Ditto.
3525 (do_umask): Ditto.
3526 (do_dup2): Ditto.
3527 (do_gettimeofday): Ditto.
3528 (do_getrusage): Ditto.
3529 (do_fstat): Ditto.
3530 (do_stat): Ditto.
3531 (do_lseek): Ditto.
3532 (do___sysctl): Ditto.
3533
3534 Fri Apr 12 20:56:47 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3535
3536 * device_table.c (vm_ioctl_callback): Don't access the processor
3537 registers directly, instead leave it to the caller to handle this.
3538
3539 * emul_netbsd.c (do_break): Which calls vm_ioctl_callback to
3540 perform a break. Pass in the new break value and set the
3541 registers according to the result.
3542
3543 * emul_generic.c (emul_write_status): Change so that r3 contains
3544 either status or errno and failure is indicated by SO.
3545
3546 Thu Apr 4 23:03:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3547
3548 * emul_bugapi.c (emul_bugapi_create): More strict check of OEA
3549 address.
3550
3551 Thu Apr 4 20:58:05 1996 Andrew Cagney <cagney@highland.com.au>
3552
3553 * interrupts.h (interrupts): New structure contains state of
3554 pending interrupts.
3555
3556 * cpu.c (cpu_interrupts): New function. Pending interrupt status
3557 in the cpu and grant access to it. Add interrupts to cpu
3558 structure.
3559
3560 Fri Mar 29 22:09:25 1996 Andrew Cagney <cagney@highland.com.au>
3561
3562 * device.c (device_tree_add_parsed): Check that the creation of a
3563 device instance worked before using it.
3564
3565 * psim.c (psim_halt): Remove cia argument from psim_halt. This
3566 function does not save the CIA so do not pass it in.
3567
3568 Fri Mar 29 21:30:56 1996 Andrew Cagney <cagney@highland.com.au>
3569
3570 * hw_pal.c (hw_pal): Merge the halt and icu and console devices
3571 found in device_table.c into a single hack pal.
3572
3573 * device_table.c (halt, icu, console): Delete.
3574
3575 * Makefile.in (hw_pal.o): New dependency.
3576
3577 * emul_generic.c (emul_add_tree_hardware): Re-arange device tree
3578 so that it uses the pal instead of the icu/halt/console devices.
3579 Wire the pal's interrupt ports up to the cpu nodes.
3580
3581 Fri Mar 29 20:17:17 1996 Andrew Cagney <cagney@highland.com.au>
3582
3583 * hw_iobus.c (hw_iobus_attach_address_callback): Move from
3584 device_table.c to here.
3585
3586 * Makefile.in (hw_iobus.o): New dependency.
3587
3588 Fri Mar 29 12:17:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3589
3590 * emul_bugapi.c (_os_emul_data): Add fields for output, input.
3591 (emul_bugapi_create): Create input, output from /chosen/stdin and
3592 /chosen/stdout.
3593 (emul_bugapi_do_{read,write}): Switch to use device_instance
3594 interface.
3595 (emul_bugapi_instruction_call): Change calls to
3596 emul_bugapi_do_{read,write} to pass device instance argument.
3597
3598 Tue Mar 26 14:57:58 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3599
3600 * igen.c (idecode_switch_end): Fix 2/26 change so that an extra
3601 default is not written out if a default was already written.
3602
3603 * psim.c (psim_{read,write}_register): Use sizeof unsigned_8 to
3604 size cooked_buf, not sizeof natural_word, since floating point
3605 registers are 8 bytes.
3606
3607 Mon Mar 25 22:07:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3608
3609 * configure: Regenerate with autoconf 2.9.
3610
3611 Thu Mar 21 00:14:26 1996 Andrew Cagney <cagney@highland.com.au>
3612
3613 * device_table.h: Always include string headers.
3614
3615 Thu Mar 21 00:06:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3616
3617 * main.c (error): Be careful to not try to print out statistics
3618 when the simulation was never created.
3619
3620 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3621
3622 * basics.h: Move the event queue's definition to here so that it
3623 can be refered to globally with out importing all of events.h.
3624
3625 * psim.h, psim.c (psim_event_queue): New function. Grant access
3626 to the simulation event queue. Will make this the single point of
3627 access (there is after all only one event queue in the
3628 simulation).
3629
3630 * cpu.c (cpu_create): Use psim_event_queue to obtain the event
3631 queue instead of it being passed in. No longer allow access to
3632 the cpu's copy of the event queue.
3633
3634 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3635
3636 * events.h, events.c (event_handler): Remove event_queue from
3637 arguments passed to an event handler. That argument is redundant
3638 - the `data' should refer to a data structure that contains the
3639 event queue if queing is needed.
3640
3641 * cpu.c (cpu_decrement_event): adjust
3642
3643 * events.c (event_queue_process): adjust
3644
3645 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3646
3647 * device.h, device.c (device_system): New, returns a handle for
3648 the system given the device.
3649
3650 * device.c (device_address_init): Store a pointer back to the
3651 system in each devices node.
3652
3653 * device_table.h: Don't pass `system' into each device when it is
3654 being initialized, this is now available using device_system(me).
3655
3656 * device.c (device_address_init, device_data_init): Adjust.
3657
3658 * hw_cpu.c, hw_nvram.c, hw_memory.c, hw_eeprom.c, device_table.c:
3659 Adjust.
3660
3661 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3662
3663 * interrupts.c (decrementer_interrupt, external_interrupt):
3664 Remember that an interrupt wasn't delivered so that it can be
3665 tried again later.
3666
3667 * interrupts.c (check_masked_interrupt): New function. (re)
3668 checks for the posibility that a recent change to the MSR may have
3669 made it possible to deliver an interrupt that was previously
3670 masked be the EE bit.
3671
3672 * ppc-instructions (mtmsr, mfmsr, rfi): Check for posibility of
3673 a pending interrupt being delivered using check_masked_interrupt().
3674
3675 * cpu.c (cpu_decrement_event): Just call decrementer_interrupt()
3676 leaving it to that module to handle both interrupt synchronization
3677 and masking.
3678
3679 * cpu.c (struct _cpu): remove variables that were going to record
3680 pending decrementer and external interrupts.
3681
3682 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3683
3684 * hw_cpu.c, hw_cpu.h: New files. Implement a device that sits
3685 between the interrupt controller and the simulators internal
3686 processor model. Maps device interrupts onto the processor
3687 interrupt function calls.
3688
3689 Mon Mar 4 06:06:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3690
3691 * hw_nvram.c: NVRAM device that includes a real-time clock that is
3692 updated each second.
3693
3694 Mon Mar 4 04:18:50 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3695
3696 * device.h (attach_type): Remove attach_default type address
3697 spaces. Will replace with levels of callback memory.
3698
3699 * corefile.h, corefile.c (new_core_mapping), corefile.c
3700 (core_map_attach): Replace default attach with a layerd callback
3701 approach.
3702
3703 Sun Mar 3 03:58:46 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3704
3705 * device.c (split_property_specifier): ensure that only a single
3706 property is found.
3707 (split_value): New function, parses the value part of a device
3708 spec.
3709
3710 * device.c (device_tree_add_parsed): Use the interrupt conversion
3711 functions to determine the interrupt port numbers.
3712
3713 * device_table.h: Add table that maps between an interrupts
3714 symbolic name and its port number.
3715
3716 * device.h, device.c (device_interrupt_decode,
3717 device_interrupt_encode): new functions use the recently added
3718 interrupt port name/number tables to perform conversion.
3719
3720 Sun Mar 3 03:23:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3721
3722 * device.h, device.c (device_set_array_property,
3723 device_set_boolean_property, device_set_ihandle_property,
3724 device_set_integer_property, device_set_string_property): New
3725 functions - allow the value of a given property to be changed.
3726
3727 * device.h, device.c: Re-order declaration and definition of
3728 property functions.
3729
3730 Sun Mar 3 03:10:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3731
3732 * device.c (device_tree_print_device, device_tree_add_parsed):
3733 Remove references to phandle properties.
3734
3735 Wed Feb 28 00:43:07 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3736
3737 * Makefile.in (corefile.o): missing dependency on device_table.h
3738 etc.
3739
3740 Tue Feb 27 23:59:35 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3741
3742 * device_table.h: Revamp device init callbacks so that they are a
3743 sub structure.
3744 * device.c (device_init_data, device_init_address): If an init
3745 callback is NULL assume it should do nothing.
3746 * device_table.c (ignore_device_init, unimp_device_init): delete
3747 as redundant.
3748 * device_table.c, hw_memory.c: adjust.
3749
3750 * (io): ditto.
3751 * (dma): ditto.
3752 * (device_instance): ditto.
3753 * (ioctl): ditto.
3754 * (address nee config_address): ditto.
3755 * (interrupt): ditto.
3756
3757 Mon Feb 26 21:11:20 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3758
3759 * igen.c (idecode_switch_end): Output a default entry when the
3760 switch statement is perfect. Firstly stops GCC complaining about
3761 an incomplete switch and secondly it will be eliminated by a good
3762 compiler any way.
3763
3764 Mon Feb 26 22:47:15 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3765
3766 * Makefile.in (hw.h, hw.c): New targets. Create from the list of
3767 hw_*.c files. hw.h declares a device descriptor table for each hw
3768 device while hw.c lists those tables in a form suitable for the
3769 construction of a top leveltable in device_table.c.
3770
3771 * Makefile.in (device_table.o): now depends on hw.c a generated
3772 table of hw.
3773
3774 * device_table.c (device_table): Re-arange the table of devices so
3775 that two levels are possible. Make use of hw.c.
3776 * device_table.h: ditto.
3777
3778 * device.c (device_template_create_device): Handle new two level
3779 device lookup table.
3780 * device.c (device_usage): ditto.
3781
3782 Mon Feb 26 22:24:00 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3783
3784 * device_table.c: Delete the memory device (moved to hw_memory.c).
3785
3786 * hw_memory.c: New file. Just an OpenBoot memory device.
3787
3788 Wed Jan 17 21:47:34 1996 Andrew Cagney <cagney@highland.com.au>
3789
3790 * device.c (device_init_address): New. Split initialization into
3791 two stages, address and address spaces
3792 * device.c (device_init_data): New. ... and data or other work.
3793 With out this, devices try to modify memory before it as been
3794 attached.
3795
3796 * device.c (device_tree_init): Update to perform staged
3797 initialization.
3798
3799 * device.c (device_init): Delete.
3800
3801 Wed Jan 17 21:43:09 1996 Andrew Cagney <cagney@highland.com.au>
3802
3803 * device_table.c (data_*): Rewrite to make heaver use of property
3804 nodes. Allow initialization by different data types.
3805 * device_table.c (htab_* pte_*): Rewrite to use properties.
3806
3807 * emul_chirp.c (emul_chirp_create): Use
3808 * emul_bugapi.c (emul_bugapi_create): Ditto
3809 * emul_netbsd.c (emul_netbsd_create): Ditto
3810
3811 Wed Jan 17 21:24:50 1996 Andrew Cagney <cagney@highland.com.au>
3812
3813 * emul_generic.c (emul_add_tree_options): Annotate existing tree
3814 with options that haven't yet been specified.
3815 * emul_generic.c (emul_add_tree_hardware): Annotate existing tree
3816 with demo devices and properties.
3817
3818 * emul_chirp.c (emul_chirp_create): Update to use new
3819 device_tree_add_parsed call and additional information now
3820 included in the device tree. Use emul_add_tree* functions to add
3821 any missing details.
3822 * emul_bugapi.c (emul_bugapi_create): Ditto
3823 * emul_netbsd.c (emul_netbsd_create): Ditto
3824
3825 Wed Jan 17 21:18:27 1996 Andrew Cagney <cagney@highland.com.au>
3826
3827 * device.c (device_instance_create): New. Create/delete and
3828 operate on instances of a device.
3829 * device.c (device_instance_delete): Ditto
3830 * device.c (device_instance_read): Ditto
3831 * device.c (device_instance_write): Ditto
3832 * device.c (device_instance_seek): Ditto
3833 * device.c (device_instance_data): Ditto
3834 * device.c (device_instance_name): Ditto
3835 * device.c (device_instance_path): Ditto
3836
3837 * emul_chirp.c (chirp_emul_open): Implement using device_instance.
3838 * emul_chirp.c (chirp_emul_close): Ditto
3839 * emul_chirp.c (chirp_emul_read): Ditto
3840 * emul_chirp.c (chirp_emul_write): Ditto
3841 * emul_chirp.c (chirp_emul_seek): Ditto
3842
3843 * emul_chirp.c (chirp_read_t2h_args): Read arguments from device.
3844 Being careful to convert all from target to host byte order.
3845 * emul_chirp.c (chirp_write_h2t_args): Converse.
3846
3847 Wed Jan 17 20:07:15 1996 Andrew Cagney <cagney@highland.com.au>
3848
3849 * device.c (device_tree_add_parsed): New. Rewrite code to add
3850 devices to the device tree so that a single printf style function
3851 is used.
3852
3853 * device.c (device_tree_add_*): Delete. Replaced by above.
3854
3855 * device.c (split_device_specifier): Functions to manipulate a
3856 device specifier (path) breaking it into its components
3857 * device.c (split_property_specifier): Ditto
3858 * device.c (split_device_name): Ditto
3859 * device.c (split_find_device): Ditto
3860
3861 * device.c (scan_*): Delete
3862
3863 * device.c (device_tree_find_device): Rewrite to use above.
3864 * device.c (device_add_property): Ditto
3865
3866 Wed Jan 17 19:51:56 1996 Andrew Cagney <cagney@highland.com.au>
3867
3868 * psim.c(psim_options): Parse the psim options, installing their
3869 value in the device tree. Options are now first entered into a
3870 device tree and then extracted out again when needed. This allows
3871 greater flexability in configuration.
3872
3873 * psim.c (psim_tree): Returns a basic device tree ready for
3874 parsing by psim_options.
3875 * psim.c (psim_usage): New. Give usage to varing levels of detail
3876 according to the verbosity. In turn output device and trace
3877 usage.
3878
3879 * main.c (main): Update to use new system
3880 * sim_calls.c (sim_open, sim_do_command): Ditto
3881
3882 * psim.c (psim_options): Add `r' option - ram size.
3883 * psim.c (psim_options): Add `o' option - openboot tree entry.
3884 * psim.c (psim_options): Add `h'/`H' options - more help.
3885
3886 * debug.c (trace_usage): Add more detailed help.
3887 * device.c (device_usage): New. Output help including a list of
3888 the devices currently available in the device table.
3889 * device_table.c: Add usage operator to each device.
3890
3891 * corefile.c (core_create, core_device_create): Adjust so that the
3892 core device is created earlier for psim_tree(). Core can later be
3893 created from it.
3894
3895 * psim.c (psim_create): Update to handle above way of creating
3896 things. Extract all information from the device tree.
3897
3898 * device_tree.c (trace_*): New device node, its properties are
3899 used to set the value of the trace options. Init this device (in
3900 psim_options) when ever the options are updated.
3901
3902 Wed Jan 17 19:46:07 1996 Andrew Cagney <cagney@highland.com.au>
3903
3904 * debug.h: Add trace_print_info, trace_print_device_tree and
3905 trace_dump_device_tree. The first is a replacement for the
3906 variable `print_info' found in main.c and sim_calls.c. The latter
3907 two enable the dumping of the entire device tree.
3908
3909 * debug.c: Add to trace_description table.
3910
3911 * main.c (main): Use above trace instead of local variable
3912 * sim_calls.c (sim_close): Ditto
3913
3914 * device.c (device_tree_print_device): New. Prints the device
3915 tree in a format that is consistent with what can be parsed by the
3916 device tree load from file code.
3917
3918 * psim.c (psim_create): Dump device tree if enabled. If nump
3919 selected, exit psim immediatly.
3920
3921 Wed Jan 17 19:36:52 1996 Andrew Cagney <cagney@highland.com.au>
3922
3923 * corefile-n.h (core_map_read_N): When mapping from an address to
3924 a device, do not subtract the devices base. The device its self
3925 can do this. Brings the behavour into line with OpenBoot.
3926 * corefile-n.h (core_map_write_N): Ditto
3927 * corefile.c (core_map_read_buffer): Ditto
3928 * corefile.c (core_map_write_buffer): Ditto
3929
3930 * device_table.c (console_io_read_buffer_callback): Adjust to
3931 handle biased address.
3932 * device_table.c (console_io_write_buffer_callback): Ditto
3933
3934 Wed Jan 17 18:36:09 1996 Andrew Cagney <cagney@highland.com.au>
3935
3936 * device.c (attach_device_interrupt_edge): New. Interrupt model
3937 did not allow interrupts to be wired up as a general net (edges).
3938 Re-implement so that interrupt events can be passed to multiple
3939 controllers and interrupt controllers can further propogate
3940 interrupt events.
3941
3942 * device.c (attach_device_interrupt_edge) : New, Ditto
3943 * device.c (detach_device_interrupt_edge) : New, Ditto
3944 * device.c (clean_device_interrupt_edges) : New, Ditto
3945 * device.c (device_interrupt_event) : New, Ditto
3946 * device.c (device_interrupt_attach) : New, Ditto
3947 * device.c (device_interrupt_detach) : New, Ditto
3948 * device.c (device_child_interrupt_attach) : New, Ditto
3949 * device.c (device_child_interrupt_detach) : New, Ditto
3950
3951 * device.c (device_attach_interrupt) : Delete old
3952 * device.c (device_detach_interrupt) : Delete old
3953 * device.c (device_interrupt) : Delete old
3954 * device.c (device_interrupt_ack) : Delete old
3955
3956 * device_table.c (unimp_*) : Update to match
3957
3958 * device_table.c (icu_io_write_buffer_callback) : Update to use
3959 interface.
3960 * device_table.c (icu_interrupt_event_callback) : Ditto
3961
3962 Wed Jan 17 18:18:40 1996 Andrew Cagney <cagney@highland.com.au>
3963
3964 * device.c (external_to_device) : New function that provides a
3965 standard mapping between a devices internal representation (a
3966 pointer) and its external (or what is passed to a client)
3967 representation (a phandle). Implement using the cap object
3968 attached to the root node.
3969
3970 * device.c (device_to_external) : Ditto
3971 * device.c (external_to_device_instance) : Ditto but for ihandle
3972 and device instance.
3973 * device.c (device_instance_to_external) : Ditto
3974
3975 * Makefile (device.o): Add dependency on cap.
3976
3977 * emul_chirp.c (struct _emul_chirp_data) : Elimate use of cap. Code
3978 needing to translate between internal and external representations
3979 changed to use the external_to_device et.al. device operations.
3980 * emul_chirp.c (chirp_emul_*) : Ditto
3981
3982 * Makefile (emul_chirp.o): Remove dependency on cap
3983
3984 Sat Jan 6 10:13:26 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3985
3986 * emul_chirp.c (map_over_chirp_note): Tighten up (and fix) checks
3987 on OpenBoot note section.
3988
3989 Fri Jan 5 20:28:53 1996 Andrew Cagney <cagney@hignland.com.au>
3990
3991 * emul_generic.c (emul_write_buffer): Use vm faulting byte
3992 read/write calls for buffer transfers. This will cause a fault to
3993 occure if the transfer fails. CHRP catches the fault while the
3994 others suffer the consequences.
3995 (emul_read_buffer): Ditto.
3996 (emul_write_word): Ditto.
3997 (emul_read_word): Ditto.
3998 (emul_read_string): Ditto.
3999
4000 Fri Jan 5 18:55:34 1996 Andrew Cagney <cagney@highland.com.au>
4001
4002 * emul_chirp.c (emul_chirp_create, emul_chirp_instruction_call),
4003 emul_generic (emul_blr_instruction): Use a real blr instruction to
4004 return from a client service call.
4005
4006 * emul_chirp.c (services): Add all OpenBoot services to table.
4007
4008 * emul_generic.h, emul_bugapi.c (emul_bugapi_create), emul_chirp.c
4009 (emul_chirp_create) : Use names instead of numbers for
4010 instructions being stored in memory.
4011
4012 Fri Jan 5 18:52:28 1996 Andrew Cagney <cagney@highland.com.au>
4013
4014 * Makefile.in (maintainer-clean): Remove .log, core and *.core
4015 (From NetBSD) files.
4016
4017 Wed May 29 22:57:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
4018
4019 * ChangeLog.00, ChangeLog: ChangeLog from gdb-4.16 becomes
4020 ChangeLog.00
4021