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