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