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