]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/common/ChangeLog
sim: update device_error() prototype
[thirdparty/binutils-gdb.git] / sim / common / ChangeLog
1 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2
3 * sim-core.h (device_error): Add const to message, and add printf
4 format attribute.
5
6 2010-03-30 Mike Frysinger <vapier@gentoo.org>
7
8 * sim-profile.c (profile_print_addr_ranges): Wrap with the
9 SIM_HAVE_ADDR_RANGE define.
10
11 2010-03-30 Mike Frysinger <vapier@gentoo.org>
12
13 * dv-glue.c (hw_glue_ports): Swap static and const.
14
15 2010-03-30 Mike Frysinger <vapier@gentoo.org>
16
17 * nrun.c (usage): Use void in definition.
18 * sim-options.c (dup_arg_p): Convert old-style function definition.
19 (sim_parse_args): Likewise.
20 (sim_print_help): Likewise.
21 * sim-trace.c (set_trace_option_mask): Likewise.
22 (set_trace_option): Likewise.
23 * sim-utils.c (sim_analyze_program): Likewise.
24 (sim_elapsed_time_get): Likewise.
25 (sim_elapsed_time_since): Likewise.
26
27 2010-03-22 Mike Frysinger <vapier@gentoo.org>
28
29 * sim/common/sim-options.c (enum): Remove SIM_HAVE_BIENDIAN ifdef.
30 (standard_options): Likewise.
31 (standard_option_handler): Likewise.
32
33 2010-03-16 Mike Frysinger <vapier@gentoo.org>
34
35 * hw-ports.c (TRACE): Delete.
36 * hw-properties.c (TRACE): Delete.
37 (hw_find_ihandle_runtime_property): Change TRACE to HW_TRACE.
38 (hw_find_integer_property): Likewise.
39 (hw_find_integer_array_property): Likewise.
40 (hw_add_duplicate_property): Likewise.
41
42 2010-03-15 Mike Frysinger <vapier@gentoo.org>
43
44 * hw-properties.h (hw_add_boolean_property): Rename "bool" to
45 "boolean".
46
47 2010-02-04 Mike Frysinger <vapier@gentoo.org>
48
49 * sim-model.c: Include sim-model.h
50
51 2010-02-04 Mike Frysinger <vapier@gentoo.org>
52
53 * sim-base.h: Declare sim_state.cpu as a pointer in the comment. Drop
54 & from the STATE_CPU() examples.
55
56 2010-01-24 Doug Evans <dje@sebabeach.org>
57
58 * cgen-accfp.c (fextsfdf): New arg how. All callers updated.
59 (ftruncdfsf, floatsisf, flostsidf, ufloatsisf, fixsfsi, fixdfsi,
60 ufixsfsi): Ditto.
61 * cgen-fpu.h (CGEN_FPCONV_KIND): New enum.
62 (struct cgen_fp_ops): Update signatures of floating point conversion
63 operations.
64
65 * Make-common.in (CGEN_SIM_DEPS): Define.
66 (CGEN_INCLUDE_DEPS): Use it.
67 (CGEN_MAIN_CPU_DEPS): Simplify.
68
69 2010-01-22 Doug Evans <dje@sebabeach.org>
70
71 * cgen-ops.h (SUBWORDXFSI): Fix word ordering.
72 (SUBWORDTFSI, JOINSIDI): Ditto.
73
74 2010-01-05 Doug Evans <dje@sebabeach.org>
75
76 * cgen-types.h (SETDI): Delete, unused.
77
78 2009-12-02 Doug Evans <dje@sebabeach.org>
79
80 * cgen-engine.h: Remove duplicated comment.
81
82 2009-11-23 Doug Evans <dje@sebabeach.org>
83
84 * cgen-engine.h (EXTRACT_MSB0_SINT): Renamed from EXTRACT_MSB0_INT.
85 (EXTRACT_LSB0_SINT): Renamed from EXTRACT_LSB0_INT.
86
87 2009-11-22 Doug Evans <dje@sebabeach.org>
88
89 * cgen-engine.h (EXTRACT_MSB0_LGSINT, EXTRACT_MSB0_LGUINT): Define.
90 (EXTRACT_LSB0_LGSINT, EXTRACT_LSB0_LGUINT): Define.
91 (EXTRACT_FN, SEMANTIC_FN): Use CGEN_INSN_WORD in prototype
92 instead of CGEN_INSN_INT.
93
94 * cgen-trace.h (trace_extract): Add cast to fix warning.
95
96 2009-11-05 Doug Evans <dje@sebabeach.org>
97
98 * cgen-mem.h (DECLARE_GETT): Don't inline.
99 (DECLARE_SETT): Ditto.
100
101 2009-10-15 Joel Sherrill <joel.sherrill@oarcorp.com>
102
103 * sim-inline.h: Fix spelling error.
104
105 2009-10-02 Ralf Corsepius <ralf.corsepius@rtems.org>
106
107 * Make-common.in: Add datarootdir.
108
109 2009-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
110
111 * aclocal.m4 (SIM_CHECK_MEMBER, SIM_CHECK_MEMBERS)
112 (SIM_CHECK_MEMBERS_1): Remove.
113 * configure.ac: Replace SIM_CHECK_MEMBERS call with equivalent
114 AC_CHECK_MEMBERS one.
115 * configure: Regenerate.
116
117 * aclocal.m4 (SIM_CHECK_MEMBER): Use AU_ALIAS to define, not defn.
118 * configure: Regenerate.
119
120 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
121
122 * config.in: Regenerate.
123 * configure: Likewise.
124
125 * aclocal.m4 (SIM_CHECK_MEMBER): Replace definition with
126 definition of AC_CHECK_MEMBER.
127
128 * aclocal.m4: m4_include toplevel config/override.m4.
129 * configure: Regenerate.
130
131 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
132
133 * Makefile.in (datarootdir): New variable.
134
135 2009-07-07 Doug Evans <dje@sebabeach.org>
136
137 * Make-common.in (CPU_DIR): Define.
138
139 2009-07-06 Doug Evans <dje@sebabeach.org>
140
141 * Make-common.in (CGEN_CPU_EXTR,CGEN_CPU_READ): Pass canonical
142 identifiers for file types rather than encoding internal
143 implementation details of cgen.sh.
144 (CGEN_CPU_WRITE,CGEN_CPU_SEM,CGEN_CPU_SEMSW): Ditto.
145 * cgen.sh: Add support for parallel makes.
146 Rewrite cpu/decode handling to avoid generating "extrafiles" twice.
147
148 2009-05-18 Jon Beniston <jon@beniston.com>
149
150 * gennltvals.sh: Add lm32 target.
151 * nltvals.def: Add lm32 syscall definitions.
152
153 2009-03-19 J"orn Rennecke <joern.rennecke@arc.com> (tiny change)
154
155 Speed up simulator startup:
156 * sim-utils.c (zalloc): Use xcalloc.
157
158 2009-01-07 Hans-Peter Nilsson <hp@axis.com>
159
160 * cgen-ops.h (ADDQI, SUBQI, MULQI, NEGQI, ABSQI, ADDHI, SUBHI)
161 (MULHI, NEGHI, ABSHI, ADDSI, SUBSI, MULSI, NEGSI, ABSSI, ADDDI)
162 (SUBDI, MULDI, NEGDI, ABSDI): Cast arguments to the unsigned type
163 variant; UQI, UHI, USI, UDI, and cast the result to the signed
164 type, QI, HI, SI, DI.
165
166 * callback.c (os_error): Mark as being a noreturn function.
167 * sim-io.h (sim_io_error): Similar for sim_io_error.
168
169 2008-11-12 Joel Sherrill <joel.sherrill@oarcorp.com>
170
171 * aclocal.m4: Fix underquoting of function names.
172
173 2008-10-21 Julian Brown <julian@codesourcery.com>
174
175 * Make-common.in (run$(EXEEXT)): Add LDFLAGS.
176
177 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
178
179 * common.m4: Add test for libz and zlib.h.
180 * configure: Regenerate to track ../common/common.m4 changes.
181 * config.in: Ditto.
182
183 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
184 Daniel Jacobowitz <dan@codesourcery.com>
185 Joseph Myers <joseph@codesourcery.com>
186
187 * aclocal.m4: Include ../../config/acx.m4.
188 * common.m4: Use ACX_PKGVERSION and ACX_BUGURL.
189 * configure, config.in: Regenerate.
190 * Make-common.in (LIB_OBJS): Add version.o.
191 (version.c, version.o): New rules.
192 * run.c: Include version.h.
193 (usage): Add help parameter. Print output either to stdout or
194 stderr depending on that parameter.
195 (print_version): New.
196 (main): Check for --help and --version.
197 * run-sim.h (sim_target_display_usage): Add help parameter.
198 * version.h: New.
199
200 2008-04-14 Hans Kester <kester.hans@gmail.com>
201
202 * sim-signal.c: Define missing signals for _WIN32.
203
204 2008-02-12 M Ranga Swami Reddy <MR.Swami.Reddy@nsc.com>
205
206 * gennltvals.sh: Add cr16.
207 * nltvals.def: Rebuild.
208
209 2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com>
210
211 * callback.c (cb_is_stdin, cb_is_stdout, cb_is_stderr): Add functions.
212 * syscall.c (cb_syscall): Test for stdin/out/err, not just fd 0/1/2.
213
214 2007-08-10 Nick Clifton <nickc@redhat.com>
215
216 * sim-memopt.c (memory_options): Mention that the
217 --memory-size switch accepts suffixes.
218 (parse_size): Handle a suffix on the size value.
219 * sim-options.c (standard_options): Mention that the mem-size
220 switch accepts suffixes.
221 (standard_option_handler): Handle a suffix on the size value.
222
223 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
224
225 * acconfig.h: Remove.
226 * config.in: Regenerate.
227
228 2006-11-07 Thiemo Seufer <ths@mips.com>
229
230 * gentmap.c: Fix compile time warning.
231
232 2006-11-07 Thiemo Seufer <ths@mips.com>
233
234 * sim-base.h (text_start, text_end, start_addr): Use bfd_vma type
235 for bfd text addresses.
236
237 2006-08-29 Thiemo Seufer <ths@mips.com>
238 Nigel Stephens <nigel@mips.com>
239
240 * sim-fpu.c (pack_fpu): Handle QUIET_NAN correctly for
241 SIM_QUIET_NAN_NEGATED.
242
243 2006-08-29 Nigel Stephens <nigel@mips.com>
244
245 * sim-profile.c (profile_pc_init): Initialise default profiling
246 frequency to a prime number.
247 (profile_print_pc): Convert gmon.out sample data into target
248 byte order.
249
250 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
251
252 * aclocal.m4: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR.
253 * common.m4: Likewise.
254 * configure: Regenerated.
255
256 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
257
258 * aclocal.m4: Use ZW_GNU_GETTEXT_SISTER_DIR.
259 * configure: Regenerated.
260
261 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
262
263 * Make-common.in: Replace INTLLIBS and INTLDEPS with LIBINTL
264 and LIBINTL_DEP everywhere.
265 (CSEARCH): Use INCINTL.
266 * aclocal.m4: Use ZW_GNU_GETTEXT_SISTER_DIR. Include new
267 gettext macros.
268 * configure: Regenerated.
269
270 2006-03-29 Hans-Peter Nilsson <hp@axis.com>
271
272 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Correct duplicate-
273 option-contents test.
274
275 2005-11-28 Mark Mitchell <mark@codesourcery.com>
276
277 * sim-signal.c (sim_signal_to_target): Fix typos.
278
279 * sim-reason.c (sim_stop_reason): Use
280 sim_signal_to_target, not sim_signal_to_host.
281 * sim-signal.c (sim_signal_to_host): Fix typo.
282 (sim_signal_to_target): New function.
283
284 2005-07-10 Hans-Peter Nilsson <hp@bitrange.com>
285
286 * sim-load.c (xprintf, eprintf): Remove fallout from ANSI_PROTOTYPES
287 change.
288
289 2005-07-08 Ian Lance Taylor <ian@airs.com>
290
291 * sim-fpu.c (sim_fpu_abs): Always clear the sign bit.
292
293 * sim-fpu.c (pack_fpu): If SIM_QUIET_NAN_NEGATED is defined, use a
294 different fraction for a quiet NaN.
295 (unpack_fpu): Likewise.
296
297 2005-07-08 Ben Elliston <bje@au.ibm.com>
298
299 * callback.c: Remove ANSI_PROTOTYPES conditional code.
300 * sim-load.c: Likewise.
301 * syscall.c: Likewise.
302
303 2005-05-24 Corinna Vinschen <vinschen@redhat.com>
304
305 * Make-common.in (LIBDEPS): Correctly use INTLDEPS for dependency
306 check.
307
308 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
309
310 * Make-common.in (install-common, installdirs): Honor $DESTDIR.
311
312 2005-04-20 Manoj Iyer <manjo@austin.ibm.com>
313
314 * sim-types.h: Changed unsigned32 and unsigned64 to signed32
315 and signed64 for __ALPHA__.
316
317 2005-03-23 Mark Kettenis <kettenis@gnu.org>
318
319 * aclocal.m4 Include ../../gettext.m4.
320 (CY_WITH_NLS, CY_GNU_GETTEXT, AM_PATH_PROG_WITH_TEST)
321 (AM_LC_MESSAGES): Remove.
322 * configure: Regenerate.
323
324 2005-02-28 Jim Blandy <jimb@redhat.com>
325
326 * aclocal.m4 (SIM_AC_OPTION_WARNINGS): Don't include
327 -Wuninitialized in the default list of build warnings if CFLAGS is
328 set, and doesn't include -O. (Using -Wuninitialized without
329 optimization produces a warning, which interferes with compilation
330 with -Werror.)
331
332 2005-02-21 Jim Blandy <jimb@redhat.com>
333
334 * callback.c (os_fstat): Don't declare 't' unless it's used.
335
336 2005-02-09 Jim Blandy <jimb@redhat.com>
337
338 * Make-common.in (CGEN): Load guile.scm, and include a trailing
339 '-s' argument.
340 (CGEN_FLAGS_TO_PASS): Include single quotes around the reference
341 to $(CGEN), to ensure that the command substitution happens where
342 the variable is referenced in the submake, not when the submake's
343 arguments are expanded.
344 (cgen.sh): Be prepared for the 'cgen' argument to contain spaces.
345 (arch, cpu, decode, cpu-decode, defs, desc): Place the name of the
346 application Scheme script directly after ${cgen}; don't precede it
347 with a -s.
348
349 2005-01-28 Hans-Peter Nilsson <hp@axis.com>
350
351 * syscall.c (cb_syscall) <case CB_SYS_pipe>: New case.
352 * callback.c [HAVE_LIMITS_H]: Include limits.h.
353 Include libiberty.h.
354 (os_close, os_read, os_write, os_fstat, os_ftruncate): Support fd
355 being either end of a pipe.
356 (os_pipe, os_pipe_empty, os_pipe_nonempty): New functions.
357 (os_shutdown): Clear pipe state.
358 (default_callback): Initialize new members.
359
360 * callback.c (default_callback): Initialize target_endian.
361 (cb_store_target_endian): Renamed from store, new first parameter
362 host_callback *cb, drop last parameter big_p. Take endianness
363 from cb.
364 (cb_host_to_target_stat): Change to use cb_store_target_endian.
365 Remove variable big_p.
366 * nrun.c (main): Initialize default_callback.target_endian.
367
368 2005-01-14 Andrew Cagney <cagney@gnu.org>
369
370 * configure.ac: Replace SIM_AC_COMMON with sinclude of common.m4.
371 Add explicit call to AC_CONFIG_HEADER.
372 * common.m4: Delete call to AC_CONFIG_HEADER, update usage.
373 * configure: Re-generate.
374
375 2005-01-12 Andrew Cagney <cagney@gnu.org>
376
377 * common.m4: New file, based on of aclocal.m4.
378
379 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
380
381 * aclocal.m4 (SIM_AC_OUTPUT): Rewrite to use 2.59 macros.
382 * configure: Regenerated to track ../common/aclocal.m4 changes.
383
384 2005-01-07 Andrew Cagney <cagney@gnu.org>
385
386 * configure.ac: Rename configure.in, require autoconf 2.59.
387 * aclocal.m4 (SIM_AC_COMMON): Delete call to AC_CONFIG_AUX_DIR.
388 * configure: Re-generate.
389
390 2004-12-15 Hans-Peter Nilsson <hp@axis.com>
391
392 * syscall.c (cb_syscall) <case CB_SYS_truncate>
393 <case CB_SYS_ftruncate>: New cases.
394
395 2004-12-13 Hans-Peter Nilsson <hp@axis.com>
396
397 * syscall.c (cb_syscall) <case CB_SYS_lstat>: New case.
398 (cb_syscall) <case CB_SYS_rename>: New case.
399 * callback.c (os_lstat): New function.
400
401 2004-12-08 Hans-Peter Nilsson <hp@axis.com>
402
403 * run.1: Document --sysroot=filepath.
404 * sim-options.c (STANDARD_OPTIONS): New member OPTION_SYSROOT.
405 (standard_options): Support --sysroot=<path>.
406 (standard_option_handler): Handle OPTION_SYSROOT.
407 * syscall.c (simulator_sysroot): Define, initialized empty.
408 (get_path): Prepend simulator_sysroot to absolute file path.
409 [HAVE_STRING_H]: Include string.h.
410 [!HAVE_STRING_H && HAVE_STRINGS_H]: Include strings.h.
411 * nrun.c [HAVE_UNISTD_H]: Include unistd.h.
412 (main): If simulator_sysroot is not empty, chdir there.
413 * sim-config.h (simulator_sysroot): Declare.
414
415 * aclocal.m4 (SIM_AC_OUTPUT): Substitute @cgen_breaks@ for "break
416 cgen_rtx_error" in a CGEN-generated simulator.
417 * gdbinit.in: Break on sim_core_signal too. Have autoconf
418 replacement for CGEN-related breakpoints.
419
420 2004-12-07 Hans-Peter Nilsson <hp@axis.com>
421
422 * Make-common.in (sim-basics_h): Add $(callback_h).
423
424 2004-12-03 Hans-Peter Nilsson <hp@axis.com>
425
426 * configure.in (SIM_CHECK_MEMBERS): Call for struct stat members
427 st_dev, st_ino, st_mode, st_nlink, st_uid, st_gid, st_rdev,
428 st_size, st_blksize, st_blocks, st_atime, st_mtime and st_ctime.
429 * aclocal.m4 (SIM_CHECK_MEMBER, SIM_CHECK_MEMBERS_1)
430 (SIM_CHECK_MEMBERS): New macros.
431 * callback.c (cb_host_to_target_stat): Use temporary macro ST_x
432 for struct stat member test and write. Add ST_x calls for each
433 struct stat member tested in configure.in. Wrap each ST_x call in
434 #ifdef of configure macro for that member.
435 * configure, config.in: Regenerate.
436
437 2004-12-01 Hans-Peter Nilsson <hp@axis.com>
438
439 * cgen.sh: New thirteenth parameter opcfile, defaulting to
440 /dev/null.
441 <case desc>: Pass -OPC opcfile.
442 * Make-common.in (cgen-desc): Pass $(opcfile) as thirteenth
443 parameter to cgen.sh.
444
445 2004-11-30 Richard Earnshaw <rearnsha@arm.com>
446
447 * Make-common.in (sim-basics_h): Correct dependencies on
448 cconfig.h and tconfig.h
449 (sim-load.o): Correct typo in sim-basics_h dependency.
450
451 2004-11-18 Richard Earnshaw <rearnsha@arm.com>
452
453 * Make-common.in (sim-*_h): Add macros for all sim headers listing
454 sub-dependencies for other sim files that they include.
455 (sim_main_headers): Use sim-*_h macros.
456 (sim-load.o): Depend on sim-basics_h, not sim_main_headers.
457
458 2004-11-16 Hans-Peter Nilsson <hp@axis.com>
459
460 * sim-config.c (sim_config): Recognize when a bfd has unspecified
461 endian information.
462
463 * Make-common.in (sim-load.o): Depend on $(sim_main_headers) and
464 $(remote_sim_h) too.
465 (sim_main_headers): Add sim-utils.h.
466
467 2004-10-07 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
468
469 * cgen-defs.h (ENDSWITCH): Changed to compile with gcc-3.4.2.
470
471 2004-07-26 Andrew Cagney <cagney@gnu.org>
472
473 Problem from Olaf Hering <olh@suse.de>.
474 * Makefile.in (install-man, installdirs): Add DESTDIR prefix.
475
476 2004-07-10 Ben Elliston <bje@au.ibm.com>
477
478 * hw-tree.c (parse_integer_property): Typo fix in comments.
479 * sim-options.c (sim_args_command): Likewise.
480
481 2004-06-28 Andrew Cagney <cagney@gnu.org>
482
483 * run.c: Rename ui_loop_hook to deprecated_ui_loop_hook.
484
485 2004-06-27 J"orn Rennecke <joern.rennecke@superh.com>
486
487 * callback.c (os_shutdown): Fix bug in last change: actually
488 mark file descriptors as available on startup.
489
490 2004-06-25 J"orn Rennecke <joern.rennecke@superh.com>
491
492 [ include/gdb: * callback.h (host_callback_struct): Replace
493 members fdopen and alwaysopen with fd_buddy. ]
494 * callback.c: Changed all users.
495
496 2004-06-15 Alan Modra <amodra@bigpond.net.au>
497
498 * sim-load.c (sim_load_file): Use bfd_get_section_size
499 instead of bfd_get_section_size_before_reloc.
500
501 2004-05-18 Daniel Jacobowitz <dan@debian.org>
502
503 * dv-glue.c (hw_glue_finish): Cast result of sizeof to long before
504 passing it to printf.
505
506 2004-05-10 Daniel Jacobowitz <dan@debian.org>
507
508 * callback.c: Update copyright dates.
509 * run.c: Likewise.
510 * sim-basics.h: Likewise.
511 * sim-load.c: Likewise.
512 * syscall.c: Likewise.
513
514 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
515
516 * callback.c: Include cconfig.h instead of config.h.
517 * run.c: Likewise.
518 * sim-basics.h: Likewise.
519 * sim-load.c: Likewise.
520 * syscall.c: Likewise.
521
522 2004-01-16 Ben Elliston <bje@wasabisystems.com>
523
524 * Makefile.in (clean): Remove rm -f $(ALL), as $(ALL) is empty.
525
526 2003-12-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
527
528 * sim-core.c (sim_core_trans_addr): Added for m32r-linux-run.
529
530 2003-11-22 Kazu Hirata <kazu@cs.umass.edu>
531
532 * sim-options.c (standard_options): Fix the names of H8
533 variants.
534
535 2003-10-30 Andrew Cagney <cagney@redhat.com>
536
537 * sim-trace.c, sim-base.h: Replace "struct symbol_cache_entry"
538 with "struct bfd_symbol".
539
540 2003-10-21 Andrew Cagney <cagney@redhat.com>
541
542 * callback.c (os_truncate): Call "truncate", and not "stat".
543
544 2003-10-20 Andrew Cagney <cagney@redhat.com>
545
546 * sim-base.h: Replace "struct sec" with "struct bfd_section".
547
548 2003-10-15 J"orn Rennecke <joern.rennecke@superh.com>
549
550 * callback.c (os_ftruncate, os_truncate): New functions.
551 (default_callback): Initialize ftruncate and truncate members.
552
553 2003-09-08 Dave Brolley <brolley@redhat.com>
554
555 On behalf of Doug Evans <dje@sebabeach.org>
556 * cgen.sh: New arg archfile.
557 * Make-common.in (cgen-arch,cgen-cpu,cgen-defs,cgen-decode,
558 cgen-cpu-decode,cgen-desc): Update call to cgen.sh.
559
560 2003-08-28 Andrew Cagney <cagney@redhat.com>
561
562 * dv-glue.c (hw_glue_finish): Change %d to %ld to match sizeof.
563 * sim-options.c (print_help): Cast the format with specifier to
564 "int".
565
566 2003-08-20 Michael Snyder <msnyder@redhat.com>
567 Dave Brolley <brolley@redhat.com>
568
569 * cgen-par.h (flags, word1): New target-specific
570 fields of CGEN_WRITE_QUEUE_ELEMENT.
571 (CGEN_WRITE_QUEUE_ELEMENT_FLAGS): New accessor macro.
572 (CGEN_WRITE_QUEUE_ELEMENT_WORD1): New accessor macro.
573 * gennltvals.sh: Add frv target.
574 * nltvals.def: Add frv target.
575
576 2003-06-23 Michael Snyder <msnyder@redhat.com>
577
578 * nrun.c (main): Delete h8/300 ifdef (sim now handles signals).
579 * sim-reg.c: Fix cut-and-paste bug in comment.
580
581 2003-06-22 Andrew Cagney <cagney@redhat.com>
582
583 From matthew green <mrg@redhat.com>:
584 * sim-fpu.h: Update copyright.
585 (sim_fpu_fraction, sim_fpu_guard): New prototypes.
586 * sim-fpu.c: Update copyright.
587 (sim_fpu_fraction, sim_fpu_guard): New inline functions.
588
589 2003-06-17 Frank Ch. Eigler <fche@redhat.com>
590
591 From Doug Evans <dje@sebabeach.org>:
592 * cgen-trace.h (sim_disasm_read_memory): Update args to be compatible
593 with disassemble_info:read_memory_func.
594 * cgen-trace.c (sim_disasm_read_memory): Ditto.
595
596 2003-06-04 Michael Snyder <msnyder@redhat.com>
597
598 * common/run.c (main): Remove SIM_H8300 ifdef.
599 (usage): Ditto.
600 * common/sim-options.c (STANDARD_OPTIONS): Add SIM_H8300SX.
601 (standard_options): Add '-x' for h8/300sx.
602 (standard_option_handler): Add case for SIM_H8300SX.
603
604 2003-04-13 Michael Snyder <msnyder@redhat.com>
605
606 * Make-common.in (sim-events.o, sim-config.o): Depend on sim-main.h.
607
608 2003-03-01 Andrew Cagney <cagney@redhat.com>
609
610 * sim-engine.c (sim_engine_halt): If jmpbuf is invalid, abort.
611 (sim_engine_vabort): Ditto.
612
613 2003-02-27 Andrew Cagney <cagney@redhat.com>
614
615 * sim-utils.h (sim_analyze_program, sim_load_file): Rename _bfd to bfd.
616 * sim-hload.c (sim_load), sim-base.h (sim_state_base): Ditto.
617 * nrun.c (main): Ditto.
618
619 2003-02-26 Andrew Cagney <cagney@redhat.com>
620
621 * sim-engine.h (sim_engine_abort): Add noreturn attribute.
622 (sim_engine_vabort): Ditto.
623 (sim_engine_halt, sim_engine_restart): Ditto.
624
625 2003-02-20 Andrew Cagney <ac131313@redhat.com>
626
627 * Make-common.in (SIM_NEW_COMMON_OBJS): Remove sim-break.o
628 (sim-break_h): Delete macro.
629 (sim-break.o): Delete rule.
630 * sim-break.c: Delete file.
631 * sim-break.h: Delete file.
632 * sim-base.h [SIM_HAVE_BREAKPOINTS]: Don't include "sim-break.h".
633 (STATE_BREAKPOINTS): Delete macro.
634 (sim_state_base): Delete field breakpoints.
635 * sim-module.c (modules) [SIM_HAVE_BREAKPOINTS]: Don't add
636 sim_break_install to array.
637
638 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
639
640 * run.c (usage): Fix typos.
641
642 2002-11-27 Richard Sandiford <rsandifo@redhat.com>
643
644 * sim-fpu.c (sim_fpu_inv): Use sim_fpu_div.
645
646 2002-11-22 Andrew Cagney <ac131313@redhat.com>
647
648 * dv-core.c: Update copyright. sim/common contributed to the FSF.
649 * dv-glue.c, dv-pal.c, hw-base.c, hw-base.h, hw-device.c: Ditto.
650 * hw-device.h, hw-handles.c, hw-handles.h: Ditto.
651 * hw-instances.c, hw-instances.h, hw-properties.c: Ditto.
652 * hw-properties.h, hw-tree.c, hw-tree.h, sim-alu.h: Ditto.
653 * sim-basics.h, sim-bits.c, sim-bits.h, sim-config.c: Ditto.
654 * sim-config.h, sim-core.c, sim-core.h, sim-endian.c: Ditto.
655 * sim-endian.h, sim-events.c, sim-events.h, sim-inline.c: Ditto.
656 * sim-inline.h, sim-io.c, sim-io.h, sim-n-bits.h: Ditto.
657 * sim-n-core.h, sim-n-endian.h, sim-types.h: Ditto.
658
659 2002-11-13 Andrew Cagney <cagney@redhat.com>
660
661 * run.c (main): Remove SIM_HAVE_ENVIRONMENT from #endif.
662
663 2002-11-06 Richard Sandiford <rsandifo@redhat.com>
664
665 * Make-common.in (SIM_EXTRA_DISTCLEAN): New macro.
666 (distclean): Depend on it.
667
668 2002-10-14 Alan Modra <amodra@bigpond.net.au>
669
670 * cgen-trace.h: Test __BFD_H_SEEN__ rather than BFD_VERSION.
671
672 2002-08-29 Dave Brolley <brolley@redhat.com>
673
674 * Make-common.in (CGEN_READ_SCM): Remove ../../cgen/stamp-cgen.
675
676 2002-07-17 Andrew Cagney <cagney@redhat.com>
677
678 * run-sim.h: Add #ifdef RUN_SIM_H wrapper.
679 (sim_set_callbacks, sim_size, sim_trace)
680 (sim_set_trace, sim_set_profile_size, sim_kill): Declare. Moved
681 to here from "gdb/remote-sim.h".
682
683 2002-07-16 Andrew Cagney <ac131313@redhat.com>
684
685 * sim-resume.c (sim_resume): Add local variable sig_to_deliver to
686 avoid possible longjmp problems with automatic variable siggnal.
687
688 2002-07-14 Andrew Cagney <ac131313@redhat.com>
689
690 From 2002-07-11 Momchil Velikov <velco@fadata.bg>:
691 * Make-common.in (installdirs): Make $(libdir) too, needed when
692 installing libsim.a.
693
694 2002-07-13 Andrew Cagney <ac131313@redhat.com>
695
696 * gennltvals.sh (dir): Mark d30v as obsolete.
697 * nltvals.def: Remove d30v.
698
699 2002-06-17 Andrew Cagney <cagney@redhat.com>
700
701 * hw-events.c (hw_event_queue_schedule): Initialize `dummy'.
702
703 * sim-memopt.c: Include <unistd.h>.
704 (do_memopt_add): Fix printf format.
705 * sim-events.c (sim_events_schedule): Initialize ``dummy''.
706
707 2002-06-16 Andrew Cagney <ac131313@redhat.com>
708
709 * aclocal.m4 (SIM_AC_OPTION_WARNINGS): Update to match GDB's
710 --enable-gdb-build-warnings.
711 * configure: Regenerated to track ../common/aclocal.m4 changes.
712
713 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
714
715 * sim-fpu.c (unpack_fpu): Initialize exponent for
716 sim_fpu_class_zero.
717 (i2fpu): Same.
718 (sim_fpu_sqrt): Same.
719
720 2002-06-08 Andrew Cagney <cagney@redhat.com>
721
722 * gentmap.c (gen_targ_map_c): Generate "gdb/callback.h".
723 * sim-basics.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
724 * run.c: Ditto.
725 * sim-load.c: Ditto.
726 * callback.c: Ditto.
727 * syscall.c: Ditto.
728 * Make-common.in (callback_h): Define.
729 (remote_sim_h): Define.
730 (run.o): Update.
731 (callback.o): Update.
732 (syscall.o): Update.
733 (sim-load.o):
734 (nrun.o): Update.
735 (sim-hload.o): Update.
736 (sim-io.o): Update.
737 (sim-reason.o): Update.
738 (sim-reg.o): Update.
739 (sim-resume.o): Update.
740
741 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
742
743 * run.c: Fix formatting.
744
745 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
746
747 * run-sim.h: New header. Provide prototypes for functions used
748 between run() and libsim.a which are not used by GDB.
749 * run.c: Include run-sim.h.
750 (main): If SIM_TARGET_SWITCHES is defined call
751 sim_target_parse_command_line.
752 (usage): If SIM_TARGET_SWITCHES is defined call
753 sim_target_display_usage.
754
755 2002-05-17 Andrey Volkov <avolkov@transas.com>
756
757 * run.c: Made h8300s as new target, not h8300h alias.
758 Added new option -S (h8300s target)
759 * sim-options.c: Ditto.
760
761 2002-05-01 Chris Demetriou <cgd@broadcom.com>
762
763 * callback.c: Use 'deprecated' rather than 'depreciated.'
764
765 2002-02-24 Andrew Cagney <ac131313@redhat.com>
766
767 From wiz at danbala:
768 * sim-fpu.h: Fix grammar and typos.
769 Fix PR gdb/287.
770
771 2002-02-10 Chris Demetriou <cgd@broadcom.com>
772
773 * callback.c: Fix some spelling errors.
774 * hw-device.h: Likewise.
775 * hw-tree.c: Likewise.
776 * sim-abort.c: Likewise.
777 * sim-alu.h: Likewise.
778 * sim-core.h: Likewise.
779 * sim-events.c: Likewise.
780 * sim-events.h: Likewise.
781 * sim-fpu.h: Likewise.
782 * sim-profile.h: Likewise.
783 * sim-utils.c: Likewise.
784
785 2002-01-31 Hans-Peter Nilsson <hp@axis.com>
786
787 * cgen-ops.h (ADDCQI, ADDCFQI, ADDOFQI, SUBCQI, SUBCFQI, SUBOFQI):
788 New functions.
789
790 2002-01-20 Ben Elliston <bje@redhat.com>
791
792 * sim-fpu.h (SIM_FPU_IS_QNAN): Replace "Quite" with "Quiet" in
793 the comment for this enumerator.
794
795 2002-01-14 Ben Elliston <bje@redhat.com>
796
797 * sim-fpu.h: Fix comment about sim_fpu_* constants.
798
799 2001-12-20 Kazu Hirata <kazu@hxi.com>
800
801 * run.c (usage): Fix a typo.
802
803 2001-07-05 Ben Elliston <bje@redhat.com>
804
805 * Make-common.in (srccgen): Remove.
806 (CGEN_CPU_DIR): Define.
807 (CGEN_READ_SCM): Redefine without $(srccgen).
808 (CGEN_ARCH_SCM): Ditto.
809 (CGEN_CPU_SCM): Ditto.
810 (CGEN_DECODE_SCM): Ditto.
811 (CGEN_DESC_SCM): Ditto.
812
813 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
814
815 * sim-load.c (sim_load_file): Put it back: external now.
816 * sim-utils.c (sim_analyze_program): Ditto. Nyuk nyuk nyuk.
817
818 2001-04-21 Andrew Cagney <ac131313@redhat.com>
819
820 * sim-load.c (sim_load_file): Delete call bfd_cache_close. BFD
821 internal interface.
822 * sim-utils.c (sim_analyze_program): Ditto.
823
824 2001-04-19 Frank Ch. Eigler <fche@redhat.com>
825
826 * sim-utils.c (sim_analyze_program): Call bfd_cache_close after
827 we're finished with its immediate use.
828 * sim-load.c (sim_load_file): Ditto.
829
830 2001-03-16 Frank Ch. Eigler <fche@redhat.com>
831
832 Add support for mmap-based memory regions.
833 * sim-memopt.c (mmap_next_fd): New global.
834 (sim_memory_init): Reinitialize it.
835 (OPTION_MEMORY_MAPFILE, memory_option_handler): Support new
836 "--memory-mapfile FILE" option. Check for some errors.
837 (do_memopt_add): Conditionally do mmap instead of malloc for
838 backing store of simulated memory. Check for more errors.
839 (do_simopt_delete, sim_memory_uninstall): Corresponding cleanup.
840 * sim-memopt.h (munmap_length): New member of _sim_memopt.
841 * configure.in: Look for mmap/fstat related functions and headers.
842 * config.in, configure: Regenerated.
843
844 2001-03-15 Frank Ch. Eigler <fche@redhat.com>
845
846 * sim-core.c (sim_core_map_attach): Correct overlap-related
847 error messages.
848
849 2001-03-07 Michael Meissner <meissner@redhat.com>
850
851 * run.c (alloca-conf.h): Delete, no longer provided.
852
853 2001-02-22 Ben Elliston <bje@redhat.com>
854
855 * sim-trace.h (TRACE_VPU_IDX): Add.
856 (TRACE_vpu): Define.
857 (WITH_TRACE_VPU_P): Likewise.
858 (TRACE_VPU_P): Likewise.
859 * sim-trace.c (OPTION_TRACE_VPU): Define.
860 (trace_options): Add --trace-vpu.
861 (trace_option_handler): Handle OPTION_TRACE_VPU.
862 (trace_option_handler): Include VPU tracing in --trace-semantics.
863 (trace_idx_to_str): Handle TRACE_VPU_IDX.
864
865 2001-02-21 Ben Elliston <bje@redhat.com>
866
867 * sim-trace.h (TRACE_BRANCH_INPUT1): New macro.
868 (TRACE_BRANCH_INPUT2): Likewise.
869
870 2001-02-09 Ben Elliston <bje@redhat.com>
871
872 * (profile_print_pc): Write header out in target byte order.
873
874 2001-02-09 Ben Elliston <bje@redhat.com>
875
876 * sim-profile.c (profile_pc_init): Correct bug in loop logic when
877 adjusting the pc shift value.
878
879 2001-01-12 Chris Demetriou <cgd@sibyte.com>
880
881 * aclocal.m4 (SIM_AC_OPTION_SCACHE): Properly handle the case
882 where a numeric value is supplied.
883
884 2001-01-06 Ben Elliston <bje@redhat.com>
885
886 * cgen.sh: Allow extrafiles to include the semantics files when
887 generating an ISA-specific decoder.
888
889 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
890
891 * Make-common.in (sim-io.o): Depend on targ-vals.h.
892
893 2000-12-23 Ben Elliston <bje@redhat.com>
894
895 * cgen-trace.c (trace_result): Handle 'f' type operands; output
896 them to the trace stream using sim_fpu_printn_fpu. Include
897 "sim-fpu.h".
898
899 2000-12-15 Ben Elliston <bje@redhat.com>
900
901 * sim-fpu.h (sim_fpu_printn_fpu): Declare.
902 * sim-fpu.c (print_bits): Add digits parameter. Print only as many
903 trailing digits as specified (-1 to print all digits).
904 (sim_fpu_print_fpu): New wrapper around sim_fpu_printn_fpu.
905 (sim_fpu_printn_fpu): Rename from sim_fpu_print_fpu; update calls
906 to print_bits ().
907
908 2000-12-13 Ben Elliston <bje@redhat.com>
909
910 * cgen.sh: Set prefix/PREFIX (append ISA if applicable). Factor
911 sed expressions into $sedscript, substituting @prefix@/@PREFIX@.
912 (defs): New action.
913
914 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
915
916 * sim-endian.h: Don't have parameters on macro definitions which
917 are simply renaming functions, to permit use of XCONCAT2 in both
918 the macro name and the arguments in a use of such a definition.
919
920 2000-12-11 Ben Elliston <bje@redhat.com>
921
922 * cgen-ops.h (SUBWORDDFDI): New function.
923
924 2000-12-05 Ben Elliston <bje@redhat.com>
925
926 * Make-common.in (cgen-defs): New target.
927 (cgen-decode): Pass $(EXTRAFILES).
928
929 * genmloop.sh: Use @prefix@, not @cpu@ throughout. Add -prefix and
930 -outfile-suffix options.
931
932 2000-12-04 Ben Elliston <bje@redhat.com>
933
934 * cgen-ops.h (SUBWORDSIQI): Mask off top bits.
935 (SUBWORDSIUQI): Likewise.
936 (SUBWORDDIHI): Likewise.
937 (SUBWORDDIQI): New function.
938
939 * cgen-trace.c (disassemble_insn): Remove unused declaration.
940 * cgen-scache.c (scache_option_handler): Remove unused local var.
941
942 2000-12-03 Ben Elliston <bje@redhat.com>
943
944 * sim-profile.c (profile_option_handler): Remove unused prof_nr.
945
946 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
947
948 * hw-events.c (delete_hw_event_data): Remove the scheduled events.
949
950 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
951
952 * dv-core.c (dv_core_attach_address_callback): Don't abort if
953 space is not zero.
954
955 2000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
956
957 * hw-base.c (hw_delete): Don't free base_of_hw since it's freed.
958 (set_hw_delete): Moved the macro as a function.
959 * hw-base.h (set_hw_delete): Declare as external function.
960 * hw-alloc.c (delete_hw_alloc_data): Allow to free the memory
961 allocated using hw_malloc.
962
963 2000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
964
965 * sim-options.c (sim_parse_args): Free the memory used for
966 long_options, short_options, handlers, opt_cpu, orig_val.
967
968 2000-11-20 Ben Elliston <bje@redhat.com>
969
970 * cgen-ops.h (SUBBI): New macro.
971 (SUBWORDSIQI, SUBWORDSIHI, SUBWORDSIUQI): New functions.
972 (SUBWORDDIHI, SUBWORDDIUQI, SUBWORDDIDF): Likewise.
973
974 2000-11-16 Ben Elliston <bje@redhat.com>
975
976 * cgen-types.h (VOID): New type.
977
978 2000-11-09 Ben Elliston <bje@redhat.com>
979
980 * sim-fpu.c (sim_fpu_one): Set exponent to 0.
981 (sim_fpu_two): Set exponent to 1.
982
983 2000-10-26 Ben Elliston <bje@redhat.com>
984
985 * cgen.sh: Handle an isa argument between cpu and mach. Default to
986 `all'. Pass `-i' options to cgen applications.
987 * Make-common.in (cgen-arch, cgen-cpu, cgen-decode, cgen-cpu-decode,
988 cgen-desc): Pass $(isa) to cgen.sh.
989
990 2000-10-08 Ben Elliston <bje@redhat.com>
991
992 * cgen-utils.c (cgen_rtx_error): New function.
993
994 2000-10-07 Ben Elliston <bje@redhat.com>
995
996 * cgen-trace.c (sim_cgen_disassemble_insn): Handle failure
997 conditions for sim_core_read_buffer().
998
999 2000-09-26 Dave Brolley <brolley@redhat.com>
1000
1001 * cgen-utils.c (RORQI): New function.
1002 (ROLQI): New function.
1003 (RORHI): New function.
1004 (ROLHI): New function.
1005
1006 2000-08-28 Dave Brolley <brolley@redhat.com>
1007
1008 * cgen-trace.c (sim_cgen_disassemble_insn): Make sure entire insn is
1009 in insn_value if it will fit.
1010
1011 2000-08-21 Frank Ch. Eigler <fche@redhat.com>
1012
1013 * Make-common.in, cgen.sh: Contribute CGEN-related build targets/rules.
1014
1015 2000-08-15 Dave Brolley <brolley@redhat.com>
1016
1017 * sim-profile.c (profile_print_speed): Print cpu frequency if not zero.
1018
1019 2000-08-15 Dave Brolley <brolley@redhat.com>
1020
1021 * sim-profile.h (PROFILE_DATA): Add cpu_freq.
1022 (PROFILE_CPU_FREQ): New macro.
1023 * sim-profile.c (OPTION_PROFILE_CPU_FREQUENCY): New enumerator.
1024 (profile-options): Add profile-cpu-frequency.
1025 (parse_frequency): New function.
1026 (profile_option_handler): Handle OPTION_PROFILE_CPU_FREQUENCY.
1027 (profile_print_speed): Print cpu frequency and simulated execution time.
1028 Re-indent other items to match.
1029
1030 2000-08-09 Andrew Cagney <cagney@lulu.cygnus.com>
1031
1032 * dv-sockser.c (dv_sockser_init): Eliminate MIN macro.
1033
1034 2000-07-27 Frank Ch. Eigler <fche@redhat.com>
1035
1036 From Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1037 * Makefile.in (install): Install run.1 man page.
1038
1039 Thu Jul 27 21:56:08 2000 Andrew Cagney <cagney@b1.cygnus.com>
1040
1041 From 2000-06-23 Doug Evans <dje@casey.transmeta.com>:
1042 * Makefile.in (headers,nltvals.def): Merge.
1043
1044 Thu Jul 27 20:37:47 2000 Andrew Cagney <cagney@b1.cygnus.com>
1045
1046 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
1047 * nrun.c (main): Print the simulator statistics only in
1048 verbose mode.
1049 * hw-properties.h (hw_find_integer_array_property): Fix
1050 prototype (use signed_cell).
1051
1052 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
1053 * sim-events.c (sim_events_remain_time): New function returning
1054 the time that remains before the event is raised.
1055 * hw-events.c (hw_event_remain_time): Likewise.
1056 * sim-events.h (sim_events_remain_time): Declare.
1057 * hw-events.h (hw_event_remain_time): Declare.
1058
1059 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
1060 * sim-hw.c: Use <errno.h> instead of <sys/errno.h>
1061 (OPTION_HW_LIST): New option --hw-list to list the devices.
1062 (hw_option_handler): List the device tree with 'sim_hw_print'.
1063
1064 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
1065 * sim-bits.h (_MSB_16, _LSB_16): Define for 16-bit targets.
1066 (MASK, LSBIT, MSBIT): Likewise and use _MSB_16 and _LSB_16.
1067 (EXTENDED): Define for 16-bit word size.
1068 * sim-bits.c (LSEXTRACTED, MSEXTRACTED, LSINSERTED,
1069 MSINSERTED, LSSEXT, MSSEXT): Implement for 16-bit word size.
1070 * sim-types.h: Added support for 16-bit targets.
1071
1072 2000-06-23 Frank Ch. Eigler <fche@redhat.com>
1073
1074 * cgen-trace.h (TRACE_USEFUL_MASK): Remove TRACE_EVENTS_IDX.
1075
1076 2000-06-24 Frank Ch. Eigler <fche@redhat.com>
1077
1078 From Maciej W. Rozycki <macro@ds2.pg.gda.pl>:
1079 * Makefile.in (distclean): Clean cconfig.h also.
1080
1081 Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
1082
1083 * configure: Regenerated to track ../common/aclocal.m4 changes.
1084
1085 Tue May 23 21:35:53 2000 Andrew Cagney <cagney@b1.cygnus.com>
1086
1087 * aclocal.m4 (sim-profile): Enable the profiler by default.
1088
1089 Tue May 23 20:30:12 2000 Andrew Cagney <cagney@amy.cygnus.com>
1090
1091 * run.c (main): Initialize sigrc.
1092
1093 Wed Apr 26 16:18:44 2000 Andrew Cagney <cagney@b1.cygnus.com>
1094
1095 * sim-events.c (update_time_from_event): Add more detailed event
1096 tracing.
1097
1098 2000-03-30 Dave Brolley <brolley@redhat.com>
1099
1100 * aclocal.m4 (cgen): Use guile to run cgen.
1101
1102 2000-03-23 Dave Brolley <brolley@redhat.com>
1103
1104 * cgen-fpu.h: Rename extsfdf to fextsfdf. Rename truncdfsf to
1105 ftruncdfsf.
1106 * cgen-accfp.c (fextsfdf): New function.
1107 (ftruncdfsf): New function.
1108 (cgen_init_accurate_fpu): Initialize fextsfdf and ftruncdfsf.
1109
1110 2000-03-13 Jeff Johnston <jjohnstn@cygnus.com>
1111
1112 * cgen-ops.h: Added TRUNCSISI.
1113
1114 2000-03-08 Dave Brolley <brolley@redhat.com>
1115
1116 * cgen-par.h (cgen_write_queue_kind): Add CGEN_FN_SF_WRITE.
1117 (CGEN_WRITE_QUEUE_ELEMENT): Add fn_sf_write.
1118 (sim_queue_fn_si_write): Last argument is has type USI.
1119 (sim_queue_fn_sf_write): New function.
1120 * cgen-par.c (sim_queue_fn_si_write): Declare 'value' as USI.
1121 (sim_queue_fn_sf_write): New function.
1122 (cgen_write_queue_element_execute): Handle CGEN_FN_SF_WRITE.
1123
1124 Tue Feb 22 16:45:09 2000 Andrew Cagney <cagney@b1.cygnus.com>
1125
1126 * run.c (main): When SIM_HAVE_ENVIRONMENT enable tracing with
1127 sim_set_trace and run simulator using sim_resume.
1128 (main): Add option ``-o'' - operating environment. Only continue
1129 after a signal when operating environment.
1130 (main): Always set REASON and SIGRC using sim_stop_reason.
1131 (sim_trace): Delete extern declaration.
1132
1133 2000-02-08 Nick Clifton <nickc@cygnus.com>
1134
1135 * callback.c: Fix compile time warning messages.
1136 * run.c: Fix compile time warning messages.
1137
1138 1999-12-17 Dave Brolley <brolley@cygnus.com>
1139
1140 * sim-profile.h: (set_profile_option_mask): Add prototype.
1141 * sim-profile.c (set_profile_option_mask): No longer static.
1142
1143 Wed Dec 8 21:47:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
1144
1145 * sim-arange.c: Include <string.h>
1146
1147 1999-12-07 Dave Brolley <brolley@cygnus.com>
1148
1149 * sim-options.c (print_help): '=' required before optional argument.
1150 * cgen-par.h (CGEN_FN_MEM_QI_WRITE): New enumerator.
1151 (CGEN_FN_MEM_HI_WRITE): New enumerator.
1152 (CGEN_FN_MEM_SI_WRITE): New enumerator.
1153 (CGEN_FN_MEM_DI_WRITE): New enumerator.
1154 (CGEN_FN_MEM_DF_WRITE): New enumerator.
1155 (CGEN_FN_MEM_XI_WRITE): New enumerator.
1156 (fn_mem_qi_write): New union members.
1157 (fn_mem_hi_write): New union members.
1158 (fn_mem_si_write): New union members.
1159 (fn_mem_di_write): New union members.
1160 (fn_mem_df_write): New union members.
1161 (fn_mem_xi_write): New union members.
1162 (sim_queue_fn_mem_qi_write): New function.
1163 (sim_queue_fn_mem_hi_write): New function.
1164 (sim_queue_fn_mem_si_write): New function.
1165 (sim_queue_fn_mem_di_write): New function.
1166 (sim_queue_fn_mem_df_write): New function.
1167 (sim_queue_fn_mem_xi_write): New function.
1168 * cgen-par.c (sim_queue_fn_mem_qi_write): New function.
1169 (sim_queue_fn_mem_hi_write): New function.
1170 (sim_queue_fn_mem_si_write): New function.
1171 (sim_queue_fn_mem_di_write): New function.
1172 (sim_queue_fn_mem_df_write): New function.
1173 (sim_queue_fn_mem_xi_write): New function.
1174 (cgen_write_queue_element_execute): Handle CGEN_FN_MEM_QI_WRITE,
1175 CGEN_FN_MEM_HI_WRITE, CGEN_FN_MEM_SI_WRITE, CGEN_FN_MEM_DI_WRITE,
1176 CGEN_FN_MEM_DF_WRITE, CGEN_FN_MEM_XI_WRITE.
1177
1178 1999-12-01 Dave Brolley <brolley@cygnus.com>
1179
1180 * cgen-accfp.c (subsf): Check status code.
1181 (mulsf): Ditto.
1182 (negsf): Ditto.
1183 (abssf): Ditto.
1184 (sqrtsf): Ditto.
1185 (invsf): Ditto.
1186 (minsf): Ditto.
1187 (maxsf): Ditto.
1188 (subdf): Ditto.
1189 (muldf): Ditto.
1190 (divdf): Ditto.
1191 (negdf): Ditto.
1192 (absdf): Ditto.
1193 (sqrtdf): Ditto.
1194 (invdf): Ditto.
1195 (mindf): Ditto.
1196 (maxdf): Ditto.
1197
1198 1999-11-26 Dave Brolley <brolley@cygnus.com>
1199
1200 * cgen-par.h (fn_df_write): Mode of data is DF.
1201 (sim_queue_fn_df_write): Mode of data is DF.
1202 * cgen-par.c (sim_queue_fn_df_write): Mode of data is DF.
1203
1204 1999-11-22 Dave Brolley <brolley@cygnus.com>
1205
1206 * cgen-trace.c (SIZE_TRACE_BUF): Inxrease size of trace buffer.
1207 * cgen-par.h (CGEN_WRITE_QUEUE_SIZE): Increase size of queue.
1208
1209 1999-11-04 Dave Brolley <brolley@cygnus.com>
1210
1211 * cgen-par.h (cgen_write_queue_kind): Add CGEN_FN_XI_WRITE and
1212 CGEN_MEM_XI_WRITE members.
1213 (CGEN_WRITE_QUEUE_ELEMENT): Add fn_xi_write and mem_xi_write members.
1214 (sim_queue_fn_xi_write): New function.
1215 (sim_queue_mem_xi_write): New function.
1216
1217 * cgen-par.c (sim_queue_fn_xi_write): New function.
1218 (sim_queue_mem_xi_write): New function.
1219 (cgen_write_queue_element_execute): Handle CGEN_FN_XI_WRITE and
1220 CGEN_MEM_XI_WRITE.
1221
1222 1999-10-22 Dave Brolley <brolley@cygnus.com>
1223
1224 * cgen-par.h (insn_address): New field in CGEN_WRITE_QUEUE_ELEMENT.
1225 (CGEN_WRITE_QUEUE_ELEMENT_IADDR): New macro.
1226 * cgen-par.c: Set insn_address for each queued write. Get pc from
1227 cpu when executing queued writes.
1228
1229 1999-10-19 Dave Brolley <brolley@cygnus.com>
1230
1231 * cgen-par.h (sim_queue_fn_pc_write): New function.
1232 (CGEN_FN_PC_WRITE): New enumerator.
1233 (fn_pc_write): New union member.
1234 * cgen-par.c (sim_queue_fn_pc_write): New function.
1235 (cgen_write_queue_element_execute): Handle CGEN_FN_PC_WRITE.
1236
1237 1999-10-18 Dave Brolley <brolley@cygnus.com>
1238
1239 * cgen-par.h (CGEN_MEM_DI_WRITE): New enumerator.
1240 (CGEN_MEM_DF_WRITE): New enumerator.
1241 (mem_di_write): New union member.
1242 (mem_df_write): New union member.
1243 * cgen-par.c (sim_queue_mem_di_write): New function.
1244 (sim_queue_mem_df_write): New function.
1245 (cgen_write_queue_element_execute): Handle CGEN_MEM_DI_WRITE and
1246 CGEN_MEM_DF_WRITE.
1247 * cgen-accfp.c (divsf): Check for division errors.
1248
1249 1999-10-14 Doug Evans <devans@casey.cygnus.com>
1250
1251 * cgen-engine.h (EXTRACT_INT,EXTRACT_UINT): Delete.
1252
1253 1999-10-07 Dave Brolley <brolley@cygnus.com>
1254
1255 * cgen-par.h (CGEN_FN_HI_WRITE): New enumerator.
1256 (fn_hi_write): New union member.
1257 (sim_queue_fn_hi_write): New function.
1258 * cgen-par.c (sim_queue_fn_hi_write): New function.
1259 (cgen_write_queue_element_execute): Handle CGEN_FN_HI_WRITE.
1260
1261 1999-09-29 Doug Evans <devans@casey.cygnus.com>
1262
1263 * cgen-defs.h (sim_engine_invalid_insn): New arg `vpc'.
1264 Change type of result to SEM_PC.
1265
1266 Wed Sep 29 14:43:57 1999 Dave Brolley <brolley@cygnus.com>
1267
1268 * cgen-defs.h (sim_engine_invalid_insn): Now returns PC.
1269
1270 1999-09-25 Doug Evans <devans@casey.cygnus.com>
1271
1272 * cgen-ops.h (SUBWORD*): Delete cpu arg.
1273 (JOIN*): Delete cpu arg.
1274
1275 Tue Sep 21 17:14:16 1999 Dave Brolley <brolley@cygnus.com>
1276
1277 * genmloop.sh (@cpu@_scache_lookup): No longer takes last_insn_p
1278 parameter.
1279 (SET_LAST_INSN_P): Set last_insn_p flag in the scache element.
1280
1281 Mon Sep 20 21:44:06 1999 Geoffrey Keating <geoffk@cygnus.com>
1282
1283 * sim-fpu.c (i2fpu): Keep the guard bits sticky when converting
1284 large values.
1285
1286 Tue Feb 8 16:33:48 2000 Andrew Cagney <cagney@b1.cygnus.com>
1287
1288 * run.c (main): Check the sim_stop_reason and only halt simulation
1289 when a valid stop condition is identified.
1290
1291 Wed Sep 15 14:12:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
1292
1293 * hw-tree.c, hw-properties.c, hw-instances.c: Include "sim-io.h".
1294
1295 Tue Sep 14 14:15:47 1999 Dave Brolley <brolley@cygnus.com>
1296
1297 * cgen-par.h (CGEN_BI_WRITE): New enumerator.
1298 (bi_write): New union element.
1299 (sim_queue_bi_write): New function.
1300 * cgen-par.c (sim_queue_bi_write): New function.
1301 (cgen_write_queue_element_execute): Handle CGEN_BI_WRITE.
1302
1303 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
1304
1305 * configure: Regenerated to track ../common/aclocal.m4 changes.
1306
1307 * aclocal.m4 (WERROR_CFLAGS, WARN_CFLAGS): Merge from
1308 ../gdb/configure.in.
1309 * Make-common.in (WERROR_CFLAGS, WARN_CFLAGS): Define.
1310 (SIM_WERROR_CFLAGS, SIM_WARN_CFLAGS): Define.
1311 (SIM_WARNINGS): Delete
1312 (CONFIG_CFLAGS): Update.
1313
1314 Tue Aug 31 16:01:42 1999 Dave Brolley <brolley@cygnus.com>
1315
1316 * cgen-par.c: New file.
1317 * cgen-par.h: New file.
1318 * cgen-sim.h (cgen-par.h): #include it.
1319 * cgen-cpu.h (write_queue): New field.
1320 (CPU_WRITE_QUEUE): New access macro.
1321 * Make-common.in (CGEN_MAIN_CPU_DEPS): Add cgen-par.h.
1322 (cgen-par.o): New target.
1323
1324 1999-08-28 Doug Evans <devans@casey.cygnus.com>
1325
1326 * cgen-types.h (mode_type,MODE_VOID): Renamed from MODE_VM.
1327 * cgen-utils.c (mode_names): Update.
1328
1329 1999-08-20 Doug Evans <devans@casey.cygnus.com>
1330
1331 * genmloop.sh: New args -parallel-generic-write, -parallel-only.
1332 * cgen-engine.h (SEMANTIC_FN): Don't use version with PAREXEC
1333 buffer arg if WITH_PARALLEL_GENWRITE.
1334 (struct insn_sem): Handle WITH_PARALLEL_GENWRITE.
1335 (struct idesc): Ditto.
1336
1337 Wed Aug 18 18:17:28 1999 Doug Evans <devans@canuck.cygnus.com>
1338
1339 * sim-model.c (model_option_handler): Add \n to error message.
1340
1341 1999-08-08 Doug Evans <devans@casey.cygnus.com>
1342
1343 * cgen-engine.h (SEM_FN_NAME,SEMF_FN_NAME): Delete.
1344 (insn_sem): Rewrite.
1345 (sem_fn_desc): New struct.
1346 (idesc): Rewrite.
1347 * genmloop.sh (scache case,@cpu@_scache_lookup): Profile scache hit,
1348 misses if ! FAST_P.
1349 (scache case): Split into non-parallel/parallel versions.
1350 (@cpu@_engine_run_{full,fast}): Call @cpu@_{sem,semf}_init_idesc_table
1351 if not use semantic switch version.
1352
1353 1999-08-04 Doug Evans <devans@casey.cygnus.com>
1354
1355 * cgen-defs.h (SEM_BRANCH_TYPE): New enum.
1356 * cgen-engine.h (SEM_BRANCH_UNTAKEN,SEM_BRANCH_UNCACHEABLE): Delete.
1357 (SEM_BRANCH_INIT_EXTRACT): Delete.
1358 (SEM_BRANCH_INIT): Replace npc_ptr with br_type.
1359 (SEM_BRANCH_FINI): Ditto.
1360 (SEM_BRANCH_VIA_ADDR): Ditto.
1361 (SEM_BRANCH_VIA_CACHE): Ditto. Delete cachvarptr arg.
1362 (SEM_BRANCH_ADDR_CACHE): Delete.
1363 (SEM_SKIP_COMPILE,SEM_SKIP_INSN): New macros.
1364 * cgen-scache.h (cpu_scache): Replace member pbb_pr_npc_ptr with
1365 pbb_br_type.
1366 * genmloop.sh (eng.hin): Update prototype of ${cpu}_pbb_cti_chain.
1367 (@cpu@_pbb_begin): Initialize branch_target.
1368 (@cpu@_pbb_cti_chain): Replace arg new_vpc_ptr with br_type.
1369 (@cpu@_engine_run_full): Replace local pbb_br_npc_ptr with
1370 pbb_br_type.
1371 (@cpu@_engine_run_fast): Ditto.
1372
1373 Fri Jul 16 14:47:53 1999 Dave Brolley <brolley@cygnus.com>
1374
1375 * cgen-utils.c (RORSI): New function.
1376 (ROLSI): New function.
1377
1378 1999-07-14 Doug Evans <devans@casey.cygnus.com>
1379
1380 * Makefile.in (TAGS): Tweak TAGS regex.
1381 * cgen-mem.h (*): Add TAGS markers.
1382
1383 Sun Jul 11 23:47:20 1999 Andrew Cagney <cagney@b1.cygnus.com>
1384
1385 * sim-resume.c (sim_resume): Ensure that the siggnal [sic] is only
1386 passed in when sim_resume is first entered - don't re-pass it
1387 after a restart.
1388
1389 Sun Jul 11 23:34:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
1390
1391 * sim-options.c (standard_option_handler): Add OPTION_LOAD_VMA and
1392 OPTION_LOAD_LMA but only when is defined.
1393 (standard_options): When SIM_HANDLES_LMA is defined include
1394 options --load-lma and --load-vma.
1395 (standard_install): Initialize STATE_LOAD_AT_LMA_P.
1396
1397 * sim-base.h (STATE_LOAD_AT_LMA_P): Define.
1398 (struct sim_state_base): Add load_at_lma_p.
1399 * sim-hload.c (sim_load): Replace SIM_HANDLES_LMA with
1400 STATE_LOAD_AT_LMA_P.
1401
1402 Sun Jul 11 12:03:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
1403
1404 * nrun.c (main): Re-format loop gnu style.
1405
1406 Wed Jul 7 19:56:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
1407
1408 * dv-sockser.c (connected_p): Initialize addrlen.
1409
1410 1999-07-06 Dave Brolley <brolley@cygnus.com>
1411
1412 * cgen-accfp.c (floatsidf): New function.
1413 (fixdfsi): New function.
1414
1415 1999-07-06 Doug Evans <devans@casey.cygnus.com>
1416
1417 * sim-model.c (sim_model_init): Issue error if machine is unsupported.
1418
1419 1999-07-05 Doug Evans <devans@casey.cygnus.com>
1420
1421 * Make-common.in (CGEN_MAIN_CPU_DEPS): Add cgen-fpu.h.
1422 (cgen-fpu.o,cgen-accfp.o): Add rules for.
1423 * cgen-fpu.c: New file.
1424 * cgen-fpu.h: New file.
1425 * cgen-accfp.c: New file.
1426 * cgen-cpu.h (CGEN_CPU): New member fpu.
1427 * cgen-mem.h: Redo fp support.
1428 * cgen-ops.h: Delete k&r support. Redo fp support.
1429 * cgen-sim.h: Include cgen-fpu.h.
1430 * cgen-types.h (SF,DF,XF,TF): Moved to cgen-fpu.h.
1431
1432 1999-06-23 Doug Evans <devans@casey.cygnus.com>
1433
1434 * cgen-engine.h (TARGET_SEM_BRANCH_FINI): Remove cruft at end of
1435 ifndef.
1436 * genmloop.sh (@cpu@_scache_lookup): Delete unused local var.
1437 (@cpu@_pbb_cti_chain): Minor clean up.
1438
1439 1999-05-08 Felix Lee <flee@cygnus.com>
1440
1441 * aclocal.m4: Use AC_EXEEXT instead of AM_EXEEXT. Delete defn of
1442 AM_CYGWIN32 and AM_EXEEXT.
1443 * configure: Regenerate.
1444
1445 Fri Apr 16 16:43:22 1999 Doug Evans <devans@charmed.cygnus.com>
1446
1447 * sim-core.c (device_error,device_io_read_buffer,
1448 device_io_write_buffer): Delete decls.
1449 * sim-core.h: Put them here.
1450
1451 * sim-core.c (sim_core_read_buffer): Pass sd to device_io_read_buffer.
1452 (sim_core_write_buffer): Pass sd to device_io_write_buffer.
1453 * sim-n-core.h (sim_core_read_aligned_N): Ditto.
1454 (sim_core_write_aligned_N): Ditto.
1455
1456 1999-04-14 Stephane Carrez <stcarrez@worldnet.fr>
1457
1458 * sim-memopt.c (sim_memory_uninstall): Don't look into
1459 free()d memory.
1460
1461 1999-04-14 Doug Evans <devans@casey.cygnus.com>
1462
1463 * cgen-utils.scm (virtual_insn_entries): Update attribute definition.
1464
1465 1999-04-13 Doug Evans <devans@casey.cygnus.com>
1466
1467 * sim-core.c (sim_core_read_buffer): Handle NULL cpu when WITH_DEVICES.
1468 (sim_core_write_buffer): Ditto.
1469
1470 1999-04-02 Keith Seitz <keiths@cygnus.com>
1471
1472 * sim-io.c (sim_io_poll_quit): Only call the poll_quit callback
1473 after the interval counter has expired.
1474 (POLL_QUIT_INTERVAL): Define. Used to tweak the frequency of
1475 poll_quit callbacks. May be overridden by Makefile.
1476 (poll_quit_counter): New global.
1477 * sim-events.c: Remove all mentions of ui_loop_hook. The
1478 host callback "poll_quit" will serve the purpose.
1479 * run.c: Add definition of ui_loop_hook when NEED_UI_LOOP_HOOK
1480 is defined.
1481 * nrun.c: Remove declaration of ui_loop_hook.
1482
1483 Wed Mar 31 18:55:41 1999 Doug Evans <devans@canuck.cygnus.com>
1484
1485 * cgen-run.c (sim_resume): Don't tell main loop to run "forever"
1486 if being used by gdb.
1487
1488 1999-03-22 Doug Evans <devans@casey.cygnus.com>
1489
1490 * cgen-types.h (XF,TF): Tweak.
1491 * cgen-ops.h: Redo inline support. Delete DI_FN_SUPPORT,
1492 in cgen-types.h.
1493 (SUBWORD*,JOIN*): Define.
1494 * cgen-trace.c (sim_cgen_disassemble_insn): Update, base_insn_bitsize
1495 moved into cpu descriptor.
1496 * sim-model.h (MACH): New member `num'.
1497
1498 1999-02-09 Doug Evans <devans@casey.cygnus.com>
1499
1500 * cgen-cpu.h (CGEN_DISASSEMBLER): New type.
1501 (CGEN_CPU): Member opcode renamed to cpu_desc.
1502 New members get_idata,disassembler.
1503 * cgen-defs.h (CGEN_INSN_VIRTUAL_P): CGEN_INSN_ATTR renamed to
1504 CGEN_INSN_ATTR_VALUE.
1505 (CGEN_STATE): Delete member opcode_table.
1506 (sim_disassemble_insn): Delete decl.
1507 * cgen-engine.h (struct insn_sem): Moved to here from <cpu>-decode.c.
1508 (struct idesc): Moved to here from <cpu>-decode.h.
1509 * cgen-run.c (prime_cpu): Call prepare_run callback.
1510 * cgen-trace.h (SFILE): New type.
1511 (sim_disasm_sprintf): Declare.
1512 (sim_disasm_read_memory,sim_disasm_perror_memory): Declare.
1513 (sim_cgen_disassemble_insn): Declare.
1514 * cgen-trace.c: Include errno.h,dis-asm.h. Don't include cpu-opc.h.
1515 (insn_fields): Delete.
1516 (trace_insn_fini): STATE_OPCODE_TABLE (sd) replaced with
1517 CPU_CPU_DESC (cpu).
1518 (trace_insn): Call CPU_DISASSEMBLER hook.
1519 (sim_disasm_sprintf): New function.
1520 (sim_disasm_read_memory): New function.
1521 (sim_disasm_perror_memory): New function.
1522 (sim_cgen_disassemble_insn): New function.
1523 * cgen-utils.c: Don't include cpu-opc.h.
1524 (virtual_insn_entries): New static local.
1525 (cgen_virtual_insn_table): Renamed from cgen_virtual_opcode_table.
1526 (cgen_insn_name): Rewrite.
1527 (disasm_sprintf,sim_disassemble_insn): Moved to cgen-trace.c.
1528 * cgen.sh (desc): New file generator handler.
1529 * genmloop.sh: -parallel changed to -parallel-read/-parallel-write.
1530 Define WITH_PARALLEL_READ/WITH_PARALLEL_WRITE appropriately.
1531 Don't include cpu-opc.h,cpu-sim.h.
1532 * sim-model.c (model_set): Delete SIM_DESC arg.
1533 (sim_model_set): Update.
1534 * sim-model.h (MACH): New member prepare_run.
1535
1536 1999-01-28 Frank Ch. Eigler <fche@cygnus.com>
1537
1538 * sim-memopt.c (memory_option_handler): Avoid memset() calls
1539 if redundant with allocator functions.
1540
1541 Wed Jan 27 17:19:09 1999 Doug Evans <devans@canuck.cygnus.com>
1542
1543 * cgen-engine.h (EXTRACT_LSB0_{INT,UINT}): Fix.
1544
1545 * sim-profile.h: Make like sim-trace.h.
1546 (PROFILE_USEFUL_MASK): New macro.
1547 * sim-profile.c (profile_options): Make like trace_options, allow
1548 optional on|off arg where applicable.
1549 (set_profile_option_mask): New function.
1550 (sim_profile_set_option): New function.
1551 (profile_option_handler): Simplify.
1552 Have -p only enable selected things, not everything.
1553 Add missing break to OPTION_PROFILE_PC_RANGE.
1554 * cgen-scache.c (scache_options): Allow optional on|off arg to
1555 --profile-scache.
1556 (scache_option_handler): Use sim_profile_set_option.
1557
1558 1999-01-26 Frank Ch. Eigler <fche@cygnus.com>
1559
1560 * sim-memopt.c (memory_options): Add MEMORY_FILL option.
1561 (memory_option_handler): Implement MEMORY_FILL option. Make
1562 MEMORY_CLEAR an alias for MEMORY_FILL=0.
1563 (parse_ulong_value): New function.
1564 (do_memopt_add): Allocate all buffers. Optionally fill them.
1565
1566 1999-01-15 Richard Henderson <rth@cygnus.com>
1567
1568 * hw-events.c (hw_event_queue_schedule): _vtracef takes a
1569 va_list, not an integer.
1570 * sim-events.c (sim_events_schedule): Likewise.
1571
1572 * sim-types.h (UNSIGNED32, UNSIGNED64): Properly cast to
1573 the appropriate type.
1574
1575 1999-01-14 Doug Evans <devans@casey.cygnus.com>
1576
1577 * cgen-defs.h (PCADDR,CIA): Define in terms of IADDR.
1578 (sim_disassemble_insn): Update prototype.
1579 (sim_engine_invalid_insn): Ditto.
1580 * cgen-engine.h (SEMANTIC_FN): Add !WITH_SCACHE version.
1581 (SEM_BRANCH_INIT): PCADDR->IADDR.
1582 (SEM_NBRANCH_FINI): New macro for !WITH_SCACHE case.
1583 * cgen-scache.c (scache_lookup,scache_lookup_or_alloc): PCADDR->IADDR.
1584 * cgen-scache.h (*): Ditto.
1585 * cgen-trace.c (*): Ditto.
1586 * cgen-trace.h (*): Ditto.
1587 * cgen-utils.c (*): Ditto.
1588 * cgen-types.h (integer modes): Use signedNN/unsignedNN types.
1589 (insn_t): Delete.
1590 * genmloop.sh (@cpu@_fill_argbuf): Add !WITH_SCACHE support.
1591 (simple engine framework): Rewrite.
1592 * sim-module.c (modules): Install model module sooner (and in
1593 particular before the profile module).
1594
1595 1999-01-12 Doug Evans <devans@casey.cygnus.com>
1596
1597 * sim-model.h (sim_mach_lookup_bfd_name): Add prototype.
1598 * sim-model.c (sim_mach_lookup_bfd_name): New function.
1599 (sim_model_init): Call it.
1600
1601 * cgen-trace.c (trace_insn): Pass pc to trace_prefix for virtual insns.
1602
1603 1999-01-05 Doug Evans <devans@casey.cygnus.com>
1604
1605 * Make-common.in (CGEN_INCLUDE_DEPS): Add cgen-defs.h, cgen-engine.h.
1606 * cgen-engine.h (SEM_BRANCH_FINI): New arg pcvar, all uses updated.
1607 (SEM_BRANCH_INIT_EXTRACT): New macro.
1608 (SEM_BRANCH_INIT): Add taken_p.
1609 (TARGET_SEM_BRANCH_FINI): Provide default definition.
1610 (SEM_BRANCH_FINI): Use it.
1611 (SEM_INSN): Update.
1612 * cgen-run.c (sim_resume): Handle tracing of last insn.
1613 * cgen-scache.h (WITH_SCACHE): Define as 0 if not defined.
1614 * cgen-trace.c (current_abuf): New static global.
1615 (trace_insn_init): Initialize it.
1616 (trace_insn_fini): Use it.
1617 (trace_insn): Set it.
1618 * cgen.sh (arch case): Pass -m ${mach} to cgen.
1619 * genmloop.sh (@cpu@_emit_before): Only define if WITH_SCACHE_PBB.
1620 (@cpu@_emit_after): Ditto.
1621 (simple @cpu@_engine_run_full): New local `pc'. Initialize semantic
1622 labels if WITH_SEM_SWITCH_FULL.
1623 * sim-model.c: Include bfd.h.
1624 (sim_model_init): New function.
1625 (sim_model_install): Record init fn.
1626 * sim-model.h (MACH): New member bfd_name.
1627 * sim-module.c (modules): Initialize model before scache.
1628
1629 1998-12-24 Frank Ch. Eigler <fche@cygnus.com>
1630
1631 * dv-sockser.c (DEFAULT_TIMEOUT): Increase to 1 ms.
1632
1633 * nrun.c (main): Remain in simulation loop for traps and
1634 exceptions when in operating environment mode.
1635 (ui_loop_hook): New stub hook for standalone use.
1636 * sim-events.c (sim_events_process): Call ui_loop_hook
1637 periodically on CYGWIN host.
1638
1639 * sim-reason.c (sim_stop_reason): Return host signal numbers
1640 to gdb on sim_stopped and sim_signalled cases.
1641 * sim-engine.c (sim_engine_halt): Call SIM_CPU_EXCEPTION_SUSPEND
1642 hook just before longjmp.
1643 * sim-resume.c (sim_resume): Call SIM_CPU_EXCEPTION_RESUME
1644 hook just before sim_engine_run.
1645
1646 * sim-n-core.h (sim_core_trace_M): Allay const warning.
1647 * sim-trace.h (trace_generic): Ditto.
1648 * sim-trace.c (trace_generic): Ditto.
1649
1650 1998-12-14 Doug Evans <devans@casey.cygnus.com>
1651
1652 * Make-common.in (SIM_MAIN_DEPS): New var.
1653 (CGEN_MAIN_CPU_DEPS): New var.
1654 * aclocal.m4: Add --enable-cgen-maint option.
1655 * cgen-mem.h (GETMEM*): New arg `pc'. Pass to sim_core routine.
1656 (SETMEM*): Ditto.
1657 (GETIMEM*): Pass pc value to sim_core routine.
1658
1659 Fri Dec 11 16:58:36 1998 Andrew Cagney <cagney@b1.cygnus.com>
1660
1661 * hw-handles.c (hw_handle_add_ihandle, hw_handle_add_phandle):
1662 Compare with ZERO not NULL.
1663
1664 Thu Dec 10 14:14:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
1665
1666 * hw-properties.c, hw-instances.c, hw-tree.c: Include
1667 "sim-assert.h".
1668
1669 1998-12-09 Doug Evans <devans@casey.cygnus.com>
1670
1671 * sim-arange.c: Include libiberty.h, and stdlib.h if present.
1672 * sim-trace.c: Include stdlib.h if present.
1673 * dv-sockser.c: Include unistd.h if present.
1674 (dv_sockser_init): Add missing arg to call to sim_io_eprintf.
1675 * cgen-scache.c (scache_flush): Delete unused locals i,sc.
1676
1677 1998-12-08 James E Wilson <wilson@wilson-pc.cygnus.com>
1678
1679 * gennltvals.sh: Add i960.
1680 * nltvals.def: Rebuild.
1681
1682 1998-12-04 Doug Evans <devans@casey.cygnus.com>
1683
1684 * cgen-defs.h: New file, old cgen-sim.h.
1685 * cgen-sim.h: Simple header that includes others.
1686 * sim-arange.c: New file.
1687 * sim-arange.h: New file.
1688 * sim-basics.h: Include it.
1689 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-arange.o.
1690 (sim-arange.o): Add rule for.
1691 * sim-cpu.h (sim_cpu_msg_prefix): Add prototype.
1692 (sim_io_eprintf_cpu): Add prototype.
1693 * sim-inline.h (HAVE_INLINE): Define if GNUC.
1694 (INLINE2): New macro.
1695 (EXTERN_INLINE): New macro.
1696 * sim-module.c (sim_post_argv_init): Initialize cpu backlink
1697 before calling module init fns.
1698 * sim-profile.c (OPTION_PROFILE_*): Move into enum.
1699 (profile_init): New function.
1700 (profile_options): New option --profile-range.
1701 (profile_option_handler): Handle --profile-range.
1702 (profile_print_insn): Qualify address range specific section titles.
1703 (profile_print_addr_ranges): New function.
1704 (profile_info): Print address ranges if specified.
1705 (profile_install): Set profile_init init fn.
1706 * sim-profile.h (PROFILE_DATA): New member `range'.
1707 * sim-trace.c (trace_init): New function.
1708 (trace_options): New option --trace-range.
1709 (trace_option_handler): Handle --trace-range.
1710 (trace_install): Set trace_init init fn.
1711 * sim-trace.h (TRACE_DATA): New member `range'.
1712 * sim-utils.c (sim_cpu_msg_prefix): New function.
1713 (sim_io_eprintf_cpu): New function.
1714 * cgen-engine.h (PC_IN_TRACE_RANGE_P): New macro.
1715 (PC_IN_PROFILE_RANGE_P): New macro.
1716 * cgen-trace.c (trace_insn_init): Set current_insn to NULL.
1717 (trace_insn_fini): New arg abuf. All callers updated.
1718 Exit early if trace_insn not called. Check ARGBUF_PROFILE_P before
1719 printing cycle counts.
1720 * cgen-trace.h (trace_insn_fini): Update prototype.
1721 (TRACE_RESULT_P): New macro.
1722 (TRACE_INSN_INIT,TRACE_INSN_FINI): New arg abuf. All callers updated.
1723 (TRACE_INSN): Check ARGBUF_TRACE_P.
1724 (TRACE_EXTRACT,TRACE_RESULT): New arg abuf. All callers updated.
1725 * cgen-types.h (SIM_INLINE): Delete.
1726 (SIM_HAVE_MODEL,SIM_HAVE_ADDR_RANGE): Define.
1727 * cgen-utils.c: Don't include cgen-engine.h
1728 * genmloop.sh (@cpu@_fill_argbuf): New function.
1729 (@cpu@_fill_argbuf_tp): New function.
1730 (@cpu@_emit_before,@cpu@_emit_after): New functions.
1731 (@cpu@_pbb_begin): Prefix cti_sc,insn_count with '_'.
1732 (SET_CTI_VPC,SET_INSN_COUNT): Update.
1733 (@cpu@_pbb_before): Check ARGBUF_PROFILE_P before calling
1734 doing profiling. Update call to TRACE_INSN_INIT,TRACE_INSN_FINI.
1735 (@cpu@_pbb_after): Check ARGBUF_PROFILE_P before calling
1736 doing profiling. Update call to TRACE_INSN_FINI.
1737
1738 * sim-memopt.c (sim_memory_uninstall): Result type is `void'.
1739
1740 1998-12-03 Frank Ch. Eigler <fche@cygnus.com>
1741
1742 * sim-memopt.c (sim_memory_uninstall): Deallocate all memory
1743 regions.
1744
1745 1998-12-01 Doug Evans <devans@casey.cygnus.com>
1746
1747 * sim-inline.c (SIM_INLINE_P): Fix typo.
1748
1749 1998-11-30 Doug Evans <devans@casey.cygnus.com>
1750
1751 * cgen-utils.c (cgen_virtual_opcode_table): Update.
1752
1753 Tue Nov 24 18:40:03 1998 Andrew Cagney <cagney@b1.cygnus.com>
1754
1755 * gennltvals.sh: Add v850 and d10v. Sort alphabetically.
1756 * nltvals.def: Re-generate.
1757
1758 Mon Nov 23 13:28:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
1759
1760 * sim-core.c (reverse_n, sim_core_uninstall, sim_core_init,
1761 sim_core_map_attach, sim_core_map_detach, next_event_queue,
1762 new_sim_core_mapping): Only define when EXTERN_SIM_CORE_P, pacify
1763 GCC.
1764 * sim-events.c (sim_events_uninstall, sim_events_suspend,
1765 sim_events_resume, sim_events_zalloc, insert_sim_event): Ditto.
1766
1767 1998-11-22 Doug Evans <devans@tobor.to.cygnus.com>
1768
1769 * genmloop.sh (${cpu}_pbb_chain): Watch for Ctrl-C's.
1770 (${cpu}_pbb_cti_chain): Ditto.
1771
1772 1998-11-18 Doug Evans <devans@casey.cygnus.com>
1773
1774 * Make-common.in (cgen-utils.o): Depend on cgen-engine.h.
1775 * cgen-engine.h (EXTRACT_[ML]SB0_{INT,UINT}): New macros.
1776 (EXTRACT_INT,EXTRACT_UINT): New macros.
1777 (SEM_SEM_ARG): New macro.
1778 (SEM_NEXT_VPC): New arg `pc'.
1779 * cgen-sim.h (EXTRACT_SIGNED,EXTRACT_UNSIGNED): Delete.
1780 (sim_disassemble_insn): Update prototype.
1781 * cgen-trace.c (current_insn,insn_fields): New static locals.
1782 (trace_insn): Set them.
1783 * cgen-utils.c: #include cgen-engine.h.
1784 (sim_disassemble_insn): New arg insn_fields.
1785 Handle variable length insns.
1786 * genmloop.sh: Only emit pbb decls if -pbb.
1787 (${cpu}_scache_lookup): New arg `vpc'.
1788 (scache support): Fetch pc before entering loop.
1789
1790 * gennltvals.sh: Add fr30 support.
1791 * nltvals.def: Rebuild.
1792
1793 Wed Nov 18 10:22:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
1794
1795 * sim-types.h: Re-do type system so that GCC's attribute and mode
1796 are used to specify types. Handle case of ALPHA.
1797
1798 1998-11-13 Frank Ch. Eigler <fche@elastic.org>
1799
1800 * aclocal.m4: Add tests for dlopen family.
1801 * config.in: Regenerated.
1802
1803 Wed Nov 11 14:02:25 1998 Doug Evans <devans@canuck.cygnus.com>
1804
1805 * sim-hload.c (sim_load): Pass `prog_name' to sim_load_file, not NULL.
1806
1807 Wed Nov 4 23:51:19 1998 Doug Evans <devans@seba.cygnus.com>
1808
1809 * genmloop.sh (eng.hin): Rename HAVE_PARALLEL_EXEC to
1810 HAVE_PARALLEL_INSNS, define as 0 or 1. Emit decls of fns in mloop.cin.
1811 * cgen-engine.h: Typedefs of IADDR,CIA,SEM_ARG,SEM_PC moved ...
1812 * cgen-sim.h: ... to here.
1813
1814 Wed Oct 28 12:00:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
1815
1816 * aclocal.m4 (enable-build-warnings): Replace
1817 enable-sim-warnings. Extend =LIST syntax so that prepend and
1818 append of options is possible. Drop -Werror, add
1819 -Wstrict-prototypes for GDB compatibility.
1820 * Make-common.in (SIM_WARNINGS): Update.
1821
1822 Mon Oct 19 13:56:32 1998 Doug Evans <devans@seba.cygnus.com>
1823
1824 * Make-common.in (CGEN_INCLUDE_DEPS): Define.
1825 (sim-core.o): Delete duplicate dependence on $(SIM_EXTRA_DEPS).
1826 (sim-cpu.o,sim-endian.o,sim-hw.o): Ditto.
1827 (cgen-run.o,cgen-scache.o,cgen-trace.o,cgen-utils.o): Delete
1828 explicit cgen header dependencies, require SIM_EXTRA_DEPS to include
1829 CGEN_INCLUDE_DEPS.
1830 * cgen-cpu.h: New file.
1831 * cgen-engine.h: New file.
1832 * cgen-scache.h: New file.
1833 * cgen-sim.h: Delete portions moved to new files.
1834 * genmloop.sh: Generate two files eng.hin,mloop.cin explicitly,
1835 rather than sending result to stdout.
1836
1837 Fri Oct 9 14:20:22 1998 Doug Evans <devans@seba.cygnus.com>
1838
1839 * Make-common.in (sim-reg.o): New rule.
1840 (cgen-run.o): New rule.
1841 * cgen-ops.h: Delete many BI macros. Change all UBI -> BI.
1842 * cgen-run.c (prime_cpu): New function.
1843 * cgen-scache.c: Add pseudo-basic-block (pbb) scaching support.
1844 (scache_option_handler, case OPTION_PROFILE_SCACHE): Handle explicitly
1845 mentioned cpu.
1846 (scache_flush_cpu,scache_lookup,scache_lookup_or_alloc): New fns.
1847 * cgen-sim.h (CGEN_INSN_VIRTUAL_TYPE): New enum.
1848 (CGEN_INSN_VIRTUAL_P): New macro.
1849 (SEM_PC): New typedef.
1850 (SEMANTIC_FN): Change type of result to SEM_PC.
1851 (SEM_SET_FULL_CODE,SEM_SET_FAST_CODE,SEM_SET_CODE): New macros.
1852 (IDESC_CTI_P,IDESC_SKIP_P): New macros.
1853 (SCACHE_MAP): New typedef.
1854 (CPU_SCACHE): Add pbb support.
1855 (scace_lookup,scache_lookup_or_alloc,scache_flush_cpu): Declare.
1856 (SEM_BRANCH_INIT_EXTRACT,SEM_BRANCH_INIT,SEM_BRANCH_FINI): New macros.
1857 (CGEN_CPU): New members running_p,insn_count,{fast,full}_engine_fn,
1858 max_slice_insns.
1859 (INSN_NAME): Delete.
1860 (cgen_insn_name): Declare.
1861 (sim_engine_invalid_insn): Renamed from sim_engine_illegal_insn.
1862 * cgen-trace.c (trace_buf): Shrink from 1024 to 256 bytes.
1863 (first_insn_p): Make static.
1864 (trace_insn): Handle virtual insns specially.
1865 (cgen_trace_printf): Ensure we haven't overflowed the buffer.
1866 * cgen-types.h (UBI): Delete.
1867 (MODE_TYPE): New enum.
1868 (HOSTINT,HOSTUINT,HOSTPTR): Delete.
1869 * cgen-utils.c (mode_names): Delete UBI. Add INT,UINT,PTR.
1870 (cgen_virtual_opcode_table): New global.
1871 (cgen_insn_name): New function.
1872 (sim_disassemble_insn): Ignore virtual insns.
1873 * genmloop.sh: Delete top level loop generation. Add pbb support.
1874 * sim-cpu.h (CPU_INSN_NAME_FN): New typedef.
1875 (sim_cpu_base): New members max_insns,insn_name,model_data.
1876 (CPU_PC_GET,CPU_PC_SET): New macros.
1877 (sim_pc_get,sim_pc_set): Declare.
1878 * sim-model.c (model_set): Call model init fn.
1879 * sim-model.h (MODEL_FN): New typedef.
1880 (INSN_TIMING): New member model_fn.
1881 (MODEL): New members num,init.
1882 * sim-profile.c (sim_profile_print_bar): Renamed from print_bar.
1883 All callers updated.
1884 (profile_insn_init): New fn.
1885 (profile_print_insn): Update, INSN_NAME -> CPU_INSN_NAME.
1886 Exit early if insn profiling not supported.
1887 (profile_print_memory): Update, MAX_MODES -> MODE_TARGET_MAX.
1888 (profile_install): Record profile_insn_init as init fn.
1889 (profile_uninstall): Free PROFILE_INSN_COUNT if non-null.
1890 * sim-profile.h: Update, MAX_MODES -> MODE_TARGET_MAX.
1891 (PROFILE_DATA): Delete member exec_time.
1892 Change insn_count to pointer to array, rather than the array.
1893 (sim_profile_print_bar): Declare.
1894
1895 Wed Oct 7 16:56:42 1998 Doug Evans <devans@seba.cygnus.com>
1896
1897 * cgen-run.c: New file.
1898 * sim-reg.c: New file.
1899
1900 Mon Sep 14 10:58:19 1998 Frank Ch. Eigler <fche@cygnus.com>
1901
1902 * aclocal.m4: Add checks for -lsocket and -lnsl.
1903
1904 * dv-sockser.c (dv_sockser_init): Use SO_REUSEADDR to
1905 allow local port reuse on listening socket.
1906
1907 Tue Sep 1 15:36:52 1998 Frank Ch. Eigler <fche@cygnus.com>
1908
1909 * sim-config.h: Remove reference to linux kernel header.
1910
1911 Tue Aug 25 12:45:27 1998 Frank Ch. Eigler <fche@cygnus.com>
1912
1913 * dv-sockser.c (sockser_addr): Make variable non-static.
1914
1915 Mon Aug 24 11:47:37 1998 Joyce Janczyn <janczyn@cygnus.com>
1916
1917 * sim-hw.{c,h} (sim_hw_parse): Return struct hw pointer.
1918
1919 Tue Aug 11 18:12:19 1998 Doug Evans <devans@canuck.cygnus.com>
1920
1921 * sim-events.c (sim_events_elapsed_time): Fix calculation.
1922
1923 Tue Aug 4 20:36:46 1998 Jeff Holcomb <jeffh@cygnus.com>
1924
1925 * Make-common.in (install-common): Add $(EXEEXT) when installing
1926 run.
1927
1928 Mon Aug 3 11:46:01 1998 Doug Evans <devans@seba.cygnus.com>
1929
1930 * cgen-sim.h (cgen_state): New member opcode_table.
1931 * cgen-utils.c (sim_disassemble_insn): Use it.
1932
1933 Fri Jul 24 10:14:18 1998 Doug Evans <devans@canuck.cygnus.com>
1934
1935 * cgen-mem.h (DECLARE_SETT): Fix return type.
1936 * cgen-sim.h (sim_engine_illegal_insn): Declare.
1937 * cgen-scache.c: Include stdlib.h.
1938 * cgen-trace.c (trace_extract): Use %lx for PCADDR.
1939 * sim-model.c (model_option_handler): Remove unused variable `n'.
1940
1941 Tue Jul 21 16:27:43 1998 Doug Evans <devans@seba.cygnus.com>
1942
1943 * cgen-utils.c: Include bfd.h.
1944 (sim_disassemble_insn): Update call to CGEN_EXTRACT_FN.
1945
1946 Wed Jul 8 18:24:10 1998 Jeffrey A Law (law@cygnus.com)
1947
1948 * sim-bits.h (EXTEND24): Fix typo.
1949
1950 Wed Jul 8 17:41:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
1951
1952 * sim-events.c (ETRACE_P): New macro.
1953 (struct _sim_event): Add member trace.
1954 (sim_events_free): Reclaim trace message.
1955
1956 * sim-events.c, sim-events.h (sim_events_schedule_vtracef,
1957 sim_events_schedule_tracef): New functions, include printf trace
1958 information in argument list. If tracing, store asprintf'd trace
1959 message in sim_event.
1960
1961 * hw-events.c, hw-events.h (hw_event_queue_schedule_tracef,
1962 hw_event_queue_schedule_vtracef): New functions, mimic
1963 sim_event_tracef.
1964
1965 Mon Jul 6 15:51:14 1998 Jeffrey A Law (law@cygnus.com)
1966
1967 * sim-bits.h (EXTEND24): Define.
1968
1969 Thu Jul 2 17:13:25 1998 Doug Evans <devans@seba.cygnus.com>
1970
1971 * cgen-sim.h (CPU_SCACHE): Make size unsigned.
1972 (CPU_SCACHE_HASH_MASK): New macro.
1973 (SCACHE_HASH_PC): Rewrite.
1974 * genmloop.sh (engine_resume_{full,fast}): Move some of hash
1975 computation out of main loop.
1976
1977 Wed Jul 1 16:44:12 1998 Doug Evans <devans@seba.cygnus.com>
1978
1979 * cgen-sim.h (RECORD_IADDR): Delete.
1980 * cgen-types.h (HOSTINT,HOSTUINT,HOSTPTR): New types.
1981 * genmloop.sh (engine_resume_{full,fast}): Delete icount.
1982
1983 Wed Jun 17 12:25:08 1998 Mark Alexander <marka@cygnus.com>
1984
1985 * gennltvals.def (mn10200): Add entry.
1986 * nltvals.def: Regenerate with MN10200 additions.
1987
1988 Wed Jun 17 13:18:28 1998 Andrew Cagney <cagney@b1.cygnus.com>
1989
1990 * sim-inline.h (EXTERN_*): Replace with EXTERN_*_P. Correct
1991 documentation on how it works.
1992
1993 * sim-core.h, sim-core.c (sim_core_install, sim_core_attach,
1994 sim_core_detach, sim_core_read_buffer, sim_core_write_buffer,
1995 sim_core_set_xor, sim_core_xor_read_buffer,
1996 sim_core_xor_write_buffer): Update.
1997
1998 * sim-events.h, sim-events.c (sim_events_install,
1999 sim_events_watch_clock, sim_events_schedule_after_signal,
2000 sim_events_schedule, sim_events_watch_sim, sim_events_watch_core,
2001 sim_events_deschedule): Update.
2002
2003 * sim-fpu.h, sim-fpu.c (sim_fpu_zero, sim_fpu_one, sim_fpu_two,
2004 sim_fpu_max32, sim_fpu_max64): Update.
2005
2006 Sat Jun 13 07:45:38 1998 Doug Evans <devans@fallis.cygnus.com>
2007
2008 * cgen-trace.c (trace_insn_fini): Redo cycle handling.
2009 * sim-profile.h (PROFILE_DATA): Rename cycle handling members.
2010 * sim-profile.c (profile_print_model): Update.
2011
2012 Fri Jun 12 18:35:07 1998 Doug Evans <devans@seba.cygnus.com>
2013
2014 * gennltvals.def (m32r): Use common syscall.h now.
2015 (mn10300): Add entry.
2016 * nltvals.def: Regenerate.
2017
2018 * sim-engine.c (sim_engine_get_run_state): New function.
2019 * sim-engine.h (sim_engine_get_run_state): Declare it.
2020
2021 Thu Jun 11 00:50:03 1998 Doug Evans <devans@seba.cygnus.com>
2022
2023 * sim-core.h (SIM_CORE_SIGNAL_FN): New typedef.
2024 * sim-core.c (sim_core_signal): Make extern, always define.
2025
2026 Wed Jun 10 16:02:29 1998 Doug Evans <devans@seba.cygnus.com>
2027
2028 * Make-common.in (CGEN_FLAGS_TO_PASS): New variable.
2029 * cgen-ops.h (ANDIF): New macro.
2030 (ANDIF[BQHSD]I): Delete.
2031
2032 Thu Jun 4 13:53:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
2033
2034 * hw-events.c (create_hw_event, delete_hw_event): Delete.
2035 (hw_event_queue_schedule, hw_event_queue_deschedule,
2036 bounce_hw_event): Fix hw-event memory corruptions found by Joyce
2037 Janczyn.
2038
2039 * hw-alloc.h (HW_NZALLOC): Define.
2040
2041 * Make-common.in (test-hw-events): Add target for testing the
2042 hw-event code.
2043
2044 Mon May 25 21:11:26 1998 Andrew Cagney <cagney@b1.cygnus.com>
2045
2046 * Make-common.in (SIM_COMMON_HW_OBJS): Add hw-handles.o and
2047 hw-instances.o.
2048 hw-handles.c, hw-instances.c, hw-handles.h, hw-instances.h: New
2049 files.
2050 * hw-main.h: Include hw-handles.h, hw-instances.h.
2051 * hw-base.h ({create,delete}_hw_{handles,instances}_data): Declare
2052 * hw-base.c (hw_create, hw_delete): Call same.
2053
2054 Mon May 25 18:55:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
2055
2056 * dv-core.c: Include hw-main.h and sim-main.h.
2057 * dv-pal.c: Include hw-main.h and sim-io.h.
2058 * dv-glue.c: Include hw-main.h.
2059
2060 * hw-main.h: New file. Move list of includes to here.
2061 * hw-base.h: From here.
2062 * Make-common.in (hw_base_headers): Rename to hw_main_headers.
2063 (hw-*.o, dv-*.o): Update.
2064 * hw-tree.c, hw-base.c, hw-properties.c, hw-ports.c, hw-device.c,
2065 hw-events.c, hw-alloc.c, sim-hw.c: Include hw-main.h instead of
2066 sim-main.h.
2067
2068 * hw-base.h (do_hw_attach_regs, do_hw_poll_read_method,
2069 do_hw_poll_read): Move declarations from here.
2070 * hw-main.h: To here.
2071
2072 * hw-base.h (struct hw_device_descriptor, hw_finish_callback):
2073 Move from here.
2074 * hw-main.h (struct hw_descriptor, hw_finish_method): To here,
2075 rename.
2076 * Make-common.in (hw-config.h): Update
2077 * hw-base.c, dv-pal.c, dv-glue.c: Update
2078
2079 * dv-glue.c, hw-device.h, hw-base.h, hw-ports.c: Rename
2080 `*_callback' to `*_method.
2081
2082 Mon May 25 18:41:18 1998 Andrew Cagney <cagney@b1.cygnus.com>
2083
2084 * hw-base.h (set_*): Move set method macros from here.
2085 * hw-device.h: To here.
2086
2087 Mon May 25 18:21:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
2088
2089 * hw-base.h (create_hw_property_data, delete_hw_property_data):
2090 Declare.
2091
2092 * hw-base.c (hw_create, hw_delete): Call
2093 * hw-properties.c (create_hw_property_data,
2094 delete_hw_property_data): Define.
2095
2096 Mon May 25 17:40:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
2097
2098 * hw-device.c, hw-properties.c: Include hw-base.h
2099
2100 * hw-alloc.h, hw-alloc.c: New files. Move alloc code to here.
2101 * hw-device.c: From here.
2102 * hw-base.h: Include "hw-events.h".
2103
2104 * hw-base.h (create_hw_alloc_data, delete_hw_alloc_data): Declare.
2105 * hw-base.c (hw_create, hw_delete): Call.
2106 * hw-alloc.c (create_hw_alloc_data, delete_hw_alloc_data): Define.
2107
2108 * Make-common.in (SIM_NEW_COMMON_OBJS): Add hw-alloc.o.
2109 (hw-alloc.o): New target.
2110
2111 Mon May 25 17:14:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
2112
2113 * hw-events.h, hw-events.c: New files. Move event code to here.
2114 * sim-hw.c: From here.
2115 * hw-base.h: Include "hw-events.h".
2116 * Make-common.in (SIM_NEW_COMMON_OBJS): Add hw-events.o.
2117 (hw-events.o): New target.
2118
2119 * hw-device.h (struct hw): Add struct hw_event_data events_of_hw.
2120 * hw-events.h (struct hw_event): Replace typedef hw_event.
2121
2122 * hw-base.h (create_hw_event_data, delete_hw_event_data): Declare.
2123 * hw-base.c (hw_create, hw_delete): Call.
2124 * hw-events.c (create_hw_event_data, delete_hw_event_data): Define.
2125
2126 * dv-pal.c: Update.
2127
2128 Mon May 25 16:55:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
2129
2130 * hw-base.c (panic_hw_port_event, empty_hw_ports): Move from here.
2131 * hw-ports.c: To here.
2132
2133 * hw-base.h, hw-ports.c (create_hw_port_data,
2134 delete_hw_port_data): New functions.
2135 * hw-base.c (hw_delete, hw_create): Call same.
2136
2137 * hw-base.h (set_hw_ports, set_hw_port_event): Move set functions
2138 from here.
2139 * hw-ports.h: To here.
2140
2141 Mon May 25 16:42:48 1998 Andrew Cagney <cagney@b1.cygnus.com>
2142
2143 * hw-device.c (hw_ioctl), hw-device.h (hw_ioctl_callback): Drop
2144 PROCESSOR and CIA arguments.
2145
2146 Fri May 22 12:16:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
2147
2148 * aclocal.m4 (SIM_AC_OPTION_HW): Add enable / disable argument.
2149 Move common object files from here.
2150 * Make-common.in (SIM_COMMON_HW_OBJS): To here.
2151
2152 Thu May 21 17:57:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
2153
2154 * sim-hw.c: Include ctype.h.
2155 (do_hw_poll_read): Do not assume EAGAIN.
2156
2157 Wed May 20 04:37:57 1998 Doug Evans <devans@seba.cygnus.com>
2158
2159 * cgen-trace.c (first_insn_p): New static local.
2160 (trace_insn_init): Set it.
2161 (trace_insn_fini): Use TRACE_PREFIX.
2162 (trace_insn): Rewrite to use trace_prefix.
2163 * sim-trace.c (trace_prefix): Don't print filename arg if NULL.
2164 Adjust width accordingly.
2165
2166 * sim-profile.h (PROFILE_DATA): New member profile_any_p.
2167 (PROFILE_ANY_P,PROFILE_INSN_P,PROFILE_MEMORY): New macros.
2168 (PROFILE_SCACHE_P,PROFILE_PC_P,PROFILE_CORE_P): New macros.
2169 (PROFILE_COUNT_INSN,PROFILE_COUNT_READ,PROFILE_COUNT_WRITE): Simplify.
2170 (PROFILE_COUNT_CORE): Simplify.
2171 * sim-profile.c (profile_option_handler): Compute profile_any_p.
2172
2173 Tue May 19 23:55:30 1998 Doug Evans <devans@seba.cygnus.com>
2174
2175 * cgen-ops.h (ADDCFSI): Fix typo.
2176
2177 Sat May 16 12:44:52 1998 Doug Evans <devans@seba.cygnus.com>
2178
2179 * cgen-sim.h (CGEN_CPU): New members idesc_{read,sem}_init_p.
2180 * genmloop.sh: Use them rather than static locals.
2181
2182 * sim-engine.c (sim_engine_set_run_state): New function.
2183 * sim-engine.h (sim_engine_set_run_state): Declare.
2184 * genmloop.sh (pending_reason,pending_sigrc): New static locals.
2185 (@cpu@_engine_stop): New args reason,sigrc. All callers updated.
2186 (engine_resume): Reorganize. Allow synchronous exit from main loop.
2187
2188 Fri May 15 16:06:05 1998 Doug Evans <devans@seba.cygnus.com>
2189
2190 * cgen-trace.c (trace_insn_init): New arg first_p.
2191 All callers updated.
2192 (trace_insn_fini): New arg last_p. All callers updated.
2193 * cgen-trace.h (trace_insn_init,trace_insn_fini): Update.
2194 (TRACE_INSN_INIT,TRACE_INSN_FINI): Update.
2195 * genmloop.sh (engine_resume): Update.
2196
2197 Fri May 15 15:59:00 1998 Joyce Janczyn <janczyn@cygnus.com>
2198
2199 * Make-common.in (install-common): Run ranlib on installed copy of
2200 libsim.a.
2201
2202 Fri May 15 15:03:00 1998 Joyce Janczyn <janczyn@cygnus.com>
2203
2204 * Make-common.in (install-common): Rename and install libsim.a.
2205
2206 Tue May 12 15:23:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
2207
2208 * sim-io.c (unistd.h): Include.
2209
2210 Wed May 6 16:04:18 1998 Doug Evans <devans@seba.cygnus.com>
2211
2212 * Make-common (sim_main_headers): Sort.
2213 (cgen-*.o): Add cgen-sim.h dependency.
2214
2215 * cgen-scache.c (scache_init): Only allocate space if scache element
2216 size is non-zero.
2217 (scache_flush,scache_print_profile): Check if scache in use first.
2218
2219 * cgen-sim.h (IDESC): Provide forward declaration.
2220 (DECODE): Delete.
2221 (CGEN_CPU): Always define scache member. New members idesc,opcode.
2222 (cgen_cpu_max_extra_bytes): Declare.
2223 * cgen-utils.c (cgen_cpu_max_extra_bytes): New function.
2224
2225 * sim-cpu.h: New file. sim_cpu_base moved here.
2226 Move sim_cpu_lookup decl here.
2227 * sim-base.h: #include "sim-cpu.h".
2228 * sim-cpu.c: New file.
2229 * Make-common (sim_main_headers): Add sim-cpu.h.
2230 (sim-cpu.o): Add rule for.
2231
2232 * sim-model.c (set_model): Delete.
2233 (sim_model_set,model_set): New functions.
2234 (sim_model_install): Renamed from model_install.
2235 Don't set default model here.
2236 (model_option_handler): Rewrite --model processing.
2237 (sim_model_lookup,sim_mach_lookup): New functions.
2238 * sim-model.h (MAX_MODELS,MAX_INSNS): Delete.
2239 (insn_timing): Delete.
2240 (INSN_TIMING): New member `num'.
2241 (IMP_PROPERTIES): Always define scache_elm_size member.
2242 (MACH): New member init_cpu.
2243 (sim_machs): Renamed from machs.
2244 (sim_model_install): Renamed from model_install.
2245 (sim_model_set,sim_model_lookup,sim_mach_lookup): Declare.
2246 * sim-module.c (modules): Update.
2247
2248 * sim-profile.c (profile_print_insn): Add cpu arg to INSN_NAME macro.
2249
2250 * sim-io.c: #include <errno.h>.
2251
2252 Wed May 6 12:39:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
2253
2254 * dv-pal.c (struct hw_pal_device): Add reader.
2255 (hw_pal_finish): Initialize reader.
2256 (scan_hw_pal): Use reader.
2257
2258 * hw-base.h, sim-hw.c (do_hw_poll_read): New function.
2259 (HW_IO_EOF, HW_IO_NOT_READY): Define.
2260 * dv-pal.c: Use.
2261
2262 * sim-io.h, sim-io.c (sim_io_poll_read): New function. Copy from
2263 ../ppc/main.c sim_io_read_stdin.
2264
2265 Fri May 1 12:11:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
2266
2267 * hw-tree.h (hw_tree_print): Paramaterize with print and file
2268 arguments.
2269 * hw-tree.c: Update.
2270
2271 * hw-base.h (hw_port_event_callback): Delete CPU/CIA args.
2272 * hw-device.h (hw_io_read_buffer, hw_io_write_buffer): Delete
2273 CPU/CIA args.
2274 * hw-ports.h (hw_port_event): Ditto.
2275 * hw-ports.c (hw_port_event): Update.
2276 * hw-base.c (panic_hw_io_read_buffer, panic_hw_io_write_buffer):
2277 Update.
2278 * dv-pal.c (hw_pal_io_read_buffer, hw_pal_io_write_buffer):
2279 Update.
2280 (hw_pal_io_write_buffer): Call hw_halt not sim_engine_halt.
2281 (do_counter_event): Update.
2282 * dv-glue.c (hw_glue_io_read_buffer): Update.
2283 (hw_glue_port_event): Update.
2284
2285 * hw-device.h (SIM_DESC): Replace with struct sim_state.
2286 * hw-base.h (hw_create): Ditto.
2287 * hw-base.c (hw_create): Ditto.
2288
2289 * hw-device.c (hw_abort, hw_trace, hw_hw_event_queue_schedule,
2290 hw_event_queue_deschedule, hw_event_queue_time): Delete, moved
2291 from here to.
2292 * sim-hw.c: Here.
2293 * hw-device.h (hw_system_cpu): Declare.
2294 * sim-hw.c (hw_system_cpu): New function.
2295
2296 * sim-core.c (sim_core_map_attach, sim_core_attach): Call
2297 sim_hw_abort not hw_abort.
2298 (sim-hw.h): Include.
2299 (sim_core_read_buffer, sim_core_write_buffer): Call
2300 sim_hw_io_read_buffer and sim_hw_io_write_buffer. Do not pass CPU
2301 argument.
2302 (sim_core_set_xor): Do not pass CPU when aborting.
2303
2304 * sim-n-core.h (sim_core_read_aligned_N,
2305 sim_core_write_aligned_N): Call sim_hw_abort not hw_abort.
2306 (sim_core_read_aligned_N, sim_core_write_aligned_N): Call
2307 sim_cpu_hw_io_read_buffer and sim_cpu_hw_io_write_buffer. Does not
2308 return length.
2309
2310 * sim-hw.h: Declare sim_hw_io_{read,write}_buffer. Declare
2311 sim_hw_print.
2312 * sim-hw.c (sim_hw_io_read_buffer, sim_hw_io_write_buffer,
2313 sim_cpu_hw_io_read_buffer, sim_cpu_hw_io_write_buffer): New
2314 functions.
2315 (sim_hw_print): New function.
2316
2317 * sim-engine.h (sim_engine_vabort): Declare.
2318 * sim-engine.c (sim_engine_vabort): New function.
2319
2320 Wed Apr 29 23:58:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
2321
2322 * sim-trace.c (print_data): For floating-point numbers trace raw
2323 hex value.
2324 (trace_result_fp2): New function.
2325 * sim-trace.h (trace_result_fp2): New declaration.
2326 (TRACE_FP_RESULT2): New macro.
2327
2328 Tue Apr 28 18:28:58 1998 Geoffrey Noer <noer@cygnus.com>
2329
2330 * common/aclocal.m4: call AM_EXEEXT in SIM_AC_COMMON, define
2331 AM_CYGWIN32 and AM_EXEEXT.
2332 * common/Make-common.in: set EXEEXT, add missing EXEEXTs
2333 to run and install-common rules.
2334 * common/configure: regenerate
2335
2336 Sat Apr 25 17:45:01 1998 Andrew Cagney <cagney@b1.cygnus.com>
2337
2338 * sim-types.h (cell_word): New type.
2339 (natural_cell): Delete type.
2340
2341 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
2342
2343 * configure: Regenerated to track ../common/aclocal.m4 changes.
2344 * config.in: Ditto.
2345
2346 Sun Apr 26 15:25:07 1998 Tom Tromey <tromey@cygnus.com>
2347
2348 * acconfig.h (NEED_DECLARATION_PRINTF): Removed.
2349
2350 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
2351
2352 * configure: Regenerated to track ../common/aclocal.m4 changes.
2353 * config.in: Ditto.
2354
2355 Fri Apr 24 11:38:08 1998 Tom Tromey <tromey@cygnus.com>
2356
2357 * acconfig.h: New file.
2358 * Make-common.in (top_builddir): New macro.
2359 (INTL_LIB): Removed.
2360 (INTLLIBS): New macro.
2361 (INTLDEPS): Likewise.
2362 (LIBDEPS): Use INTLDEPS.
2363 (EXTRA_LIBS): Use INTLLIBS.
2364 * aclocal.m4 (SIM_AC_COMMON): Call CY_GNU_GETTEXT.
2365 (CY_WITH_NLS, CY_GNU_GETTEXT, AM_PATH_PROG_WITH_TEST,
2366 AM_LC_MESSAGES): New macros from GNU gettext.
2367
2368 Fri Apr 24 19:57:59 1998 Andrew Cagney <cagney@b1.cygnus.com>
2369
2370 * sim-config.h: Discard leading _ from macros.
2371 * sim-types.h: Ditto.
2372
2373 Wed Apr 22 14:14:19 1998 Michael Meissner <meissner@cygnus.com>
2374
2375 * Make-common.in (CSEARCH): Add -I to intl directories.
2376 (INTL_LIB): Point to libintl.a.
2377 (LIBDEPS): Add $(INTL_LIB).
2378 (EXTRA_LIBS): Ditto.
2379
2380 Tue Apr 21 12:44:27 1998 Doug Evans <devans@canuck.cygnus.com>
2381
2382 * cgen-types.h (GETHIDI,MAKEDI): Tweak.
2383
2384 * cgen-ops.h (ADDCFSI): Fix.
2385 (SUBCFSI): Tweak.
2386
2387 Tue Apr 21 13:18:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
2388
2389 * sim-types.h (signed_address, unsigned_address): Define.
2390
2391 Mon Apr 20 21:47:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
2392
2393 * sim-fpu.c (sim_fpu_2d): Don't return an SNaN, convert it into a
2394 QNaN.
2395
2396 Thu Apr 16 10:30:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
2397
2398 * sim-fpu.c, sim-fpu.h (sim_fpu_fractionto, sim_fpu_tofraction):
2399 New functions, pack / unpack sim_fpu struct using raw values.
2400 (sim_fpu_is): Differentiate between negative and positive
2401 infinity.
2402
2403 Tue Apr 14 18:49:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
2404
2405 * sim-bits.h (EXTEND4): Define.
2406 (EXTEND4, EXTEND15, EXTEND11): Ditto.
2407
2408 Tue Apr 14 16:31:35 1998 John Metzler <jmetzler@cygnus.com>
2409
2410 * sim-memopt.c (parse_addr): Sunos 4.5 does not have strtol
2411 declared so we need this cast to prevent long long addresses
2412 from being misconfigures. Results in access to unmapped memory.
2413
2414 Tue Apr 14 13:19:14 1998 Doug Evans <devans@canuck.cygnus.com>
2415
2416 * Make-common.in (RUNTESTFLAGS): Define.
2417 (check): Pass RUNTESTFLAGS to recursive make.
2418
2419 Tue Apr 14 15:09:19 1998 Andrew Cagney <cagney@b1.cygnus.com>
2420
2421 * sim-info.c (sim_info): Be verbose when either VERBOSE or
2422 STATE_VERBOSE_P.
2423
2424 Sat Apr 4 23:24:17 1998 Andrew Cagney <cagney@b1.cygnus.com>
2425
2426 * aclocal.m4 (sim-inline): By default, disable sim-inline when
2427 cross compiling.
2428
2429 Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
2430
2431 * aclocal.m4 (sim-cflags): Add -fomit-frame-pointer to defaults.
2432 (sim-inline): Update to match sim-inline.[hc]
2433 * configure: Regenerated to track ../common/aclocal.m4 changes.
2434
2435 * Make-common.in (sim_main_headers): Add sim-inline.h
2436
2437 * sim-bits.h (sim-bits.c): Include when H_REVEALS_MODULE_P.
2438 selected.
2439 * sim-endian.h (sim-endian.c): Ditto.
2440
2441 * sim-events.h (_SIM_EVENTS_H_): Replace with SIM_EVENTS_H.
2442 (sim_events_set_trace): Delete unused prototype.
2443
2444 * sim-core.h (_SIM_CORE_H_): Replace with SIM_CORE_H.
2445 * sim-core.c (_SIM_CORE_C_): Ditto for SIM_CORE_C.
2446
2447 * sim-fpu.h (sim-fpu.c): Include when H_REVEALS_MODULE_P.
2448 (sim_fpu_to232i, sim_fpu_to232u, sim_fpu_i232to, sim_fpu_u232to):
2449 Comment out, not yet implemented in sim-fpu.c.
2450 (sim_fpu_zero, sim_fpu_one, sim_fpu_two, sim_fpu_qnan,
2451 sim_fpu_max32, sim_fpu_max64): Mark as EXTERN_SIM_FPU.
2452
2453 * sim-inline.h: Rewrite description.
2454 (H_REVEALS_MODULE_P, C_REVEALS_MODULE_P): Define.
2455 (SIM_MAIN_INLINE): Add inline option.
2456
2457 * sim-inline.c (semantics.c, idecode.c, engine.c, ...): Do not
2458 include generated files. Handled by generator directly.
2459
2460 Sat Apr 4 01:07:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
2461
2462 * sim-trace.c (set_trace_option_mask): Keep TRACE_ANY_P
2463 up-to-date.
2464
2465 * sim-trace.h (TRACE_ANY_P): Define.
2466 (struct _trace_data): Add trace_any_p.
2467
2468 Mon Mar 30 17:11:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
2469
2470 * run.c (main): Handle all alternatives of enum sim_stop.
2471 (main): Delete unused `asection *s'.
2472
2473 Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
2474
2475 * hw-tree.h, hw-tree.c (hw_tree_vparse): New function
2476
2477 * configure: Regenerated to track ../common/aclocal.m4 changes.
2478
2479 * sim-hw.c: New file.
2480 * sim-hw.h (sim_hw_parse): Declare function.
2481 (hw-tree.h): Do not include.
2482
2483 * sim-base.h (STATE_HW): Define.
2484 (struct sim_state_base): Add member struct *hw.
2485
2486 * sim-module.c (sim-hw.h): Include.
2487 (modules): Add sim_hw_install.
2488
2489 * aclocal.m4 (sim_hw_obj): Add sim-hw.o
2490
2491 Fri Mar 27 14:55:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
2492
2493 * sim-base.h (CPU_INDEX): Define.
2494
2495 * sim-utils.c (sim_state_alloc): Initialize.
2496 * sim-module.c (sim_post_argv_init): Ditto.
2497
2498 Thu Mar 26 10:07:57 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
2499
2500 * aclocal.m4 (sim_hw_obj): Fix sed expression to generate
2501 properly formatted lists.
2502
2503 Thu Mar 26 10:37:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
2504
2505 * dv-pal.c (enum hw_pal_address_mask): From Stu Grossman, was
2506 0x2f needs to be 0x3f.
2507
2508 Thu Mar 26 09:10:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
2509
2510 * hw-tree.c (hw_tree_find_property): Return NULL when device is
2511 not found.
2512 (hw_tree_find_*_property): Clean up error message when property is
2513 not found.
2514
2515 * dv-pal.c (hw_pal_io_read_buffer): Check the smp property is
2516 present before looking for it.
2517
2518 Wed Mar 25 16:17:38 1998 Ian Carmichael <iancarm@cygnus.com>
2519
2520 * aclocal.m4 (AC_CHECK_HEADERS): Add check for fpu_control.h.
2521 (AC_CHECK_FUNCS): Add check for __setfpucw.
2522 * configure: Regenerated.
2523
2524 Wed Mar 25 09:18:34 1998 Andrew Cagney <cagney@b1.cygnus.com>
2525
2526 * dv-pal.c (hw_pal_countdown, hw_pal_countdown_value,
2527 hw_pal_timer, hw_pal_timer_value): Define.
2528 (hw_pal_io_read_buffer, hw_pal_io_write_buffer): Add timer support
2529 (do_counter_event, do_counter_read, do_counter_value,
2530 do_counter_write): new functions.
2531
2532 Tue Mar 24 12:24:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
2533
2534 * hw-tree.c (hw_printf): Send tree dump to stderr, same as other
2535 trace output.
2536
2537 * hw-base.c (hw_create): Stop searching for a device when one is
2538 found.
2539
2540 Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
2541
2542 * configure: Regenerated to track ../common/aclocal.m4 changes.
2543
2544 Mon Mar 23 10:25:08 1998 Andrew Cagney <cagney@b1.cygnus.com>
2545
2546 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Add second argument,
2547 appends extra devices.
2548 (SIM_AC_OPTION_HARDWARE): Substute sim_hw, a non-duplicate list of
2549 the device names.
2550
2551 * Make-common.in (hw-config.h): New target, create hw-config.h
2552 file.
2553 (SIM_HW): Definition from @sim_hw@.
2554 (hw-base.o): Depend on hw-config.h
2555
2556 Tue Mar 24 17:41:35 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
2557
2558 * Make-common.in: Get SHELL from configure.
2559 * (stamp-tvals sim-inline.c): Use $(SHELL) when invoking
2560 move-if-change. Fixes NT native build problem.
2561 * Makefile.in (nltvals.def): Use $(SHELL) when invoking
2562 move-if-change. Fixes NT native build problem.
2563 * configure: Regenerate with autoconf 2.12.1 to fix shell issues for
2564 NT native builds.
2565
2566 Sun Mar 22 16:54:40 1998 Andrew Cagney <cagney@b1.cygnus.com>
2567
2568 * hw-device.h, hw-device.c (hw_strdup): New function.
2569
2570 * hw-base.c (hw_create): Use hw_strdup when saving a copy of the
2571 strings name, family and args.
2572 (full_name_of_hw): Use hw_strdup when returning the full path.
2573
2574 * hw-properties.c: Clean up property not found / wrong type error
2575 messages.
2576
2577 * hw-tree.c (hw_tree_parse): Finish a devices initialization
2578 before attaching any ports.
2579
2580 * hw-base.c (hw-config.): Include. Replace hardwired table.
2581
2582 * dv-glue.c: Copy over ../ppc/hw_glue.c. Update to new framework.
2583
2584 * Make-common.in: Add rule for dv-glue.o.
2585
2586 Sun Mar 22 16:45:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
2587
2588 * hw-base.c (hw_finish): Move setting of trace level to here.
2589 (hw_create): From here.
2590
2591 * hw-base.h, hw-base.c (do_hw_attach_regs): Copy function from
2592 ../ppc/device_table.c.
2593
2594 * dv-pal.c (hw_pal_finish): Attach PAL device to parent bus.
2595
2596 * hw-tree.c (print_properties): Supress path when printing
2597 properties of root node.
2598
2599 Sun Mar 22 16:21:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
2600
2601 * hw-device.h (HW_TRACE): Define.
2602 (hw_trace): Declare.
2603 * hw-device.c (hw_trace): Implement function.
2604
2605 * hw-base.c (hw_create): Set hw trace level from "trace?"
2606 property.
2607
2608 * dv-core.c (dv_core_attach_address_callback): Add trace.
2609
2610 * dv-pal.c: Replace DTRACE with HW_TRACE.
2611
2612 Sun Mar 22 15:23:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
2613
2614 * hw-device.h (HW_ZALLOC, HW_MALLOC): New macros.
2615 (hw_alloc_data): Delcare.
2616 (struct hw): Add member alloc_of_hw.
2617
2618 * hw-device.c (hw_zalloc, hw_malloc, hw_free, hw_free_all): New
2619 functions. Assocate memory with a device.
2620 (stdlib.h): Include.
2621
2622 * hw-base.h (set_hw_delete): Define.
2623 (hw_delete_callback): Declare.
2624 (hw_delete): Declare.
2625
2626 * hw-base.c (hw_delete): Implement function.
2627 (struct hw_base_data): Add member to_delete.
2628 (ignore_hw_delete): New function, does nothing.
2629 (hw_create): Set the hw_delete method.
2630 (hw_create): Allocate the base type using HW_ZALLOC before setting
2631 any methods.
2632
2633 * hw-tree.h, hw-tree.c (hw_tree_delete): New function.
2634
2635 * hw-properties.c: Replace zalloc/zfree with hw_zalloc/hw_free.
2636
2637 * hw-ports.c: Replace zalloc/zfree with hw_zalloc/hw_free.
2638 (attach_hw_port_edge): Add struct hw argument
2639
2640 * dv-pal.c (hw_pal_finish): Replace zalloc/zfree with
2641 hw_zalloc/hw_free.
2642
2643 Sun Mar 22 15:09:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
2644
2645 * hw-device.h (hw_attach_address_callback,
2646 hw_detach_address_callback): Attach to a single space not a space
2647 mask. Clarify interpretation of SPACE:ADDR parameters.
2648
2649 * hw-base.c (passthrough_hw_attach_address,
2650 passthrough_hw_detach_address): Update.
2651 * dv-core.c (dv_core_attach_address_callback): Ditto.
2652 * dv-pal.c (hw_pal_attach_address): Ditto.
2653
2654 Thu Mar 19 00:41:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
2655
2656 * sim-options.h: Document additional CPU arg to OPTION_HANDLER.
2657
2658 Wed Mar 18 14:13:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
2659
2660 * Make-common.in (SIM_HW_OBJS, SIM_HW_SRC, SIM_DV_OBJS): Define.
2661 (hw-base_h, hw-device_h, hw-handles_h, hw-instances_h, hw_ports_h,
2662 hw-properties_h, hw-tree_h): Define, point at corresponding
2663 header.
2664 (hw_base_headers): Define list of headers included by hw-base.h
2665 (hw-base.o, hw-device.o, hw-instances.o, hw-handles.o, hw-ports.o,
2666 hw-properties.o, hw-tree.o): Specify dependencies.
2667 (dv-core.o, dv-pal.o): Ditto.
2668
2669 * sim-hw.h: New file.
2670
2671 * hw-device.h, hw-device.c, hw-properties.h, hw-properties.c,
2672 hw-ports.h, hw-ports.c: New files. Copied from ../ppc/device.[ch].
2673
2674 * hw-tree.h, hw-tree.c: New files. Copied from ../ppc/tree.[hc].
2675
2676 * hw-base.h, hw-base.c: new files. Copied from
2677 ../ppc/device_table.[hc].
2678
2679 * dv-core.c, dv-pal.c: New files. Copied from
2680 ../ppc/hw_{core,pal}.c
2681
2682 * sim-basics.h (struct hw): Declare.
2683 (enum port_direction, enum object_disposition): Declare.
2684
2685 Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
2686
2687 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Set sim_hw_obj, sim_dv_obj,
2688 sim_dv_src in Makefile. Take list of devices as parameter to m4
2689 macro..
2690
2691 * configure: Regenerated to track ../common/aclocal.m4 changes.
2692
2693 Mon Mar 16 12:37:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
2694
2695 * sim-trace.h, sim-trace.c (trace_prefix): Pass in sim_cia so that
2696 trace_prefix can abort cleanly.
2697
2698 Sat Mar 14 18:36:12 1998 Doug Evans <devans@seba.cygnus.com>
2699
2700 * dv-sockser.c, dv-sockser.h: New files.
2701 * Make-common.in (dv-sockser.o): Add rule for.
2702 * aclocal.m4: Check for fcntl.h.
2703 * config.h: Add HAVE_FCNTL_H.
2704
2705 * sim-break.c (remove_breakpoint): Fix thinko.
2706
2707 * sim-hload.c (sim_load): Provide default value of SIM_HANDLES_LMA.
2708 Use SIM_HANDLES_LMA for lma_p arg to sim_load_file.
2709
2710 1998-03-13 Fred Fish <fnf@cygnus.com>
2711
2712 * sim-base.h (struct sim_state_base): Add prog_syms and
2713 define macro STATE_PROG_SYMS.
2714 * sim-trace.c (trace_prefix): Add variables abfd, symsize,
2715 symbol_count, and asymbols. Call bfd_get_symtab_upper_bound
2716 and bfd_canonicalize_symtab, to get symbol table on first use
2717 and preserve it via STATE_PROG_SYMS for future calls to
2718 bfd_find_nearest_line.
2719
2720 Wed Mar 11 14:02:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
2721
2722 * sim-core.h, sim-core.c (sim_core_map_to_str): Delete.
2723
2724 * sim-core.c (sim_core_attach): Handle a generic number of maps -
2725 up to nr_maps, not just access_* maps.
2726
2727 * sim-profile.h (struct PROFILE_DATA): Track nr_maps different
2728 maps.
2729
2730 * sim-profile.c (profile_print_core): Make map unsigned. Iterate
2731 over nr_maps not sim_core_nr_maps.
2732
2733 * sim-events.h, sim-events.c (sim_events_watch_core): Change
2734 core_map argument to unsigned.
2735 (struct _sim_core): Ditto for struct member core_map.
2736
2737 * sim-core.h (nr_sim_core_maps, sim_core_*_map): Delete
2738
2739 * sim-basics.h (access_io, access_*_io): Define.
2740 (map_read, map_write, map_exec, map_io): Define.
2741
2742 * sim-core.c, sim-core.h (sim_core_attach): Replace argument
2743 attach with more generic mapmask.
2744 (sim_core_{read,write}_*): Change map argument to unsigned.
2745
2746 * sim-core.c (sim_core_uninstall, sim_core_attach,
2747 sim_core_detach): Iterate over nr_maps instead of
2748 sim_core_nr_maps.
2749
2750 * sim-break.c (insert_breakpoint): Write breakpoints to exec_map
2751 instead of the write_map.
2752 (remove_breakpoint): Ditto.
2753
2754 * genmloop.sh (engine_resume_full): Replace sim_core_*_map
2755 with read_map, write_map, exec_map resp.
2756
2757 * cgen-mem.h (DECLARE_GETMEM, DECLARE_SETMEM, DECLARE_GETIMEM):
2758 Ditto.
2759
2760 * cgen-utils.c (sim_disassemble_insn): Ditto.
2761
2762 * sim-hrw.c (sim_write, sim_write): Ditto.
2763
2764 * sim-utils.h, sim-utils.c (access_to_str, map_to_str,
2765 transfer_to_str): New functions.
2766
2767 Mon Mar 9 12:50:59 1998 Doug Evans <devans@seba.cygnus.com>
2768
2769 * sim-base.h (sim_state_base): New member environment.
2770 (STATE_ENVIRONMENT): New macro.
2771 * sim-config.c (current_environment): Delete.
2772 (sim_config_default): New function.
2773 (sim_config): Set STATE_ENVIRONMENT, not current_environment.
2774 * sim-config.h (current_environment,CURRENT_ENVIRONMENT): Delete.
2775 (sim_config_default): Add prototype.
2776 * sim-module.c (sim_pre_argv_init): Call sim_config_default.
2777 * sim-options.c (standard_option_handler, case OPTION_ENVIRONMENT):
2778 Set STATE_ENVIRONMENT, not current_environment.
2779
2780 Mon Mar 9 11:59:03 1998 Jim Wilson <wilson@cygnus.com>
2781
2782 * sim-fpu.c (NR_GUARDS64): Change NR_PAD32 to NR_PAD64.
2783
2784 Tue Mar 3 10:53:05 1998 Andrew Cagney <cagney@b1.cygnus.com>
2785
2786 * sim-types.h (SIGNED32, SIGNED64): Pacify GCC.
2787
2788 * sim-alu.h (ALU64_BEGIN): Make alu64_r unsigned.
2789
2790 Mon Mar 2 10:20:06 1998 Doug Evans <devans@seba.cygnus.com>
2791
2792 * Make-common.in (TAGS): Make smarter.
2793 * Makefile.in (TAGS): Ditto.
2794
2795 Fri Feb 27 19:09:57 1998 Doug Evans <devans@canuck.cygnus.com>
2796
2797 * sim-module.c (*): Fix typos in assertion tests.
2798
2799 Sat Feb 28 13:54:10 1998 Andrew Cagney <cagney@b1.cygnus.com>
2800
2801 * sim-module.c (sim_pre_argv_init): String passed to asprintf
2802 can't be constant.
2803
2804 * sim-options.c (sim_parse_args): Ditto.
2805 (sim_args_command): Return OK, instead of nothing, for an empty
2806 command.
2807
2808 Fri Feb 27 13:29:13 1998 Andrew Cagney <cagney@b1.cygnus.com>
2809
2810 * sim-profile.c (profile_info): Rename from profile_print. Drop
2811 misc and misc_cpu callback arguments. Use
2812 PROFILE_INFO_CPU_CALLBACK and STATE_PROFILE_INFO_CALLBACK instead.
2813 (profile_install): Install profile_info function.
2814
2815 * sim-profile.h (PROFILE_INFO_CPU_CALLBACK,
2816 STATE_PROFILE_INFO_CALLBACK): Define.
2817 (struct PROFILE_DATA): Add field info_cpu_callback.
2818 (profile_print): Delete function.
2819
2820 * sim-base.h (STATE_MODULES): Define. Replace individual
2821 STATE_*_LIST with single struct module_list.
2822
2823 * sim-module.h (MODULE_INFO_FN, MODULE_INFO_LIST): Declare.
2824 (struct module_list): Declare.
2825
2826 * sim-module.h, sim-module.c (sim_module_add_info_fn,
2827 sim_module_info): New functions.
2828 (sim_module_install): Clean up module data structures.
2829
2830 * sim-info.c (sim_info): New file. New function. Call
2831 sim_module_info.
2832
2833 * Make-common.in (sim-info.o): Define rule.
2834 (SIM_NEW_COMMON_OBJS): Add sim-info.o.
2835
2836
2837 Fri Feb 27 18:26:16 1998 Doug Evans <devans@canuck.cygnus.com>
2838
2839 * sim-base.h (sim_cpu_base): New members name, options.
2840 (sim_cpu_lookup): Add prototype.
2841 * sim-module.c (sim_pre_argv_init): Provide default names for cpus.
2842 * sim-options.h (DECLARE_OPTION_HANDLER): New argument `cpu'.
2843 (sim_add_option_table): Update prototype.
2844 * sim-options.c (sim_add_option_table): New argument `cpu'.
2845 (standard_option_handler,standard_install): Update.
2846 (sim_parse_args): Handle cpu specific options.
2847 (print_help): New static function.
2848 (sim_print_help): Call it. Print cpu specific options.
2849 (find_match): New static function.
2850 (sim_args_command): Call it. Handle cpu specific options.
2851 * sim-utils.c (sim_cpu_lookup): New function.
2852 * sim-memopt.c (memory_option_handler): Update.
2853 (sim_memopt_install): Update.
2854 * sim-model.c (model_option_handler): Update.
2855 (model_install): Update.
2856 * sim-profile.c (profile_option_handler): Update.
2857 (profile_install): Update.
2858 * sim-trace.c (trace_option_handler): Update.
2859 (trace_install): Update.
2860 * sim-watch.c (watchpoint_option_handler): Update.
2861 (sim_watchpoint_install): Update.
2862 * cgen-scache.c (scache_option_handler): Update.
2863 (scache_install): Update.
2864
2865 Wed Feb 25 11:00:26 1998 Doug Evans <devans@canuck.cygnus.com>
2866
2867 * Make-common.in (check): Run `make check' in testsuite dir.
2868
2869 Wed Feb 25 14:40:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
2870
2871 * sim-trace.c (trace_result0): New function.
2872
2873 * sim-trace.h (TRACE_FP_*, TRACE_FPU_*): Rename TRACE_FPU_*
2874 macro's to TRACE_FP_*. TRACE_FPU_* should be defined and used when
2875 tracing sim_fpu variables.
2876 (TRACE_ALU_RESULT0): Define.
2877 (TRACE_FP_RESULT_WORD): Define.
2878 (TRACE_FP_INPUT_WORD1): Define.
2879
2880 * sim-fpu.c, sim-fpu.h (sim_fpu_max32, sim_fpu_max64, sim_fpu_one,
2881 sim_fpu_two): New constants.
2882 (sim_fpu_op1, sim_fpu_op2): New types.
2883 (struct _sim_fpu): Delete member result. Re-order other members.
2884 (sim_fpu_sign, sim_fpu_exp): New functions.
2885 (sim_fpu_max, sim_fpu_min): new functions.
2886 (EXPMAX32, EXPMAX64, NR_PAD32, NR_PAD64, NR_GUARDS32, NR_GUARDS64,
2887 NORMAL_EXPMAX32, NORMAL_EXPMAX64): Define.
2888
2889 Tue Feb 24 22:45:39 1998 Doug Evans <devans@seba.cygnus.com>
2890
2891 * sim-profile.c (profile_print): Delete duplicate test of
2892 PROFILE_INSN_IDX.
2893 (profile_print_pc): Exit early if data collection not set up.
2894 (profile_print_core): Simplify by calling sim_core_map_to_str.
2895 * sim-core.h (sim_core_map_to_str): Declare.
2896 * sim-core.c (sim_core_map_to_str): Make non-static.
2897
2898 * genmloop.sh (engine_resume): Update insn_count before exiting.
2899 (engine_resume_full): Keep accurate core profile data.
2900
2901 * cgen-utils.c (sim_disassemble_insn): Don't use
2902 sim_core_read_aligned_N, it messes up profiling results.
2903
2904 Mon Feb 23 20:45:57 1998 Mark Alexander <marka@cygnus.com>
2905
2906 * nltvals.def: Regenerate with MN10300 additions.
2907
2908 Tue Feb 24 13:18:42 1998 Andrew Cagney <cagney@b1.cygnus.com>
2909
2910 * sim-trace.h (TRACE_ALU_RESULT2): Define.
2911
2912 * sim-trace.h, sim-trace.c (trace_result_word2,
2913 trace_input_word4, trace_result_word4): New function.
2914
2915 Mon Feb 23 13:08:35 1998 Doug Evans <devans@canuck.cygnus.com>
2916
2917 * cgen-sim.h (SEM_NEXT_PC): New arg `len'.
2918
2919 * sim-xcat.h: Delete.
2920 * cgen-mem.h: Delete inclusion of sim-xcat.h.
2921 * cgen-sim.h: Ditto.
2922 * sim-alu.h: Replace sim-xcat.h with symcat.h.
2923 * sim-n-bits.h: Ditto.
2924 * sim-n-core.h: Ditto.
2925 * sim-n-endian.h: Ditto.
2926
2927 Mon Feb 23 13:19:58 1998 Michael Meissner <meissner@cygnus.com>
2928
2929 * syscall.c (cb_syscall): Handle short reads, and EOF.
2930
2931 Tue Feb 24 00:29:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
2932
2933 * sim-trace.c (print_data): case trace_fmt_fp missing break. Use
2934 sim_fpu to safely print fp_word values.
2935 (print_data): Add trace_fmt_bool and trace_fmt_addr.
2936 (trace_result_bool1, trace_result_addr1): New functions.
2937 (trace_input_bool1, trace_input_addr1): New functions.
2938
2939 * sim-trace.h (TRACE_FPU_*): Define.
2940
2941 Mon Feb 23 13:24:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
2942
2943 * sim-fpu.h (enum sim_fpu_class): Add sim_fpu_class_denorm.
2944 (sim_fpu_fpto, sim_fpu_tofp): Define.
2945
2946 Fri Feb 20 18:08:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
2947
2948 * sim-fpu.c (sim_fpu_cmp): New function.
2949
2950 Wed Feb 18 16:29:21 1998 Doug Evans <devans@canuck.cygnus.com>
2951
2952 * cgen-utils.h (sim_disassemble_insn): Use CGEN_INSN_BITSIZE
2953 instead of abuf->length.
2954 * sim-trace.c (trace_options): Have -t only trace a few useful things.
2955 (set_trace_option_mask): Renamed from set_trace_options.
2956 (set_trace_option): New function.
2957 (trace_option_handler): Update calls to set_trace_option{,_mask}.
2958 * sim-trace.h (TRACE_USEFUL_MASK): New macro.
2959
2960 Wed Feb 18 12:42:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
2961
2962 * sim-basics.h: Declare struct _sim_fpu.
2963
2964 Tue Feb 17 16:27:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
2965
2966 * sim-trace.h (TRACE_ALU_INPUT*, TRACE_ALU_RESULT): Define.
2967 (trace_prefix, trace_input*, trace_result*): Declare.
2968 (trace_one_insn): Change declaration, assume trace_prefix called.
2969 (trace_generic): Like trace_one_insn.
2970 (TRACE_ALU_IDX, TRACE_*_IDX): Change #define's to enum.
2971 (TRACE_alu, TRACE_[a-z]*): Update.
2972
2973 * sim-trace.c (trace_prefix, trace_input*, trace_result*,
2974 trace_insn, save_data, trace_idx_to_str, print_data): New
2975 functions.
2976 (trace_one_insn): Rewrite.
2977 (trace_generic): New function.
2978
2979 Tue Feb 17 17:27:30 1998 Doug Evans <devans@seba.cygnus.com>
2980
2981 * aclocal.m4 (USE_MAINTAINER_MODE): New variable.
2982
2983 * cgen-sim.h (SEMANTIC_CACHE_FN): Delete.
2984 (SEMANTIC_FN): Rewrite declaration.
2985 (DECODE): Update type of semantic_fast member.
2986 ({EX,SEM}_FN_NAME): Have only one version.
2987 * sim-base.h (sim_state_base): Delete conditionals surrounding
2988 member scache_size.
2989
2990 Tue Feb 10 18:31:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
2991
2992 * sim-load.c (sim_load_file): Print LMA/VMA according to value
2993 used.
2994
2995 Tue Feb 10 14:56:23 1998 Ian Carmichael <iancarm@cygnus.com>
2996
2997 * sim-core.c: Add missing prototypes for WITH_DEVICES.
2998 Add missing parameters to device_io calls.
2999 * sim-core.h: Add missing parameters to device_io calls.
3000
3001 Mon Feb 9 14:48:37 1998 Doug Evans <devans@canuck.cygnus.com>
3002
3003 * cgen-sim.h (DECODE): Always use switch for `read' for now.
3004 (PAREXEC): Renamed from PARALLEL_EXEC. All uses updated.
3005 (SEMANTIC{,_CACHE}_FN): Fix return type.
3006 * genmloop.sh (@cpu@_engine_run): Delete `current_state'.
3007 (engine_resume): Likewise. Make `engine' volatile. Save copy
3008 of cpu pointer in volatile object. Initialize read switch if
3009 -parallel.
3010
3011 Thu Feb 5 13:27:04 1998 Doug Evans <devans@seba.cygnus.com>
3012
3013 * cgen-sim.h (EX_FN_NAME): _exc_ -> _ex_.
3014 (SEM_INSN): New macro.
3015
3016 Tue Feb 3 16:31:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
3017
3018 * sim-run.c (sim_engine_run): Assume IMEM is 32 bit.
3019
3020 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
3021
3022 * configure: Regenerated to track ../common/aclocal.m4 changes.
3023
3024 Sun Feb 1 16:16:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
3025
3026 * sim-types.h (fp_word): New type, define according to
3027 WITH_TARGET_FLOATING_POINT_BITSIZE.
3028
3029 * aclocal.m4 (default_sim_floating_point_bitsize): Add
3030 configuration of size of floating point registers.
3031
3032 Sun Feb 1 14:02:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
3033
3034 * sim-profile.c (profile_print): Only print CPU <N> if other
3035 output is going to appear.
3036
3037 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
3038
3039 * configure: Regenerated to track ../common/aclocal.m4 changes.
3040
3041 Sat Jan 31 18:03:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
3042
3043 * sim-types.h (address_word): Typedef according to
3044 WITH_TARGET_ADDRESS_BITSIZE.
3045 (signed_cell, unsigned_cell, natural_cell): Ditto using
3046 WITH_TARGET_CELL_BITSIZE.
3047
3048 * sim-config.h (WITH_TARGET_ADDRESS_BITSIZE): Define.
3049 (WITH_TARGET_CELL_BITSIZE): Define.
3050 (WITH_HOST_WORD_BITSIZE): Delete.
3051
3052 * sim-config.c (print_sim_config): Update.
3053
3054 * aclocal.m4 (SIM_AC_OPTION_BITSIZE): Add support for
3055 configuration of address and OpenFirmware cell sizes.
3056
3057 Fri Jan 30 09:36:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
3058
3059 * sim-engine.h (sim_engine_run): Add argument nr_cpus.
3060 * sim-run.c (sim_engine_run): Update.
3061
3062 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use SET_CPU_CIA instead of
3063 CPU_CIA.
3064 * sim-run.c (sim_engine_run): Ditto.
3065
3066 * sim-resume.c (sim_resume): Obtain nr_cpus from sim_engine.
3067 (sim_resume): Pass nr_cpus to sim_engine_run.
3068
3069 * sim-engine.h (struct _sim_engine): Add member nr_cpus.
3070
3071 * sim-engine.c (sim_engine_init): Hardwire nr_cpus to
3072 MAX_NR_PROCESSORS.
3073 (sim_engine_nr_cpus) sim-engine.c, sim-engine.h: New function
3074
3075 Fri Jan 23 14:20:54 1998 Doug Evans <devans@seba.cygnus.com>
3076
3077 * Make-common.in (stamp-tvals): New rule.
3078 (targ-vals.h,targ-map.c): Depend on it.
3079 (clean): Remove stamp-tvals.
3080
3081 Tue Jan 20 21:35:13 1998 Michael Meissner <meissner@cygnus.com>
3082
3083 * sim-utils.c (sim_state_alloc): #if 0 variable that is only used
3084 in code also #if 0'ed.
3085
3086 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
3087
3088 * configure: Regenerated to track ../common/aclocal.m4 changes.
3089 * aclocal.m4: Recognize --enable-maintainer-mode.
3090
3091 Mon Jan 19 12:45:45 1998 Doug Evans <devans@seba.cygnus.com>
3092
3093 * cgen-scache.h: Deleted.
3094 * Make-common.in (cgen-run.o,cgen-scache.o): Delete cgen-scache.h dep.
3095 * cgen-scache.c: Only compile contents if WITH_SCACHE.
3096 (scache_init): Use runtime computed size of SCACHE.
3097 (scache_flush): Likewise.
3098 * cgen-mem.h (GETIMEMU[QHSD]I): Declare.
3099 ([GS]ETT{QI,UQI,HI,UHI,SI,USI,DI,UDI}): Declare.
3100 * cgen-sim.h: Scache support moved here.
3101 (PC): Redo definition.
3102 (ARGBUF,SCACHE,PARALLEL_EXEC): Provide forward decls.
3103 (DECODE): Add parallel execution support.
3104 Only include semantic label members if using switch.
3105 (SWITCH,CASE,BREAK,DEFAULT,ENDSWITCH): Portable computed goto support.
3106 (CGEN_CPU): Delete members exec_state, halt_sigrc, halt_jmp_buf.
3107 (IADDR,CIA,SEM_ARG,EX_FN_NAME,SEM_FN_NAME,RECORD_IADDR,SEM_ARGBUF,
3108 SEM_NEXT_PC,SEM_BRANCH_VIA_{CACHE,ADDR},SEM_NEW_PC_ADDR): Moved here
3109 from cgen-types.h.
3110 (engine_{stop,run,resume,halt,signal}): Delete decls.
3111 * cgen-types.h (CGEN_{XCAT3,CAT3}): Delete.
3112 (argbuf,scache): Delete forward decls.
3113 (STATE): Delete decl.
3114 * cgen-utils.c: Don't include decode.h, mem-ops.h, sem-ops.h.
3115 Include cgen-mem.h, cgen-ops.h.
3116 (engine_halt,engine_signal): Delete.
3117 ({ex,exc,sem,semc}_illegal): Delete.
3118 (sim_disassemble_insn): Result of extract fn is in bits.
3119 * genmloop.sh: Rewrite.
3120
3121 * cgen-trace.c (trace_insn): Set printed_result_p=0 if not tracing
3122 line numbers.
3123
3124 * sim-base.h (sim_state_base): Delete member `model'.
3125 (sim_cpu_base): Add member `model'.
3126 * sim-model.h (IMP_PROPERTIES): New type.
3127 (MACH): New members imp_props, models.
3128 (models): Delete decl.
3129 * sim-model.c (set_model): Update.
3130 * sim-profile.c (profile_print_model): Update.
3131
3132 * sim-utils.c (sim_state_alloc): Delete setting of cpu backlink here.
3133
3134 Fri Jan 16 12:33:09 1998 Nick Clifton <nickc@cygnus.com>
3135
3136 * cgen-trace.c (trace_insn): Call CGEN_INSN_MNEMONIC() rather than
3137 CGEN_INSN_SYNTAX().
3138
3139 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
3140
3141 * configure: Regenerated to track ../common/aclocal.m4 changes.
3142 * config.in: Ditto.
3143
3144 Mon Dec 15 23:16:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
3145
3146 * aclocal.m4 (AR): Check for sigaction.
3147
3148 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
3149
3150 * Make-common.in (sim-core.o): Depend on $(sim_main_headers).
3151
3152 * sim-config.h (WITH_TREE_PROPERTIES): Define as 0.
3153 * sim-config.c (sim_config): Replace WITH_DEVICES with
3154 WITH_TREE_PROPERTIES.
3155
3156 * configure: Regenerated to track ../common/aclocal.m4 changes.
3157
3158 Wed Dec 3 17:56:02 1997 Doug Evans <devans@canuck.cygnus.com>
3159
3160 * Make-common.in (SIM_ENVIRONMENT): New variable.
3161 (CONFIG_CFLAGS): Add it.
3162 * aclocal.m4 (SIM_AC_OPTION_ENVIRONMENT): Handle
3163 --enable-sim-environment option.
3164 * configure: Regenerated.
3165 * sim-config.h (environment support): Rewrite.
3166 * sim-config.c (current_environment): Define as enum, unconditionally.
3167 (current_alignment): Define unconditionally.
3168 (config_environment_to_a): Update.
3169 (config_alignment_to_a): Fix type of argument. Define unconditionally.
3170 (sim_config): Handle environment and alignment determination
3171 unconditionally. Delete sanity checks of current_environment,
3172 unnecessary.
3173 (print_sim_config): Update.
3174 * sim-options.c (STANDARD_OPTIONS enum): Add OPTION_ENVIRONMENT.
3175 (standard_options): Add --environment.
3176 (standard_option_handler): Likewise.
3177
3178 Fri Nov 28 12:21:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
3179
3180 * sim-alu.h: Add notes on carry vs borrow for subtraction.
3181 (ALU{,8,16,32,64}ADD): Redefine ADD macro as add overflowing.
3182 (ALU{,8,16,32,64}ADDC): Define - add carrying.
3183 (ALU{,8,16,32,64}SUB): Redefine SUB macro as subtract overflowing.
3184 (ALU{,8,16,32,64}SUBB): Define - subtract borrowing.
3185 (ALU{,8,16,32,64}SUBC): Define - tract carrying.
3186 (ALU{,8,16,32,64}ADD_CA, ALU{,8,16,32,64}ADDC_C): Replace single
3187 argument ADD_CA macro with two argument ADDC_C - add carrying with
3188 carry in.
3189 (ALU{,8,16,32,64}SUB_CA, ALU{,8,16,32,64}SUBC_X): Replace single
3190 argument SUB_CA macro with two argument SUBC_X - subtract
3191 carrying, extended.
3192 (ALU{,8,16,32,64}SUBB_B): Define - subtract borrowing with
3193 borrow-in.
3194 (ALU{,8,16,32,64}NEGC, ALU{,8,16,32,64}NEGB): Define.
3195
3196 Sun Nov 30 17:40:57 1997 Michael Meissner <meissner@cygnus.com>
3197
3198 * sim-io.c (sim_io_{syscalls,getstring}): Delete. No longer used.
3199 * sim-io.h (sim_io_syscalls): Delete.
3200
3201 Fri Nov 28 20:10:09 1997 Michael Meissner <meissner@cygnus.com>
3202
3203 * syscall.c (cb_syscall): Add missing else, so write to stdout
3204 isn't doubled.
3205
3206 * sim-alu.h (ALU{,8,16,32,64}_SET_CARRY): Provide macros to import
3207 the carry bit from the CPU's psw.
3208
3209 Fri Nov 28 11:15:05 1997 Doug Evans <devans@canuck.cygnus.com>
3210
3211 * gennltvals.sh: Redo syscall support.
3212 * nltvals.def: Regenerated.
3213
3214 Wed Nov 26 16:49:38 1997 Michael Meissner <meissner@cygnus.com>
3215
3216 * syscall.c (cb_syscall): If writing to stdout or stderr, flush
3217 the stream immediately.
3218
3219 Wed Nov 26 12:32:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
3220
3221 * sim-io.c (sim_io_getstring): Delete unused len2.
3222 (sim_io_syscalls): Ditto for sys_errno.
3223
3224 Wed Nov 26 11:18:40 1997 Doug Evans <devans@canuck.cygnus.com>
3225
3226 * syscall.c (cb_syscall): Test CB_SYSCALL struct magic number.
3227
3228 * Make-common.in (run.o): Depend on remote-sim.h.
3229 (nrun.o,sim-hload.o,sim-hrw.o): Likewise.
3230 (sim-io.o,sim-reason.o,sim-resume.o): Likewise.
3231
3232 Tue Nov 25 20:12:46 1997 Michael Meissner <meissner@cygnus.com>
3233
3234 * sim-io.c (sim_io_syscalls): Disable lseek.
3235
3236 Tue Nov 25 00:12:38 1997 Doug Evans <devans@seba.cygnus.com>
3237
3238 * gennltvals.sh: Generate syscall values for d30v.
3239
3240 * gennltvals.sh: Use libgloss/syscall.h for sparc.
3241 * nltvals.def: Regenerate.
3242
3243 * callback.c (os_stat): Make 3rd arg a host struct stat ptr.
3244 (os_fstat): Likewise. Validate fd argument.
3245 (cb_host_to_target_stat): Delete big_p arg. If HS arg is NULL,
3246 just compute target stat struct length.
3247 * syscall.c: #include "libiberty.h", <sys/types.h>, <sys/stat.h>.
3248 (ENOSYS,ENAMETOOLONG): Provide definitions if missing.
3249 (get_string): Return host errno values so they can be properly
3250 translated later.
3251 (cb_syscall): Likewise.
3252 (cb_syscall, cases open,unlink): Use get_path instead of get_string.
3253 (cb_syscall, case read): Use read_stdin for file descriptor 0.
3254 (cb_syscall, case write): Use write_stderr for file descriptor 2.
3255 (cb_syscall): Add cases for lseek, unlink, stat, fstat, time.
3256 (get_path): New function.
3257
3258 Mon Nov 24 18:56:07 1997 Michael Meissner <meissner@cygnus.com>
3259
3260 * sim-io.c (sim_io_syscalls): New function to provide system call
3261 emulation. Provide exit, open, close, read, write, lseek, and
3262 unlink.
3263 (sim_io_getstring): New function to return a string from a
3264 simulated memory location.
3265
3266 * sim-io.h (sim_io_syscalls): Add declaration.
3267
3268 Mon Nov 24 12:09:59 1997 Doug Evans <devans@seba.cygnus.com>
3269
3270 * sim-core.c (sim_core_signal): Fix spelling error in message.
3271
3272 * sim-hrw.c (sim_read): Use read map, not write map.
3273
3274 * Make-common.in (all): Add .gdbinit.
3275 * gdbinit.in: Add dump command.
3276
3277 * sim-model.c (model_options): Use '\0' for `shortopt'.
3278
3279 * sim-trace.c (trace_option_handler): Set state trace file
3280 for --trace-file in addition to cpu's values.
3281 (trace_vprintf): If cpu == NULL, try state's trace file.
3282 (trace_options): Reorganize table, reword some descriptions.
3283
3284 Sun Nov 23 10:57:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
3285
3286 * sim-fpu.c (sim_fpu_abs, sim_fpu_neg, sim_fpu_inv), sim-fpu.h:
3287 New functions.
3288
3289 Sat Nov 22 19:16:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
3290
3291 * sim-reason.c (sim_stop_reason): For sim_signalled, return the
3292 signal untranslated, document problem with this.
3293
3294 * nrun.c (main): Check for a prog name of `*step'. If present,
3295 step the simulator instead of allowing it to run free.
3296
3297 * sim-signal.c (SIGQUIT): Define on _MSC_VER hosts.
3298
3299 * Make-common.in (sim_main_headers): Add sim-signal.h.
3300
3301 Fri Nov 21 09:32:32 1997 Andrew Cagney <cagney@b1.cygnus.com>
3302
3303 * sim-signal.c (sim_signal_to_host): Return 0 for SIM_SIGNONE.
3304
3305 Thu Nov 20 20:35:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
3306
3307 * sim-signal.h: Start simulator signals at 64 so that host signal
3308 numbers can be detected and reported.
3309
3310 * sim-signal.h (SIM_SIGFPE), sim-signal.h: Add signal.
3311
3312 Wed Nov 19 12:02:41 1997 Doug Evans <devans@seba.cygnus.com>
3313
3314 * callback.c (cb_host_to_target_stat): Fix return values.
3315
3316 * cgen-sim.h (enum_signal_type): Delete.
3317 (engine_signal): Update prototype.
3318 * cgen-utils.c: Don't include <signal.h>.
3319 (sim_signal_to_host): Delete, lives in sim-signal.c now.
3320 (engine_signal): Update.
3321
3322 * sim-utils.c (sim_state_alloc): Call SIM_STATE_ALLOC if defined.
3323 (sim_state_free): Call SIM_STATE_FREE if defined.
3324
3325 * sim-module.c (sim_module_install): Don't leave any modules
3326 installed if one fails to install.
3327
3328 Wed Nov 19 13:25:48 1997 Michael Meissner <meissner@cygnus.com>
3329
3330 * sim-options.c: Don't include ../libiberty/alloca-conf.h any
3331 more, since alloca is not used in this file.
3332
3333 * sim-alu.h (ALU{32,64}_*): Rewrite 32 and 64 bit ALU support to
3334 correctly set the carry and overflow bits for those types.
3335 (ALU{8,16,32,64}_{ADD,SUB}_CA): Take VAL argument to add along
3336 with carry, so carry is correct after doing both adds.
3337 (ALU*): Space out '\' to make it easier to read.
3338
3339 Tue Nov 18 15:53:45 1997 Doug Evans <devans@canuck.cygnus.com>
3340
3341 * sim-core.c (sim_core_signal): Use sim_stopped instead of
3342 sim_signalled.
3343
3344 * sim-signal.c, sim-signal.h: New files.
3345 * Make-common.in (sim-signal.o): Add rule for.
3346 (SIM_NEW_COMMON_OBJS): Add sim-signal.o.
3347 * sim-abort.c: Don't include <signal.h>.
3348 * sim-basics.h: #include "sim-signal.h".
3349 * sim-break.c: Don't include <signal.h>.
3350 (sim_handle_breakpoint): Replace SIGTRAP with SIM_SIGTRAP.
3351 * sim-core.c: Don't include <signal.h>.
3352 (SIGBUS): Delete definition.
3353 (sim_core_signal): Replace SIGSEGV,SIGBUS with SIM_SIGSEGV,SIM_SIGBUS.
3354 * sim-engine.c: Don't include <signal.h>.
3355 (sim_engine_abort): Replace SIGABRT with SIM_SIGABRT.
3356 * sim-reason.c (sim_stop_reason): Call sim_signal_to_host.
3357 * sim-resume.c: Don't include <signal.h>.
3358 (SIGTRAP): Delete definition.
3359 (has_stepped): Replace SIGTRAP with SIM_SIGTRAP.
3360 * sim-stop.c: Don't include <signal.h>.
3361 (control_c_simulation): Replace SIGINT with SIM_SIGINT.
3362 * sim-watch.c: Don't include <signal.h>.
3363 (handle_watchpoint): Replace SIGINT with SIM_SIGINT.
3364
3365 * Make-common.in (SIM_NEW_COMMON_OBJS): New variable.
3366
3367 * sim-base.h (CIA_ADDR): Provide default definition.
3368 * sim-core.c (sim_core_signal): Use CIA_ADDR to fetch value.
3369 * sim-break.c (sim_handle_breakpoint): Likewise.
3370
3371 Mon Nov 17 14:15:31 1997 Doug Evans <devans@seba.cygnus.com>
3372
3373 * Make-common.in (srccom): New variable.
3374
3375 * Make-common.in (DEP, COMMON_DEP_CFLAGS): Define.
3376 (LIB_OBJS): Add syscall.o.
3377 (gentmap): Pass $(NL_TARGET) to $(CC).
3378 (syscall.o): Add rule for.
3379 (sim_main_headers): Add $(SIM_EXTRA_DEPS).
3380 (sim-bits.o): Depend on $(sim-n-bits_h).
3381 (sim-load.o): Depend on callback.h.
3382
3383 * Make-common.in (cgen-*.o): Update dependencies, mem-ops.h renamed to
3384 cgen-mem.h, sem-ops.h renamed to cgen-ops.h.
3385 * cgen-mem.h, cgen-ops.h: New files.
3386
3387 * aclocal.m4 (--enable-sim-scache): Pass -DWITH_SCACHE=0 for "=no".
3388
3389 * Makefile.in (nltvals.def): Depend on gennltvals.sh.
3390 Rewrite build rule.
3391 * callback.c: #include string.h or strings.h.
3392 #include sys/types.h and sys/stat.h.
3393 (cb_init_syscall_map,cb_init_errno_map,cb_init_open_map): Declare.
3394 (os_get_errno,os_open): Update.
3395 (os_stat,os_fstat): New functions.
3396 (os_init): Initialize syscall_map, errno_map, open_map.
3397 (default_callback): Add entries for os_stat, os_fstat, syscall_map,
3398 errno_map, open_map, signal_map, stat_map.
3399 (cb_read_target_syscall_maps): New function.
3400 (cb_target_to_host_syscall): New function.
3401 (cb_host_to_target_errno): Renamed from host_to_target_errno.
3402 (cb_target_to_host_open): Renamed from target_to_host_open.
3403 (store): New function.
3404 (cb_host_to_target_stat): New function.
3405 * syscall.c: New file.
3406 * gentmap.c (sys_tdefs): New global.
3407 (gen_targ_vals_h): Output target syscall numbers.
3408 (gen_targ_map_c): Update. Output target syscall translation map.
3409 * gentvals.sh: New first argument `target'. Preface table with
3410 #ifdef NL_TARGET_$target if non-null target passed.
3411 * gennltvals.sh: New file.
3412 * nltvals.def: Regenerated.
3413
3414 Fri Nov 14 11:33:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
3415
3416 * sim-n-core.h (sim_core_read_unaligned_N): Return static
3417 sim_core_dummy_M.
3418 (sim_core_dummy_M): Declare.
3419
3420 Wed Nov 12 18:16:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
3421
3422 * sim-core.c (sim_core_signal): Print the address of the
3423 instruction.
3424
3425 Thu Nov 13 11:49:41 1997 Doug Evans <devans@seba.cygnus.com>
3426
3427 * sim-base.h (sim_state_base): Move `magic' to end of struct.
3428
3429 * sim-base.h (sim_state_base): Add member trace_data.
3430 (STATE_TRACE_DATA): New macro.
3431 * sim-trace.h (TRACE_DEBUG_IDX,TRACE_debug): New macros.
3432 ({WITH_,}TRACE_DEBUG_P): New macros.
3433 (STATE_TRACE_FLAGS,STRACE_P,STRACE_DEBUG_P): New macros.
3434 (_sim_cpu): Delete forward reference.
3435 (debug_printf): Update.
3436 * sim-trace.c (OPTION_TRACE_DEBUG): Define.
3437 (trace_options): Add --trace-debug.
3438 (set_trace_options): Handle it.
3439 (trace_option_handler): Likewise.
3440 (trace_install): Init state trace_data struct.
3441 (trace_uninstall): Close state trace file.
3442 * sim-events.c (ETRACE): Only print source file and line number if
3443 --trace-debug.
3444 * sim-n-core.h (sim_core_trace_M): Likewise.
3445
3446 * sim-core.c (sim_core_signal): Add missing "\n" in message.
3447
3448 1997-11-13 Felix Lee <flee@cygnus.com>
3449
3450 * sim-n-core.h (sim_core_read_unaligned_N): illegal empty
3451 initializer.
3452 * sim-types.h (unsigned128,signed128): fix typo for MSVC.
3453
3454 Wed Nov 12 12:18:08 1997 Doug Evans <devans@canuck.cygnus.com>
3455
3456 * aclocal.m4 (SIM_AC_OPTION_SCACHE): Fix typo.
3457
3458 * Make-common.in (BUILT_SRC_FROM_COMMON): Remove files no longer
3459 built this way.
3460 (sim-config.o): Remove non-existent $(sim-nconfig_h) dependency.
3461 (clean): Don't delete $(BUILT_SRC_FROM_COMMON) if building in
3462 source tree.
3463
3464 Tue Nov 11 13:28:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
3465
3466 * sim-events.c (sim_events_process): Re-compute the time -
3467 update_time_from_event - as each event is processed. Reverses
3468 previous change.
3469
3470 Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
3471
3472 * callback.c (os_poll_quit): Replace _WIN32 with _MSC_VER.
3473
3474 Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
3475
3476 * sim-events.c (sim_events_process): Delete redundant call to
3477 update_time_from_event.
3478 (sim_events_slip): Always decrement time_from_event.
3479 (sim_events_tick, sim_events_deschedule, update_time_from_event):
3480 Delete assertion that time_from_event >=0 when work in queue, no
3481 longer applicable.
3482
3483 Thu Nov 6 12:06:46 1997 Andrew Cagney <cagney@b1.cygnus.com>
3484
3485 * sim-options.c (STANDARD_OPTIONS): Change OPTION_* to an enum.
3486 (standard_option_handler): Update.
3487
3488 * sim-options.h: Clarify documentation.
3489 (OPTION_LONG_ONLY_P): Delete definition.
3490 (OPTION_VALID_P): Define.
3491
3492 * sim-options.c (sim_print_help): Allow short only options.
3493 (sim_parse_args): Ditto.
3494 (sim_args_command): Skip short only options.
3495 (sim_parse_args): Allocate space for NUM_OPTS not just 256. Make
3496 separate entries for short and long options in the HANDLERS and
3497 ORIG_VAL tables.
3498 (sim_parse_args): Disable argument permutation.
3499
3500 Wed Nov 5 13:40:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
3501
3502 * sim-core.h (DECLARE_SIM_CORE_WRITE_N. DECLARE_SIM_CORE_READ_N):
3503 Add argument M, size of data type.
3504 (sim_core_read_misaligned_3, sim_core_write_misaligned_3):
3505 Declare, ditto for 5, 6 & 7 byte transfers.
3506 (sim_core_write_unaligned_1, sim_core_write_unaligned_1): Define
3507 as aligned variant.
3508
3509 * sim-n-core.h (sim_core_trace_M): Rename from
3510 sim_core_trace_N. Add nr_bytes argument. Replace transfer argument
3511 with transfer type. Print transfer direction. Handle 1 and 2 byte
3512 transfers.
3513 (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Trace
3514 unaligned accesses.
3515 (unsigned_M, T2H_M, H2T_M): Rename from unsigned_N, T2H_N, H2T_N.
3516 Update all functions.
3517
3518 * sim-core.c: Generate functions starting with 16 not 1.
3519 (sim_core_read_unaligned_3): Generate. Ditto for 3 byte write and
3520 all 5, 6 & 7 byte transfers.
3521
3522 * sim-n-core.h (sim_core_read_misaligned_N,
3523 sim_core_write_misaligned_N): Implement.
3524
3525 Mon Nov 3 15:03:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
3526
3527 * sim-endian.h (U16_8): Implement
3528
3529 * sim-endian.c (sim_endian_split_16, sim_endian_join_16): New functions
3530
3531 * sim-endian.h (VL8_16, VH8_16): Implement.
3532
3533 * sim-memopt.c (memory_option_handler): Typecast 64bit value to
3534 long in printf.
3535 (memory_option_handler): Only zalloc modulo bytes when non-zero.
3536 (memory_option_handler): Skip comma in alias address list
3537
3538 Fri Oct 31 13:03:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
3539
3540 * sim-memopt.c (do_memopt_add, do_memopt_delete): Add level and
3541 space params.
3542 (parse_size, parse_addr): New functions
3543 (memory_option_handler, memory_options): Parse address & size
3544 using new functions. Pass level, space, modulo to do_memopt_add &
3545 do_memopt_del.
3546
3547 * sim-memopt.h (struct _sim_memopt): Add level & space fields.
3548
3549 * sim-core.h (sim_core_arrach, sim_core_detach): Replace
3550 `attach_type attach' argument with `unsigned level' argument.
3551 Document.
3552
3553 * sim-core.c (new_sim_core_mapping, sim_core_map_attach,
3554 sim_core_attach): Replace argument attach with level. Update
3555 verification of arguments.
3556 (sim_core_map_detach, sim_core_detach): Replace argument attach
3557 with level.
3558
3559 * sim-basics.h (enum _attach_type): Delete.
3560
3561 Thu Oct 30 13:45:00 1997 Doug Evans <devans@seba.cygnus.com>
3562
3563 * sim-core.h (sim_core_write_8): Define.
3564
3565 Tue Oct 28 12:29:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
3566
3567 * sim-bits.h: Document ROTn macro.
3568
3569 * sim-endian.h (H2T): Handle 16 byte variables.
3570
3571 * sim-n-core.h (sim_core_read_unaligned_N): Return a dummy when an
3572 error.
3573
3574 * sim-core.c: Do not generate sim_core_*_word.
3575
3576 * sim-n-core.h (sim_core_trace_N): Add line_nr argument.
3577 (sim_core_write_aligned_N, sim_core_read_aligned_N): Update.
3578
3579 * sim-core.h (sim_core_read_unaligned_word,
3580 sim_core_read_aligned_word, sim_core_read_word,
3581 sim_core_write_unaligned_word, sim_core_write_aligned_word,
3582 sim_core_write_word): Change to macros that map onto sim_core_*_N.
3583
3584 Mon Oct 27 11:25:10 1997 Doug Evans <devans@canuck.cygnus.com>
3585
3586 * sim-n-endian.h: Add TAGS entrys for 16 byte versions.
3587
3588 * sim-endian.h: Disable 16 byte support.
3589
3590 Mon Oct 27 12:00:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
3591
3592 * sim-endian.c (_SWAP_16): Define. Generate 126 bit swap code.
3593
3594 * sim-n-core.h (sim_core_trace_N): New function.
3595 (sim_core_read_aligned_N, sim_core_write_aligned_N): Use,
3596 (sim_core_read_unaligned_N): Do not retyrn bogus value wden error.
3597
3598 * sim-endian.h: Add 128 bit variant.
3599
3600 * sim-core.h, sim-core.c: Add 128 bit variant.
3601
3602 * sim-types.h: Add signed128 and unsigned128 types using a struct.
3603
3604 Fri Oct 24 11:33:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
3605
3606 * sim-events.c (sim_events_process): Clear events->work_pending.
3607 (sim_events_tickn, sim_events_tick): Accumulate, instead of
3608 setting, nr_ticks_to_process.
3609 (sim_events_preprocess): Allow nr_ticks_to_process to be non-zero
3610 when the event queue isn't next.
3611
3612 * sim-events.h, sim-events.c (sim_events_slip): New function.
3613
3614 Wed Oct 22 14:18:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
3615
3616 * sim-hload.c (sim_load): Pass lma_p==0 and do_load=sim_load.
3617
3618 * sim-utils.h, sim-load.c (sim_load_file): Add lma_p and do_load
3619 arguments.
3620
3621 Tue Oct 21 18:37:57 1997 Doug Evans <devans@canuck.cygnus.com>
3622
3623 * nrun.c (main): Remove useless test of name != NULL.
3624 Exit if bfd_openr fails. Call bfd_check_format after bfd_openr.
3625
3626 Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
3627
3628 * sim-fpu.c (EXPMAX): Type is unsigned.
3629 (MIN_INT, MAX_INT): Type is signed64.
3630 (i2fpu): Type of val is signed64.
3631
3632 Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
3633
3634 * sim-profile.h (PROFILE_PC_BUCKET_SIZE): Treat a shift of zero as
3635 a bucket size of zero.
3636
3637 * sim-profile.c (OPTION_PROFILE_PC_GRANULARITY,
3638 OPTION_PROFILE_PC): Define.
3639 (profile_option_handler): Add support for --profile-pc and
3640 --profile-pc-granularity options.
3641 (profile_pc_init): When possible, compute nr buckets from bucket
3642 size.
3643
3644 * sim-profile.c (profile_pc_init): Align the profile-pc end
3645 address with the profile-pc bucket size.
3646
3647 * sim-profile.h (PROFILE_PC_NR_BUCKETS): Rename PROFILE_PC_SIZE to
3648 something less ambiguous.
3649 (PROFILE_PC_BUCKET_SIZE): Ditto for PROFILE_PC_SAMPLE_SIZE.
3650
3651 * sim-profile.c (profile_pc_cleanup): New function. Move
3652 profile_pc_uninstall code to here.
3653 (profile_pc_uninstall): Call.
3654 (profile_pc_init): Call.
3655
3656 Mon Oct 20 17:23:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
3657
3658 * sim-profile.c (profile_print_pc): Dump pc profile to dmon.out
3659 file using BSD gprof format.
3660
3661 * sim-bits.h (LSBIT, MSBIT, BIT): Force result to type
3662 unsigned_word.
3663 (LSBIT8, LSBIT16, LSBIT32, LSBIT64, MSBIT8, MSBIT16, MSBIT32,
3664 MSBIT64): Force result to unsignedN.
3665
3666 Thu Oct 16 11:38:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
3667
3668 * sim-alu.h (ALU16_BEGIN, ALU32_BEGIN, ALU64_BEGIN): Drop opening
3669 brace from macro.
3670 (ALU8_BEGIN, ALU8_SET, ALU8_ADD, ALU8_SUB, ALU8_NEGATE): Define.
3671 (ALU16_ADD, ALU16_SUB, ALU16_NEGATE): Simplify arrithmetic.
3672 (ALU32_ADD, ALU32_SUB, ALU32_NEGATE): Simplify arrithmetic.
3673 (ALU64_ADD, ALU64_SUB, ALU64_NEGATE): Simplify arrithmetic.
3674
3675 Wed Oct 15 09:24:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
3676
3677 * sim-core.h (struct _sim_core_mapping): Change free_buffer to
3678 type void*.
3679
3680 * sim-core.c (sim_core_uninstall, new_sim_core_mapping,
3681 sim_core_map_attach, sim_core_map_detach): Change free_buffer to
3682 type void*.
3683 (sim_core_attach): Rename buffer_freed to free_buffer, type
3684 void*. Ensure that allocated buffer is alligned according to
3685 region's address.
3686
3687 Mon Oct 13 11:34:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
3688
3689 * sim-alu.h (ALU64_HAD_OVERFLOW): Define.
3690 (ALU64_SUB): Define.
3691
3692 * Make-common.in (all): Build SIM_EXTRA_ALL first.
3693 (.gdbinit): Remove dependencies, generate once per build.
3694
3695 Tue Oct 14 19:20:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
3696
3697 * sim-n-core.h (sim_core_read_aligned_N,
3698 sim_core_write_aligned_N): Make xaddr param type address_word not
3699 unsigned_word.
3700
3701 Fri Oct 3 09:49:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
3702
3703 * sim-fpu.h, sim-fpu.c: Rewrite. Change sim_fpu object to an
3704 unpacked floating point struct. Pass sim_fpu object by reference.
3705 Add preliminary support for rounding modes.
3706
3707 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
3708
3709 * configure: Regenerated to track ../common/aclocal.m4 changes.
3710
3711 Thu Oct 2 19:43:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
3712
3713 * aclocal.m4 (sim-bitsize): Fix typo, WITH_TARGET_WORD_BITSIZE not
3714 WITH_TARGET_BITSIZE.
3715
3716 Thu Sep 25 23:20:20 1997 Felix Lee <flee@yin.cygnus.com>
3717
3718 * sim-profile.c (profile_print_core): label needs empty statement.
3719
3720 Thu Sep 25 11:20:47 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
3721
3722 * sim-break.c (sim_set_breakpoint sim_clear_breakpoint): Use ZALLOC
3723 and zfree instead of xmalloc and free. Prevents warnings.
3724
3725 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
3726
3727 * configure: Regenerated to track ../common/aclocal.m4 changes.
3728
3729 Wed Sep 24 17:23:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
3730
3731 * Make-common.in (SIM_BITSIZE): Assign from configured value.
3732 (CONFIG_CFLAGS): Add SIM_BITSIZE.
3733
3734 * aclocal.m4 (--enable-sim-bitsize): Developer option for
3735 controling the bitsize/msb of the target.
3736
3737 Wed Sep 24 17:41:40 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
3738
3739 * Make-common.in: New files sim-break.c, sim-break.h.
3740 * sim-base.h: Add point to breakpoint list to sim_state_base.
3741 * sim-break.c sim-break.h: New modules that implement intrinsic
3742 breakpoint support.
3743 * sim-module.c: Add breakpoint module.
3744
3745 Tue Sep 23 00:26:39 1997 Felix Lee <flee@yin.cygnus.com>
3746
3747 * sim-events.c (SIM_EVENTS_POLL_RATE): poll more often than once
3748 an hour.
3749 * sim-n-core.h (WITH_XOR_ENDIAN): MSVC barfs on
3750 if (0) { 1 % 0; }
3751 * sim-core.c (sim_core_xor_write_buffer): WITH_XOR_ENDIAN + 1.
3752 (SIGBUS) define for Windows.
3753 * sim-trace.c (trace_printf,debug_printf): added ALMOST_STDC.
3754 * sim-resume.c: define SIGTRAP for windows.
3755 * sim-xcat.h: use token pasting if ALMOST_STDC.
3756
3757 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
3758
3759 * Make-common.in (SIM_SCACHE, SIM_DEFAULT_MODEL): Assign
3760 configured values.
3761 (CONFIG_CFLAGS): Add same.
3762
3763 Mon Sep 22 17:20:27 1997 Felix Lee <flee@cygnus.com>
3764
3765 * sim-types.h (SIGNED64): ##i64 when _MSC_VER, not _WIN32.
3766 (SIGNED32): use ##i32.
3767
3768 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
3769
3770 * configure: Regenerated to track ../common/aclocal.m4 changes.
3771
3772 Tue Sep 23 10:07:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
3773
3774 * aclocal.m4 (sim-endian): Simplify logic determining [default]
3775 endian of target.
3776
3777 * Make-common.in (SIM_WARNINGS, SIM_ALIGNMENT, SIM_ENDIAN,
3778 SIM_HOSTENDIAN, SIM_RESERVED_BITS, SIM_ASSERT, SIM_FLOAT,
3779 SIM_HARDWARE, SIM_INLINE, SIM_PACKAGES, SIM_REGPARM, SIM_SMP,
3780 SIM_STDCALL, SIM_XOR_ENDIAN): Assign configured values.
3781 (CONFIG_CFLAGS): Add same.
3782
3783 * aclocal.m4: Perform AC_SUBST on optional options.
3784
3785 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
3786
3787 * sim-config.h (WITH_DEFAULT_ALIGNMENT): Don't hardwire any alignment.
3788
3789 * sim-options.c (standard_option_handler): Typo in warning message.
3790
3791 * sim-base.h (STATE_MODEL): Make conditional on SIM_HAVE_MODEL.
3792
3793 * sim-profile.c (profile_print_insn): Check 0 .. MAX_INSN for any
3794 insn count. Make count conditional on there being a valid
3795 INSN_NAME.
3796 (profile_pc_init): Make default PC profile frequency an arbitrary
3797 256.
3798
3799 * sim-base.h: Ditto.
3800
3801 * sim-profile.h (WITH_PROFILE_MODEL_P): Only enable modeling when
3802 SIM_HAVE_MODEL.
3803
3804 * sim-model.h (struct MACH): Depreciate, to be replaced by bfd
3805 archure struct.
3806
3807 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
3808
3809 * configure: Regenerated to track ../common/aclocal.m4 changes.
3810
3811 Mon Sep 22 11:45:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
3812
3813 * aclocal.m4 (sim_alignment): Simplify logic for selecting the
3814 configured alignment.
3815
3816 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
3817
3818 * configure: Regenerated to track ../common/aclocal.m4 changes.
3819
3820 Fri Sep 19 17:26:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
3821
3822 * sim-config.c (sim_config): Check for default alignment.
3823
3824 * sim-options.c (standard_option_handler): Add alignment option.
3825
3826 * aclocal.m4 (sim_alignment): Allow configuration of hardwired and
3827 default alignment requirements on memory accesses.
3828
3829 Fri Sep 19 11:51:35 1997 Jeffrey A Law (law@cygnus.com)
3830
3831 * sim-load.c (sim_load_file): Return failure if the executable
3832 had no loadable sections.
3833
3834 Wed Sep 17 13:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
3835
3836 * sim-events.c (ETRACE): Use trace_printf not sim_io_printf for
3837 trace output.
3838
3839 * sim-core.c (sim_core_signal): When bad access halt simulator
3840 SIGSEGV / SIGBUS instead of aborting.
3841 (signal.h): Include.
3842
3843 * sim-watch.c (sim_watchpoint_install): Handler for watchpoint
3844 options was missing.
3845
3846 * sim-bits.h (MOVED): Define
3847
3848 Wed Sep 17 10:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
3849
3850 * sim-alu.h (ALU32_HAD_OVERFLOW): Pacify GCC, Use MSBIT instead of
3851 BIT.
3852
3853 * sim-bits.h (LSBIT, MSBIT): Check for overflow of shift value.
3854
3855 * sim-bits.c: Add 8 bit versions of bit macros.
3856
3857 * sim-bits.h: Ditto.
3858
3859 Tue Sep 16 16:15:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
3860
3861 * sim-bits.c (LSSEXT, MSSEXT): Replace SEXT.
3862 (LSINSERTED, MSINSERTED): Ditto for INSERTED.
3863
3864 * sim-n-bits.h (MSSEXTn, LSSEXTn): Replace SEXTn.
3865 (LSINSERTDn, MSINSERTEDN): Ditto for INSERTEDn.
3866
3867 * sim-bits.h (SEXT*): Define as MSEXT/LSEXT.
3868 (INSERTED*): Ditto for LSINSERTED/MSINSERTED.
3869
3870 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
3871
3872 * aclocal.m4 (SIM_AC_COMMON): Add optional config.h file argument.
3873 configure.in: Output to cconfig.h instead of config.h.
3874
3875 * configure: Regenerated to track ../common/aclocal.m4 changes.
3876
3877 Mon Sep 15 15:39:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
3878
3879 * sim-utils.c (sim_analyze_program): Set STATE_ARCHITECTURE from
3880 BFD if known.
3881
3882 Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
3883
3884 * callback.c (os_write): divert stdout and stderr to their
3885 respective hooks.
3886
3887 Thu Sep 11 10:08:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
3888
3889 * sim-profile.c (profile_print_speed): Call
3890 sim_events_elapsed_time instead of PROFILE_EXEC_TIME for moment.
3891
3892 * sim-events.c (sim_events_elapsed_time): New function return nr
3893 host MS consumed by the simulator.
3894 (sim_watch_valid): Use.
3895
3896 * sim-module.c (modules): Install sim_events very very early.
3897
3898 * sim-profile.c (profile_print): Call profile_print_pc.
3899 (print_bar):
3900 (profile_pc_init): New function, set up processor for PC
3901 profiling.
3902 (profile_print_pc): New function, print a PC profile.
3903 (profile_pc_event): New function, sample PC.
3904
3905 * sim-profile.h (PROFILE_PC_COUNT, PROFILE_PC_START,
3906 PROFILE_PC_END, PROFILE_PC_SHIFT, PROFILE_PC_SAMPLE_SIZE): Add to
3907 profile struct.
3908
3909 * sim-options.c (sim_print_help): Pacify GCC.
3910
3911 * sim-n-core.h (sim_core_read_aligned_N,
3912 sim_core_write_aligned_N): Add un-conditional profile call.
3913 (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Add
3914 profile call when aligned read/write isn't used.
3915
3916 * sim-base.h: Include sim-profile, sim-model after sim-core &
3917 sim-events allow sim-core to define useful values.
3918
3919 * sim-profile.c (OPTION_PROFILE_CORE): Define.
3920 (profile_option_handler, profile_options): Add support for
3921 --profile-core option.
3922 (print_bar): Include when core profiling.
3923 (profile_print_core): New function, print core profile.
3924
3925 * sim-config.c (print_sim_config): Print profile status.
3926
3927 * sim-profile.h (PROFILE_NEXT_IDX, PROFILE_core,
3928 WITH_PROFILE_PC_P): Define.
3929 (PROFILE_CORE_COUNT): Count each core-map/size separatly.
3930 (PROFILE_COUNT_CORE): Define.
3931
3932 Thu Sep 11 08:44:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
3933
3934 * sim-watch.c (handle_watchpoint): Pass a char** index into the
3935 interrupt_names array as the data.
3936 (sim-watch.h): Document.
3937
3938 Wed Sep 10 16:15:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
3939
3940 * sim-options.c (sim_print_help): When the doc string is to long
3941 word wrap it.
3942
3943 * sim-watch.c (sim_watchpoint_install): Use option.doc_name so
3944 that only the first few the watch options are listed. Generate
3945 meanginful usage messages.
3946
3947 * sim-options.h (struct OPTION): Clarify use of doc_name field
3948
3949 Wed Sep 10 13:23:24 1997 Andrew Cagney <cagney@b1.cygnus.com>
3950
3951 * sim-options.c (OPTION_ARCHITECTURE_INFO): New option.
3952 (standard_option_handler): Handle --architecture-info.
3953
3954 Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
3955
3956 * sim-core.h (sim_cpu_core): [WITH_XOR_ENDIAN + 1], to avoid
3957 illegal zero-sized array.
3958 * sim-core.c (sim_core_xor_read_buffer): same.
3959
3960 Tue Sep 9 11:20:35 1997 Doug Evans <dje@canuck.cygnus.com>
3961
3962 * nltvals.def: Regenerate.
3963
3964 Tue Sep 9 02:10:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
3965
3966 * sim-fpu.c (DP_FRACHIGH2): Define LL using SIGNED64.
3967
3968 Mon Sep 8 12:22:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
3969
3970 * sim-bits.c (MASKED): Delete.
3971 (EXTRACTED): Delete.
3972 (LSEXTRACTED, MSEXTRACTED): New functions.
3973
3974 * sim-n-bits.h (MASKEDn): Delete, define as MSMASKED or LSMASKED.
3975 (MSMASKEDn, LSMASKEDn): Add last argument.
3976 (MSMASK*): Ditto.
3977
3978 * sim-bits.h (EXTEND8, EXTEND16): Define.
3979 (EXTRACTED64): Define as 64 bit extract, not 32 bit.
3980
3981 * sim-run.c (sim_engine_run): Use CPU_CIA macro.
3982
3983 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use CPU_CIA to get at
3984 current instruction address.
3985
3986 * sim-inline.h (*_ENGINE): Define.
3987
3988 Fri Sep 5 08:39:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
3989
3990 * sim-core.c (sim_core_attach): Fix checks of modulo/mask.
3991
3992 * sim-watch.c (delete_watchpoint): Delete by ident and type.
3993 (watch_option_handler): Call delete_watchpoint with ident or type.
3994 (sim_watchpoint_install): Create interrupt specific watchpoint
3995 commands on the fly.
3996 (do_watchpoint_create): New function, create a watch point using
3997 type/int-nr info encoded in the option nr.
3998 (do_watchpoint_info): New function. List active watchpoints.
3999
4000 * sim-watch.h: Change data structure to a list.
4001
4002 * sim-memopt.c (memory_option_handler): Require explicit "all"
4003 before deleting all memory regions.
4004
4005 * sim-utils.c (sim_do_commandf): New function, printf version of
4006 sim_do_command.
4007
4008 * sim-basics.h (asprintf, vasprintf): Hack, define for CYGWIN32.
4009
4010 * sim-alu.h (ALU64_ADD): Use explicit MSEXTRACTED64, do not assume
4011 bit endianness.
4012 (SIGNED64, UNSIGNED64): Delete.
4013 (ALU64_ADD): Don't rely on bit endianness.
4014 (ALU64_BEGIN): Define.
4015
4016 * sim-n-bits.h (MSEXTRACTEDn, LSEXTRACTED): New functions.
4017 (EXTRACTEDn): Delete, define as either LSEXTRACTED or MSEXTRACTED.
4018
4019 * sim-types.h (SIGNED64, UNSIGNED64): New macros, attach relevant
4020 suffix - u64, LL - to 64 bit constants.
4021
4022 Thu Sep 4 09:27:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
4023
4024 * sim-config.c (sim_config): Add assert for SIM_MAGIC_NUMBER.
4025
4026 * sim-utils.h (NZALLOC): Define - zalloc * N.
4027
4028 * sim-hrw.c (sim_read, sim_write): New file. Provide generic
4029 implementation of read/write functions.
4030
4031 * Make-common.in (sim-hrw.o): New target.
4032
4033 * sim-base.h (STATE_MEMOPT_P): Delete, simulators _always_ add
4034 memory.
4035
4036 * sim-memopt.c (memory_option_handler): Implement memory-size
4037 command. Implement memory-alias command. Let memory-delete delete
4038 all memory regions.
4039 (add_memopt): New function. Add a memory region.
4040 (do_memopt_delete): New function. Delete a memory region.
4041
4042 * sim-utils.c (sim_elapsed_time_get): Never return zero.
4043
4044 * sim-core.c (sim_core_detach): New function.
4045 (sim_core_map_detach): New function. Perform the actual detach.
4046 (sim_core_init): Move initialization code from here.
4047 (sim_core_install): To here.
4048 (sim_core_uninstall): And here.
4049
4050 * sim-module.c: Add memopt module.
4051
4052 * sim-base.h (STATE_MEMOPT, STATE_MEMOPT_P): Add memopt to
4053 simulator base type.
4054
4055 * Make-common.in (sim_main_headers): Add sim-memopt.h
4056 (sim-memopt.o): New target.
4057
4058 * sim-core.c (sim_core_install): Add core_options to the option
4059 table.
4060
4061 * sim-watch.c (watch_options): Make --delete-watch a synonym for
4062 --watch-delete.
4063
4064 * sim-config.h (WITH_MODULO_MEMORY): Define as 0. Update
4065 comments.
4066
4067 * sim-core.h (struct _sim_core_mapping): Change nr_bytes to type
4068 address_word, add mask member.
4069
4070 * sim-core.h, sim-core.c (sim_core_attach): Make nr_bytes of type
4071 address_word, allow for 64bit targets in 32bit host. Add modulo
4072 argument.
4073 (sim_core_map_attach): Ditto.
4074 (new_sim_core_mapping): Ditto.
4075 (sim_core_translate): Mask address when modulo memory.
4076
4077 Wed Sep 3 17:32:54 1997 Doug Evans <dje@seba.cygnus.com>
4078
4079 * sim-hload.c (sim_load): Add assert for SIM_MAGIC_NUMBER.
4080
4081 * gdbinit.in: New file.
4082 * aclocal.m4 (SIM_AC_OUTPUT): Build .gdbinit.
4083 * Make-common.in (distclean): Delete .gdbinit.
4084 (.gdbinit): Add rule for.
4085 * configure: Regenerated to track ../common/aclocal.m4 changes.
4086
4087 * Make-common.in (cgen-run.o): Add rule for.
4088
4089 Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
4090
4091 * sim-resume.c (sim_resume): Suspend/resume the simulator.
4092
4093 * sim-events.c (sim_watch_valid): Compute total elapsed time from
4094 both resumed and previous elapsed time.
4095 (sim_events_init): Set initial_wallclock and current_wallclock to
4096 zero.
4097 (sim_events_install): Install sim_events_suspend and
4098 sim_events_resume.
4099 (sim_events_watch_clock): Allow for suspended simulator when
4100 computing the time of the clock event.
4101
4102 * sim-events.h (struct _sim_event): Add resume_wallclock, rename
4103 initial_wallclock to elapsed_wallclock, set both to zero.
4104 (sim_events_init, sim_events_uninstall): Delete prototypes.
4105
4106 * sim-module.h (MODULE_SUSPEND_FN, MODULE_RESUME_FN): Define types.
4107
4108 * sim-module.c(sim_module_resume, sim_module_suspend): New
4109 functions.
4110
4111 Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
4112
4113 * sim-core.c (sim_core_map_attach): Clarify memory overlap error
4114 message.
4115
4116 Tue Sep 2 14:57:06 1997 Doug Evans <dje@canuck.cygnus.com>
4117
4118 * Makefile.in (TAGS): Add support for "/* TAGS: foo */" marker.
4119 * Make-common.in (TAGS): Likewise.
4120 * sim-n-bits.h: Add TAGS comments for all functions.
4121 * sim-n-core.h: Likewise.
4122 * sim-n-endian.h: Likewise.
4123
4124 Mon Sep 1 10:50:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
4125
4126 * sim-utils.c (sim_state_alloc): Set CPU backlinks, callback and
4127 kind.
4128
4129 * sim-base.h (sim_state_alloc): Add callback and kind arguments.
4130
4131 * sim-base.h (INVALID_INSTRUCTION_ADDRESS): Add default
4132 definition.
4133
4134 Sat Aug 30 09:47:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
4135
4136 * sim-fpu.c (DP_GARDMSB, ...): Make unsigned.
4137 (DP_FRACHIGH, DP_FRACHIGH2, ..): Use MSMASK to avoid LL.
4138
4139 Fri Aug 29 13:37:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
4140
4141 * sim-core.c (sim_core_map_attach): Cast attach enum to int.
4142 (sim_core_xor_read_buffer, sim_core_xor_write_buffer): Make
4143 nr_transfered and nr_this_transfer unsigned.
4144
4145 * sim-events.c (sim_events_tickn): N is signed, as limited to
4146 MAXINT.
4147
4148 * sim-n-endian.h (offset_N): Change size to unsigned.
4149
4150 * callback.c (os_poll_quit): Add prototypes for kbhit and getkey.
4151
4152 Fri Aug 29 10:10:53 1997 Andrew Cagney <cagney@b1.cygnus.com>
4153
4154 * sim-utils.c (sim_copy_argv): Delete, replaced by dupargv.
4155
4156 * sim-options.c (sim_parse_args): Use dupargv.
4157
4158 Thu Aug 28 10:36:34 1997 Doug Evans <dje@canuck.cygnus.com>
4159
4160 * sim-options.c (standard_option_handler): Use xstrdup, not strdup.
4161
4162 Thu Aug 28 12:09:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
4163
4164 * sim-base.h (STATE_ARCHITECTURE, STATE_TARGET): Add to simulator
4165 base type.
4166
4167 * sim-options.c (standard_options): Add --architecture=MACHINE and
4168 --target=TARGET options.
4169 (OPTION_ARCHITECTURE, OPTION_TARGET): Define.
4170 (standard_option_handler): Handle architecture and target options.
4171 (bfd.h): Include.
4172
4173 * sim-utils.c (sim_analyze_program): Pass STATE_TARGET to
4174 bfd_openr.
4175 (sim_analyze_program): Set prog_bfd architecture from
4176 STATE_ARCHITECTURE if known.
4177
4178 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
4179
4180 * configure: Regenerated to track ../common/aclocal.m4 changes.
4181 * config.in: Ditto.
4182
4183 Wed Aug 27 18:11:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
4184
4185 * aclocal.m4 (enable-sim-warnings): Remove comment stating
4186 that option does not apply to certain files.
4187
4188 Wed Aug 27 15:13:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
4189
4190 * sim-bits.h (LSBIT8, LSBIT16, LSBIT32, LSBIT64, LSBIT, MSBIT8,
4191 MSBIT16, MSBIT32, MSBIT64, MSBIT): New macros - single bit as
4192 offset from MSB/LSB.
4193
4194 * sim-endian.h (A1_8, A2_8, A4_8, A1_4, A2_4, A1_2): New macro,
4195 access address of sub word quantity of a hosts 16, 32, 64 bit word
4196 type.
4197 (V1_2, V1_4, V2_4, V1_8, V2_8, V4_8): Ditto for values.
4198 (U8_1, U8_2, U8_4, U4_1, U4_2, U2_1): Ditto for set of values.
4199 (V2_H1, V2_L1, V4_H2, V4_L2, V8_L4, V8_H4): Given N byte argument,
4200 return N*2 byte value with argument in Hi/Lo word. Renamed from
4201 V1_H2, V1_L2, V2_H4, V2_L4, V4_H8, V4_L8.
4202
4203 * sim-alu.h (ALU32_HAD_OVERFLOW): Use 64 bit mask not 32bit.
4204 (ALU16_HAD_CARRY, ALU32_HAD_CARRY, ALU16_HAD_OVERFLOW): Use MSBIT
4205 so that bit offset is explicit.
4206
4207 Wed Aug 27 11:55:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
4208
4209 * sim-utils.c (sim_analyze_program): Add prog_name argument.
4210 Update STATE_PROG_BFD when needed with a dup'd copy of the
4211 program.
4212
4213 * sim-config.c (sim_config): Delete ABFD argument, use
4214 STATE_PROG_BFD directly.
4215
4216 Tue Aug 26 12:55:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
4217
4218 * run.c (main): Pass the open ABFD to sim_create_inferior.
4219
4220 * nrun.c (main): Determine prog_bfd. Pass to sim_create_inferior
4221 and sim_load.
4222 (bfd.h): Include.
4223
4224 * sim-hload.c (sim_load): New file. Implement generic sim_load for
4225 hardware only simulator targets.
4226
4227 * Make-common.in (sim-hload.o): Add rule.
4228
4229 Wed Aug 27 09:51:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
4230
4231 * sim-utils.c (sim_copy_argv): Rewrite to match malloc strategy
4232 used by copyargv and freeargv.
4233
4234 * sim-options.c (sim_parse_args): Save a copy of PROG-ARGS in
4235 STATE_PROG_ARGV, not just a pointer.
4236
4237 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
4238
4239 * configure: Regenerated to track ../common/aclocal.m4 changes.
4240 * config.in: Ditto.
4241
4242 Mon Aug 25 12:11:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
4243
4244 * aclocal.m4 (sim-endian): Add second argument to
4245 SIM_AC_OPTION_ENDIAN. First is hardwired endian, second is
4246 default endian when not hardwired.
4247
4248 * sim-config.h (WITH_DEFAULT_TARGET_BYTE_ORDER): New macro, if all
4249 else failes value for target byte order.
4250
4251 * sim-config.c (sim_config): Add abfd arguments. Set
4252 STATE_PROG_BFD accordingly. Determine prefered_target_byte_order
4253 from same.
4254 (sim_config): Return SIM_RC, don't abort.
4255 (bfd.h): Include.
4256
4257 * run.c (main): Update call to sim_open - add ABFD argument.
4258 * nrun.c (main): Add NULL ABFD argument.
4259
4260 Thu Aug 14 12:48:57 1997 Doug Evans <dje@canuck.cygnus.com>
4261
4262 * callback.c (os_poll_quit): Make static.
4263 Call sim_cb_eprintf, not p->eprintf.
4264 (sim_cb_printf, sim_cb_eprintf): New functions.
4265 * sim-utils.h (sim_cb_printf, sim_cb_eprintf): Declare.
4266
4267 * sim-basics.h (zalloc,zfree,sim_add_commas,SIM_ELAPSED_TIME,
4268 sim_elapsed_time_get,sim_elapsed_time_since): Move decls to
4269 sim-utils.h. #include sim-utils.h.
4270 * sim-utils.h: Above decls moved here.
4271 (sim_analyze_program,sim_load_file): Use `struct _bfd', not `bfd'.
4272
4273 * sim-watch.c (action_watchpoint): Fix thinkos.
4274
4275 Thu Jul 24 08:48:05 1997 Stu Grossman (grossman@critters.cygnus.com)
4276
4277 * sim-types.h: Fix defs of 64 bit data types for MSVC.
4278
4279 Tue Jul 22 10:35:37 1997 Doug Evans <dje@canuck.cygnus.com>
4280
4281 * sim-n-core.h (sim_core_write_unaligned_N): Add missing break
4282 to FORCED_ALIGNMENT case.
4283
4284 Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
4285
4286 * callback.c (target_to_host_open): Handle hosts with O_BINARY.
4287
4288 Thu Jun 5 08:47:10 1997 Jeffrey A Law (law@cygnus.com)
4289
4290 * Make-common.in (libsim.a): Fix typo.
4291
4292 Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
4293
4294 * nrun.c (main): Verify the structure returned before using it.
4295
4296 Wed Jun 4 11:44:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
4297
4298 * sim-config.h (WITH_ENGINE): Enable the sim-engine module by
4299 default.
4300
4301 * sim-engine.c (sim_engine_install): New function. Install the
4302 engine init functions.
4303 (sim_engine_init): [Re]initialize the simulator engine.
4304
4305 * sim-module.c: Add sim_engine to list of modules that always
4306 install.
4307
4308 Tue Jun 3 04:52:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
4309
4310 * sim-watch.c (schedule_watchpoint): Use sim_unschedule_watchpoint
4311 to remove the old watchpoint, not delete_watchpoint.
4312 (watch_option_handler): Action the correct watchpoint, not just
4313 cycles.
4314
4315 Wed May 28 14:47:41 1997 Andrew Cagney <cagney@b1.cygnus.com>
4316
4317 * sim-n-core.h (sim_core_write_aligned_N): For 8byte reads, output
4318 both low and high word.
4319 (sim_core_write_aligned_N): Ditto.
4320
4321 * sim-trace.c (set_trace_options): Delete code explicitly setting
4322 core->trace.
4323
4324 * sim-options.c (sim_print_help): Call the list commands if not a
4325 standalone simulator.
4326 (sim_print_help): Advise that some options may not be applicable.
4327
4328 * sim-trace.c (set_trace_options): Assume core present.
4329
4330 * sim-events.c (sim_events_schedule_after_signal): Overflow signal
4331 buffer when full not almost full.
4332
4333 Tue May 27 14:32:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
4334
4335 * sim-events.c (sim_events_process): Don't blat the event queue
4336 when processing watchpoints.
4337
4338 * sim-watch.h: Make arg unsigned long - stop sign extension.
4339
4340 * sim-events.c (sim_watch_valid): rewrite so debugable.
4341
4342 * sim-config.h (WITH_XOR_ENDIAN): Default to zero.
4343
4344 * sim-watch.c (schedule_watchpoint): Add is_within option so that
4345 inequality test is possible.
4346 (handle_watchpoint): Re-pass is_within arg.
4347 (watch_option_handler): When `!' prefix to pc-watchpoint arg pass
4348 0 to schedule_watchpoint's is_within arg.
4349 (sim_watchpoint_init): Re-pass is_within arg.
4350
4351 * sim-options.c (sim_print_help): Add is_command argument. Don't
4352 include -- prefix when called from the command line interpreter.
4353
4354 * sim-watch.c (schedule_watchpoint): Pass true is_within argument.
4355
4356 * sim-events.c (sim_events_watch_sim): Add is_within argument,
4357 zero indicates that the test should be reversed.
4358 (sim_events_watch_core): Ditto.
4359 (WATCH_CORE): Compare range against is_within.
4360 (WATCH_SIM): Ditto.
4361
4362 Tue May 27 12:48:03 1997 Andrew Cagney <cagney@b2.cygnus.com>
4363
4364 * sim-events.c (WATCH_CORE): Pass NULL cpu argument to
4365 sim_core_read_buffer. Check nr-bytes transfered.
4366
4367 * sim-core.h (sim_core_common): Define a new struct that contains
4368 the common data. to sd and cpu structures.
4369 * sim-core.c (sim_core_attach): Update.
4370 (sim_core_init): Update. Remember to copy initialized data to each
4371 cpu.
4372 (sim_core_find_mapping): Ditto.
4373
4374 * sim-core.c (sim_core_read_buffer): Add cpu argument.
4375 (sim_core_write_buffer): Ditto.
4376
4377 * sim-n-core.h (sim_core_read_unaligned_N): When mis-aligned
4378 transfer use xor version of read buffer.
4379 (sim_core_write_unaligned_N): Ditto for write.
4380
4381 * sim-core.c (sim_core_xor_read_buffer): New function implement
4382 xor-endian data read breaking transfer up into xor-endian sized
4383 blocks.
4384 (sim_core_xor_write_buffer): Ditto for write.
4385 (reverse_n): Reverse order of arbitrary number of bytes in buffer
4386 - needed for xor-endian transfers.
4387
4388 Fri May 23 14:24:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
4389
4390 * sim-inline.h: Review description.
4391
4392 * sim-core.h, sim-core.c: Reduce number of functions being inlined
4393 to just those involved in data transfers and configuration.
4394
4395 * sim-xcat.h (XSTRING): New macro, map macro definition onto
4396 string.
4397 * sim-n-core.h (sim_core_read_aligned_N): Use.
4398 (sim_core_read_unaligned_N): Ditto.
4399 (sim_core_read_unaligned_N): Ditto..
4400 (sim_core_write_unaligned_N): Ditto.
4401
4402 * sim-core.h: Add xor endian bitmap to main structure. *
4403
4404 sim-n-core.h (sim_core_write_aligned_N): Add suport for xor
4405 endian.
4406 (sim_core_read_aligned_N): Ditto.
4407
4408 * sim-core.c (sim_core_set_xor_endian): New function.
4409 (sim_core_attach): Don't overwrite the per-cpu xor map when
4410 cloning the global core.
4411
4412 Fri May 23 10:53:13 1997 Andrew Cagney <cagney@b1.cygnus.com>
4413
4414 * sim-engine.h: Update below so that it is using an enumerated
4415 type.
4416
4417 Thu May 22 09:12:16 1997 Gavin Koch <gavin@cygnus.com>
4418
4419 * sim-engine.c (sim_engine_restart):
4420 * sim-resume.c (sim_resume): Change longjmp param/setjmp
4421 return value used for simulator restart from 0 to 2.
4422
4423 Wed May 21 08:47:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
4424
4425 * cgen-scache.c (scache_option_handler): Add is_command arg.
4426
4427 * sim-model.c (model_option_handler): Add is_command argument.
4428
4429 * sim-profile.c (profile_option_handler): Add is_command arg.
4430
4431 * sim-events.c (sim_watch_valid): Use ub64, lb64 when 64bit value
4432 involved.
4433
4434 * sim-module.c (sim_module_add_init_fn): Call init fn in the same
4435 order that they are registered.
4436
4437 * sim-options.h (OPTION_HANDLER): Add argument to differentiate
4438 between option and command line processing.
4439
4440 * sim-options.c: Include stdlib.h, ctype.h.
4441
4442 * Make-common.in (sim-watch.o): Add rule.
4443 (sim_main_headers): Assume sim-assert.h included.
4444 (sim-*.o): Simplify make rule.
4445
4446 * sim-module.c: Add sim_watch_install to module list.
4447
4448 Tue May 20 14:15:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
4449
4450 * sim-base.h (STATE_LOADED_P): New predicate. Set once everything
4451 has been loaded.
4452
4453 * sim-trace.c (trace_install): Check magic. Include sim-assert.h.
4454 * sim-events.c (sim_events_install): Ditto.
4455 * sim-core.c (sim_core_install): Ditto.
4456 * sim-model.c (model_install): Ditto.
4457 * sim-options.c (standard_install): Ditto.
4458 * sim-profile.c (profile_install): Ditto.
4459 * sim-reason.c (sim_stop_reason): Ditto.
4460 * sim-run.c (sim_engine_run): Ditto.
4461 * sim-utils.c (sim_analyze_program): Ditto.
4462
4463 * sim-module.c (modules): Make profile_install and trace_install
4464 optional.
4465
4466 * sim-base.h (STATE_MEM_BASE): Define for flat memory systems.
4467
4468 * sim-options.c (standard_option_handler): Set the byte order.
4469
4470 * sim-events.c (sim_events_process): Allow multi tick processing.
4471 (sim_events_tickn): New function - multi cycle tick.
4472
4473 * sim-events.h (sim_events_tickn, sim_events_timewarp): Add
4474 prototypes. Under development.
4475 (sim_events): Replace processing with nr_ticks_to_process.
4476
4477 Tue May 20 09:39:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
4478
4479 * nrun.c (main): Pass callbacks to sim_open instead of using
4480 sim_set_callbacks.
4481
4482 * run.c (main): Ditto.
4483
4484 Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
4485
4486 * sim-events.c (sim_events_zalloc): Signal save memory allocator -
4487 stop tk interrupting malloc calls.
4488 (sim_events_zalloc): Converse.
4489
4490 * Make-common.in (sim_main_headers): Add sim-events.h.
4491
4492 * sim-events.c (sim_events_schedule_after_signal): Change return
4493 type to void - signal events are strictly internal.
4494 (sim_events_init): Allocate a finite buffer for signal events.
4495 (sim_events_schedule_after_signal): Enter signal events into the
4496 signal buffer.
4497
4498 * sim-engine.c (sim_engine_halt): Check SIM_DESC magic.
4499 (sim_engine_restart): Ditto.
4500 (sim_engine_abort): Ditto.
4501 * sim-stop.c (sim_stop): Ditto.
4502 (control_c_simulation): Ditto.
4503 * sim-resume.c (sim_resume): Ditto.
4504 (has_stepped): Ditto.
4505 * sim-abort.c (sim_engine_abort): Ditto.
4506
4507 * sim-basics.h (transfer_type): New type.
4508
4509 * sim-core.c (sim_core_signal): New function. Print core signal
4510 information.
4511 (sim_core_find_mapping): Add transfer argument.
4512
4513 * sim-n-core.h (sim_core_{write,write}_unaligned_N): Call
4514 SIM_CORE_SIGNAL if a recoverable abort.
4515 * sim-core.c (sim_core_find_mapping): Ditto.
4516
4517 Fri May 16 15:13:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
4518
4519 * sim-core.c (sim_core_find_mapping): Replace calls to
4520 sim_io_error to more resiliant sim_engine_abort.
4521
4522 * sim-n-core.h (sim_core_read_unaligned_N): Ditto.
4523 (sim_core_write_unaligned_N): Ditto.
4524
4525 Tue May 13 13:50:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
4526
4527 * sim-module.c: Add sim_events_install to list.
4528
4529 * sim-events.c (sim_events_install, sim_events_uninstall): Clonse
4530 from sim_core_*.
4531 (sim_events_init): Now returns SIG_RC.
4532
4533 * sim-run.c: New file. Generic sim_engine_run.
4534 * sim-reason.c: New file. Generic sim_stop_reason.
4535 * sim-stop.c: New file. Generic sim_stop.
4536 * sim-resume.c: New file. Generic sim_resume.
4537
4538 * Make-common.in (sim-engine.o): Add rule.
4539 (sim-run.o, sim-reason.o, sim-stop.o, sim-resume.o): Ditto.
4540
4541 * sim-engine.h, sim-engine.c: New file. Provide generic
4542 implementation of sim_engine_halt, sim_engine_error. et.al.
4543
4544 * sim-base.h (sim_state_base): Add member halt.
4545 (sim-engine.h): Include.
4546
4547 * sim-events.h (sim_event_handler): Always pass SIM_DESC to event
4548 handlers.
4549 * sim-events.c (sim_events_poll): Update event handler.
4550
4551 Tue May 13 09:57:49 1997 Andrew Cagney <cagney@b2.cygnus.com>
4552
4553 * sim-events.h, sim-events.c (sim_events_watch_clock): New
4554 function.
4555 (sim_events_watch_sim): New function.
4556 (sim_events_watch_core): New function.
4557 (sim_watch_valid): New function.
4558 (sim_events_preprocess): New function.
4559 (sim_events_process): Process the watchpoints as well as the timer
4560 queue.
4561 (sim_events_tick): Check WORK_PENDING instead of the hold queue.
4562 (sim_events_deschedule): Check all the queues when removing an
4563 event.
4564 (sim_events_init): Ditto for cleaning.
4565
4566 Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
4567
4568 * sim-fpu.c (is_ufpu_number): Comment out - currently unused.
4569
4570 Mon May 19 11:23:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
4571
4572 * callback.c (os_open): Type of arg flags is int.
4573
4574 Fri May 16 22:26:43 1997 Michael Meissner <meissner@cygnus.com>
4575
4576 * sim-fpu.c (sim_fpu_is_{eq,ne,lt,le,gt,ge}): Compare Infinities
4577 just like normal numbers as per IEEE rules.
4578
4579 Wed May 14 21:20:38 1997 Bob Manson <manson@charmed.cygnus.com>
4580
4581 * callback.c (os_close): Mark the descriptor as being
4582 available if the close succeeded.
4583 (os_open): Pass 0644 as the mode of the file being created.
4584
4585 Thu May 15 10:58:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
4586
4587 * sim-fpu.c (pack_fpu, unpack_fpu): New functions - decode a
4588 float.
4589
4590 * sim-inline.c (SIM_INLINE_C): Rename from _SIM_INLINE_C_.
4591 * sim-lnline.h: Update.
4592
4593 * sim-fpu.h, sim-fpu.c (sim_fpu_[iu]{32,64}to): New int2fp
4594 conversion functions.
4595 (sim_fpu_to{32,64}[iu]): New fp2int functions.
4596
4597 * sim-fpu.h, sim-fpu.c (sim_fpu_is_{lt,le,eq,ne,ge,gt}): New fp
4598 compare functions. Replacing.
4599 (sim_fpu_cmp): This. Delete.
4600
4601 Mon May 12 14:49:05 1997 Andrew Cagney <cagney@b1.cygnus.com>
4602
4603 * sim-core.c (sim_core_find_mapping): Call engine_error not
4604 sim_io_error when possible.
4605
4606 Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b2.cygnus.com>
4607
4608 * sim-endian.h (V1_H2): Add macro's to insert a word into a
4609 high/low double word.
4610
4611 * sim-trace.h: Remove definition of attribute - defined in
4612 sim_basics.h.
4613
4614 Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
4615
4616 * sim-options.h (struct OPTION): Add doc_opt as the documenting
4617 name of the option - or family of options.
4618
4619 * sim-options.c (sim_args_command): Match command `a-b c' with
4620 option `--a-b-c' from option table.
4621
4622 Thu May 8 12:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
4623
4624 * sim-options.c (sim_print_help): For optional arguments, wrap
4625 them in [].
4626
4627 * sim-trace.c (set_trace_options): New function, handle optional
4628 argument and multiple assignment.
4629 (trace_option_handler): Update.
4630
4631 * sim-trace.c (trace_option_handler): Trace branch and not fpu
4632 when branch tracing selected.
4633
4634 Wed May 7 15:19:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
4635
4636 * sim-trace.c (trace_one_insn): Make a va-args function.
4637
4638 * sim-trace.c (trace_vprintf): New function, va-arg version of
4639 trace_printf.
4640
4641 Tue May 6 16:38:16 1997 Doug Evans <dje@canuck.cygnus.com>
4642
4643 * sim-trace.c (trace_uninstall): Don't close a file twice.
4644 * sim-profile.c (profile_uninstall): Likewise.
4645
4646 Tue May 6 06:14:01 1997 Mike Meissner <meissner@cygnus.com>
4647
4648 * sim-trace.c (toplevel): Include bfd.h.
4649 (trace_options): Note that --trace-linenum also turns on
4650 --trace-insn. Add --trace-{branch,semantics}.
4651 (trace_option_handler): If --trace-linenum, also turn on
4652 --trace-insn. Add --trace-branch support. If --trace-semantics,
4653 turn on ALU, FPU, branch, and memory tracing.
4654 (trace_one_insn): New function to trace an instruction. Support
4655 --trace-linenum.
4656 (OPTION_TRACE_*): Use an enum, rather than lots of defines.
4657
4658 * sim-trace.h (TRACE_{SEMANTICS,BRANCH}_IDX): Add new macros.
4659 (MAX_TRACE_VALUES): Use 32, not 12 by default.
4660 (TRACE_branch): Add new mask.
4661 (TRACE_*_P): Define all possible trace_p macros.
4662 (trace_one_insn): Declare function.
4663
4664 Mon May 5 14:08:34 1997 Mike Meissner <meissner@cygnus.com>
4665
4666 * sim-trace.h (__attribute__): Define as nothing if not GNU C or
4667 GNU C doesn't support __attributes__.
4668 ({trace,debug}_printf): Add attribute's so -Wformat can check the
4669 format strings.
4670
4671 Mon May 5 11:16:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
4672
4673 * sim-config.h (FORCED_ALIGNMENT): New alignment option -
4674 addresses are masked forcing them to be correctly aligned.
4675 (WITH_ALIGNMENT): Make NONSTRICT_ALIGNMENT the default.
4676 * sim-config.c (config_alignment_to_a): Update.
4677
4678 * sim-core.h (sim_cpu_core): New data type contains cpu specific
4679 core data.
4680 * sim-base.h (CPU_CORE): Add cpu specific core data to cpu base
4681 type.
4682 * sim-core.c (sim_core_attach): Add CPU argument. Ready for
4683 processor specific core maps.
4684 (sim_core_map_attach): Copy the core map data to each of the
4685 processor specific core data structures.
4686 * sim-core.c (sim_core_find_mapping): Update.
4687
4688 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Rename.
4689 (sim_core_write_aligned_N, sim_core_write_aligned_N): New names.
4690 (sim_core_write_unaligned_N, sim_core_write_unaligned_N): New
4691 alternatives that handle unaligned addresses.
4692 (sim_core_{read,write}_{,un}aligned_N): Drop SIM_DESC arg, replace
4693 with just CPU arg.
4694 * cgen-utils.c (sim_disassemble_insn): Update.
4695
4696 Mon May 5 13:19:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
4697
4698 * sim-trace.h (TRACE_FPU_IDX): Add Floating-point specific
4699 tracing.
4700
4701 * sim-fpu.h, sim-fpu.c: New files - prototype for generic target
4702 fpu support.
4703
4704 * sim-inline.h, sim-inline.c: Add support for SIM_FPU.
4705
4706 Fri May 2 17:59:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
4707
4708 * sim-core.c (sim_core_map_to_str): New function ascii equivalent
4709 to map type.
4710
4711 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Use in trace
4712 statement.
4713
4714 Fri May 2 17:28:02 1997 Andrew Cagney <cagney@b2.cygnus.com>
4715
4716 * cgen-trace.c: Prepend additional trace_printf argument.
4717
4718 * cgen-utils.c (sim_disassemble_insn): Add additional core
4719 arguments.
4720
4721 Fri May 2 11:40:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
4722
4723 * nrun.c (main): Catch/report errorenous simulator states.
4724
4725 * sim-module.c: #include "libiberty.h" so that xmalloc is defined.
4726 * sim-trace.c: #include string.h/strings.h so that memset is
4727 defined.
4728 * sim-utils.c: Ditto.
4729 * sim-profile.c: Ditto. And stdlib.h.
4730 (print_bar): Only define when used by instruction or memory profiler.
4731
4732 * sim-options.c (standard_option_handler): Make ul more local.
4733
4734 * sim-load.c (sim_load_file): Make the name constant.
4735 (sim_load_file): Passify gcc.
4736
4737 * sim-utils.h: New file, pre-declare utilites in corresponding .c
4738 file.
4739 * sim-utils.c, sim-load.c: Include sim-utils.h.
4740
4741 * sim-base.h (sim_cpu): Pre define here so available to all.
4742
4743 * sim-core.h (DECLARE_SIM_CORE_WRITE_N, DECLARE_SIM_CORE_READ_N):
4744 Restore the sim_cpu and instruction_address arguments so that full
4745 information is available to the abort function.
4746 * sim-core.c (sim_core_find_mapping, sim_core_write_buffer): Ditto.
4747 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
4748
4749 * sim-trace.h, sim-trace.c (trace_option_handler): Add interim
4750 tracing support for sim-events and sim-core.
4751 (trace_option_handler): Convert #if to if where possible so always
4752 compiled/checked by C compiler.
4753 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
4754
4755 * sim-base.h: Adjust comment documenting how to define the cpu
4756 structure.
4757 (sim_state_base): Add sim_core and sim_events to simulator base
4758 object.
4759
4760 * sim-trace.h, sim-trace.c (trace_printf): Add SIM_DESC argument.
4761 * sim-core.c (sim_core_init, sim_core_attach,
4762 sim_core_find_mapping): Update.
4763 * sim-events.c (ETRACE, sim_events_init, sim_events_time,
4764 update_time_from_event, insert_sim_event,
4765 sim_events_schedule_after_signal, sim_events_deschedule,
4766 sim_events_tick): Ditto.
4767
4768 * sim-basics.h (sim-module.h, sim-trace.h, sim-profile.h,
4769 sim-model.h): Move #includes from here.
4770 * sim-base.h: To here.
4771 (sim-core.h, sim-events.h, sim-io.h): Include also
4772
4773 Wed Apr 30 15:37:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
4774
4775 * callback.c (default_callback): Missing initialisers.
4776
4777 Thu May 1 10:40:47 1997 Doug Evans <dje@canuck.cygnus.com>
4778
4779 * sim-utils.c (sim_add_commas): New function.
4780 * sim-basics.h (sim_add_commas): Add prototype.
4781 * cgen-scache.c (scache_print_profile): Print commas in numbers.
4782 * sim-profile.c (COMMAS): New macro.
4783 (print_*): Use it to print commas in numbers.
4784
4785 * configure: Regenerated.
4786
4787 * cgen-sim.h (sim_signal_type): Add SIM_SIGINT.
4788 (cgen_state): New member run_fast_p.
4789 (cgen_init): Add prototype.
4790 (sim_disassemble_insn): New arg `cpu'.
4791 * cgen-trace.c (trace_insn): Update call to sim_disassemble_insn.
4792 * cgen-utils.c (cgen_init): New function.
4793 (sim_disassemble_insn): New arg `cpu'. Rewrite fetching of insn.
4794 * genmloop.sh: Call engine_halt if loop exits.
4795
4796 * Makefile.in (sim-options_h): Define.
4797 (sim-{module,options,trace,profile,utils}.o): Clean up dependencies.
4798 (sim-model.o): Add new rule.
4799 (cgen-{scache,trace,utils}.o): Add new rules.
4800 * aclocal.m4 (SIM_AC_OPTION_{SCACHE,DEFAULT_MODEL}): Add.
4801 * cgen-scache.c (scache_print_profile): Change `sd' arg to `cpu'.
4802 Indent output by 2 spaces.
4803 * cgen-scache.h (scache_print_profile): Update.
4804 * cgen-trace.c (trace_insn_fini): Indent output by 2 spaces.
4805 Use trace_printf, not fprintf.
4806 (trace_extract): Use trace_printf, not cgen_trace_printf.
4807 * genmloop.sh (!FAST case): Increment `insn_count'.
4808 * sim-base.h (sim_state_base): Only include scache_size if WITH_SCACHE.
4809 (sim_cpu_base): Rename member `sd' to `state' to be consistent with
4810 access macro's name.
4811 * sim-core.c (sim_core_init): Use EXTERN_SIM_CORE to define it.
4812 Change return type to SIM_RC.
4813 (sim_core_{install,uninstall}): New functions.
4814 * sim-core.h (sim_core_{install,uninstall}): Declare.
4815 (sim_core_init): Use EXTERN_SIM_CORE to define it.
4816 Change return type to SIM_RC.
4817 * sim-model.h (models,machs,model_install): Declare.
4818 * sim-module.c (modules): Add scache_install, model_install.
4819 (sim_post_argv_init): Set cpu->state backlinks.
4820 * sim-options.c (standard_options): Delete --simcache-size,--max-insns.
4821 (standard_option_handler): Likewise.
4822 * sim-profile.c (PROFILE_{HISTOGRAM,LABEL}_WIDTH): Move to
4823 sim-profile.h.
4824 (*): Assume ANSI C.
4825 (profile_options): Delete --profile-simcache.
4826 (profile_option_handler): Likewise.
4827 (profile_print_insn): Change `sd' arg to `cpu'. Indent output 2
4828 spaces.
4829 (profile_print_{memory,model}): Likewise.
4830 (profile_print_simcache): Delete.
4831 (profile_print_speed): New function.
4832 (profile_print): Rewrite.
4833 * sim-profile.h (PROFILE_scache): Renamed from PROFILE_simcache.
4834 (WITH_PROFILE_SCACHE_P): Renamed from WITH_PROFILE_SIMCACHE_P.
4835 (PROFILE_DATA): Delete members simcache_{hits,misses}.
4836 (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): Delete.
4837 (PROFILE_{CALLBACK,CPU_CALLBACK}): New types.
4838 (profile_print): Update prototype.
4839
4840 Wed Apr 30 11:34:14 1997 Doug Evans <dje@canuck.cygnus.com>
4841
4842 * cgen-scache.[ch], cgen-sim.h: New files.
4843 * cgen-trace.[ch], cgen-types.h, cgen-utils.c, genmloop.sh: New files.
4844 * sim-model.c: New file.
4845
4846 * Make-common.in (clean targets): Undo patch of Apr. 22.
4847
4848 Fri Apr 25 15:28:32 1997 Mike Meissner <meissner@cygnus.com>
4849
4850 * sim-n-bits.h (signed): If we have a standard compiler, undef
4851 signed, so that signedN is defined correctly.
4852
4853 Thu Apr 24 00:00:07 1997 Doug Evans <dje@canuck.cygnus.com>
4854
4855 * sim-module.h, sim-model.h, sim-profile.h: New files.
4856 * sim-module.c, sim-profile.c: New files.
4857 * Make-common.in (SIM_PROFILE): Define
4858 (CONFIG_CFLAGS): Add $(SIM_PROFILE).
4859 (sim_main_headers): Add sim-module.h, sim-model.h, sim-profile.h.
4860 (sim_module.o,sim-profile.o): Add rules for.
4861 * aclocal.m4 (--enable-sim-trace): Allow symbolic arguments.
4862 (--enable-sim-profile): Add.
4863 * configure: Regenerated.
4864 * sim-base.h (sim_state_base): New members init_list, uninstall_list,
4865 model. Move trace and profile support to sim-{trace,profile}.h.
4866 New members trace_data, profile_data.
4867 * sim-basics.h: #include sim-module.h, sim-model.h, sim-profile.h.
4868 * sim-config.h: Provide default definition of WITH_PROFILE.
4869 (WITH_TRACE): Change default to -1.
4870 (MAX_NR_PROCESSORS): Always define.
4871 * sim-options.c: Move trace and profile support to
4872 sim-{trace,profile}.h.
4873 (sim_pre_argv_init): Moved to sim-model.c.
4874 (standard_install): New function.
4875 * sim-options.h (sim_pre_argv_init): Move decl to sim-model.c.
4876 (standard_install): Declare.
4877 * sim-trace.c: Tracing option handling moved here from sim-options.c.
4878 (trace_install, trace_uninstall): New functions.
4879 (trace_printf): Update reference to TRACE_FILE.
4880 * sim-trace.h (TRACE_FOO_IDX): Moved here from sim-base.h.
4881 (TRACE_foo): Bit masks for symbolic arguments to --enable-sim-trace.
4882 (WITH_TRACE_FOO_P): Define.
4883 (trace_install): Declare.
4884 (TRACE_DATA): New struct.
4885
4886 Wed Apr 23 17:23:15 1997 Doug Evans <dje@canuck.cygnus.com>
4887
4888 * run.c: Undo last exec_bfd patch.
4889 (main): Only pass -E ifdef SIM_HAVE_BIENDIAN.
4890
4891 Wed Apr 23 17:54:27 1997 Mike Meissner <meissner@cygnus.com>
4892
4893 * run.c (exec_bfd): Add back in.
4894 (main): Set exec_bfd.
4895
4896 Tue Apr 22 14:43:46 1997 Doug Evans <dje@canuck.cygnus.com>
4897
4898 * sim-load.c (sim_load_file): #include <stdio.h> for NULL.
4899
4900 Wed Apr 23 02:55:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
4901
4902 * sim-events.c (insert_sim_event): Call sim_io_error instead of
4903 less well defined engine_error.
4904 * sim-core.c: Ditto.
4905
4906 Tue Apr 22 08:48:16 1997 Stu Grossman (grossman@critters.cygnus.com)
4907
4908 * Make-common.in: Change clean targets to use :: so that other
4909 Makefiles can have their own clean targets.
4910 * sim-load.c (xprintf eprintf): Use ANSI_PROTOTYPES instead of
4911 __STDC__ to control use of stdarg vs. varargs syntax. Some
4912 systems can't use __STDC__, but require stdarg.
4913
4914 Fri Apr 18 11:14:43 1997 Doug Evans <dje@canuck.cygnus.com>
4915
4916 * sim-options.c (standard_options): Add --endian.
4917 (standard_option_handler): Likewise.
4918
4919 * nrun.c: #include <signal.h>.
4920 (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
4921 handler that calls sim_stop ().
4922
4923 Fri Apr 18 13:11:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
4924
4925 * run.c (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
4926 handler that calls sim_stop (). Simulators may still be
4927 establishing their own handler.
4928
4929 * sim-events.c (sim_events_poll): Rename from
4930 sim_events_at_large_int. Poll IO.
4931
4932 * sim-io.c (sim_io_poll_quit): New function - pass on a polling
4933 request.
4934
4935 * callback.c (os_poll_quit): New function poll for quit signal
4936 where needed.
4937 (default_callback): Include magic number.
4938
4939 Thu Apr 17 02:25:11 1997 Doug Evans <dje@canuck.cygnus.com>
4940
4941 * aclocal.m4: Check for headers time.h, sys/time.h, sys/resource.h.
4942 Check for functions getrusage, time.
4943 * sim-basics.h (SIM_ELAPSED_TIME): New typedef.
4944 (sim_elapsed_time_get, sim_elapsed_time_since): Add prototypes.
4945 * sim-utils.c: #include time.h, sys/time.h, sys/resource.h if able.
4946 (sim_elapsed_time_get, sim_elapsed_time_since): New functions.
4947
4948 * sim-utils.c (sim_copy_argv, sim_analyze_program): New functions.
4949
4950 * sim-options.c, sim-options.h: New files.
4951 * sim-config.h (WITH_DEBUG): Provide default value of zero.
4952 * Make-common.in (nrun.o): Add rules for.
4953 * nrun.c: New file.
4954
4955 * run.c (main): Check return value of sim_open.
4956
4957 * Make-common.in (sim-options.o, sim-load.o, sim-trace.o): Add rules.
4958 (sim_main_headers): Add sim-trace.h.
4959 * run.c (exec_bfd, target_byte_order): Delete.
4960 (main): Pass -E <endian> to sim_open. Delete code to load sections,
4961 call sim_load instead. Check return code of sim_create_inferior.
4962 * sim-base.h (CURRENT_STATE): Define.
4963 (sim_state_base): Make typedef. New members options, prog_argv,
4964 prog_bfd, text_{section,start,end}, start_addr, simcache_size,
4965 mem_size, memory [+ corresponding access macros].
4966 (sim_cpu_base): New typedef.
4967 * sim-trace.h: New file.
4968 * sim-trace.c: New file.
4969 * sim-basics.h: #include it.
4970 * sim-load.c: New file.
4971
4972 Tue Apr 15 15:10:13 1997 Ian Lance Taylor <ian@cygnus.com>
4973
4974 * Make-common.in (INSTALL): Set to @INSTALL@.
4975 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
4976 (install-common): Depend upon installdirs. Use
4977 $(program_transform_name) directly, rather than using
4978 $(INSTALL_XFORM).
4979 (installdirs): New target.
4980 * Makefile.in (INSTALL): Set to @INSTALL@.
4981 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
4982 (install-man): Depend upon installdirs. Use
4983 $(program_transform_name) directly, rather than using
4984 $(INSTALL_XFORM).
4985 (installdirs): New target.
4986
4987 Tue Apr 15 15:08:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
4988
4989 * sim-assert.h (SIM_ASSERT, ASSERT): Allow these macros to
4990 be overriden.
4991
4992 Wed Apr 9 16:06:44 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
4993
4994 * sim-basics.h: Only bring in config.h and tconfig.h if
4995 HAVE_CONFIG_H.
4996
4997 Mon Apr 7 11:39:45 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
4998
4999 * sim-config.h (WITH_TARGET_WORD_MSB): New Macro. Define the bit
5000 numbering convention of the target.
5001 * sim-config.c (print_sim_config): Print WITH_TARGET_WORD_BITSIZE
5002 and WITH_TARGET_WORD_MSB.
5003 (sim_config): When possible, check for consistency with bitsize
5004 and msb.
5005
5006 * sim-bits.h: Allow MSB to be other than zero.
5007 * sim-bits.c: Ditto.
5008 * sim-n-bits.h: Ditto.
5009
5010 * sim-bits.h (MSMASK*): New macros - converce to LSMASK*.
5011 * sim-n-bits.h (MSMASKEDn): Ditto.
5012
5013 Mon Apr 14 16:29:21 1997 Ian Lance Taylor <ian@cygnus.com>
5014
5015 * Makefile.in (INSTALL): Change install.sh to install-sh.
5016
5017 Mon Apr 7 10:46:38 1997 Doug Evans <dje@canuck.cygnus.com>
5018
5019 * sim-base.h (sim_state_base): Move `magic' to end of struct.
5020
5021 Mon Apr 7 15:53:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5022
5023 * run.c (main): Check that a program to run was specified.
5024
5025 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5026
5027 * aclocal.m4 (AC_TYPE_SIGNAL): Add check.
5028
5029 * configure: Regenerated to track ../common/aclocal.m4 changes.
5030 * config.in: Ditto.
5031
5032 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
5033
5034 * sim-endian.h: Move host {LITTLE,BIG}_ENDIAN support from here,
5035 * sim-config.h: To here.
5036
5037 * Make-common.in (SIM_EXTRA_DEPS): New config var.
5038 (sim_main_headers): Define.
5039 (sim-*.o): Depend on $(SIM_EXTRA_DEPS).
5040 (BUILT_SRC_FROM_COMMON): Move here from ../d30v/Makefile.in.
5041 (clean): Use it.
5042 (sim-utils.o): Add rule for.
5043 * sim-utils.o: New file.
5044 * sim-basics.h: #include sim-base.h.
5045 (zalloc): Make argument unsigned long.
5046 * sim-base.h: New file.
5047 * sim-inline.h (SIM_IO support): Delete.
5048 * sim-io.h: Delete inline support.
5049 * sim-io.c: Likewise. sim-state.h renamed to sim-main.h.
5050 * sim-config.c: sim-state.h renamed to sim-main.h.
5051 * sim-core.c: Likewise.
5052 * sim-events.c: Likewise.
5053
5054 * run.c (main): Pass SIM_OPEN_STANDALONE to sim_open.
5055
5056 * aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h.
5057 (sim-debug): Allow arguments. Define WITH_DEBUG in addition to
5058 -DDEBUG.
5059 * configure: Regenerated to track ../common/aclocal.m4 changes.
5060
5061 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5062
5063 * configure: Regenerated to track ../common/aclocal.m4 changes.
5064
5065 Wed Apr 2 11:08:11 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5066
5067 * sim-config.h (WITH_ALIGNMENT, WITH_FLOATING_POINT,
5068 WITH_XOR_ENDIAN, WITH_SMP, WITH_RESERVED_BITS): Assume that these
5069 are defined by the configure.
5070
5071 * aclocal.m4 (sim-stdio): Add option stdio from ../ppc configure.
5072
5073 * aclocal.m4 (floating-point, xor-endian, alignment, smp,
5074 reserved-bits): Always define.
5075
5076 * sim-config.h, sim-config.c (sim_config): New function - and new
5077 file - co-ordinate the setting/checking of the common simulator
5078 configuration options.
5079
5080 * Make-common.in (sim-config.o): Add rule.
5081
5082 Fri Mar 28 15:32:00 1997 Mike Meissner <meissner@cygnus.com>
5083
5084 * callback.c (os_{,e}vprintf_filtered): Change stdarg type to
5085 va_list from void *, since va_list might not be a pointer type.
5086
5087 Mon Mar 24 15:27:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5088
5089 * sim-n-endian.h (offset_N): Correct assertion - word and sub word
5090 in wrong order.
5091 (offset_N): Correct computation of LE offset.
5092
5093 * sim-io.c (sim_io_error): Include a new line when reporting
5094 errors.
5095
5096 * sim-assert.h (SIM_FILTER_PATH): Out by one when locating last
5097 `/'.
5098
5099 Thu Mar 20 22:31:06 1997 Jeffrey A Law (law@cygnus.com)
5100
5101 * run.c: Include alloca-conf.h.
5102
5103 * callback.c (os_evprintf_filtered): Fix typo.
5104
5105 Fri Mar 21 13:36:20 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5106
5107 * run.c (string.h, strings.h, stdlib.h): Include.
5108
5109 * sim-events.c (sim_events_tick): Recent cleanup failed to return
5110 0 when nothing pending.
5111
5112 * run.c (sim_size, sim_trace): Plicate GCC - these two functions
5113 will soon be going away.
5114 (getopt): Plicate GCC.
5115
5116 * sim-endian.c (sim-io.h): Plicate GCC.
5117 * sim-bits.c (sim-io.h): Ditto.
5118 * sim-n-bits.h (ROTn): Ditto.
5119
5120 * sim-io.c (sim_io_error): Correct check for NULL.
5121
5122 * sim-assert.h (SIM_FILTER_PATH): Separate out the code filtering
5123 the __FILE__.
5124 * sim-events.c: Use SIM_FILTER_PATH to filter out the filename
5125 path.
5126
5127 Wed Mar 19 01:12:06 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5128
5129 * aclocal.m4 (SIM_AC_OPTION_*: Move so that they are outside of
5130 SIM_AC_COMMON - SIM_AC_COMMON was gobling arguments.
5131
5132 Tue Mar 18 20:48:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5133
5134 * sim-alu.h: Include sim-xcat.h.
5135
5136 Tue Mar 18 13:58:18 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5137
5138 * Make-common.in (sim-bits.c, sim-core.c, sim-endian.c,
5139 sim-events.c, sim-inline.c, sim-io.c): Define rules for building
5140 these.
5141
5142 * sim-events.c (sim_events_at_large_int): New function. Just
5143 schedules an event every large-int ticks.
5144 (sim_events_init): Call.
5145 (sim_events_tick, sim_events_process): Move async handing to
5146 sim_events_process. Move timer decrement so that it occures after
5147 events have been processed.
5148
5149 * sim-basics.h (struct _engine): Remove declaration.
5150
5151 * sim-events.h, sim-events.c: Rename type to sim_events. Prefix
5152 everything with same. Rename global struct to SIM_DESC.
5153 * sim-core.h, sim-core.c, sim-n-core.c: Ditto for sim_core.
5154 * sim-io.h, sim-io.c: Ditto.
5155
5156 * sim-assert.h: New file. Optional assertion checking macros.
5157 * sim-io.c (sim_io_error): Make just this function tolerant to
5158 null pointers.
5159
5160 * sim-xcat.h: New file. Define concatenate macros.
5161 * sim-basics.h (XCONCAT*): Move to sim-xcat.h.
5162 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Explicitly include
5163 concat macros.
5164
5165
5166 Tue Mar 18 12:44:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5167
5168 * sim-bits.h (LSMASK): New macro. Create mask of LS bits.
5169
5170 Mon Mar 17 18:10:05 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5171
5172 * sim-inline.h: Add definitions for sim-types.
5173 (ALL_BY_MODULE): New macro, encapsulate full inlining by the
5174 module.
5175
5176 Mon Mar 17 15:38:27 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5177
5178 * sim-events.h: Remove defunct reference to callback struct.
5179
5180 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5181
5182 * configure: Re-generate.
5183
5184 Mon Mar 17 15:04:47 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5185
5186 * Make-common.in (CSEARCH): Do not include the gdb directory in
5187 the search path.
5188
5189 Mon Mar 17 13:16:26 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5190
5191 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
5192 SIM_WARNING): Drop, requiring the simulator specific Makefile.in
5193 to explicitly incorporate these.
5194
5195 * aclocal.m4 (--enable-sim-alignment); New option. Strongly
5196 specify the alignment restrictions of the target architecture -
5197 without this option all alignment restrictions are accomodated.
5198 (--enable-sim-assert): New option. Conditionally compile in
5199 assertion statements.
5200 (--enable-sim-float): New option. Strongly specify the target's
5201 floating point support.
5202 (--enable-sim-hardware): New option. Specify the hardware devices
5203 included in the simulation.
5204 (--enable-sim-packages): New option. Specify the hardware
5205 packages included in the simulation.
5206 (--enable-sim-regparm): New option. Specify that parameters be
5207 passed in registers instead of on the stack.
5208 (--enable-sim-reserved-bits): New option. Specify that reserved
5209 bits within an instruction are are correctly set.
5210 (--enable-sim-smp): New option. Specify the level of SMP support
5211 to be included in the simulator.
5212 (--enable-sim-stdcall): New option. Specify an alternative
5213 function call convention.
5214 (--enable-sim-xor-endian): New option. Configure xor-endian
5215 support used by some targets to implement bi-endian support.
5216
5217 Fri Mar 14 19:51:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5218
5219 * aclocal.m4 (--enable-sim-hostendian): New option. Allow the
5220 host endianness to be overridden.
5221 (--enable-sim-endian): Allow the target platform's byte order
5222 to be overridden.
5223 (--enable-sim-inline): Control the inlining of common components.
5224 (--enable-sim-bswap): For compatibility, also define WITH_BSWAP.
5225 (--enable-sim-warnings): Enable additional GCC compiler checks.
5226 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
5227 SIM_WARNINGS): Add.
5228
5229 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Rename from
5230 sim-*-n.h so that the names are uniq on dos machines
5231 * sim-core.c, sim-bits.c, sim-endian.c: Update.
5232
5233 Thu Mar 13 12:32:42 1997 Doug Evans <dje@canuck.cygnus.com>
5234
5235 * run.c: #include "libiberty.h".
5236 (main): New locals sd,no_args,sim_argv.
5237 Run buildargv on -a option. Pass argv to sim_open, argv[0]
5238 is program name. Update call to sim_set_callbacks.
5239 Record result of sim_open, pass to other sim_foo routines.
5240
5241 Thu Mar 13 10:24:05 1997 Michael Meissner <meissner@cygnus.com>
5242
5243 * callback.c (os_printf_filtered): Do not call exit(1) or print a
5244 final newline.
5245
5246 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5247
5248 * callback.c: Add os_flush_stdout and vprintf_filtered callbacks.
5249 Route stdout through buffered IO.
5250
5251 * callback.c: Add os_flush_stderr, os_write_stderr,
5252 os_evprintf_filtered functions to route error output through
5253 stderr.
5254
5255 * sim-io.h, sim-io.c (sim_io_flush_stderr, sim_io_flush_stdout):
5256 Correct return type - should be void.
5257
5258 Fri Mar 7 20:14:37 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5259
5260 * sim-basics.h: Clean up. Many macro's moved to sim-inline.h.
5261
5262 * sim-config.h: Ditto. For some options - eg WITH_DEVICES - do
5263 not provide a default value as undefined indicates disable code.
5264
5265 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5266
5267 * sim-core.h, sim-core-n.h, sim-core.c: Borrow code from ppc
5268 directory.
5269 * sim-events.h, sim-events.c: Ditto.
5270 * sim-io.h, sim-io.c: Ditto.
5271
5272 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5273
5274 * sim-alu.h (ALU_SUB_CA, ALU*_SUB_CA): New alu operation.
5275
5276 * sim-bits.h, sim-bits-n.h, sim-bits.c (LSMASKED*): New macro's
5277 extract the tail or least signifiant bits from an integer of the
5278 specified size.
5279
5280 * sim-bits.h, sim-bits.c: Clean up conditionally compiled #if
5281 WITH_TARGET_BITSIZE so that the compilation will fail when an
5282 unsupported bitsize value is defined.
5283
5284 (INSERTED*): Convert to functions.
5285 (EXTRACTED*): Ditto.
5286
5287 (SIGN_EXTEND, SEXT): Change to more terse name.
5288
5289 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5290
5291 * sim-inline.h: Allow explicit control over which .c files will be
5292 included by their header.
5293
5294 * sim-inline.h: Allow explicit control over which .c files use the
5295 alternative - REGPARM - parameter passing mechanism.
5296
5297 * sim-inline.h, sim-inline.c: Don't attempt to include any of
5298 icache.c, idecode.c, semantics.c or support.c. Those names are
5299 not generally applicable.
5300
5301 Thu Feb 27 10:17:23 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5302
5303 * sim-bits.c, sim-bits-n.h (new): Split sim-bits.c into two parts
5304 in a fashion similar to sim-endian-n.
5305
5306 * sim-endian.h: (H_word, L_word, AL_*, VL_*): Extend to include
5307 both value and address macro's.
5308
5309 Tue Feb 25 18:51:57 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5310
5311 * sim-alu.h (ALU16_BEGIN, ALU16_SET, ...): Fill in.
5312
5313 * sim-endian.h (L_word, H_word): Replace MS2W_4, LS2W_4 with more
5314 generic L_word, H_word macro's.
5315
5316 Thu Feb 20 18:36:55 1997 Andrew Cagney <cagney@critters.cygnus.com>
5317
5318 * sim-basics.h: Borrow code from ppc directory.
5319 * sim-bits.c: Ditto.
5320 * sim-bits.h: Ditto.
5321 * sim-config.h: Ditto.
5322 * sim-endian-n.h: Ditto.
5323 * sim-endian.c: Ditto.
5324 * sim-endian.h: Ditto.
5325 * sim-inline.c: Ditto.
5326 * sim-inline.h: Ditto.
5327 * sim-types.h: Ditto.
5328
5329 Wed Feb 19 12:40:50 1997 Andrew Cagney <cagney@critters.cygnus.com>
5330
5331 * sim-alu.h (ALU_SET16, ALU_SET32, ALU_SET64, etc): Make available
5332 all the ALU size alternatives and then auto-configure a default.
5333
5334 * sim-alu.h: Copy ppc/idecode_expression.h.
5335
5336 Mon Feb 17 10:44:18 1997 Andrew Cagney <cagney@critters.cygnus.com>
5337
5338 * bits.h, bits.c (SIGN_EXTEND32, SIGN_EXTEND64): New functions,
5339 sign extend a bit within a value.
5340
5341 * sim-endian.h, sim-endian-n.h (offset_N): New functions - return
5342 a pointer into the middle of a host word.
5343 * sim-endian.h (MS2W_4, LS2W_4): Use this function.
5344
5345 Tue Feb 11 13:46:49 1997 Michael Meissner <meissner@tiktok.cygnus.com>
5346
5347 * callback.c: If HAVE_CONFIG_H is defined, include config.h from
5348 autoconf. If HAVE_UNISTD_H is defined, include unistd.h to get
5349 appropriate definitions of read, write, etc. Add prototype for
5350 system.
5351
5352 Tue Feb 4 13:24:44 1997 Doug Evans <dje@canuck.cygnus.com>
5353
5354 * Makefile.in (libcommon.a): Delete.
5355 (callback.o,targ-map.o): Delete, moved to Make-common.in.
5356 (gentmap,targ-vals.h,targ-map.c): Likewise.
5357 (run-autoconf): Delete.
5358 * aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile.
5359 (common makefile fragment): Moved back into ...
5360 * Make-common.in: Resurrect.
5361 * configure.in (AC_LINK_FILES): Delete, unnecessary now.
5362 * configure: Regenerated.
5363
5364 Fri Jan 31 07:16:49 1997 Doug Evans <dje@canuck.cygnus.com>
5365
5366 * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
5367 (SIM_AC_OUTPUT): To here.
5368
5369 Fri Jan 24 10:37:17 1997 Stu Grossman (grossman@critters.cygnus.com)
5370
5371 * aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s in
5372 comments and single quotes. Fixes a problem found on hpux.
5373
5374 Thu Jan 23 13:35:03 1997 Stu Grossman (grossman@critters.cygnus.com)
5375
5376 * aclocal.m4: Remove Make-common.in from dependencies.
5377 * (distclean): Remove targ-vals.def.
5378
5379 * aclocal.m4 (SIM_AC_COMMON): Move contents of Make-common.in
5380 into here. Makes insertion into makefiles easier. Also, change
5381 the way that callback.o, gentmap, targ-vals.h, targ-map.c,
5382 targ-map.o, and run are built. They are now built in the
5383 individual simulator directories, taking sources from ../common as
5384 necessary. This replaces the merging of libcommon.a into
5385 linsim.a, which was problematic for the WinGDB build process.
5386 * run.c: Include config.h from . instead of ../common.
5387 * Make-common.in: Remove. It's no longer necessary.
5388
5389 Mon Dec 16 15:02:33 1996 Ian Lance Taylor <ian@cygnus.com>
5390
5391 * Make-common.in (ALL_CLAGS): Put CFLAGS at the end.
5392 (.c.o): Put $(ALL_CFLAGS) before the file being compiled.
5393
5394 Wed Dec 11 11:30:58 1996 Jim Wilson <wilson@cygnus.com>
5395
5396 * run.c (main): Set target_byte_order before call to sim_open.
5397
5398 Sun Dec 8 18:22:06 1996 Doug Evans <dje@canuck.cygnus.com>
5399
5400 * callback.c: #include <stdlib.h>
5401 (os_error): New function.
5402 (default_callback): Add os_error.
5403
5404 Mon Nov 25 19:44:35 1996 Doug Evans <dje@canuck.cygnus.com>
5405
5406 * Make-common.in (Makefile): Set CONFIG_HEADERS="".
5407 * aclocal.m4: Mark the fact that --enable-sim-bswap isn't host
5408 specific.
5409 (SIM_AC_OUTPUT): Don't build Makefile if CONFIG_FILES="".
5410
5411 Wed Nov 20 01:11:04 1996 Doug Evans <dje@canuck.cygnus.com>
5412
5413 * run.c: #include ../common/config.h, tconfig.h.
5414 (myname): New static global.
5415 (main): Recognize new options -a, -c. Also recognize -h if h8/300.
5416 Only process -c ifdef SIM_HAVE_SIMCACHE.
5417 Only process -p/-s ifdef SIM_HAVE_PROFILE.
5418 Parse program name from argv[0] and use in error messages.
5419 Pass sim_args to sim_open. Pass prog_args to sim_create_inferior.
5420 Add support for incomplete h8/300 termination indicators.
5421 (usage): Make more verbose.
5422 * aclocal.m4,config.in,tconfig.in,configure.in,configure: New files.
5423 * Makefile.in,Make-common.in,callback.c: New files.
5424 * nltvals.def,gentmap.c,gentvals.sh: New files.
5425
5426 Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
5427
5428 * run.c: Include stdarg.h if __STDC__.
5429
5430 Tue Oct 15 11:16:31 1996 Jeffrey A Law (law@cygnus.com)
5431
5432 * run.c (main): Don't print out anything if the signal
5433 number is zero (ie no signal).
5434
5435 Tue Oct 15 11:20:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5436
5437 * run.c (main): Print out if the program raised a signal.
5438
5439 Wed Sep 18 09:52:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5440
5441 * run.c (exec_bfd): Rename from sim_bfd, to use the gdb name.
5442 (main): Ditto.
5443
5444 Tue Sep 17 11:04:50 1996 James G. Smith <jsmith@cygnus.co.uk>
5445
5446 * run.c (main): Explicitly cast malloc() parameter.
5447
5448 Thu Sep 12 11:27:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5449
5450 * run.c (sim_bfd): New global to hold the bfd pointer for the
5451 executable.
5452 (main): Initialize sim_bfd.
5453
5454 Fri Dec 15 16:27:49 1995 Ian Lance Taylor <ian@cygnus.com>
5455
5456 * run.c (main): Use new bfd_big_endian macro.
5457
5458 Wed Nov 8 15:49:49 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
5459
5460 * run.c (main): Removed SH specific comments, so source is
5461 generic. Also updated to only load relevant sections. Moved
5462 sim_open() to after callback attach (to match GDB).
5463
5464 * run.1: Removed SH specific comments.
5465
5466 Sat Oct 21 12:31:01 1995 Jim Wilson <wilson@chestnut.cygnus.com>
5467
5468 * run.c (main): Always return sigrc at end.
5469
5470 Tue Oct 10 12:03:13 1995 J.T. Conklin <jtc@rtl.cygnus.com>
5471
5472 * run.c (main): Print error diagnostic and exit if bfd_openr() or
5473 bfd_check_format() fails.
5474
5475 Thu Sep 28 15:40:36 1995 steve chamberlain <sac@slash.cygnus.com>
5476
5477 * run.c, run.1: From sh directory.