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