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