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