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