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