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