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