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