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