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