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