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