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