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