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