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