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