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