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