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