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