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