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