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