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