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