sim: callback: add a kill interface
[binutils-gdb.git] / sim / common / ChangeLog
1 2021-06-23 Mike Frysinger <vapier@gentoo.org>
2
3 * callback.c (os_kill): New function.
4 (default_callback): Add os_kill.
5 * syscall.c (cb_syscall): Handle CB_SYS_kill.
6
7 2021-06-23 Mike Frysinger <vapier@gentoo.org>
8
9 * Make-common.in (srcdir): Change to abs_srcdir.
10
11 2021-06-22 Mike Frysinger <vapier@gentoo.org>
12
13 * callback.c (cb_target_to_host_signal): New function.
14
15 2021-06-22 Mike Frysinger <vapier@gentoo.org>
16
17 * callback.c: Include signal.h.
18 (cb_init_signal_map): New prototype.
19 (os_init): Assign signal_map.
20 * gentmap.c (signal_tdefs): New array.
21 (gen_targ_vals_h): Output signal_tdefs.
22 (gen_targ_map_c): Likewise.
23
24 2021-06-22 Mike Frysinger <vapier@gentoo.org>
25
26 * callback.c (os_getpid): New function.
27 (default_callback): Add os_getpid.
28 * syscall.c (cb_syscall): Change getpid to cb->getpid.
29
30 2021-06-22 Mike Frysinger <vapier@gentoo.org>
31
32 * Make-common.in (VPATH): Use $(srcdir).
33 (config.status): New variable.
34 (stamp-hw): Depend on $(config.status).
35 (Makefile): Likewise. Change rule based on SIM_COMMON_BUILD.
36 (config.status): Disable when SIM_COMMON_BUILD is true.
37 (.gdbinit): Likewise.
38
39 2021-06-21 Mike Frysinger <vapier@gentoo.org>
40
41 * Make-common.in: Move sim-hw settings to ../arch-subdir.mk.in.
42
43 2021-06-21 Mike Frysinger <vapier@gentoo.org>
44
45 * Make-common.in (SIM_HW): Delete.
46 (SIM_HW_OBJS): Redefine.
47 (SIM_HW_SOCKSER, SIM_HW_DEVICES): Define.
48 (stamp-hw): Change SIM_HW to SIM_HW_DEVICES.
49
50 2021-06-20 Mike Frysinger <vapier@gentoo.org>
51
52 * Make-common.in (CGENDIR): Delete.
53
54 2021-06-19 Mike Frysinger <vapier@gentoo.org>
55
56 * Make-common.in (SIM_INLINE): Delete.
57
58 2021-06-19 Simon Marchi <simon.marchi@polymtl.ca>
59
60 * sim-inline.h: Move UNUSED before TYPE.
61
62 2021-06-19 Mike Frysinger <vapier@gentoo.org>
63
64 * Make-common.in (clean): Delete BUILT_SRC_FROM_COMMON usage.
65
66 2021-06-19 Mike Frysinger <vapier@gentoo.org>
67
68 * Make-common.in (CSEARCH): Change @INCINTL@ to $(INTL_CFLAGS).
69 (LIBINTL, LIBINTL_DEP): Delete.
70
71 2021-06-19 Mike Frysinger <vapier@gentoo.org>
72
73 * Make-common.in: Move dependency vars to ../arch-subdir.mk.in.
74
75 2021-06-19 Mike Frysinger <vapier@gentoo.org>
76
77 * Make-common.in: Move toolchain vars to ../arch-subdir.mk.in.
78
79 2021-06-19 Mike Frysinger <vapier@gentoo.org>
80
81 * Make-common.in (lt_cv_dlopen_libs): Delete.
82 (@PLUGINS_TRUE@LIBDL): Likewise.
83 (ZLIB): Use $(zlibdir).
84
85 2021-06-19 Mike Frysinger <vapier@gentoo.org>
86
87 * Make-common.in (CONFIG_LIBS): Add $(COMMON_LIBS).
88
89 2021-06-18 Mike Frysinger <vapier@gentoo.org>
90
91 * Make-common.in (WARN_CFLAGS, WERROR_CFLAGS): Delete.
92
93 2021-06-18 Mike Frysinger <vapier@gentoo.org>
94
95 * Make-common.in: Include ../arch-subdir.mk.
96
97 2021-06-18 Mike Frysinger <vapier@gentoo.org>
98
99 * cgen-run.c: Include sim-signal.h.
100 * cgen-utils.c, nrun.c, sim-core.c, sim-engine.c, sim-reason.c,
101 sim-resume.c, sim-signal.c, sim-stop.c, sim-watch.c: Likewise.
102 * sim-basics.h: Delete sim-signal.h include.
103
104 2021-06-18 Mike Frysinger <vapier@gentoo.org>
105
106 * sim-basics.h: Delete libiberty.h include.
107
108 2021-06-17 Mike Frysinger <vapier@gentoo.org>
109
110 * Make-common.in (SIM_ENDIAN): Delete.
111 * sim-config.c (sim_config): Delete WITH_DEFAULT_TARGET_BYTE_ORDER.
112 (sim_config_print): Likewise.
113 * sim-config.h (WITH_TARGET_BYTE_ORDER): Delete.
114 (WITH_DEFAULT_TARGET_BYTE_ORDER): Likewise.
115
116 2021-06-17 Mike Frysinger <vapier@gentoo.org>
117
118 * cgen-trace.c: Include sim/callback.h.
119 * nrun.c, sim-hw.c, sim-io.c, sim-syscall.c, sim-trace.c: Likewise.
120 * sim-basics.h: Delete sim/callback.h include.
121 * sim-endian.h: Include bfd.h.
122 * sim-syscall.h (struct cb_syscall): New forward decl.
123 * sim-utils.h (sim_analyze_program): Likewise.
124
125 2021-06-16 Mike Frysinger <vapier@gentoo.org>
126
127 * Make-common.in (CONFIG_CFLAGS): Change @DEFS@ to -DHAVE_CONFIG_H.
128 (generated_files): Delete config.h.
129 (distclean): Likewise.
130 (config.h, stamp-h): Delete rules.
131 * defs.h [SIM_COMMON_BUILD]: Delete config.h include and PACKAGE*
132 defines.
133
134 2021-06-15 Mike Frysinger <vapier@gentoo.org>
135
136 * Make-common.in: Add stamp-modules rule to avoid rebuilds.
137 (clean): Delete modules.c files.
138 * local.mk: Add version.c-stamp rule to avoid rebuilds.
139 (CLEANFILES): Add version.c files.
140
141 2021-06-14 Mike Frysinger <vapier@gentoo.org>
142
143 * local.mk (%D%/version.c): Use AM_V_GEN & AM_V_at wrappers.
144
145 2021-06-14 Mike Frysinger <vapier@gentoo.org>
146
147 * Make-common.in (GNULIB_BUILDDIR): Rename to ...
148 (GNULIB_PARENT_DIR): ... this. Remove "gnulib" from value.
149
150 2021-06-12 Mike Frysinger <vapier@gentoo.org>
151
152 * Make-common.in (COMMON_OBJS_NAMES): Add portability.o.
153 * local.mk (%C%_libcommon_a_SOURCES): Add %D%/portability.c.
154 * portability.c, portability.h: New files.
155
156 2021-06-12 Mike Frysinger <vapier@gentoo.org>
157
158 * Make-common.in (SIM_NEW_COMMON_OBJS): Move sim-load.o to ...
159 (COMMON_OBJS_NAMES): ... here. Rename var from COMMON_OBJS.
160 (COMMON_OBJS): Redefine.
161 * defs.h [SIM_COMMON_BUILD]: Do not include ../config.h.
162 * local.mk (%C%_libcommon_a_CPPFLAGS): New variable.
163 (%C%_libcommon_a_SOURCES): Add %D%/sim-load.c.
164
165 2021-06-12 Mike Frysinger <vapier@gentoo.org>
166
167 * dv-sockser.c: Include sys/select.h.
168
169 2021-06-12 Mike Frysinger <vapier@gentoo.org>
170
171 * Make-common.in: Delete SIM_ALIGNMENT.
172 * sim-config.c (sim_config): Change WITH_DEFAULT_ALIGNMENT to
173 NONSTRICT_ALIGNMENT.
174 (sim_config_print): Delete WITH_DEFAULT_ALIGNMENT logic.
175 * sim-config.h (WITH_DEFAULT_ALIGNMENT): Delete.
176
177 2021-06-12 Mike Frysinger <vapier@gentoo.org>
178
179 * defs.h: Include ../config.h. Undefine PACKAGE* defines.
180
181 2021-06-09 Mike Frysinger <vapier@gentoo.org>
182
183 * sim-basics.h (NULL): Delete.
184
185 2021-06-09 Mike Frysinger <vapier@gentoo.org>
186
187 * nrun.c (main): Set default_callback.target_endian to
188 current_target_byte_order when it's BFD_ENDIAN_UNKNOWN.
189
190 2021-06-09 Mike Frysinger <vapier@gentoo.org>
191
192 * cgen-defs.h (STATE_RUN_FAST_P, CGEN_STATE, cgen_init): Delete.
193 * cgen-run.c (cgen_get_fast_p): New function.
194 (sim_resume): Move fast_p up and call cgen_get_fast_p.
195 * cgen-utils.c (cgen_init): Delete.
196 * sim-base.h: Delete cgen-sim.h include.
197 (struct sim_state): Delete cgen_state and STATE_CGEN_STATE.
198
199 2021-06-08 Mike Frysinger <vapier@gentoo.org>
200
201 * Make-common.in (IGEN_RUN): New variable.
202 (IGEN): Remove ASAN_OPTIONS.
203
204 2021-06-05 Mike Frysinger <vapier@gentoo.org>
205
206 * Make-common.in (COMMON_OBJS): Define.
207 (LIB_OBJS): Replace version.o with $(COMMON_OBJS).
208 (version.c): Delete target.
209 (generated_files): Delete version.c.
210 * local.mk: New file.
211
212 2021-05-29 Mike Frysinger <vapier@gentoo.org>
213
214 * Make-common.in (EXTRA_LIBS): Add $(LIBGNU_EXTRA_LIBS).
215
216 2021-05-29 Mike Frysinger <vapier@gentoo.org>
217
218 * Make-common.in (GNULIB_BUILDDIR): Define.
219 Include $(GNULIB_BUILDDIR)/Makefile.gnulib.inc.
220 (CSEARCH): Add -I../...
221 (ALL_CFLAGS): Add $(INCGNU).
222 (EXTRA_LIBS): Add $(LIBGNU).
223 * defs.h: Include gnulib/config.h. Undefine PACKAGE* defines.
224
225 2021-05-17 Mike Frysinger <vapier@gentoo.org>
226
227 * sim-base.h (SIM_HAVE_COMMON_SIM_STATE): Delete.
228 (struct sim_state_base): Merge into ...
229 (struct sim_state): ... this.
230 (STATE_MY_NAME): Delete base.
231 (STATE_OPEN_KIND): Likewise.
232 (STATE_CALLBACK): Likewise.
233 (STATE_ENVIRONMENT): Likewise.
234 (STATE_CONFIG): Likewise.
235 (STATE_MODULES): Likewise.
236 (STATE_OPTIONS): Likewise.
237 (STATE_VERBOSE_P): Likewise.
238 (STATE_TRACE_DATA): Likewise.
239 (STATE_ARCHITECTURE): Likewise.
240 (STATE_TARGET): Likewise.
241 (STATE_PROG_ARGV): Likewise.
242 (STATE_PROG_BFD): Likewise.
243 (STATE_PROG_SYMS): Likewise.
244 (STATE_PROG_SYMS_COUNT): Likewise.
245 (STATE_TEXT_SECTION): Likewise.
246 (STATE_TEXT_START): Likewise.
247 (STATE_TEXT_END): Likewise.
248 (STATE_START_ADDR): Likewise.
249 (STATE_SCACHE_SIZE): Likewise.
250 (STATE_CORE): Likewise.
251 (STATE_MEMOPT): Likewise.
252 (STATE_EVENTS): Likewise.
253 (STATE_ENGINE): Likewise.
254 (STATE_WATCHPOINTS): Likewise.
255 (STATE_HW): Likewise.
256 (STATE_LOAD_AT_LMA_P): Likewise.
257 (SIM_MAGIC_NUMBER): Likewise.
258 (STATE_MAGIC): Likewise.
259 * sim-utils.c (sim_state_alloc_extra): Delete check for
260 SIM_HAVE_COMMON_SIM_STATE.
261
262 2021-05-17 Mike Frysinger <vapier@gentoo.org>
263
264 * cgen-defs.h (STATE_RUN_FAST_P): Call STATE_CGEN_STATE.
265 * sim-base.h [CGEN_ARCH]: Include cgen-sim.h and define
266 SIM_HAVE_COMMON_SIM_STATE.
267 (struct sim_state): Add cgen_state.
268 (STATE_CGEN_STATE): Define.
269
270 2021-05-17 Mike Frysinger <vapier@gentoo.org>
271
272 * sim-base.h (struct sim_state): Update comment.
273 (struct sim_state): Define.
274 (STATE_ARCH_DATA): Likewise.
275 (sim_state_alloc): New define.
276 (sim_state_alloc_extra): Renamed & add 3rd arg.
277 * sim-utils.c (sim_state_alloc): Likewise.
278 (sim_state_alloc_extra): Set arch data.
279
280 2021-05-16 Mike Frysinger <vapier@gentoo.org>
281
282 * callback.c: Replace config.h include with defs.h.
283 * cgen-accfp.c, cgen-fpu.c, cgen-par.c, cgen-run.c, cgen-scache.c,
284 dv-core.c, dv-glue.c, genmloop.sh, hw-alloc.c, hw-base.c, hw-device.c,
285 hw-events.c, hw-handles.c, hw-instances.c, hw-ports.c,
286 hw-properties.c, hw-tree.c, sim-abort.c, sim-arange.c, sim-bits.c,
287 sim-close.c, sim-command.c, sim-config.c, sim-core.c, sim-cpu.c,
288 sim-endian.c, sim-engine.c, sim-events.c, sim-fpu.c, sim-hload.c,
289 sim-hrw.c, sim-hw.c, sim-info.c, sim-inline.c, sim-model.c,
290 sim-profile.c, sim-reason.c, sim-reg.c, sim-resume.c, sim-run.c,
291 sim-signal.c, sim-stop.c, sim-trace.c, sim-utils.c: Include defs.h.
292 * cgen-trace.c, cgen-utils.c, dv-cfi.c, dv-pal.c, dv-sockser.c,
293 nrun.c, sim-basics.h, sim-load.c, sim-memopt.c, sim-module.c,
294 sim-options.c, sim-syscall.c, sim-watch.c, syscall.c: Replace
295 config.h include with defs.h.
296 * gentmap.c (gen_targ_map_c): Replace config.h with defs.h.
297 * sim-io.c: Include defs.h.
298 (open): Undefine.
299 * defs.h: New file.
300
301 2021-05-15 Mike Frysinger <vapier@gentoo.org>
302
303 * nrun.c: Include environ.h.
304 (environ): Delete prototype.
305 (main): Delete HAVE_ENVIRON check.
306
307 2021-05-14 Mike Frysinger <vapier@gentoo.org>
308
309 * callback.c (os_lseek): Change return and 3rd arg to int64_t.
310 (os_ftruncate): Change 3rd arg to int64_t.
311 (os_truncate): Change 3rd arg to int64_t.
312 * sim-io.c (sim_io_lseek): Change return and 3rd arg to int64_t.
313 * sim-io.h (sim_io_lseek): Likewise.
314
315 2021-05-14 Mike Frysinger <vapier@gentoo.org>
316
317 * callback.c (os_time): Change return to int64_t. Delete 2nd arg.
318 (os_fstat): Delete 2nd arg to time callback.
319 * sim-io.c (sim_io_time): Change return to int64_t. Delete 2nd arg
320 to time callback.
321 * sim-io.h (sim_io_time): Change return to int64_t.
322 * syscall.c (cb_syscall): Delete 2nd arg to time callback.
323
324 2021-05-14 Mike Frysinger <vapier@gentoo.org>
325
326 * callback.c (cb_host_to_target_stat): Change PTR to void*.
327 * sim-syscall.c (sim_syscall_multi): Delete (PTR) casts.
328
329 2021-05-14 Mike Frysinger <vapier@gentoo.org>
330
331 * Make-common.in (callback_h, remote_sim_h): Update path.
332 * callback.c: Update include path.
333 * gentmap.c (gen_targ_map_c): Likewise.
334 * sim-basics.h: Likewise.
335 * sim-close.c: Likewise.
336 * sim-core.c: Likewise.
337 * sim-load.c: Likewise.
338 * sim-module.h: Likewise.
339 * syscall.c: Likewise.
340
341 2021-05-08 Mike Frysinger <vapier@gentoo.org>
342
343 * Make-common.in (modules.c): Touch $@ at the end.
344
345 2021-05-08 Mike Frysinger <vapier@gentoo.org>
346
347 * cgen-trace.c (sim_cgen_disassemble_insn): Change %x to PRIxTA.
348
349 2021-05-08 Mike Frysinger <vapier@gentoo.org>
350
351 * cgen-types.h (mode_names): Rename to ...
352 (cgen_mode_names): ... this.
353 (MODE_NAME): Use cgen_mode_names.
354 * cgen-utils.c (mode_names): Rename to ...
355 (cgen_mode_names): ... this.
356
357 2021-05-08 Mike Frysinger <vapier@gentoo.org>
358
359 * cgen-ops.h (cgen_rtx_error): Declare.
360 * cgen-utils.c (cgen_rtx_error): Add %s printf argument.
361
362 2021-05-08 Mike Frysinger <vapier@gentoo.org>
363
364 * cgen-utils.c (virtual_insn_entries): Change {0} to {}.
365
366 2021-05-08 Mike Frysinger <vapier@gentoo.org>
367
368 * Make-common.in (html, clean-html, install-html, pdf, clean-pdf,
369 install-pdf): New rules.
370
371 2021-05-08 Tom Tromey <tom@tromey.com>
372
373 * sim-options.c (compare_strings): Remove.
374 (dup_arg_p): Use htab_eq_string.
375
376 2021-05-04 Mike Frysinger <vapier@gentoo.org>
377
378 * sim-hw.c (sim_hw_install): Rename to ...
379 (sim_install_hw): ... this. New prototype.
380 * sim-hw.h (sim_hw_install): Delete.
381 * sim-module.c: Delete sim-hw.h include.
382 (early_modules): Delete sim_hw_install.
383
384 2021-05-04 Tom Tromey <tromey@adacore.com>
385
386 * Make-common.in (generated_files): Add config.h.
387
388 2021-05-04 Mike Frysinger <vapier@gentoo.org>
389
390 * cgen-trace.c (sim_disasm_perror_memory): Use BFD_VMA_FMT and drop
391 cast.
392 * sim-load.c (xprintf_bfd_vma): Delete.
393 (sim_load_file): Delete xprintf_bfd_vma calls. Use BFD_VMA_FMT.
394
395 2021-05-03 Simon Marchi <simon.marchi@polymtl.ca>
396
397 * hw-events.h (hw_event_queue_schedule_tracef): Use format attribute.
398 (hw_event_queue_schedule_vtracef): Likewise.
399 * hw-tree.h (hw_tree_vparse): Likewise.
400 * sim-profile.c (profile_vprintf): Likewise.
401 * sim-trace.c (dis_printf): Likewise.
402 * sim-trace.h (trace_printf): Likewise.
403 (trace_vprintf): Likewise.
404 * sim-utils.h (sim_do_commandf): Likewise.
405 * hw-events.c (hw_event_queue_schedule): Use
406 hw_event_queue_schedule_tracef.
407
408 2021-05-02 Simon Marchi <simon.marchi@polymtl.ca>
409
410 * sim-options.c (standard_option_handler): Add default cases to
411 switches.
412
413 2021-05-02 Mike Frysinger <vapier@gentoo.org>
414
415 * callback.c (os_error): Change __attribute__((noreturn)) to
416 ATTRIBUTE_NORETURN.
417 * hw-device.h (hw_abort, hw_vabort, hw_halthw_trace): Change
418 attributes to ATTRIBUTE_PRINTF and ATTRIBUTE_NORETURN.
419 * hw-events.h (hw_event_queue_schedule_tracef): Likewise.
420 * hw-tree.h (hw_tree_delete): Likewise.
421 * sim-basics.h (__attribute__): Delete.
422 * sim-engine.h (sim_engine_halt): Change __attribute__((noreturn))
423 to ATTRIBUTE_NORETURN.
424 (sim_engine_abort, sim_engine_vabort): Likewise.
425 * sim-hw.h (sim_hw_install, sim_hw_abort): Change
426 __attribute__((printf)) to ATTRIBUTE_PRINTF.
427 * sim-inline.h (NORETURN): Delete.
428 (UNUSED): Change to ATTRIBUTE_UNUSED.
429 * sim-io.h (sim_io_printf): Change attributes to ATTRIBUTE_PRINTF
430 and ATTRIBUTE_NORETURN.
431 (sim_io_eprintf, sim_io_error): Likewise.
432 * sim-profile.c (profile_printf): Likewise.
433 * sim-trace.h (trace_prefix, trace_generic, trace_printf,
434 sim_debug_printf): Likewise.
435
436 2021-05-01 Mike Frysinger <vapier@gentoo.org>
437
438 * sim-options.c (dup_arg_p): Call htab_empty.
439
440 2021-05-01 Mike Frysinger <vapier@gentoo.org>
441
442 * dv-sockser.c (dv_sockser_install): Rename to ...
443 (sim_install_dv_sockser): ... this.
444 * dv-sockser.h (dv_sockser_install): Delete.
445 * sim-module.c: Delete dv-sockser.h include.
446 (early_modules): Delete dv_sockser_install.
447
448 2021-05-01 Mike Frysinger <vapier@gentoo.org>
449
450 * Make-common.in (LIB_OBJS): Add modules.o.
451 (generated_files): Add modules.c.
452 (modules.c): New target.
453 * sim-module.c (modules): Rename to ...
454 (early_modules): ... this. Delete 0 sentinel.
455 (early_modules_len): Define.
456 (sim_modules_detected, sim_modules_detected_len): Declare.
457 (sim_pre_argv_init): Call sim_module_install_list.
458 (sim_module_install): New function.
459 (sim_module_install_list): New function.
460 * sim-module.h (sim_module_install_list): Declare.
461
462 2021-05-01 Mike Frysinger <vapier@gentoo.org>
463
464 * nrun.c (strsignal): New prototype.
465
466 2021-05-01 Mike Frysinger <vapier@gentoo.org>
467
468 * callback.c (wrap): Delete.
469 (os_close): Replace wrap call with direct call & setting last_errno.
470 (os_isatty, os_lseek, os_read_stdin, os_write, os_rename, os_system,
471 os_time, os_unlink, os_stat, os_fstat, os_lstat): Likewise.
472
473 2021-04-26 Mike Frysinger <vapier@gentoo.org>
474
475 * gennltvals.py (TARGETS): Delete. Update comment.
476 (gentvals): Unify common code paths.
477 (gen_targets): Change TARGETS to TARGETS_DIRS. Call gentvals without
478 target argument.
479 * nltvals.def: Regenerate.
480
481 2021-04-25 Tom Tromey <tom@tromey.com>
482
483 * sim-options.c (compare_strings): New function.
484 (ARG_HASH_SIZE, ARG_HASH): Remove.
485 (dup_arg_p): Use htab_t.
486 (sim_parse_args): Remove assert.
487
488 2021-04-24 Mike Frysinger <vapier@gentoo.org>
489
490 * dv-cfi.c (attach_cfi_regs): Change %u to PRIiTC.
491
492 2021-04-24 Mike Frysinger <vapier@gentoo.org>
493
494 * sim-options.c (ARG_HASH_SIZE): Increase to 256.
495 (sim_parse_args): Call SIM_ASSERT.
496
497 2021-04-22 Tom Tromey <tom@tromey.com>
498
499 * sim-utils.c: Update includes.
500
501 2021-04-22 Tom Tromey <tom@tromey.com>
502
503 * Make-common.in: Require GNU make.
504
505 2021-04-22 Tom Tromey <tom@tromey.com>
506
507 * Make-common.in (stamp-hw): New target.
508 (hw-config.h): Depend on stamp-hw.
509 (mostlyclean): Remove stamp-hw and hw-config.h.
510
511 2021-04-22 Tom Tromey <tom@tromey.com>
512
513 * Make-common.in (mostlyclean): Now an alias for clean, not
514 distclean.
515
516 2021-04-22 Tom Tromey <tom@tromey.com>
517
518 * sim-events.c (sim_events_schedule): Use
519 sim_events_schedule_tracef.
520
521 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
522
523 * callback.c (os_printf_filtered, os_vprintf_filtered,
524 os_evprintf_filtered, os_error): Use ATTRIBUTE_PRINTF.
525 * sim-engine.h (sim_engine_abort, sim_engine_vabort): Likewise.
526 * sim-events.h (sim_events_schedule_tracef,
527 sim_events_schedule_vtracef): Use ATTRIBUTE_NULL_PRINTF.
528
529 2021-04-18 Mike Frysinger <vapier@gentoo.org>
530
531 * gennltvals.py (TARGETS): Add moxie.
532 * nltvals.def: Regenerate.
533
534 2021-04-18 Mike Frysinger <vapier@gentoo.org>
535
536 * gennltvals.py (TARGET_DIRS, TARGETS): Add sh.
537 * nltvals.def: Regenerate.
538
539 2021-04-18 Mike Frysinger <vapier@gentoo.org>
540
541 * gennltvals.py (TARGETS): Add rx.
542 * nltvals.def: Regenerate.
543
544 2021-04-18 Mike Frysinger <vapier@gentoo.org>
545
546 * gennltvals.py (TARGETS): Add m32c.
547 * nltvals.def: Regenerate.
548
549 2021-04-18 Mike Frysinger <vapier@gentoo.org>
550
551 * gennltvals.py (TARGETS): Add iq2000.
552 * nltvals.def: Regenerate.
553
554 2021-04-18 Mike Frysinger <vapier@gentoo.org>
555
556 * syscall.c (cb_syscall): Implement CB_SYS_getpid.
557
558 2021-04-15 John Baldwin <jhb@FreeBSD.org>
559
560 * Make-common.in (CONFIG_CFLAGS): Remove SIM_EXTRA_CFLAGS.
561 (ALL_CLAGS, COMMON_DEP_CFLAGS): Add SIM_EXTRA_CFLAGS after
562 CSEARCH.
563
564 2021-04-12 Mike Frysinger <vapier@gentoo.org>
565
566 * sim-cpu.c (sim_cpu_alloc_all): Delete 3rd arg. Delete 2nd arg to
567 sim_cpu_alloc.
568 (sim_cpu_alloc): Move extra_bytes to local var. Add result of
569 cgen_cpu_max_extra_bytes.
570 * sim-cpu.h (sim_cpu_alloc_all): Delete 3rd arg.
571 (sim_cpu_alloc): Delete 2nd arg.
572
573 2021-04-08 Tom Tromey <tom@tromey.com>
574
575 * cgen-utils.c (RORQI, ROLQI, RORHI, ROLHI, RORSI, ROLSI): Use
576 new-style declaration.
577
578 2021-04-03 Mike Frysinger <vapier@gentoo.org>
579
580 * Make-common.in (install-common): Install as run-$arch and
581 libsim-$arch.a when not the primary arch.
582
583 2021-04-02 Mike Frysinger <vapier@gentoo.org>
584
585 * Make-common.in (CFLAGS_FOR_BUILD): Define.
586 (BUILD_CFLAGS): Replace -g -O with $(CFLAGS_FOR_BUILD).
587
588 2021-03-13 Mike Frysinger <vapier@gentoo.org>
589
590 * Make-common.in (LINK_FOR_BUILD): Change BUILD_LDFLAGS to
591 LDFLAGS_FOR_BUILD.
592
593 2021-03-13 Mike Frysinger <vapier@gentoo.org>
594
595 * Make-common.in (COMPILE_FOR_BUILD, LINK_FOR_BUILD): Define.
596 (gentmap.o): New rule.
597 (gentmap): Call LINK_FOR_BUILD.
598
599 2021-03-07 Mike Frysinger <vapier@gentoo.org>
600
601 * Make-common.in (check): Delete body.
602
603 2021-02-28 Mike Frysinger <vapier@gentoo.org>
604
605 * Make-common.in (SIM_EXTRA_LIBDEPS): Delete.
606 (LIBDEPS): Delete $(SIM_EXTRA_LIBDEPS).
607
608 2021-02-27 Mike Frysinger <vapier@gentoo.org>
609
610 * Make-common.in (SIM_EXTRA_ALL): Delete.
611 (all): Delete $(SIM_EXTRA_ALL).
612
613 2021-02-21 Mike Frysinger <vapier@gentoo.org>
614
615 * acinclude.m4: Removed.
616
617 2021-02-13 Mike Frysinger <vapier@gentoo.org>
618
619 * acinclude.m4: Delete all sinclude & m4_include calls.
620
621 2021-02-13 Mike Frysinger <vapier@gentoo.org>
622
623 * aclocal.m4: Delete.
624
625 2021-02-06 Mike Frysinger <vapier@gentoo.org>
626
627 * sim-events.c: Include sim-cpu.h.
628 (sim_event_watchpoints): Define watch_pc.
629 (sim_events_watch_pc): New function.
630 (WATCH_SIM): Handle watch_pc.
631 * sim-events.h (sim_events_watch_pc): New prototype.
632 * sim-watch.c (schedule_watchpoint): Replace sim_events_watch_sim with
633 sim_events_watch_pc.
634 * sim-watch.h (sim_watchpoints): Delete pc.
635
636 2021-02-06 Mike Frysinger <vapier@gentoo.org>
637
638 * acinclude.m4 (SIM_AC_COMMON): Replace AC_CONFIG_HEADER with
639 AC_CONFIG_HEADERS.
640
641 2021-02-06 Mike Frysinger <vapier@gentoo.org>
642
643 * Make-common.in (HDEFINES, TDEFINES): Delete.
644 (CONFIG_CFLAGS): Delete $(HDEFINES) $(TDEFINES).
645 * acinclude.m4 (SIM_AC_COMMON): Delete AC_SUBST(HDEFINES) and
646 bfd/configure.host sourcing.
647
648 2021-02-04 Mike Frysinger <vapier@gentoo.org>
649
650 * gennltvals.py (TARGETS): Add riscv.
651 (TARGET_DIRS): Likewise.
652 * nltvals.def: Regenerate from the latest libgloss sources.
653
654 2021-01-31 Mike Frysinger <vapier@gentoo.org>
655
656 * cgen-trace.c (cgen_trace_insn): Add "%s" argument.
657
658 2021-01-31 Stafford Horne <shorne@gmail.com>
659
660 * cgen-accfp.c (fixsfsi): Change res from unsigned32 to signed32.
661 (fixdfsi): Change res from unsigned32 to signed32.
662 (fixdfdi): Change res from unsigned64 to signed64.
663
664 2021-01-30 Mike Frysinger <vapier@gentoo.org>
665
666 * gennltvals.sh: Replace shell script with ...
667 * gennltvals.py: ... this Python script.
668 * nltvals.def: Regenerate.
669
670 2021-01-30 Mike Frysinger <vapier@gentoo.org>
671
672 * sim-watch.c (schedule_watchpoint): Change sizeof_pc to sizeof
673 sim_cia.
674 * sim-watch.h (struct _sim_watchpoints): Delete sizeof_pc.
675
676 2021-01-30 Mike Frysinger <vapier@gentoo.org>
677
678 * sim-profile.c (profile_pc_init): Change 1 in shifts to 1ULL.
679
680 2021-01-30 Mike Frysinger <vapier@gentoo.org>
681
682 * sim-hw.c (merge_device_file): Replace fgets with getline.
683
684 2021-01-30 Mike Frysinger <vapier@gentoo.org>
685
686 * gennltvals.sh (gen_arches): Sort calls by first arg.
687 * nltvals.def: Regenerate.
688
689 2021-01-18 Mike Frysinger <vapier@gentoo.org>
690
691 * Make-common.in (version.c): Simplifiy args and call move-if-change.
692 * create-version.sh: Delete host & target alias logic. Write to the
693 output directly.
694
695 2021-01-18 Mike Frysinger <vapier@gentoo.org>
696
697 * configure, configure.ac, Makefile.in: Delete.
698
699 2021-01-13 Mike Frysinger <vapier@gentoo.org>
700
701 * sim-watch.c (default_interrupt_handler): Define.
702 (sim_watchpoint_install): Set default interrupt_handler to new
703 default_interrupt_handler.
704
705 2021-01-13 Mike Frysinger <vapier@gentoo.org>
706
707 * sim-watch.c (do_watchpoint_create): Parse arg+1 and assign to arg1.
708
709 2021-01-13 Mike Frysinger <vapier@gentoo.org>
710
711 * sim-events.c (sim_events_watch_sim): Change byte_order type to
712 enum bfd_endian.
713 (sim_events_watch_core): Likewise.
714 * sim-events.h (sim_events_watch_sim, sim_events_watch_core): Likewise.
715 * sim-watch.c (schedule_watchpoint): Change 0 to HOST_BYTE_ORDER in
716 call to sim_events_watch_sim.
717
718 2021-01-12 Mike Frysinger <vapier@gentoo.org>
719
720 * sim-profile.h [!WITH_PROFILE]: Rewrite to use #error.
721
722 2021-01-11 Mike Frysinger <vapier@gentoo.org>
723
724 * acinclude.m4 (SIM_AC_OUTPUT): Require SIM_AC_OPTION_WARNINGS.
725
726 2021-01-11 Mike Frysinger <vapier@gentoo.org>
727
728 * sim-core.c (sim_memory_map): Change %#x to PRIxTW.
729
730 2021-01-11 Mike Frysinger <vapier@gentoo.org>
731
732 * acinclude.m4 (SIM_AC_COMMON): Delete checks for stdlib.h, string.h,
733 strings.h, time.h, and errno.h.
734 * callback.c, cgen-scache.c, dv-glue.c, dv-pal.c, dv-sockser.c,
735 hw-alloc.c, hw-base.c, hw-device.c, hw-events.c, hw-handles.c,
736 hw-ports.c, hw-properties.c, hw-tree.c, nrun.c, sim-arange.c,
737 sim-events.c, sim-fpu.c, sim-hw.c, sim-load.c, sim-memopt.c,
738 sim-options.c, sim-profile.c, sim-trace.c, sim-utils.c,
739 sim-watch.c, syscall.c: Delete HAVE_ERRNO_H, HAVE_STDLIB_H,
740 HAVE_STRING_H, HAVE_STRINGS_H, HAVE_LIMITS_H, HAVE_TIME_H,
741 and strings.h include.
742
743 2021-01-09 Mike Frysinger <vapier@gentoo.org>
744
745 * sim-basics.h [__CYGWIN32__] (vasprintf, asprintf): Delete.
746 * sim-core.c, sim-watch.c: Include libiberty.h.
747
748 2021-01-09 Mike Frysinger <vapier@gentoo.org>
749
750 * acinclude.m4: Replace duplicate text with pointer to README-HACKING.
751
752 2021-01-09 Mike Frysinger <vapier@gentoo.org>
753
754 * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Document 1st argument.
755 Set WERROR_CFLAGS when first arg is not set or is "yes".
756
757 2021-01-09 Mike Frysinger <vapier@gentoo.org>
758
759 * hw-base.c (full_name_of_hw): Delete full_name. Replace
760 hw_strdup call with hw_malloc.
761
762 2021-01-09 Mike Frysinger <vapier@gentoo.org>
763
764 * cgen-par.c: Include stdlib.h.
765 * cgen-trace.c, hw-events.c, sim-abort.c: Likewise.
766
767 2021-01-08 Mike Frysinger <vapier@gentoo.org>
768
769 * Make-common.in (C_DIALECT): Define.
770 (COMPILE.pre): Append $(C_DIALECT).
771 * acinclude.m4 (SIM_AC_COMMON): Probe C11 to define C_DIALECT.
772
773 2021-01-07 Mike Frysinger <vapier@gentoo.org>
774
775 * sim-core.c (sim_memory_map): Define.
776
777 2021-01-04 Mike Frysinger <vapier@gentoo.org>
778
779 * acinclude.m4 (ACX_BUGURL): Change http:// to https://.
780 * configure: Regenerate.
781
782 2021-01-04 Mike Frysinger <vapier@gentoo.org>
783
784 * sim-options.c (sim_print_version): Print out more details when
785 is_command is non-zero.
786
787 2021-01-04 Mike Frysinger <vapier@gentoo.org>
788
789 * sim-options.c (standard_option_handler): Call sim_print_version.
790 (sim_print_version): New function.
791 * sim-options.h (sim_print_version): New prototype.
792
793 2021-01-04 Mike Frysinger <vapier@gentoo.org>
794
795 * sim-config.c (print_sim_config): Rename to ...
796 (sim_config_print): ... this.
797 * sim-config.h: Likewise.
798
799 2021-01-02 Mike Frysinger <vapier@gentoo.org>
800
801 * sim-bits.h (_ALIGNa, _FLOORa, ALIGN_8, ALIGN_16, ALIGN_PAGE,
802 FLOOR_PAGE): Delete unused macros.
803 (align_up, align_down): Define.
804
805 2020-08-10 Tom de Vries <tdevries@suse.de>
806
807 * sim-cpu.c: Include stdlib.h for free.
808
809 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
810
811 * nrun.c: Include stdlib.h.
812 * sim-core.c: Likewise.
813 * sim-engine.c: Likewise.
814 * sim-io.c: Likewise.
815 * sim-module.c: Likewise.
816 * sim-reason.c: Likewise.
817
818 2019-12-19 Tom Tromey <tromey@adacore.com>
819
820 PR build/24572:
821 * Makefile.in (install-strip): New target.
822
823 2019-12-01 Pavel I. Kryukov <kryukov@frtk.ru>
824
825 * sim-utils.c: Prevent buffer overflow.
826
827 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
828
829 * gennltvals.sh: Add PRU libgloss target.
830 * nltvals.def: Regenerate from the latest libgloss sources.
831
832 2019-06-13 Stafford Horne <shorne@gmail.com>
833
834 * cgen-accfp.c (unorderedsf, unordereddf): New functions.
835 (cgen_init_accurate_fpu): Wire up unorderedsf and unordereddf.
836 * cgen-fpu.h (cgen_fp_ops): Define fields unorderedsf and unordereddf.
837
838 2019-06-13 Stafford Horne <shorne@gmail.com>
839
840 * cgen-accfp.c (floatdidf, fixdfdi): New functions.
841 (cgen_init_accurate_fpu): Add floatdidf and fixdfdi.
842
843 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
844
845 * cgen-ops.h (SUBWORDXFSI): Compare HOST_BYTE_ORDER not
846 CURRENT_TARGET_BYTE_ORDER.
847 (SUBWORDTFSI): Likewise.
848 (JOINSIDF): Likewise.
849 (JOINSIXF): Likewise.
850 (JOINSITF): Likewise.
851
852 2019-03-28 Andrew Burgess <andrew.burgess@embecosm.com>
853
854 * sim-base.h: Add 'sim-assert.h' include.
855 * sim-basics.h: Add 'libiberty.h' include.
856
857 2019-03-28 Stafford Horne <shorne@gmail.com>
858
859 * sim-options.c: Include "config.h".
860 Include <stdio.h>.
861 * sim-watch.c: Include "config.h".
862 Include <stdio.h>.
863 * hw-device.c: Include <string.h>.
864 * hw-events.c: Include <string.h>.
865 * hw-handles.c: Include <stdlib.h>.
866 * sim-fpu.c: Include <stdlib.h>.
867
868 2019-03-28 Stafford Horne <shorne@gmail.com>
869
870 * Make-common.in (sim-arange_h): Remove sim-arange.c
871 * sim-arange.c: Remove SIM_ARANGE_C.
872 Add ifdef for _SIM_ARANGE_C_.
873 Include "sim-arange.h".
874 Remove include for unused "sim-assert.h".
875 Remove DEFINE_INLINE_P. Remove DEFINE_NON_INLINE_P.
876 (sim_addr_range_add): Declare as INLINE_SIM_ARANGE.
877 (sim_addr_range_delete): Declare as INLINE_SIM_ARANGE.
878 (sim_addr_range_hit_p): Change from SIM_ARANGE_INLINE to
879 INLINE_SIM_ARANGE.
880 * sim-arange.h (sim_addr_range_add): Declare as
881 INLINE_SIM_ARANGE.
882 (sim_addr_range_delete): Declare as INLINE_SIM_ARANGE.
883 (sim_addr_range_hit_p) Declare as INLINE_SIM_ARANGE.
884 Remove definition of SIM_ARANGE_INLINE.
885 Remove [HAVE_INLINE].
886 Wrap include "sim-arange.c" in H_REVEALS_MODULE_P.
887 * sim-base.h: Include "sim-arange.h"
888 * sim-basics.h: Remove include of "sim-arange.h"
889 * sim-inline.c: Include "sim-arange.c"
890 * sim-inline.h: Define INLINE_SIM_ARANGE.
891 Define SIM_ARANGE_INLINE. Define EXTERN_SIM_ARANGE_P.
892 Define STATIC_INLINE_SIM_ARANGE. Define STATIC_SIM_ARANGE.
893
894 2019-01-26 Tom Tromey <tom@tromey.com>
895
896 * Make-common.in (version.c): Use sim's create-version.sh.
897 * create-version.sh: New file.
898
899 2019-01-16 Pavel I. Kryukov <kryukov@frtk.ru>
900
901 * sim-arange.c (DEFINE_INLINE_P, DEFINE_NON_INLINE_P): Remove.
902
903 2019-01-15 Simon Marchi <simon.marchi@ericsson.com>
904
905 * sim-arange.h (SIM_ARANGE_INLINE): Change EXTERN to extern.
906
907 2018-12-18 Andrew Burgess <andrew.burgess@embecosm.com>
908
909 * sim-syscall.c (sim_syscall_multi): Don't update sc->errcode at
910 this point, it should have already been set in cb_syscall.
911
912 2018-10-05 Stafford Horne <shorne@gmail.com>
913
914 * cgen-ops.h (ADDCFDI): New function, add carry flag DI variant.
915 (ADDOFDI): New function, add overflow flag DI variant.
916 (SUBCFDI): New function, subtract carry flag DI variant.
917 (SUBOFDI): New function, subtract overflow flag DI variant.
918
919 2018-09-28 Компан, Вячеслав Олегович <kompan.vo@phystech.edu>
920
921 * sim-core.h (sim_cpu_core): Rename cpu_core.xor to
922 cpu_core.byte_xor.
923 * sim-core.c (sim_core_set_xor): Likewise.
924 (sim_core_xor_read_buffer): Likewise.
925 (sim_core_xor_write_buffer): Likewise.
926
927 2017-12-12 Peter Gavin <pgavin@gmail.com>
928 Stafford Horne <shorne@gmail.com>
929
930 * cgen-ops.h (MUL2OFSI): New function, 2's complement overflow
931 flag.
932 (MUL1OFSI): New function, 1's complement overflow flag.
933
934 2017-12-12 Peter Gavin <pgavin@gmail.com>
935 Stafford Horne <shorne@gmail.com>
936
937 * cgen-accfp.c (remsf, remdf): New function.
938 (cgen_init_accurate_fpu): Add remsf and remdf.
939 * cgen-fpu.h (cgen_fp_ops): Add remsf, remdf, remxf and remtf.
940 * sim-fpu.c (sim_fpu_rem): New function.
941 * sim-fpu.h (sim_fpu_status_invalid_irx): New enum.
942 (sim_fpu_rem): New function.
943 (sim_fpu_print_status): Add case for sim_fpu_status_invalid_irx.
944
945 2017-09-06 John Baldwin <jhb@FreeBSD.org>
946
947 * acinclude.m4 (SIM_AC_COMMON): Honor existing CC_FOR_BUILD in
948 environment.
949
950 2017-05-24 Yao Qi <yao.qi@linaro.org>
951
952 * sim-trace.c (trace_disasm): Caller update.
953
954 2016-08-15 Mike Frysinger <vapier@gentoo.org>
955
956 * sim-base.h (sim_state_base): Add prog_syms_count.
957 (STATE_PROG_SYMS_COUNT): Define.
958 * sim-trace.c (trace_uninstall): Free STATE_PROG_SYMS memory.
959 (trace_load_symbols): New function.
960 (trace_sym_value): Likewise.
961 (trace_prefix): Change STATE_CPU(cpu) to sd. Replace symbol
962 loading logic with a call to trace_load_symbols.
963 * sim-trace.h (trace_load_symbols, trace_sym_value): New
964 prototypes.
965
966 2016-08-13 Mike Frysinger <vapier@gentoo.org>
967
968 * cgen-types.h (mode_names): Mark const.
969 * cgen-utils.c (mode_names): Likewise.
970
971 2016-08-13 Mike Frysinger <vapier@gentoo.org>
972
973 * cgen-defs.h (struct cgen_state): Delete argv and envp.
974 (STATE_ARGV, STATE_ENVP): Delete.
975
976 2016-02-04 Nick Clifton <nickc@redhat.com>
977
978 * cgen-scache.c (scache_option_handler): Prevent possible
979 undefined behaviour computing the size of the scache by using
980 unsigned integers instead of signed integers.
981
982 2016-01-17 Joel Brobecker <brobecker@adacore.com>
983
984 * sim-fpu.c: Minor comment fixes throughout.
985
986 2016-01-17 Joel Brobecker <brobecker@adacore.com>
987
988 * sim-fpu.c (print_bits): Minor reformatting (no code change).
989 (sim_fpu_map): Likewise.
990
991 2016-01-11 Mike Frysinger <vapier@gentoo.org>
992
993 * sim-config.c (print_sim_config): Drop extra whitespace before =
994 in output for byte order, stdio, and msb settings.
995
996 2016-01-10 Mike Frysinger <vapier@gentoo.org>
997
998 * acinclude.m4 (SIM_AC_COMMON): Call AC_MSG_CHECKING,
999 AC_DEFINE_UNQUOTED, and AC_MSG_RESULT for sim-debug. Likewise for
1000 sim-stdio, sim-trace, and sim-profile.
1001 (SIM_AC_OPTION_ENVIRONMENT): Likewise.
1002 (SIM_AC_OPTION_ASSERT): Likewise.
1003 (SIM_AC_OPTION_SMP): Likewise.
1004 (SIM_AC_OPTION_XOR_ENDIAN): Likewise.
1005 * configure: Regenerate.
1006 * Make-common.in (SIM_DEBUG, SIM_TRACE, SIM_PROFILE, SIM_ASSERT,
1007 SIM_ENVIRONMENT, SIM_SMP, SIM_XOR_ENDIAN): Delete.
1008 (CONFIG_CFLAGS): Delete $(SIM_DEBUG), $(SIM_TRACE), $(SIM_PROFILE),
1009 $(SIM_ASSERT), $(SIM_ENVIRONMENT), $(SIM_SMP), and $(SIM_XOR_ENDIAN).
1010 * sim-config.c (sim_config): Change DEFAULT_ENVIRONMENT to
1011 WITH_ENVIRONMENT & USER_ENVIRONMENT.
1012 * sim-config.h (SIM_HAVE_ENVIRONMENT, WITH_ENVIRONMENT,
1013 DEFAULT_ENVIRONMENT, WITH_DEBUG, WITH_TRACE, WITH_PROFILE,
1014 WITH_ASSERT, WITH_STDIO): Delete.
1015 * sim-options.c (standard_options): Delete SIM_HAVE_ENVIRONMENT
1016 check.
1017
1018 2016-01-10 Mike Frysinger <vapier@gentoo.org>
1019
1020 * acinclude.m4 (SIM_AC_OPTION_PACKAGES): Delete.
1021 * configure: Regenerate.
1022 * Make-common.in (SIM_PACKAGES): Delete.
1023 (CONFIG_CFLAGS): Delete $(SIM_PACKAGES).
1024
1025 2016-01-10 Mike Frysinger <vapier@gentoo.org>
1026
1027 * acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_ENVIRONMENT.
1028
1029 2016-01-10 Mike Frysinger <vapier@gentoo.org>
1030
1031 * acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_ASSERT.
1032
1033 2016-01-10 Mike Frysinger <vapier@gentoo.org>
1034
1035 * acinclude.m4 (SIM_AC_COMMON): Delete sim_link_files and
1036 sim_link_links.
1037 (SIM_AC_OUTPUT): Delete AC_LINK_FILES call.
1038 * gentmap.c: Change targ-vals.def include to nltvals.def.
1039 * Make-common.in (gentmap): Change targ-vals.def to
1040 $(srccom)/nltvals.def.
1041 (distclean): Delete rm -f targ-vals.def.
1042 * Makefile.in: Update comment.
1043
1044 2016-01-10 Mike Frysinger <vapier@gentoo.org>
1045
1046 * acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_INLINE.
1047 (SIM_AC_OPTION_INLINE): Rename default_sim_inline to sim_inline
1048 and always set -DDEFAULT_INLINE. Delete AC_ARG_ENABLE 4th arg.
1049
1050 2016-01-10 Mike Frysinger <vapier@gentoo.org>
1051
1052 * acinclude.m4: Delete --enable-sim-regparm and sim_regparm,
1053 and --enable-sim-stdcall and sim_stdcall.
1054 * configure: Regenerate.
1055 * Make-common.in (SIM_REGPARM, SIM_STDCALL): Delete.
1056 (CONFIG_CFLAGS): Delete $(SIM_REGPARM) and $(SIM_STDCALL).
1057 * sim-config.h (WITH_REGPARM, WITH_STDCALL): Delete.
1058 * sim-inline.h (REGPARM_MODULE, REGPARM): Delete.
1059 (REGPARM_*): Delete all regparm defines and their use.
1060
1061 2016-01-10 Mike Frysinger <vapier@gentoo.org>
1062
1063 * acinclude.m4: Delete --enable-sim-cflags and sim_cflags.
1064 * Make-common.in (SIM_CFLAGS): Delete.
1065 (CONFIG_CFLAGS): Delete $(SIM_CFLAGS).
1066 * Makefile.in: Likewise.
1067
1068 2016-01-09 Mike Frysinger <vapier@gentoo.org>
1069
1070 * configure.ac: Change SIM_AC_COMMON to AC_PROG_CC. Drop 2nd arg
1071 to AC_OUTPUT. Move AC_CHECK_HEADERS, AC_CHECK_FUNCS,
1072 AC_CHECK_MEMBERS, and -AC_CHECK_TYPES ...
1073 * acinclude.m4 (SIM_AC_COMMON): ... here.
1074 * aclocal.m4, configure: Regenerate.
1075 * config.in: Delete file.
1076 * callback.c: Change cconfig.h include to config.h.
1077 * dv-cfi.c, nrun.c, sim-basics.h, sim-load.c, sim-memopt.c,
1078 syscall.c: Likewise.
1079 * Make-common.in (sim-basics_h): Delete ../common/cconfig.h.
1080 * Makefile.in (distclean): Delete rm -f cconfig.h config.h stamp-h.
1081
1082 2016-01-06 Mike Frysinger <vapier@gentoo.org>
1083
1084 * sim-config.c (print_sim_config): Delete sim_io_printf of version,
1085 date, and time information.
1086
1087 2016-01-06 Mike Frysinger <vapier@gentoo.org>
1088
1089 * sim-options.c (sim_parse_args): Mark argv array const.
1090 * sim-options.h (sim_parse_args): Likewise.
1091
1092 2016-01-05 Mike Frysinger <vapier@gentoo.org>
1093
1094 * sim-trace.c: Include dis-asm.h.
1095 (OPTION_TRACE_DISASM): New enum.
1096 (trace_options): Add trace-disasm flag.
1097 (trace_option_handler): Handle OPTION_TRACE_DISASM.
1098 (trace_idx_to_str): Handle TRACE_DISASM_IDX.
1099 (dis_read, dis_printf, trace_disasm): New functions.
1100 * sim-trace.h: Include dis-asm.h.
1101 (TRACE_INSN_IDX): Clarify comment.
1102 (TRACE_DISASM_IDX): New enum.
1103 (TRACE_disasm): New define.
1104 (WITH_TRACE_DISASM_P): New define.
1105 (struct _trace_data): Add dis_bfd, disassembler, and dis_info.
1106 (STRACE_DISASM_P): New define.
1107 (TRACE_DISASM_P): Likewise.
1108 (TRACE_DISASM_P): Likewise.
1109 (TRACE_DISASM): Likewise.
1110 (trace_disasm): New function.
1111
1112 2016-01-04 Mike Frysinger <vapier@gentoo.org>
1113
1114 * sim-utils.c (sim_state_free): Change to STATE_MAGIC.
1115
1116 2016-01-04 Mike Frysinger <vapier@gentoo.org>
1117
1118 * cgen-scache.c (MAX): Delete.
1119 (scache_init): Change MAX to max.
1120 * cgen-trace.c (min): Delete.
1121 * cgen-utils.c (min): Delete.
1122 * sim-basics.h [!min] (min): Define.
1123 [!max] (max): Define.
1124
1125 2016-01-04 Mike Frysinger <vapier@gentoo.org>
1126
1127 * sim-options.c (sim_parse_args): Tweak getopt error message.
1128
1129 2016-01-04 Mike Frysinger <vapier@gentoo.org>
1130
1131 * acinclude.m4 (sim-bswap): Delete.
1132 * configure: Regenerate.
1133 * Make-common.in (SIM_BSWAP): Delete.
1134 (CONFIG_CFLAGS): Delete $(SIM_BSWAP).
1135 * sim-config.h (htonl, ntohl): Delete.
1136 (WITH_BSWAP): Delete.
1137
1138 2016-01-03 Mike Frysinger <vapier@gentoo.org>
1139
1140 * sim-options.c (sim_parse_args): Declare local save_opterr. Save
1141 opterr state to it before calling getopt_long and restore afterwards.
1142 Set opterr to 0. When optc is '?', call sim_io_eprintf.
1143
1144 2016-01-03 Mike Frysinger <vapier@gentoo.org>
1145
1146 * hw-device.h (device): Delete commented typedef.
1147 * sim-basics.h (device): Delete typedef.
1148
1149 2016-01-03 Mike Frysinger <vapier@gentoo.org>
1150
1151 * sim-options.c (sim_parse_args): Replace for loop with a call
1152 to countargv.
1153
1154 2016-01-03 Mike Frysinger <vapier@gentoo.org>
1155
1156 * nrun.c (myname): Mark const.
1157 (main): Mark name const. Replace myname parsing loop with a
1158 call to lbasename.
1159
1160 2016-01-03 Mike Frysinger <vapier@gentoo.org>
1161
1162 (CONFIG_CFLAGS): Delte $(SIM_HOSTENDIAN).
1163 * acinclude.m4 (SIM_AC_COMMON): Call AC_C_BIGENDIAN.
1164 (SIM_AC_OPTION_HOSTENDIAN): Delete.
1165 * config.in, configure: Regenerate.
1166 * Make-common.in (SIM_HOSTENDIAN): Delete.
1167 * sim-config.c (current_host_byte_order): Delete.
1168 (sim_config): Delete current_host_byte_order assignments and
1169 CURRENT_HOST_BYTE_ORDER checks.
1170 (print_sim_config): Change WITH_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
1171 * sim-config.h (WITH_HOST_BYTE_ORDER): Change to ...
1172 (HOST_BYTE_ORDER): ... this. Define based on WORDS_BIGENDIAN.
1173 (current_host_byte_order): Delete.
1174 (CURRENT_HOST_BYTE_ORDER): Likewise.
1175 * sim-endian.c (WITH_HOST_BYTE_ORDER): Rename to ...
1176 (HOST_BYTE_ORDER): ... this.
1177 (sim_endian_split_16): Change WITH_HOST_BYTE_ORDER to
1178 HOST_BYTE_ORDER.
1179 (sim_endian_join_16): Likewise.
1180 * sim-n-core.h (sim_core_read_misaligned_N): Change
1181 CURRENT_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
1182 (sim_core_write_misaligned_N): Likewise.
1183 * sim-n-endian.h (endian_t2h_N): Likewise.
1184 (endian_h2t_N, endian_h2be_N, endian_be2h_N, endian_h2le_N,
1185 endian_le2h_N): Likewise.
1186 (offset_N): Change WITH_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
1187
1188 2016-01-02 Mike Frysinger <vapier@gentoo.org>
1189
1190 * acinclude.m4 (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to
1191 BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
1192 BFD_ENDIAN_UNKNOWN.
1193 (SIM_AC_OPTION_HOSTENDIAN): Likewise.
1194 * cgen-ops.h (SUBWORDXFSI): Change BIG_ENDIAN to BFD_ENDIAN_BIG.
1195 (SUBWORDTFSI, JOINSIDF, JOINSIXF, JOINSITF): Likewise.
1196 * nrun.c (main): Likewise.
1197 * sim-config.c (current_host_byte_order): Change type to enum
1198 bfd_endian. Initialize to BFD_ENDIAN_UNKNOWN.
1199 (current_target_byte_order): Likewise.
1200 (config_byte_order_to_a): Likewise. Change BIG_ENDIAN to
1201 BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
1202 BFD_ENDIAN_UNKNOWN.
1203 (sim_config): Change prefered_target_byte_order type to enum
1204 bfd_endian. Change BIG_ENDIAN to BFD_ENDIAN_BIG, LITTLE_ENDIAN
1205 to BFD_ENDIAN_LITTLE, and 0 to BFD_ENDIAN_UNKNOWN.
1206 * sim-config.h: Change BIG_ENDIAN to BFD_ENDIAN_BIG, LITTLE_ENDIAN
1207 to BFD_ENDIAN_LITTLE, and 0 to BFD_ENDIAN_UNKNOWN.
1208 Delete all the various arch/OS endian includes & defines.
1209 (current_host_byte_order): Change type to enum bfd_endian.
1210 (current_target_byte_order): Likewise.
1211 (CURRENT_HOST_BYTE_ORDER): Compare to BFD_ENDIAN_UNKNOWN, not 0.
1212 (CURRENT_TARGET_BYTE_ORDER): Likewise.
1213 * sim-endian.c: Change LITTLE_ENDIAN to BFD_ENDIAN_LITTLE.
1214 * sim-events.c (sim_events_watch_sim): Change BIG_ENDIAN to
1215 BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
1216 BFD_ENDIAN_UNKNOWN.
1217 (sim_events_watch_core): Likewise.
1218 * sim-events.h: Likewise.
1219 * sim-n-core.h (sim_core_read_misaligned_N): Change BIG_ENDIAN to
1220 BFD_ENDIAN_BIG.
1221 (sim_core_write_misaligned_N): Likewise.
1222 * sim-n-endian.h (endian_h2be_N): Likewise.
1223 (endian_be2h_N): Likewise.
1224 (endian_h2le_N): Change LITTLE_ENDIAN to BFD_ENDIAN_LITTLE.
1225 (offset_N): Likewise.
1226 * sim-options.c (standard_option_handler): Change LITTLE_ENDIAN to
1227 BFD_ENDIAN_LITTLE and BIG_ENDIAN to BFD_ENDIAN_BIG.
1228
1229 2016-01-02 Mike Frysinger <vapier@gentoo.org>
1230
1231 * cgen-defs.h (current_state): Delete.
1232 * sim-base.h (CURRENT_STATE_REG, CURRENT_STATE): Delete.
1233 * sim-utils.c (current_state): Delete.
1234
1235 2015-12-30 Mike Frysinger <vapier@gentoo.org>
1236
1237 * sim-module.c (sim_pre_argv_init): Change STATE_MY_NAME assignment
1238 to use lbasename.
1239
1240 2015-12-27 Mike Frysinger <vapier@gentoo.org>
1241
1242 * Makefile.in (SIM_NEW_COMMON_OBJS): Add sim-hload.o.
1243
1244 2015-12-26 Mike Frysinger <vapier@gentoo.org>
1245
1246 * acinclude.m4 (AH_BOTTOM): Delete tconfig.h appending.
1247 * config.in, configure: Regenerate.
1248 * Make-common.in (sim-basics_h): Delete tconfig.h.
1249 (distclean): Likewise.
1250 * sim-core.c (device_io_read_buffer, device_io_write_buffer): Delete.
1251 (new_sim_core_mapping): Delete WITH_HW and device *device.
1252 (sim_core_map_attach, sim_core_attach): Likewise.
1253 (sim_core_read_buffer): Delete WITH_DEVICES logic.
1254 (sim_core_write_buffer): Likewise.
1255 * sim-core.h (struct _sim_core_mapping): Delete WITH_HW and device
1256 *device.
1257 (sim_core_attach): Likewise.
1258 (device_io_read_buffer, device_io_write_buffer): Delete.
1259 * sim-n-core.h (sim_core_read_aligned_N): Delete WITH_DEVICES logic.
1260 (sim_core_write_aligned_N): Likewise.
1261 * tconfig.h: Delete file.
1262
1263 2015-12-26 Mike Frysinger <vapier@gentoo.org>
1264
1265 * sim-core.c (sim_core_read_buffer): Move cia decl to top of func.
1266 Call sim_cpu_hw_io_read_buffer if cpu is valid.
1267 (sim_core_write_buffer): Move cia decl to top of func. Call
1268 sim_cpu_hw_io_write_buffer if cpu is valid.
1269
1270 2015-12-25 Mike Frysinger <vapier@gentoo.org>
1271
1272 * hw-properties.c (hw_find_ihandle_runtime_property): Delete
1273 HW_TRACE call.
1274 (hw_find_integer_property): Likewise.
1275 (hw_find_integer_array_property): Likewise.
1276 (hw_add_duplicate_property): Likewise.
1277
1278 2015-12-25 Mike Frysinger <vapier@gentoo.org>
1279
1280 * sim-config.h (WITH_ENGINE): Delete.
1281 * sim-module.c (modules): Always include sim_engine_install.
1282
1283 2015-12-25 Mike Frysinger <vapier@gentoo.org>
1284
1285 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-model.o.
1286 * cgen-types.h (SIM_HAVE_MODEL): Delete.
1287 * sim-base.h: Always include sim-model.h.
1288 * sim-config.h (WITH_DEFAULT_MODEL): Delete.
1289 * sim-cpu.h (sim_cpu_base): Always declare mach/model members.
1290 * sim-model.c (sim_model_init): Return when !WITH_MODEL_P.
1291 [!WITH_MODEL_P] (sim_machs): Define.
1292 * sim-model.h: Add some developer docs.
1293 [!WITH_DEFAULT_MODEL] (mach_attr, WITH_DEFAULT_MODEL): Define.
1294 (WITH_MODEL_P): Define.
1295 * sim-module.c (modules): Always include sim_model_install.
1296 * sim-profile.h (WITH_PROFILE_MODEL_P): Delete.
1297
1298 2015-12-25 Mike Frysinger <vapier@gentoo.org>
1299
1300 * sim-cpu.h: Rename MACH to SIM_MACH and MODEL to SIM_MODEL.
1301 * sim-model.c: Likewise.
1302 * sim-model.h: Likewise. Rename MACH_IMP_PROPERTIES to
1303 SIM_MACH_IMP_PROPERTIES
1304
1305 2015-12-25 Mike Frysinger <vapier@gentoo.org>
1306
1307 * sim-core.c (device_error): Delete.
1308 (sim_core_map_attach): Delete calls to device_error.
1309 (sim_core_attach): Likewise.
1310 * sim-core.h (device_error): Delete.
1311 * sim-n-core.h (sim_core_read_aligned_N): Change device_error call
1312 to sim_engine_abort.
1313 (sim_core_write_aligned_N): Likewise.
1314
1315 2015-12-25 Mike Frysinger <vapier@gentoo.org>
1316
1317 * sim-config.h (WITH_CALLBACK_MEMORY): Delete.
1318 * sim-core.c (sim_core_write_buffer): Likewise.
1319 * sim-n-core.h (sim_core_read_aligned_N): Likewise.
1320 (sim_core_write_aligned_N): Likewise.
1321
1322 2015-12-25 Mike Frysinger <vapier@gentoo.org>
1323
1324 * dv-pal.c: Include config.h and sim-main.h.
1325 (hw_pal_io_read_buffer): Always call CPU_INDEX.
1326
1327 2015-12-24 Mike Frysinger <vapier@gentoo.org>
1328
1329 * sim-options.c (standard_options): Always enable load-lma and
1330 load-vma options.
1331 (standard_install): Always set STATE_LOAD_AT_LMA_P(sd) to 1.
1332
1333 2015-12-24 Mike Frysinger <vapier@gentoo.org>
1334
1335 * sim-module.c (MODULE_LIST): Delete.
1336
1337 2015-12-24 Mike Frysinger <vapier@gentoo.org>
1338
1339 * sim-options.c (OPTION_H8300H, OPTION_H8300S, OPTION_H8300SX):
1340 Move to h8300/compile.c.
1341 [SIM_H8300] (standard_options): Likewise.
1342 (standard_option_handler): Likewise.
1343
1344 2015-12-24 Mike Frysinger <vapier@gentoo.org>
1345
1346 * sim-module.c [WITH_WATCHPOINTS] (modules): Always call
1347 sim_watchpoint_install.
1348
1349 2015-12-24 Mike Frysinger <vapier@gentoo.org>
1350
1351 * sim-base.h [SIM_HAVE_FLATMEM] (sim_state_base): Delete flatmem code.
1352 * sim-module.c [SIM_HAVE_FLATMEM] (modules): Always call
1353 sim_memopt_install.
1354 * sim-options.c (OPTION_MEM_SIZE): Delete.
1355 [SIM_HAVE_FLATMEM] (standard_options): Delete flatmem code.
1356 (standard_option_handler): Likewise.
1357
1358 2015-12-24 Mike Frysinger <vapier@gentoo.org>
1359
1360 * tconfig.h (SIM_HAVE_SIMCACHE): Delete.
1361
1362 2015-11-21 Mike Frysinger <vapier@gentoo.org>
1363
1364 PR sim/18762
1365 * Makefile.in (CPPFLAGS, CXXFLAGS, LDFLAGS): Define.
1366
1367 2015-11-21 Mike Frysinger <vapier@gentoo.org>
1368
1369 PR sim/19273
1370 * sim-utils.c (sim_do_commandf): Declare ret. Call va_start,
1371 vasprintf, and va_end together. Check ret after va_end call.
1372
1373 2015-11-21 Mike Frysinger <vapier@gentoo.org>
1374
1375 * sim-types.h (SIM_PRI_TB): Define.
1376 (PRI_TW, PRIiTW, PRIxTW): New PRI target word defines.
1377 (PRI_TA, PRIiTA, PRIxTA): New PRI target address defines.
1378 (PRI_TC, PRIiTC, PRIxTC): New PRI target cell defines.
1379 (PRI_TF, PRIiTF, PRIxTF): New PRI target floating point defines.
1380
1381 2015-11-17 Mike Frysinger <vapier@gentoo.org>
1382
1383 * sim-main.h (WITH_MODULO_MEMORY): Delete.
1384 * sim-core.c (new_sim_core_mapping): Always assign mask to modulo-1.
1385 (sim_core_attach): Delete WITH_MODULO_MEMORY == 0 logic.
1386 (sim_core_translate): Likewise.
1387 * sim-core.h: Delete mention of WITH_MODULO_MEMORY.
1388
1389 2015-11-16 Mike Frysinger <vapier@gentoo.org>
1390
1391 * sim-close.c (__cgen_cpu_close, _cgen_cpu_close): Delete.
1392 (cgen_cpu_close): Change to XCONCAT2.
1393
1394 2015-11-15 Mike Frysinger <vapier@gentoo.org>
1395
1396 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-reason.o, sim-reg.o,
1397 and sim-stop.o.
1398
1399 2015-11-14 Mike Frysinger <vapier@gentoo.org>
1400
1401 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-close.o
1402 * sim-close.c: New file.
1403
1404 2015-09-25 Andrew Bennett <andrew.bennett@imgtec.com>
1405 Ali Lown <ali.lown@imgtec.com>
1406
1407 * sim-bits.h (EXTEND6): New macro.
1408 (EXTEND12): New macro.
1409 (EXTEND25): New macro.
1410
1411 2015-06-24 Mike Frysinger <vapier@gentoo.org>
1412
1413 * sim-trace.c (trace_one_insn): Delete.
1414 * sim-trace.h (trace_one_insn): Delete.
1415
1416 2015-06-24 Mike Frysinger <vapier@gentoo.org>
1417
1418 * sim-trace.c (debug_printf): Rename to ...
1419 (sim_debug_printf): ... this.
1420 * sim-trace.h (debug_printf): Delete define.
1421 (debug_printf): Rename to ...
1422 (sim_debug_printf): ... this.
1423
1424 2015-06-24 Mike Frysinger <vapier@gentoo.org>
1425
1426 * sim-trace.c (OPTION_TRACE_REGISTER): New enum.
1427 (trace_options): Add trace-register option.
1428 (trace_option_handler): Handle OPTION_TRACE_REGISTER case.
1429 (trace_idx_to_str): Handle TRACE_REGISTER_IDX case and re-indent.
1430 * sim-trace.h (TRACE_REGISTER_IDX): New enum.
1431 (TRACE_register, WITH_TRACE_REGISTER_P, STRACE_REGISTER_P,
1432 TRACE_REGISTER_P, TRACE_REGISTER): Define.
1433
1434 2015-06-24 Mike Frysinger <vapier@gentoo.org>
1435
1436 * sim-trace.h (STRACE, STRACE_INSN, STRACE_DECODE, STRACE_EXTRACT,
1437 STRACE_LINENUM, STRACE_MEMORY, STRACE_MODEL, STRACE_ALU, STRACE_CORE,
1438 STRACE_EVENTS, STRACE_FPU, STRACE_VPU, STRACE_BRANCH, STRACE_SYSCALL,
1439 STRACE_DEBUG): Define.
1440
1441 2015-06-24 Mike Frysinger <vapier@gentoo.org>
1442
1443 * sim-trace.c (trace_options): Update help text for trace-alu,
1444 trace-fpu, trace-vpu, and trace-semantics.
1445 * sim-trace.h (TRACE_ALU_IDX): Update comment text.
1446 (TRACE_FPU_IDX, TRACE_VPU_IDX): Likewise.
1447
1448 2015-06-24 Mike Frysinger <vapier@gentoo.org>
1449
1450 * sim-assert.h (SIM_FILTER_PATH): Delete.
1451 [!SIM_ASSERT, WITH_ASSERT]: Include libiberty.h.
1452 (SIM_ASSERT): Replace SIM_FILTER_PATH with lbasename.
1453 [!ASSERT, WITH_ASSERT]: Include libiberty.h.
1454 (ASSERT): Replace SIM_FILTER_PATH with lbasename.
1455 * sim-events.c: Include libiberty.h.
1456 (ETRACE): Replace SIM_FILTER_PATH with lbasename.
1457
1458 2015-06-23 Mike Frysinger <vapier@gentoo.org>
1459
1460 * acinclude.m4 (AC_ARG_ENABLE(sim-bswap)): Call AS_HELP_STRING.
1461 (AC_ARG_ENABLE(sim-cflags)): Likewise.
1462 (AC_ARG_ENABLE(sim-debug)): Likewise.
1463 (AC_ARG_ENABLE(sim-stdio)): Likewise.
1464 (AC_ARG_ENABLE(sim-trace)): Likewise.
1465 (AC_ARG_ENABLE(sim-profile)): Likewise.
1466 (AC_ARG_ENABLE(sim-environment)): Likewise.
1467 (AC_ARG_ENABLE(sim-alignment)): Likewise.
1468 (AC_ARG_ENABLE(sim-assert)): Likewise.
1469 (AC_ARG_ENABLE(sim-bitsize)): Likewise.
1470 (AC_ARG_ENABLE(sim-endian)): Likewise.
1471 (AC_ARG_ENABLE(sim-hostendian)): Likewise.
1472 (AC_ARG_ENABLE(sim-float)): Likewise.
1473 (AC_ARG_ENABLE(sim-scache)): Likewise.
1474 (AC_ARG_ENABLE(sim-default-model)): Likewise.
1475 (AC_ARG_ENABLE(sim-inline)): Likewise.
1476 (AC_ARG_ENABLE(sim-packages)): Likewise.
1477 (AC_ARG_ENABLE(sim-regparm)): Likewise.
1478 (AC_ARG_ENABLE(sim-reserved-bits)): Likewise.
1479 (AC_ARG_ENABLE(sim-smp)): Likewise.
1480 (AC_ARG_ENABLE(sim-stdcall)): Likewise.
1481 (AC_ARG_ENABLE(sim-xor-endian)): Likewise.
1482 (AC_ARG_ENABLE(cgen-maint)): Likewise.
1483 * configure: Regenerate.
1484
1485 2015-06-23 Mike Frysinger <vapier@gentoo.org>
1486
1487 * sim-config.h (WITH_TRACE): Define to ~TRACE_debug.
1488
1489 2015-06-23 Mike Frysinger <vapier@gentoo.org>
1490
1491 * cgen-trace.c [!__STDC__]: Delete.
1492 * sim-trace.h [!__STDC__]: Likewise.
1493
1494 2015-06-21 Mike Frysinger <vapier@gentoo.org>
1495
1496 * sim-model.c (sim_model_init): Assert model is not NULL.
1497
1498 2015-06-21 Mike Frysinger <vapier@gentoo.org>
1499
1500 * sim-types.h: Move SIM_TYPES_H define to top of file. Include
1501 stdint.h. Replace all signed/unsigned typedefs with int#_t and
1502 uint#_t.
1503
1504 2015-06-21 Mike Frysinger <vapier@gentoo.org>
1505
1506 * sim-alu.h (_SIM_ALU_H_): Rename to ...
1507 (SIM_ALU_H): ... this.
1508 * sim-assert.h (_SIM_ASSERT_H_): Rename to ...
1509 (SIM_ASSERT_H): ... this.
1510 * sim-basics.h (_SIM_BASICS_H_): Rename to ...
1511 (SIM_BASICS_H): ... this.
1512 * sim-bits.h (_SIM_BITS_H_): Rename to ...
1513 (SIM_BITS_H): ... this.
1514 * sim-endian.h (_SIM_ENDIAN_H_): Rename to ...
1515 (SIM_ENDIAN_H): ... this.
1516
1517 2015-06-18 Mike Frysinger <vapier@gentoo.org>
1518
1519 * sim-syscall.c (sim_syscall_multi): Change unknown_syscall to a
1520 constant string.
1521
1522 2015-06-18 Mike Frysinger <vapier@gentoo.org>
1523
1524 * callback.c (cb_target_map_entry, cb_host_map_entry): Change map to
1525 m for sentinel testing.
1526
1527 2015-06-17 Mike Frysinger <vapier@gentoo.org>
1528
1529 * sim-syscall.c: Include errno.h and targ-vals.h.
1530 (sim_syscall_multi, sim_syscall): Define.
1531 * sim-syscall.h (sim_syscall_multi, sim_syscall): Declare.
1532 * syscall.c (cb_syscall): Extend comment.
1533
1534 2015-06-17 Mike Frysinger <vapier@gentoo.org>
1535
1536 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-syscall.o.
1537 * sim-syscall.c: New file.
1538 * sim-syscall.h: New file.
1539
1540 2015-06-17 Mike Frysinger <vapier@gentoo.org>
1541
1542 * callback.c (cb_target_map_entry, cb_host_map_entry): Define.
1543 (cb_target_to_host_syscall): Rewrite to use cb_target_map_entry.
1544 (cb_host_to_target_errno): Rewrite to use cb_host_map_entry.
1545 (cb_host_str_syscall, cb_host_str_errno, cb_host_str_signal,
1546 cb_target_str_syscall, cb_target_str_errno, cb_target_str_signal):
1547 Define.
1548 * gentmap.c (gen_targ_map_c): Output name field.
1549
1550 2015-06-12 Mike Frysinger <vapier@gentoo.org>
1551
1552 * acinclude.m4: Change configure.in to configure.ac.
1553 * sim-config.h: Likewise.
1554
1555 2015-06-12 Mike Frysinger <vapier@gentoo.org>
1556
1557 * acinclude.m4 (sim-trace): Delete -DTRACE flags.
1558 * configure: Regenerate.
1559
1560 2015-06-12 Mike Frysinger <vapier@gentoo.org>
1561
1562 * sim-trace.h (TRACE, TRACE_INSN, TRACE_DECODE, TRACE_EXTRACT,
1563 TRACE_LINENUM, TRACE_MEMORY, TRACE_MODEL, TRACE_ALU, TRACE_CORE,
1564 TRACE_EVENTS, TRACE_FPU, TRACE_VPU, TRACE_BRANCH, TRACE_SYSCALL,
1565 TRACE_DEBUG): Define.
1566
1567 2015-06-12 Mike Frysinger <vapier@gentoo.org>
1568
1569 * sim-module.c (modules): Change WITH_TRACE to WITH_TRACE_ANY_P.
1570 * sim-trace.c (trace_option_handler): Likewise.
1571 * sim-trace.h (WITH_TRACE_ANY_P): Define.
1572 (STRACE_ANY_P): Use WITH_TRACE_ANY_P.
1573 (TRACE_ANY_P): Likewise.
1574
1575 2015-06-12 Mike Frysinger <vapier@gentoo.org>
1576
1577 * cgen-run.c (sim_resume): Rename TRACE_INSN_FINI to
1578 CGEN_TRACE_INSN_FINI.
1579 * cgen-trace.c: Rename trace_insn to cgen_trace_insn,
1580 trace_result to cgen_trace_result, trace_insn_fini to
1581 cgen_trace_insn_fini, trace_insn_init to cgen_trace_insn_init,
1582 and trace_extract to cgen_trace_extract.
1583 * cgen-trace.h (trace_insn_init): Rename to ...
1584 (cgen_trace_insn_init): ... this.
1585 (trace_insn_fini): Rename to ...
1586 (cgen_trace_insn_fini): ... this.
1587 (trace_insn): Rename to ...
1588 (cgen_trace_insn): ... this.
1589 (trace_extract): Rename to ...
1590 (cgen_trace_extract): ... this.
1591 (trace_result): Rename to ...
1592 (cgen_trace_result): ... this.
1593 (TRACE_RESULT_P): Rename to ...
1594 (CGEN_TRACE_RESULT_P): ... this.
1595 (TRACE_INSN_INIT): Rename to ...
1596 (CGEN_TRACE_INSN_INIT): ... this. Change trace_insn_init to
1597 cgen_trace_insn_init.
1598 (TRACE_INSN_FINI): Rename to ...
1599 (CGEN_TRACE_INSN_FINI): ... this. Change trace_insn_fini to
1600 cgen_trace_insn_fini.
1601 (TRACE_PRINTF): Rename to ...
1602 (CGEN_TRACE_PRINTF): ... this.
1603 (TRACE_INSN): Rename to ...
1604 (CGEN_TRACE_INSN): ... this. Change trace_insn to cgen_trace_insn.
1605 (TRACE_EXTRACT): Rename to ...
1606 (CGEN_TRACE_EXTRACT): ... this. Change trace_extract to
1607 cgen_trace_extract.
1608 (TRACE_RESULT): Rename to ...
1609 (CGEN_TRACE_RESULT): ... this. Change TRACE_RESULT_P to
1610 CGEN_TRACE_RESULT_P and trace_result to cgen_trace_result.
1611 * genmloop.sh (@prefix@_pbb_before): Change TRACE_INSN_FINI to
1612 CGEN_TRACE_INSN_FINI, TRACE_INSN_INIT to CGEN_TRACE_INSN_INIT, and
1613 TRACE_INSN to CGEN_TRACE_INSN.
1614 (@prefix@_pbb_after): Change TRACE_INSN_FINI to CGEN_TRACE_INSN_FINI.
1615
1616 2015-06-11 Mike Frysinger <vapier@gentoo.org>
1617
1618 * sim-events.c (ETRACE_P): Delete.
1619 (ETRACE): Change ETRACE_P to STRACE_EVENTS_P(sd).
1620 (update_time_from_event, sim_events_schedule_vtracef): Likewise.
1621 * sim-events.h (struct _sim_events): Delete trace member.
1622 * sim-trace.c (set_trace_option_mask): Delete trace_nr check and
1623 always set STATE_TRACE_FLAGS(sd)[trace_nr] element.
1624
1625 2015-06-11 Mike Frysinger <vapier@gentoo.org>
1626
1627 * sim-trace.h (STRACE_ANY_P, STRACE_INSN_P, STRACE_DECODE_P,
1628 STRACE_EXTRACT_P, STRACE_LINENUM_P, STRACE_MEMORY_P, STRACE_MODEL_P,
1629 STRACE_ALU_P, STRACE_CORE_P, STRACE_EVENTS_P, STRACE_FPU_P,
1630 STRACE_VPU_P, STRACE_BRANCH_P, STRACE_SYSCALL_P): Define.
1631
1632 2015-06-11 Mike Frysinger <vapier@gentoo.org>
1633
1634 * sim-trace.h (TRACE_USEFUL_MASK): Change to TRACE_xxx defines.
1635
1636 2015-06-11 Mike Frysinger <vapier@gentoo.org>
1637
1638 * sim-trace.h (WITH_TRACE_P): New define.
1639 (WITH_TRACE_INSN_P, WITH_TRACE_DECODE_P, WITH_TRACE_EXTRACT_P,
1640 WITH_TRACE_LINENUM_P, WITH_TRACE_MEMORY_P, WITH_TRACE_MODEL_P,
1641 WITH_TRACE_ALU_P, WITH_TRACE_CORE_P, WITH_TRACE_EVENTS_P,
1642 WITH_TRACE_FPU_P, WITH_TRACE_VPU_P, WITH_TRACE_BRANCH_P,
1643 WITH_TRACE_SYSCALL_P, WITH_TRACE_DEBUG_P, STRACE_P, TRACE_P):
1644 Redefine to use WITH_TRACE_P.
1645
1646 2015-06-09 Mike Stump <mrs@mrs.kithrup.com>
1647
1648 * sim-events.c (sim_events_schedule_after_signal): Fix spelling
1649 mistake in call to sim_engine_abort.
1650
1651 2015-04-29 Nick Clifton <nickc@redhat.com>
1652
1653 PR 18273
1654 * sim-fpu.c (INLINE_SIM_FPU): Fix static analysis warning by
1655 increasing parenthesis around casts to signed values.
1656
1657 2015-04-21 Mike Frysinger <vapier@gentoo.org>
1658
1659 * gennltvals.sh: Add mcore support.
1660 * nltvals.def: Regenerate.
1661
1662 2015-04-21 Mike Frysinger <vapier@gentoo.org>
1663
1664 * cgen.sh: Add +x permissions.
1665 * genmloop.sh: Likewise.
1666 * gentvals.sh: Likewise.
1667 * gennltvals.sh (newlibroot): New variable to hold the path to newlib.
1668 Change all uses of srcroot for newlib to newlibroot.
1669
1670 2015-04-18 Mike Frysinger <vapier@gentoo.org>
1671
1672 * sim-base.h (SIM_CPU): New typedef.
1673
1674 2015-04-18 Mike Frysinger <vapier@gentoo.org>
1675
1676 * cgen-engine.h (CIA_ADDR): Delete.
1677 * sim-base.h: Update sim_cia example.
1678 [!CIA_ADDR] (sim_cia): New typedef.
1679
1680 2015-04-17 Mike Frysinger <vapier@gentoo.org>
1681
1682 * cgen-utils.c (cgen_rtx_error): Change CIA_GET to CPU_PC_GET.
1683 * sim-core.c (sim_core_read_buffer, sim_core_write_buffer): Likewise.
1684 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Change CIA_SET to CPU_PC_SET.
1685 * sim-run.c (sim_engine_run): Change CIA_GET to CPU_PC_GET and
1686 CIA_SET to CPU_PC_SET.
1687
1688 2015-04-15 Mike Frysinger <vapier@gentoo.org>
1689
1690 * Makefile.in (SIM_NEW_COMMON_OBJS): Add sim-cpu.o.
1691 * sim-main.h (STATE_CPU): Remove from comment and define.
1692
1693 2015-04-13 Mike Frysinger <vapier@gentoo.org>
1694
1695 * acinclude.m4 (ACX_PKGVERSION): Change GDB to SIM.
1696 * configure: Regenerate.
1697
1698 2015-04-13 Mike Frysinger <vapier@gentoo.org>
1699
1700 * sim-options.c: Include version.h.
1701 (OPTIONS_VERSION): New enum.
1702 (standard_options): Add "version".
1703 (standard_option_handler): Handle OPTIONS_VERSION.
1704
1705 2015-04-13 Mike Frysinger <vapier@gentoo.org>
1706
1707 * Makefile.in (version.o): Change to using create-version.sh from gdb.
1708 (create-version.sh): Delete.
1709
1710 2015-04-06 Mike Frysinger <vapier@gentoo.org>
1711
1712 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-engine.o and sim-hrw.o.
1713
1714 2015-04-01 Mike Frysinger <vapier@gentoo.org>
1715
1716 * run-sim.h, run.c: Delete.
1717 * tconfig.h (SIM_HAVE_PROFILE, SIM_HAVE_BIENDIAN): Delete.
1718
1719 2015-03-31 Mike Frysinger <vapier@gentoo.org>
1720
1721 * config.in, configure: Regenerate.
1722 * Make-common.in (CSEARCH): Add $(ZLIBINC).
1723 (ZLIB, ZLIBINC): Define.
1724 (BFD_LIB): Add $(ZLIB).
1725
1726 2015-03-31 Mike Frysinger <vapier@gentoo.org>
1727
1728 * cgen-mem.h (MEMOPS_INLINE): Change to EXTERN_INLINE.
1729 * cgen-ops.h (SEMOPS_INLINE): Likewise.
1730
1731 2015-03-29 Mike Frysinger <vapier@gentoo.org>
1732
1733 * sim-arange.h (SIM_ARANGE_INLINE): Move above sim_addr_range_hit_p.
1734 (sim_addr_range_hit_p): Change INLINE to SIM_ARANGE_INLINE.
1735 * sim-inline.h (INLINE2): Define to gnu_inline when available.
1736
1737 2015-03-24 Mike Frysinger <vapier@gentoo.org>
1738
1739 * sim-profile.c (profile_pc_event): Get pc via sim_pc_get. Delete
1740 usage of STATE_WATCHPOINTS.
1741 (profile_pc_init): Delete STATE_WATCHPOINTS (sd)->pc check. Change
1742 STATE_WATCHPOINTS (sd)->sizeof_pc to sizeof (sim_cia).
1743
1744 2015-03-24 Mike Frysinger <vapier@gentoo.org>
1745
1746 * tconfig.h: Note SIM_HAVE_PROFILE is deprecated.
1747
1748 2015-03-24 Mike Frysinger <vapier@gentoo.org>
1749
1750 * tconfig.h: Note SIM_HAVE_BIENDIAN is deprecated.
1751
1752 2015-03-24 Mike Frysinger <vapier@gentoo.org>
1753
1754 * acinclude.m4 (SIM_AC_OPTION_HARDWARE): Move default option setting
1755 of enable_sim_hardware to AC_ARG_ENABLE.
1756
1757 2015-03-23 Mike Frysinger <vapier@gentoo.org>
1758
1759 * acinclude.m4 (SIM_AC_OPTION_HARDWARE): Delete SIM_DV_SOCKSER_O.
1760 Add dv-sockser.o to sim_hw_objs.
1761
1762 2015-03-23 Mike Frysinger <vapier@gentoo.org>
1763
1764 * dv-sockser.c: Include config.h.
1765 * dv-sockser.h: Include sim-inline.h.
1766 [HAVE_DV_SOCKSER]: Move all prototypes here.
1767 [!HAVE_DV_SOCKSER] (dv_sockser_status, dv_sockser_write,
1768 dv_sockser_write_buffer, dv_sockser_read): New stub functions.
1769
1770 2015-03-16 Mike Frysinger <vapier@gentoo.org>
1771
1772 * gentmap.c, run.c: Convert old style prototypes.
1773
1774 2015-03-16 Mike Frysinger <vapier@gentoo.org>
1775
1776 * acinclude.m4 (SIM_AC_COMMON): Call AH_BOTTOM. Delete logic for
1777 symlinking tconfig.h to tconfig.in.
1778 * config.in, configure: Regenerate.
1779 * nrun.c, run.c, sim-basics.h: Delete tconfig.h include.
1780 * tconfig.in: Rename file ...
1781 * tconfig.h: ... here.
1782
1783 2015-03-15 Mike Frysinger <vapier@gentoo.org>
1784
1785 * dv-socker.h (dv_sockser_install): Declare.
1786 * sim-module.c: Include config.h.
1787 [HAVE_DV_SOCKSER]: Include dv-sockser.h.
1788 (modules) [HAVE_DV_SOCKSER]: Add dv_sockser_install.
1789 * sim-module.h: Include gdb/remote-sim.h.
1790
1791 2015-03-14 Mike Frysinger <vapier@gentoo.org>
1792
1793 * Make-common.in (BUILT_SRC_FROM_COMMON): Delete.
1794 (sim-inline.c): Delete rule.
1795
1796 2015-03-14 Mike Frysinger <vapier@gentoo.org>
1797
1798 * Make-common.in (SIM_RUN_OBJS): Change to nrun.o.
1799 * run.c [SIM_USE_DEPRECATED_RUN_FRONTEND]: Issue a warning.
1800 [!SIM_USE_DEPRECATED_RUN_FRONTEND]: Throw an error.
1801
1802 2015-03-14 Mike Frysinger <vapier@gentoo.org>
1803
1804 * sim-assert.h [!SIM_ASSERT, WITH_ASSERT]: Include sim-io.h.
1805 [!ASSERT, WITH_ASSERT]: Likewise.
1806 * sim-endian.c: Delete sim-io.h include.
1807
1808 2015-02-19 Mike Frysinger <vapier@gentoo.org>
1809
1810 * run-sim.h (sim_kill): Delete unused prototype.
1811
1812 2015-02-13 Chen Gang <gang.chen.5i5j@gmail.com>
1813
1814 * gentmap.c: Include "string.h".
1815
1816 2015-02-02 Chen Gang <gang.chen.5i5j@gmail.com>
1817
1818 * sim-options.c (sim_args_command): Call freeargv() when failure
1819 occurs.
1820
1821 2015-01-07 Joel Brobecker <brobecker@adacore.com>
1822
1823 * aclocal.m4, configure: Regenerate using automake 1.11.1.
1824
1825 2014-12-03 Joel Brobecker <brobecker@adacore.com>
1826
1827 * sim-io.c (sim_io_stat, sim_io_fstat): Adjust calls to "stat"
1828 and "fstat" callbacks by calls to "to_stat" and "to_fstat" (resp)
1829 callbacks following renaming in callback.h.
1830 * syscall.c (cb_syscall): Likewise. Adjust calls to "lstat"
1831 callback by call to "to_lstat" callback
1832
1833 2014-08-28 Gary Benson <gbenson@redhat.com>
1834
1835 * sim-trace.h (debug_printf): New define.
1836
1837 2014-08-19 Alan Modra <amodra@gmail.com>
1838
1839 * configure: Regenerate.
1840
1841 2014-08-15 Roland McGrath <mcgrathr@google.com>
1842
1843 * configure: Regenerate.
1844 * config.in: Regenerate.
1845
1846 2014-03-10 Mike Frysinger <vapier@gentoo.org>
1847
1848 * sim-command.c (sim_do_command): Add const to cmd.
1849 * sim-options.c (sim_args_command): Add const to cmd.
1850 * sim-options.h (sim_args_command): Add const to cmd.
1851
1852 2014-03-05 Mike Frysinger <vapier@gentoo.org>
1853
1854 * sim-hload.c (sim_load): Add const to prog.
1855 * sim-load.c (sim_load_file): Likewise.
1856 * sim-utils.c (sim_analyze_program): Likewise.
1857 * sim-utils.h (sim_analyze_program): Likewise.
1858 (sim_load_file): Likewise.
1859
1860 2014-03-04 Mike Frysinger <vapier@gentoo.org>
1861
1862 * acinclude.m4 (build_warnings): Copy from gdb/configure.ac.
1863 * callback.c (system): Delete unused prototype.
1864 (os_init): Likewise.
1865 (os_shutdown): Likewise.
1866 (os_unlink): Likewise.
1867 (os_time): Likewise.
1868 (os_system): Likewise.
1869 (os_rename): Likewise.
1870 (os_write_stdout): Likewise.
1871 (os_flush_stdout): Likewise.
1872 (os_write_stderr): Likewise.
1873 (os_flush_stderr): Likewise.
1874 (os_write): Likewise.
1875 (os_read_stdin): Likewise.
1876 (os_read): Likewise.
1877 (os_open): Likewise.
1878 (os_lseek): Likewise.
1879 (os_isatty): Likewise.
1880 (os_get_errno): Likewise.
1881 (os_close): Likewise.
1882 (os_vprintf_filtered): Likewise.
1883 (os_evprintf_filtered): Likewise.
1884 (os_error): Likewise.
1885 (fdmap): Likewise.
1886 (fdbad): Likewise.
1887 (wrap): Likewise.
1888 (wrap): Change to new style prototype.
1889 (fdbad): Likewise.
1890 (fdmap): Likewise.
1891 (os_close): Likewise.
1892 (os_poll_quit): Likewise.
1893 (os_get_errno): Likewise.
1894 (os_isatty): Likewise.
1895 (os_lseek): Likewise.
1896 (os_open): Likewise.
1897 (os_read): Likewise.
1898 (os_read_stdin): Likewise.
1899 (os_write): Likewise.
1900 (os_write_stdout): Likewise.
1901 (os_flush_stdout): Likewise.
1902 (os_write_stderr): Likewise.
1903 (os_flush_stderr): Likewise.
1904 (os_rename): Likewise.
1905 (os_system): Likewise.
1906 (os_time): Likewise.
1907 (os_unlink): Likewise.
1908 (os_stat): Likewise.
1909 (os_fstat): Likewise.
1910 (os_lstat): Likewise.
1911 (os_ftruncate): Likewise.
1912 (os_truncate): Likewise.
1913 (os_pipe): Likewise.
1914 (os_pipe_empty): Likewise.
1915 (os_pipe_nonempty): Likewise.
1916 (os_shutdown): Likewise.
1917 (os_init): Likewise.
1918 (cb_read_target_syscall_maps): Likewise.
1919 (cb_target_to_host_syscall): Likewise.
1920 (cb_host_to_target_errno): Likewise.
1921 (cb_target_to_host_open): Likewise.
1922 (cb_store_target_endian): Likewise.
1923 (cb_host_to_target_stat): Likewise.
1924 * sim-hload.c (sim_load): Change to new style prototype.
1925 * sim-load.c (sim_load_file): Change to new style prototype.
1926 (report_transfer_performance): Likewise.
1927 (xprintf_bfd_vma): Likewise.
1928 * syscall.c (cb_get_string): Change to new style prototype.
1929 (get_path): Likewise.
1930 (cb_syscall): Likewise.
1931
1932 2013-10-15 Hans-Peter Nilsson <hp@axis.com>
1933
1934 * create-version.sh: Align parameters to match those of
1935 ../../gdb/common/create-version.sh.
1936 * Make-common.in (srcsim): New variable.
1937 (version.c): Adjust call to create-version.sh as per above.
1938
1939 2013-09-23 Alan Modra <amodra@gmail.com>
1940
1941 * configure: Regenerate.
1942
1943 2013-09-03 Mike Stump <mikestump@comcast.net>
1944
1945 * sim-options.c (complete_option_list): Mark text and word const.
1946
1947 2013-06-28 Tom Tromey <tromey@redhat.com>
1948
1949 * Make-common.in (version.c): Use version.in, not
1950 common/version.in.
1951 * create-version.sh: Likewise.
1952
1953 2013-06-24 Joel Brobecker <brobecker@adacore.com>
1954
1955 * create-version.sh: New script. Adapted from
1956 gdb/commong/create-version.sh.
1957 * Make-common.in (version.c): Update rule dependencies,
1958 and re-implement using create-version.sh.
1959
1960 2013-06-21 Nick Clifton <nickc@redhat.com>
1961
1962 * gennltvals.sh: Add msp430 support.
1963 * nltvals.def: Regenerate.
1964
1965 2013-06-03 Mike Frysinger <vapier@gentoo.org>
1966
1967 * acinclude.m4: Replace maintainer-mode code with AM_MAINTAINER_MODE.
1968 * aclocal.m4, configure: Regenerate.
1969
1970 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
1971
1972 PR build/15414:
1973 * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Do not use
1974 -Wformat-nonliteral with -Wno-format.
1975
1976 2013-03-26 Mike Frysinger <vapier@gentoo.org>
1977
1978 * acinclude.m4: Regenerate.
1979
1980 2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
1981
1982 * acinclude.m4: Add SIM_DV_SOCKSER_O which is empty on hosts
1983 which do not support dv-sockser.o. Add always as option to
1984 first argument to SIM_AC_OPTION_HARDWARE. Fail if hardware
1985 is always required to be enabled by simulator.
1986
1987 2012-08-28 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1988
1989 * gennltvals.sh: Use libgloss/syscall.h for cr16.
1990 * nltvals.def: Regenerate.
1991
1992 2012-06-16 Joel Brobecker <brobecker@adacore.com>
1993
1994 * acinclude.m4 (SIM_AC_COMMON): Define PACKAGE.
1995 * config.in, configure: Regenerate.
1996
1997 2012-05-24 Pedro Alves <palves@redhat.com>
1998
1999 * sim-signal.h (sim_signal_to_target): Rename to ...
2000 (sim_signal_to_gdb_signal): ... this.
2001 * sim-signal.c (sim_signal_to_target): Rename to ...
2002 (sim_signal_to_gdb_signal): ... this.
2003 * sim-reason.c (sim_stop_reason): Adjust to rename.
2004
2005 2012-05-24 Pedro Alves <palves@redhat.com>
2006
2007 PR gdb/7205
2008
2009 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
2010
2011 2012-05-24 Pedro Alves <palves@redhat.com>
2012
2013 PR gdb/7205
2014
2015 Replace target_signal with gdb_signal throughout.
2016
2017 2012-05-18 Nick Clifton <nickc@redhat.com>
2018
2019 PR 14072
2020 * callback.c: Include config.h before system header files.
2021 * cgen-trace.c: Likewise.
2022 * cgen-utils.c: Likewise.
2023 * gentmap.c: Likewise.
2024
2025 2012-04-02 Mike Frysinger <vapier@gentoo.org>
2026
2027 * hw-ports.c (hw_port_decode): Change "Unreconized" to "Unrecognized".
2028
2029 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
2030
2031 * sim-trace.c: Update the function prototype of save_data_size.
2032 Move the enum data_fmt from here...
2033 * sim-trace.h: ...to here.
2034 Add function prototype of save_data.
2035
2036 2012-03-25 Mike Frysinger <vapier@gentoo.org>
2037
2038 * sim-core.h (sim_core_trans_addr): Add prototype.
2039
2040 2012-03-24 Hans-Peter Nilsson <hp@axis.com>
2041
2042 * nrun.c: Add #ifdef HAVE_CONFIG_H and associated includes stanza
2043 missing in last change.
2044
2045 2012-03-24 Mike Frysinger <vapier@gentoo.org>
2046
2047 * acinclude.m4 (SIM_AC_COMMON): Call AC_USE_SYSTEM_EXTENSIONS.
2048 * nrun.c: Include string.h/strings.h.
2049 * aclocal.m4, config.in, configure: Regenerate.
2050
2051 2012-03-22 Mike Frysinger <vapier@gentoo.org>
2052
2053 * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Copy AC_ARG_ENABLE(werror),
2054 WERROR_CFLAGS, and build_warnings from gdb/configure.ac. Comment
2055 out -Werror initialization.
2056
2057 2012-03-19 Mike Frysinger <vapier@gentoo.org>
2058
2059 * Make-common.in (TAGS): Change a-z to [:lower:].
2060 * acinclude.m4 (sim-trace): Likewise.
2061 * gennltvals.sh: Change A-Z0-9 to [:upper:][:digit:].
2062 Change A-Za-z0-9 to [:alnum:].
2063
2064 2012-03-18 Mike Frysinger <vapier@gentoo.org>
2065
2066 * nrun.c (main): Display strsignal of sigrc.
2067
2068 2012-01-06 Mike Frysinger <vapier@gentoo.org>
2069
2070 * Makefile.in (abs_srcdir): Declare.
2071 (srcroot): Define in terms of abs_srcdir.
2072 (headers): Change srcdir to abs_srcdir.
2073
2074 2012-01-02 Joel Brobecker <brobecker@adacore.com>
2075
2076 * dv-sockser.h, sim-assert.h, sim-fpu.c: Reformat the copyright
2077 header.
2078
2079 2011-12-19 Joel Brobecker <brobecker@adacore.com>
2080
2081 * Make-common.in (hw-config.h): Work around bug in Solaris 2.8
2082 system bourne shell.
2083
2084 2011-12-03 Mike Frysinger <vapier@gentoo.org>
2085
2086 * syscall.c (cb_get_string): Rename from "get_string".
2087 (get_path): Rename get_string call to cb_get_string.
2088
2089 2011-12-03 Mike Frysinger <vapier@gentoo.org>
2090
2091 * Make-common.in (VPATH): Add $(srccom).
2092 (DEP): Delete.
2093 (DEPMODE, DEPDIR, depcomp, COMPILE.pre, COMPILE.post, COMPILE,
2094 POSTCOMPILE): New variables.
2095 (.c.o): Replace recipe with call to $(COMPILE) and $(POSTCOMPILE).
2096 Include dependency files, when using GNU Make. Delete all
2097 dependency-only rules.
2098 * aclocal.m4: Include ../../config/depstand.m4. Call
2099 ZW_CREATE_DEPDIR and ZW_PROG_COMPILER_DEPENDENCIES.
2100 (MAKE, GMAKE): New substs.
2101
2102 2011-11-07 Mike Frysinger <vapier@gentoo.org>
2103
2104 PR sim/13161
2105 * configure.ac (AC_CHECK_FUNCS): Add posix_fallocate.
2106 * configure, config.in: Regenerate.
2107 * dv-cfi.c (attach_cfi_regs): Check for HAVE_POSIX_FALLOCATE.
2108
2109 2011-10-19 Mike Frysinger <vapier@gentoo.org>
2110
2111 * acinclude.m4: Call AC_CHECK_LIB when $hardware contains cfi.
2112
2113 2011-10-18 John Wehle <john@feith.com> (tiny patch)
2114
2115 * sim-profile.c (profile_info): Only print the title once.
2116
2117 2011-10-17 Mike Frysinger <vapier@gentoo.org>
2118
2119 * acinclude.m4: Rename from aclocal.m4.
2120 * aclocal.m4: Regenerate.
2121
2122 2011-10-17 Mike Frysinger <vapier@gentoo.org>
2123
2124 * aclocal.m4: Change AC_PREREQ comment to 2.64.
2125 * common.m4: Delete.
2126 * configure.ac: Change AC_PREREQ to 2.64. Replace AC_CONFIG_HEADER
2127 call and common.m4 include with SIM_AC_COMMON(cconfig.h).
2128 * configure: Regenerate.
2129
2130 2011-10-14 Alexey Makhalov <makhaloff@gmail.com>
2131
2132 * sim-alu.h (ALU32_AND): Clear carry flag.
2133 (ALU32_AND): Clear carry flag.
2134
2135 2011-10-09 Mike Frysinger <vapier@gentoo.org>
2136
2137 * dv-cfi.c: Include stdbool.h.
2138
2139 2011-10-09 Mike Frysinger <vapier@gentoo.org>
2140
2141 * dv-cfi.c: Replace devices.h include with hw-base.h and hw-main.h.
2142
2143 2011-10-04 Mike Frysinger <vapier@gentoo.org>
2144
2145 * aclocal.m4 (SIM_AC_COMMON): Call AM_ZLIB, ACX_PKGVERSION, and
2146 ACX_BUGURL. Define PKGVERSION and REPORT_BUGS_TO.
2147
2148 2011-07-12 Mike Frysinger <vapier@gentoo.org>
2149
2150 * sim-command.c: Include sim-options.h.
2151
2152 2011-07-12 Mike Frysinger <vapier@gentoo.org>
2153
2154 * aclocal.m4: Move sinclude comment after AC_INIT comment.
2155
2156 2011-07-12 Mike Frysinger <vapier@gentoo.org>
2157
2158 * aclocal.m4 (SIM_AC_COMMON): Call AC_REQUIRE on AC_PROG_CC.
2159 Delete direct call to AC_PROG_CC.
2160
2161 2011-07-05 Mike Frysinger <vapier@gentoo.org>
2162
2163 * sim-command.c: New file.
2164 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-command.o.
2165 (sim-command.o): New rule.
2166
2167 2011-05-27 Mike Frysinger <vapier@gentoo.org>
2168
2169 * sim-options.c (standard_option_handler): Remove arg[0] check
2170 when freeing simulator_sysroot. Only strdup arg when arg[0] is
2171 not an empty string, otherwise assign "" back to it.
2172
2173 2011-05-26 Mike Frysinger <vapier@gentoo.org>
2174
2175 * nltvals.def: Regenerate to include Blackfin syscalls again.
2176
2177 2011-05-25 Mike Frysinger <vapier@gentoo.org>
2178
2179 * sim-trace.c (OPTION_TRACE_SYSCALL): New enum.
2180 (trace_options): Handle "trace-syscall" with OPTION_TRACE_SYSCALL.
2181 (trace_option_handler): Handle OPTION_TRACE_SYSCALL.
2182 (trace_idx_to_str): Likewise.
2183 * sim-trace.h (TRACE_SYSCALL_IDX): New enum.
2184 (TRACE_syscall): Define.
2185 (WITH_TRACE_SYSCALL_P): Likewise.
2186 (TRACE_SYSCALL_P): Likewise.
2187
2188 2011-05-23 Mike Frysinger <vapier@gentoo.org>
2189
2190 * dv-glue.c (hw_glue_finish): Move "name" to function scope and
2191 remove now-unnecessary sub-scope for glue->type setting.
2192 Check to see if the "reg" property exists before we use it, and
2193 if it doesn't exist, error out for "glue" devices.
2194
2195 2011-05-23 Mike Frysinger <vapier@gentoo.org>
2196
2197 * dv-glue.c (hw_glue_finish): Set type to glue_or when name is
2198 glue-or, and set type to glue_xor when name is glue-xor.
2199 (hw_glue_port_event): Return immediately when type is glue_io
2200 or unmatched. Handle glue_or and glue_xor types. Move HW_TRACE
2201 and hw_port_event calls from glue_and to end of function.
2202
2203 2011-05-11 Mike Frysinger <vapier@gentoo.org>
2204
2205 * callback.c, dv-pal.c, dv-sockser.c, hw-base.c, hw-device.c,
2206 hw-instances.c, hw-ports.c, hw-properties.c, hw-tree.c, sim-abort.c,
2207 sim-arange.c, sim-config.c, sim-core.c, sim-engine.c, sim-events.c,
2208 sim-hw.c, sim-io.c, sim-memopt.c, sim-options.c, sim-profile.c,
2209 sim-resume.c, sim-stop.c, syscall.c: Add space before parenthesis
2210 around function arguments.
2211
2212 2011-04-14 Mike Frysinger <vapier@gentoo.org>
2213
2214 * sim-options.c (complete_option_list, sim_complete_command):
2215 New functions.
2216
2217 2011-04-02 Mike Frysinger <vapier@gentoo.org>
2218
2219 * dv-glue.c: Fix up style.
2220
2221 2011-04-02 Mike Frysinger <vapier@gentoo.org>
2222
2223 * hw-alloc.c (hw_alloc_data): Adjust brace.
2224 * hw-base.c (hw_base_data): Likewise.
2225 (generic_hw_unit_decode): Fix indentation.
2226 * hw-device.h (_hw_unit, enum, hw): Adjust braces.
2227 * hw-events.c (hw_event, hw_event_data): Likewise.
2228 * hw-handles.c (hw_handle_mapping, hw_handle_data): Likewise.
2229 * hw-instances.c (hw_instance_data): Likewise.
2230 * hw-instances.h (hw_instance): Likewise.
2231 * hw-main.h (hw_descriptor, enum): Likewise.
2232 * hw-ports.c (hw_port_edge, hw_port_data, empty_hw_ports): Likewise.
2233 * hw-ports.h (hw_port_descriptor): Likewise.
2234 * hw-properties.c (hw_property_data): Likewise.
2235 * hw-properties.h (enum, hw_property, _ihandle_runtime_property_spec,
2236 _range_property_spec, _reg_property_spec): Likewise.
2237 * hw-tree.c (_name_specifier, printer): Likewise.
2238 (split_device_specifier, parse_string_property, hw_tree_traverse,
2239 print_size, print_reg_property, print_string, print_properties):
2240 Fix indentation.
2241
2242 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2243
2244 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Add cfi to default list.
2245 * Make-common.in (dv-cfi.o): New rule.
2246 * dv-cfi.c, dv-cfi.h: New files.
2247
2248 2011-03-21 Kevin Buettner <kevinb@redhat.com>
2249
2250 * gennltvals.sh: Search sys/_default_fcntl.h, in addition to
2251 fcntl.h and sys/fcntl.h, for constants.
2252 * nltvals.def: Regenerate.
2253 * sim-io.c (sim_io_stat, sim_io_fstat): New functions.
2254 * sim-io.h (sys/types.h, sys/stat.h): Include.
2255 (sim_io_stat, sim_io_fstat): Declare.
2256
2257 2011-03-14 Mike Frysinger <vapier@gentoo.org>
2258
2259 * callback.c, cgen-engine.h, dv-core.c, dv-glue.c, dv-pal.c,
2260 hw-base.c, hw-device.c, hw-device.h, hw-handles.c, hw-instances.c,
2261 hw-ports.c, hw-ports.h, hw-properties.c, hw-tree.c, nrun.c,
2262 run-sim.h, run.c, sim-alu.h, sim-assert.h, sim-base.h, sim-basics.h,
2263 sim-config.c, sim-core.c, sim-core.h, sim-engine.h, sim-events.c,
2264 sim-events.h, sim-fpu.c, sim-hw.c, sim-inline.h, sim-load.c,
2265 sim-memopt.c, sim-n-core.h, sim-options.c, sim-profile.c,
2266 sim-signal.c, sim-trace.c, sim-trace.h, sim-utils.c, sim-watch.c,
2267 syscall.c: Trim trailing whitespace.
2268
2269 2011-03-05 Mike Frysinger <vapier@gentoo.org>
2270
2271 * gennltvals.sh: Handle bfin targets.
2272 * nltvals.def: Regenerate.
2273
2274 2011-02-25 Kevin Buettner <kevinb@redhat.com>
2275
2276 * callback.c (fdbad): Return EBADF rather than EINVAL for bad
2277 file descriptors.
2278
2279 2011-02-14 Mike Frysinger <vapier@gentoo.org>
2280
2281 * hw-alloc.c (hw_alloc_data): Delete zalloc_p.
2282 (hw_zalloc, hw_malloc): Delete zalloc_p reference.
2283 (hw_free): Drop zfree logic and always call free.
2284 * hw-base.c (hw_delete): Change zfree to free.
2285 * hw-handles.c (hw_handle_remove_ihandle): Likewise.
2286 (hw_handle_remove_phandle): Likewise.
2287 * hw-instances.c (hw_instance_delete): Likewise.
2288 * hw-tree.c (parse_reg_property): Likewise.
2289 (parse_ranges_property): Likewise.
2290 (parse_string_property): Likewise.
2291 * sim-core.c (sim_core_uninstall): Likewise.
2292 * sim-cpu.c (sim_cpu_free_all): Likewise.
2293 * sim-hw.c (sim_hw_uninstall): Likewise.
2294 * sim-memopt.c (do_memopt_delete): Likewise.
2295 (sim_memory_uninstall): Likewise.
2296 * sim-module.c (sim_module_uninstall): Likewise.
2297 * sim-options.c (sim_parse_args): Likewise.
2298 * sim-profile.c (profile_pc_cleanup): Likewise.
2299 (profile_uninstall): Likewise.
2300 * sim-watch.c (do_watchpoint_delete): Likewise.
2301 * sim-utils.c (zfree): Delete.
2302 (sim_state_free): Change zfree to free.
2303 * sim-utils.h (zfree): Delete.
2304
2305 2011-02-13 Mike Frysinger <vapier@gentoo.org>
2306
2307 * sim-events.h (_sim_events.time_from_event): Change type to signed64.
2308
2309 2011-01-12 Mike Frysinger <vapier@gentoo.org>
2310
2311 * sim-hw.c (sim_hw_uninstall): Uncomment hw_tree_delete.
2312
2313 2011-01-12 Mike Frysinger <vapier@gentoo.org>
2314
2315 * sim-module.c (sim_pre_argv_init): Return SIM_RC_FAIL when asprintf
2316 fails.
2317 * sim-options.c (sim_parse_args): Issue an error and return SIM_RC_FAIL
2318 when asprintf fails.
2319 * sim-utils.c (sim_do_commandf): Issue an error and return when
2320 asprintf fails.
2321 * sim-watch.c (sim_watchpoint_install): Return SIM_RC_FAIL when
2322 asprintf fails.
2323
2324 2011-01-11 Mike Frysinger <vapier@gentoo.org>
2325
2326 * sim-memopt.c (do_memopt_add): Set nr_bytes to s.st_size before
2327 bytes has been calculated and when mmap_next_fd is valid and
2328 nr_bytes is 0.
2329 (memory_option_handler): Allow missing size when mmap_next_fd is
2330 valid.
2331
2332 2011-01-10 Mike Frysinger <vapier@gentoo.org>
2333
2334 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Set $hardware to $2 when $2 is
2335 not empty, and always append $3 to $hardware.
2336
2337 2011-01-10 Mike Frysinger <vapier@gentoo.org>
2338
2339 * hw-device.h (hw_abort, hw_vabort, hw_halt): Add noreturn attribute.
2340 * sim-hw.h (sim_hw_abort): Likewise.
2341
2342 2011-01-05 Mike Frysinger <vapier@gentoo.org>
2343
2344 * sim-load.c (sim_load_file): Change buffer type to unsigned char *.
2345
2346 2011-01-05 Joel Brobecker <brobecker@adacore.com>
2347
2348 * run.1: Copyright year update.
2349
2350 2010-12-28 Mike Frysinger <vapier@gentoo.org>
2351
2352 * hw-alloc.h (HW_NALLOC): Define.
2353
2354 010-12-28 Mike Frysinger <vapier@gentoo.org>
2355
2356 * hw-alloc.h (HW_NZALLOC): Change ME,TYPE,N to me,type,n.
2357
2358 2010-12-15 Mike Frysinger <vapier@gentoo.org>
2359
2360 * sim-memopt.c (OPTION_MAP_INFO): Define.
2361 (memory_options): Handle --map-info.
2362 (memory_option_handler): Handle OPTION_MAP_INFO.
2363
2364 2010-11-22 Mike Frysinger <vapier@gentoo.org>
2365
2366 * sim-profile.c (PROFILE_PC_FREQ, PROFILE_PC_NR_BUCKETS,
2367 PROFILE_PC_SHIFT, PROFILE_PC_START, PROFILE_PC_END,
2368 PROFILE_INSN_COUNT): Add stubs when profile is disabled.
2369
2370 2010-11-22 Mike Frysinger <vapier@gentoo.org>
2371
2372 * sim-core.c (WITH_HW): Add device casts to device_error,
2373 device_io_read_buffer, and device_io_write_buffer.
2374
2375 2010-11-16 Mike Frysinger <vapier@gentoo.org>
2376
2377 * dv-sockser.c (dv_sockser_write_buffer): New function.
2378 (dv_sockser_write): Rewrite to use dv_sockser_write_buffer.
2379 * dv-sockser.h (dv_sockser_write_buffer): New prototype.
2380
2381 2010-10-07 Hans-Peter Nilsson <hp@axis.com>
2382
2383 * callback.c (os_lseek): Call wrap on lseek result.
2384
2385 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
2386
2387 * dv-sockser.c (dv_sockser_init): Check error return from socket()
2388 call by its equality to -1 not by it being negative.
2389 (connected_p): Likewise for accept() call.
2390
2391 2010-04-23 Mike Frysinger <vapier@gentoo.org>
2392
2393 * sim-fpu.c (sim_fpu_zero, sim_fpu_qnan): Add 0 initializers.
2394
2395 2010-04-21 Mike Frysinger <vapier@gentoo.org>
2396
2397 * profile.c (sim_profile_print_bar): Add cpu argument.
2398
2399 2010-04-21 Mike Frysinger <vapier@gentoo.org>
2400
2401 * sim-profile.h (sim_profile_print_bar): Use sim_cpu, not SIM_CPU.
2402
2403 2010-04-21 Mike Frysinger <vapier@gentoo.org>
2404
2405 * sim-profile.c (profile_vprintf, profile_printf): New functions.
2406 (profile_print_pc): Convert sim_io_printf to profile_printf.
2407 (profile_print_insn): Likewise.
2408 (profile_print_memory): Likewise.
2409 (profile_print_core): Likewise.
2410 (profile_print_model): Likewise.
2411 (sim_profile_print_bar): Likewise.
2412 (profile_print_speed): Likewise.
2413 (profile_print_addr_ranges): Likewise.
2414 (profile_info): Likewise.
2415 * sim-profile.h (sim_profile_print_bar): Add cpu argument.
2416
2417 2010-04-19 Mike Frysinger <vapier@gentoo.org>
2418
2419 * sim-model.c (OPTION_MODEL): Convert to enum.
2420 (OPTION_MODEL_INFO): New enum.
2421 (model_options): Add model-info/info-model entries.
2422 (model_option_handler): Handle OPTION_MODEL_INFO.
2423
2424 2010-04-13 Mike Frysinger <vapier@gentoo.org>
2425
2426 * dv-sockser.h (DV_SOCKSER_DISCONNECTED): Define.
2427 * dv-sockser.c (dv_sockser_status): Set DV_SOCKSER_DISCONNECTED
2428 initially.
2429
2430 2010-04-13 Mike Frysinger <vapier@gentoo.org>
2431
2432 * sim-hrw.c (sim_write): Add const to buf arg.
2433 * sim-utils.h (sim_write_fn): Likewise.
2434
2435 2010-04-12 Mike Frysinger <vapier@gentoo.org>
2436
2437 * sim-profile.h (PROFILE_BRANCH_TAKEN, PROFILE_BRANCH_UNTAKEN): New
2438 defines.
2439
2440 2010-04-12 Mike Frysinger <vapier@gentoo.org>
2441
2442 * dv-core.c (dv_core_descriptor): Add NULL initializer.
2443 * dv-glue.c (hw_glue_ports, dv_glue_descriptor): Likewise.
2444 * dv-pal.c (hw_pal_ports, dv_pal_descriptor): Likewise.
2445 * dv-sockser.c (sockser_options): Likewise.
2446 * hw-ports.c (empty_hw_ports): Likewise.
2447 * sim-hw.c (hw_options): Likewise.
2448 * sim-model.c (model_options): Likewise.
2449 * sim-options.c (standard_options): Likewise.
2450 * sim-profile.c (profile_options): Likewise.
2451 * sim-trace.c (trace_options): Likewise.
2452 * sim-watch.c (watchpoint_options): Likewise.
2453
2454 2010-04-12 Mike Frysinger <vapier@gentoo.org>
2455
2456 * sim-options.c (dup_arg_p): Add "const" to the "arg" argument,
2457 the local "arg_table" variable, and the xmalloc cast.
2458
2459 2010-04-10 Mike Frysinger <vapier@gentoo.org>
2460
2461 * sim-fpu.c (sim_fpu_print_status): Add const markings to local
2462 "prefix" var.
2463 (sim_fpu_print_func): Add const markings to format buffer.
2464
2465 2010-04-10 Mike Frysinger <vapier@gentoo.org>
2466
2467 * sim-fpu.c (sim_fpu_print_status): Remove duplicate break statements.
2468
2469 2010-04-10 Mike Frysinger <vapier@gentoo.org>
2470
2471 * sim-trace.c (save_data): Add const markings to "buf" argument.
2472
2473 2010-04-10 Mike Frysinger <vapier@gentoo.org>
2474
2475 * sim-options.c (standard_option_handler): Add const markings to
2476 local "type" var.
2477
2478 2010-04-02 Mike Frysinger <vapier@gentoo.org>
2479
2480 * hw-ports.h: Fix spelling typos.
2481
2482 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2483
2484 * configure.ac: Check for socklen_t.
2485 * configure, config.in: Regenerated.
2486 * dv-sockser.c (connected_p): Change addrlen type to socklen_t.
2487
2488 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2489
2490 * sim-utils.c (sim_io_eprintf_cpu): Use %s with printf string.
2491 * sim-hw.c (hw_option_handler): Likewise.
2492
2493 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2494
2495 * sim-watch.c (watchpoint_type_to_str): Add const to return.
2496 (interrupt_nr_to_str): Likewise.
2497 (default_interrupt_names): Add const to pointer type.
2498 (sim_watchpoint_install): Add const to prefix.
2499 * sim-watch.h (struct _sim_watchpoints): Add const to interrupt_names.
2500
2501 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2502
2503 * sim-core.c (sim_core_read_buffer): Change raddr to address_word.
2504 (sim_core_write_buffer): Likewise.
2505
2506 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2507
2508 * sim-trace.c (trace_option_handler): Move cpu_nr decl behind
2509 the SIM_HAVE_ADDR_RANGE define.
2510
2511 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2512
2513 * sim-core.h (device_error): Add const to message, and add printf
2514 format attribute.
2515
2516 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2517
2518 * sim-profile.c (profile_print_addr_ranges): Wrap with the
2519 SIM_HAVE_ADDR_RANGE define.
2520
2521 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2522
2523 * dv-glue.c (hw_glue_ports): Swap static and const.
2524
2525 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2526
2527 * nrun.c (usage): Use void in definition.
2528 * sim-options.c (dup_arg_p): Convert old-style function definition.
2529 (sim_parse_args): Likewise.
2530 (sim_print_help): Likewise.
2531 * sim-trace.c (set_trace_option_mask): Likewise.
2532 (set_trace_option): Likewise.
2533 * sim-utils.c (sim_analyze_program): Likewise.
2534 (sim_elapsed_time_get): Likewise.
2535 (sim_elapsed_time_since): Likewise.
2536
2537 2010-03-22 Mike Frysinger <vapier@gentoo.org>
2538
2539 * sim/common/sim-options.c (enum): Remove SIM_HAVE_BIENDIAN ifdef.
2540 (standard_options): Likewise.
2541 (standard_option_handler): Likewise.
2542
2543 2010-03-16 Mike Frysinger <vapier@gentoo.org>
2544
2545 * hw-ports.c (TRACE): Delete.
2546 * hw-properties.c (TRACE): Delete.
2547 (hw_find_ihandle_runtime_property): Change TRACE to HW_TRACE.
2548 (hw_find_integer_property): Likewise.
2549 (hw_find_integer_array_property): Likewise.
2550 (hw_add_duplicate_property): Likewise.
2551
2552 2010-03-15 Mike Frysinger <vapier@gentoo.org>
2553
2554 * hw-properties.h (hw_add_boolean_property): Rename "bool" to
2555 "boolean".
2556
2557 2010-02-04 Mike Frysinger <vapier@gentoo.org>
2558
2559 * sim-model.c: Include sim-model.h
2560
2561 2010-02-04 Mike Frysinger <vapier@gentoo.org>
2562
2563 * sim-base.h: Declare sim_state.cpu as a pointer in the comment. Drop
2564 & from the STATE_CPU() examples.
2565
2566 2010-01-24 Doug Evans <dje@sebabeach.org>
2567
2568 * cgen-accfp.c (fextsfdf): New arg how. All callers updated.
2569 (ftruncdfsf, floatsisf, flostsidf, ufloatsisf, fixsfsi, fixdfsi,
2570 ufixsfsi): Ditto.
2571 * cgen-fpu.h (CGEN_FPCONV_KIND): New enum.
2572 (struct cgen_fp_ops): Update signatures of floating point conversion
2573 operations.
2574
2575 * Make-common.in (CGEN_SIM_DEPS): Define.
2576 (CGEN_INCLUDE_DEPS): Use it.
2577 (CGEN_MAIN_CPU_DEPS): Simplify.
2578
2579 2010-01-22 Doug Evans <dje@sebabeach.org>
2580
2581 * cgen-ops.h (SUBWORDXFSI): Fix word ordering.
2582 (SUBWORDTFSI, JOINSIDI): Ditto.
2583
2584 2010-01-05 Doug Evans <dje@sebabeach.org>
2585
2586 * cgen-types.h (SETDI): Delete, unused.
2587
2588 2009-12-02 Doug Evans <dje@sebabeach.org>
2589
2590 * cgen-engine.h: Remove duplicated comment.
2591
2592 2009-11-23 Doug Evans <dje@sebabeach.org>
2593
2594 * cgen-engine.h (EXTRACT_MSB0_SINT): Renamed from EXTRACT_MSB0_INT.
2595 (EXTRACT_LSB0_SINT): Renamed from EXTRACT_LSB0_INT.
2596
2597 2009-11-22 Doug Evans <dje@sebabeach.org>
2598
2599 * cgen-engine.h (EXTRACT_MSB0_LGSINT, EXTRACT_MSB0_LGUINT): Define.
2600 (EXTRACT_LSB0_LGSINT, EXTRACT_LSB0_LGUINT): Define.
2601 (EXTRACT_FN, SEMANTIC_FN): Use CGEN_INSN_WORD in prototype
2602 instead of CGEN_INSN_INT.
2603
2604 * cgen-trace.h (trace_extract): Add cast to fix warning.
2605
2606 2009-11-05 Doug Evans <dje@sebabeach.org>
2607
2608 * cgen-mem.h (DECLARE_GETT): Don't inline.
2609 (DECLARE_SETT): Ditto.
2610
2611 2009-10-15 Joel Sherrill <joel.sherrill@oarcorp.com>
2612
2613 * sim-inline.h: Fix spelling error.
2614
2615 2009-10-02 Ralf Corsepius <ralf.corsepius@rtems.org>
2616
2617 * Make-common.in: Add datarootdir.
2618
2619 2009-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2620
2621 * aclocal.m4 (SIM_CHECK_MEMBER, SIM_CHECK_MEMBERS)
2622 (SIM_CHECK_MEMBERS_1): Remove.
2623 * configure.ac: Replace SIM_CHECK_MEMBERS call with equivalent
2624 AC_CHECK_MEMBERS one.
2625 * configure: Regenerate.
2626
2627 * aclocal.m4 (SIM_CHECK_MEMBER): Use AU_ALIAS to define, not defn.
2628 * configure: Regenerate.
2629
2630 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2631
2632 * config.in: Regenerate.
2633 * configure: Likewise.
2634
2635 * aclocal.m4 (SIM_CHECK_MEMBER): Replace definition with
2636 definition of AC_CHECK_MEMBER.
2637
2638 * aclocal.m4: m4_include toplevel config/override.m4.
2639 * configure: Regenerate.
2640
2641 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2642
2643 * Makefile.in (datarootdir): New variable.
2644
2645 2009-07-07 Doug Evans <dje@sebabeach.org>
2646
2647 * Make-common.in (CPU_DIR): Define.
2648
2649 2009-07-06 Doug Evans <dje@sebabeach.org>
2650
2651 * Make-common.in (CGEN_CPU_EXTR,CGEN_CPU_READ): Pass canonical
2652 identifiers for file types rather than encoding internal
2653 implementation details of cgen.sh.
2654 (CGEN_CPU_WRITE,CGEN_CPU_SEM,CGEN_CPU_SEMSW): Ditto.
2655 * cgen.sh: Add support for parallel makes.
2656 Rewrite cpu/decode handling to avoid generating "extrafiles" twice.
2657
2658 2009-05-18 Jon Beniston <jon@beniston.com>
2659
2660 * gennltvals.sh: Add lm32 target.
2661 * nltvals.def: Add lm32 syscall definitions.
2662
2663 2009-03-19 J"orn Rennecke <joern.rennecke@arc.com> (tiny change)
2664
2665 Speed up simulator startup:
2666 * sim-utils.c (zalloc): Use xcalloc.
2667
2668 2009-01-07 Hans-Peter Nilsson <hp@axis.com>
2669
2670 * cgen-ops.h (ADDQI, SUBQI, MULQI, NEGQI, ABSQI, ADDHI, SUBHI)
2671 (MULHI, NEGHI, ABSHI, ADDSI, SUBSI, MULSI, NEGSI, ABSSI, ADDDI)
2672 (SUBDI, MULDI, NEGDI, ABSDI): Cast arguments to the unsigned type
2673 variant; UQI, UHI, USI, UDI, and cast the result to the signed
2674 type, QI, HI, SI, DI.
2675
2676 * callback.c (os_error): Mark as being a noreturn function.
2677 * sim-io.h (sim_io_error): Similar for sim_io_error.
2678
2679 2008-11-12 Joel Sherrill <joel.sherrill@oarcorp.com>
2680
2681 * aclocal.m4: Fix underquoting of function names.
2682
2683 2008-10-21 Julian Brown <julian@codesourcery.com>
2684
2685 * Make-common.in (run$(EXEEXT)): Add LDFLAGS.
2686
2687 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
2688
2689 * common.m4: Add test for libz and zlib.h.
2690 * configure: Regenerate to track ../common/common.m4 changes.
2691 * config.in: Ditto.
2692
2693 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
2694 Daniel Jacobowitz <dan@codesourcery.com>
2695 Joseph Myers <joseph@codesourcery.com>
2696
2697 * aclocal.m4: Include ../../config/acx.m4.
2698 * common.m4: Use ACX_PKGVERSION and ACX_BUGURL.
2699 * configure, config.in: Regenerate.
2700 * Make-common.in (LIB_OBJS): Add version.o.
2701 (version.c, version.o): New rules.
2702 * run.c: Include version.h.
2703 (usage): Add help parameter. Print output either to stdout or
2704 stderr depending on that parameter.
2705 (print_version): New.
2706 (main): Check for --help and --version.
2707 * run-sim.h (sim_target_display_usage): Add help parameter.
2708 * version.h: New.
2709
2710 2008-04-14 Hans Kester <kester.hans@gmail.com>
2711
2712 * sim-signal.c: Define missing signals for _WIN32.
2713
2714 2008-02-12 M Ranga Swami Reddy <MR.Swami.Reddy@nsc.com>
2715
2716 * gennltvals.sh: Add cr16.
2717 * nltvals.def: Rebuild.
2718
2719 2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com>
2720
2721 * callback.c (cb_is_stdin, cb_is_stdout, cb_is_stderr): Add functions.
2722 * syscall.c (cb_syscall): Test for stdin/out/err, not just fd 0/1/2.
2723
2724 2007-08-10 Nick Clifton <nickc@redhat.com>
2725
2726 * sim-memopt.c (memory_options): Mention that the
2727 --memory-size switch accepts suffixes.
2728 (parse_size): Handle a suffix on the size value.
2729 * sim-options.c (standard_options): Mention that the mem-size
2730 switch accepts suffixes.
2731 (standard_option_handler): Handle a suffix on the size value.
2732
2733 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
2734
2735 * acconfig.h: Remove.
2736 * config.in: Regenerate.
2737
2738 2006-11-07 Thiemo Seufer <ths@mips.com>
2739
2740 * gentmap.c: Fix compile time warning.
2741
2742 2006-11-07 Thiemo Seufer <ths@mips.com>
2743
2744 * sim-base.h (text_start, text_end, start_addr): Use bfd_vma type
2745 for bfd text addresses.
2746
2747 2006-08-29 Thiemo Seufer <ths@mips.com>
2748 Nigel Stephens <nigel@mips.com>
2749
2750 * sim-fpu.c (pack_fpu): Handle QUIET_NAN correctly for
2751 SIM_QUIET_NAN_NEGATED.
2752
2753 2006-08-29 Nigel Stephens <nigel@mips.com>
2754
2755 * sim-profile.c (profile_pc_init): Initialise default profiling
2756 frequency to a prime number.
2757 (profile_print_pc): Convert gmon.out sample data into target
2758 byte order.
2759
2760 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
2761
2762 * aclocal.m4: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR.
2763 * common.m4: Likewise.
2764 * configure: Regenerated.
2765
2766 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
2767
2768 * aclocal.m4: Use ZW_GNU_GETTEXT_SISTER_DIR.
2769 * configure: Regenerated.
2770
2771 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
2772
2773 * Make-common.in: Replace INTLLIBS and INTLDEPS with LIBINTL
2774 and LIBINTL_DEP everywhere.
2775 (CSEARCH): Use INCINTL.
2776 * aclocal.m4: Use ZW_GNU_GETTEXT_SISTER_DIR. Include new
2777 gettext macros.
2778 * configure: Regenerated.
2779
2780 2006-03-29 Hans-Peter Nilsson <hp@axis.com>
2781
2782 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Correct duplicate-
2783 option-contents test.
2784
2785 2005-11-28 Mark Mitchell <mark@codesourcery.com>
2786
2787 * sim-signal.c (sim_signal_to_target): Fix typos.
2788
2789 * sim-reason.c (sim_stop_reason): Use
2790 sim_signal_to_target, not sim_signal_to_host.
2791 * sim-signal.c (sim_signal_to_host): Fix typo.
2792 (sim_signal_to_target): New function.
2793
2794 2005-07-10 Hans-Peter Nilsson <hp@bitrange.com>
2795
2796 * sim-load.c (xprintf, eprintf): Remove fallout from ANSI_PROTOTYPES
2797 change.
2798
2799 2005-07-08 Ian Lance Taylor <ian@airs.com>
2800
2801 * sim-fpu.c (sim_fpu_abs): Always clear the sign bit.
2802
2803 * sim-fpu.c (pack_fpu): If SIM_QUIET_NAN_NEGATED is defined, use a
2804 different fraction for a quiet NaN.
2805 (unpack_fpu): Likewise.
2806
2807 2005-07-08 Ben Elliston <bje@au.ibm.com>
2808
2809 * callback.c: Remove ANSI_PROTOTYPES conditional code.
2810 * sim-load.c: Likewise.
2811 * syscall.c: Likewise.
2812
2813 2005-05-24 Corinna Vinschen <vinschen@redhat.com>
2814
2815 * Make-common.in (LIBDEPS): Correctly use INTLDEPS for dependency
2816 check.
2817
2818 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
2819
2820 * Make-common.in (install-common, installdirs): Honor $DESTDIR.
2821
2822 2005-04-20 Manoj Iyer <manjo@austin.ibm.com>
2823
2824 * sim-types.h: Changed unsigned32 and unsigned64 to signed32
2825 and signed64 for __ALPHA__.
2826
2827 2005-03-23 Mark Kettenis <kettenis@gnu.org>
2828
2829 * aclocal.m4 Include ../../gettext.m4.
2830 (CY_WITH_NLS, CY_GNU_GETTEXT, AM_PATH_PROG_WITH_TEST)
2831 (AM_LC_MESSAGES): Remove.
2832 * configure: Regenerate.
2833
2834 2005-02-28 Jim Blandy <jimb@redhat.com>
2835
2836 * aclocal.m4 (SIM_AC_OPTION_WARNINGS): Don't include
2837 -Wuninitialized in the default list of build warnings if CFLAGS is
2838 set, and doesn't include -O. (Using -Wuninitialized without
2839 optimization produces a warning, which interferes with compilation
2840 with -Werror.)
2841
2842 2005-02-21 Jim Blandy <jimb@redhat.com>
2843
2844 * callback.c (os_fstat): Don't declare 't' unless it's used.
2845
2846 2005-02-09 Jim Blandy <jimb@redhat.com>
2847
2848 * Make-common.in (CGEN): Load guile.scm, and include a trailing
2849 '-s' argument.
2850 (CGEN_FLAGS_TO_PASS): Include single quotes around the reference
2851 to $(CGEN), to ensure that the command substitution happens where
2852 the variable is referenced in the submake, not when the submake's
2853 arguments are expanded.
2854 (cgen.sh): Be prepared for the 'cgen' argument to contain spaces.
2855 (arch, cpu, decode, cpu-decode, defs, desc): Place the name of the
2856 application Scheme script directly after ${cgen}; don't precede it
2857 with a -s.
2858
2859 2005-01-28 Hans-Peter Nilsson <hp@axis.com>
2860
2861 * syscall.c (cb_syscall) <case CB_SYS_pipe>: New case.
2862 * callback.c [HAVE_LIMITS_H]: Include limits.h.
2863 Include libiberty.h.
2864 (os_close, os_read, os_write, os_fstat, os_ftruncate): Support fd
2865 being either end of a pipe.
2866 (os_pipe, os_pipe_empty, os_pipe_nonempty): New functions.
2867 (os_shutdown): Clear pipe state.
2868 (default_callback): Initialize new members.
2869
2870 * callback.c (default_callback): Initialize target_endian.
2871 (cb_store_target_endian): Renamed from store, new first parameter
2872 host_callback *cb, drop last parameter big_p. Take endianness
2873 from cb.
2874 (cb_host_to_target_stat): Change to use cb_store_target_endian.
2875 Remove variable big_p.
2876 * nrun.c (main): Initialize default_callback.target_endian.
2877
2878 2005-01-14 Andrew Cagney <cagney@gnu.org>
2879
2880 * configure.ac: Replace SIM_AC_COMMON with sinclude of common.m4.
2881 Add explicit call to AC_CONFIG_HEADER.
2882 * common.m4: Delete call to AC_CONFIG_HEADER, update usage.
2883 * configure: Re-generate.
2884
2885 2005-01-12 Andrew Cagney <cagney@gnu.org>
2886
2887 * common.m4: New file, based on of aclocal.m4.
2888
2889 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
2890
2891 * aclocal.m4 (SIM_AC_OUTPUT): Rewrite to use 2.59 macros.
2892 * configure: Regenerated to track ../common/aclocal.m4 changes.
2893
2894 2005-01-07 Andrew Cagney <cagney@gnu.org>
2895
2896 * configure.ac: Rename configure.in, require autoconf 2.59.
2897 * aclocal.m4 (SIM_AC_COMMON): Delete call to AC_CONFIG_AUX_DIR.
2898 * configure: Re-generate.
2899
2900 2004-12-15 Hans-Peter Nilsson <hp@axis.com>
2901
2902 * syscall.c (cb_syscall) <case CB_SYS_truncate>
2903 <case CB_SYS_ftruncate>: New cases.
2904
2905 2004-12-13 Hans-Peter Nilsson <hp@axis.com>
2906
2907 * syscall.c (cb_syscall) <case CB_SYS_lstat>: New case.
2908 (cb_syscall) <case CB_SYS_rename>: New case.
2909 * callback.c (os_lstat): New function.
2910
2911 2004-12-08 Hans-Peter Nilsson <hp@axis.com>
2912
2913 * run.1: Document --sysroot=filepath.
2914 * sim-options.c (STANDARD_OPTIONS): New member OPTION_SYSROOT.
2915 (standard_options): Support --sysroot=<path>.
2916 (standard_option_handler): Handle OPTION_SYSROOT.
2917 * syscall.c (simulator_sysroot): Define, initialized empty.
2918 (get_path): Prepend simulator_sysroot to absolute file path.
2919 [HAVE_STRING_H]: Include string.h.
2920 [!HAVE_STRING_H && HAVE_STRINGS_H]: Include strings.h.
2921 * nrun.c [HAVE_UNISTD_H]: Include unistd.h.
2922 (main): If simulator_sysroot is not empty, chdir there.
2923 * sim-config.h (simulator_sysroot): Declare.
2924
2925 * aclocal.m4 (SIM_AC_OUTPUT): Substitute @cgen_breaks@ for "break
2926 cgen_rtx_error" in a CGEN-generated simulator.
2927 * gdbinit.in: Break on sim_core_signal too. Have autoconf
2928 replacement for CGEN-related breakpoints.
2929
2930 2004-12-07 Hans-Peter Nilsson <hp@axis.com>
2931
2932 * Make-common.in (sim-basics_h): Add $(callback_h).
2933
2934 2004-12-03 Hans-Peter Nilsson <hp@axis.com>
2935
2936 * configure.in (SIM_CHECK_MEMBERS): Call for struct stat members
2937 st_dev, st_ino, st_mode, st_nlink, st_uid, st_gid, st_rdev,
2938 st_size, st_blksize, st_blocks, st_atime, st_mtime and st_ctime.
2939 * aclocal.m4 (SIM_CHECK_MEMBER, SIM_CHECK_MEMBERS_1)
2940 (SIM_CHECK_MEMBERS): New macros.
2941 * callback.c (cb_host_to_target_stat): Use temporary macro ST_x
2942 for struct stat member test and write. Add ST_x calls for each
2943 struct stat member tested in configure.in. Wrap each ST_x call in
2944 #ifdef of configure macro for that member.
2945 * configure, config.in: Regenerate.
2946
2947 2004-12-01 Hans-Peter Nilsson <hp@axis.com>
2948
2949 * cgen.sh: New thirteenth parameter opcfile, defaulting to
2950 /dev/null.
2951 <case desc>: Pass -OPC opcfile.
2952 * Make-common.in (cgen-desc): Pass $(opcfile) as thirteenth
2953 parameter to cgen.sh.
2954
2955 2004-11-30 Richard Earnshaw <rearnsha@arm.com>
2956
2957 * Make-common.in (sim-basics_h): Correct dependencies on
2958 cconfig.h and tconfig.h
2959 (sim-load.o): Correct typo in sim-basics_h dependency.
2960
2961 2004-11-18 Richard Earnshaw <rearnsha@arm.com>
2962
2963 * Make-common.in (sim-*_h): Add macros for all sim headers listing
2964 sub-dependencies for other sim files that they include.
2965 (sim_main_headers): Use sim-*_h macros.
2966 (sim-load.o): Depend on sim-basics_h, not sim_main_headers.
2967
2968 2004-11-16 Hans-Peter Nilsson <hp@axis.com>
2969
2970 * sim-config.c (sim_config): Recognize when a bfd has unspecified
2971 endian information.
2972
2973 * Make-common.in (sim-load.o): Depend on $(sim_main_headers) and
2974 $(remote_sim_h) too.
2975 (sim_main_headers): Add sim-utils.h.
2976
2977 2004-10-07 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2978
2979 * cgen-defs.h (ENDSWITCH): Changed to compile with gcc-3.4.2.
2980
2981 2004-07-26 Andrew Cagney <cagney@gnu.org>
2982
2983 Problem from Olaf Hering <olh@suse.de>.
2984 * Makefile.in (install-man, installdirs): Add DESTDIR prefix.
2985
2986 2004-07-10 Ben Elliston <bje@au.ibm.com>
2987
2988 * hw-tree.c (parse_integer_property): Typo fix in comments.
2989 * sim-options.c (sim_args_command): Likewise.
2990
2991 2004-06-28 Andrew Cagney <cagney@gnu.org>
2992
2993 * run.c: Rename ui_loop_hook to deprecated_ui_loop_hook.
2994
2995 2004-06-27 J"orn Rennecke <joern.rennecke@superh.com>
2996
2997 * callback.c (os_shutdown): Fix bug in last change: actually
2998 mark file descriptors as available on startup.
2999
3000 2004-06-25 J"orn Rennecke <joern.rennecke@superh.com>
3001
3002 [ include/gdb: * callback.h (host_callback_struct): Replace
3003 members fdopen and alwaysopen with fd_buddy. ]
3004 * callback.c: Changed all users.
3005
3006 2004-06-15 Alan Modra <amodra@bigpond.net.au>
3007
3008 * sim-load.c (sim_load_file): Use bfd_get_section_size
3009 instead of bfd_get_section_size_before_reloc.
3010
3011 2004-05-18 Daniel Jacobowitz <dan@debian.org>
3012
3013 * dv-glue.c (hw_glue_finish): Cast result of sizeof to long before
3014 passing it to printf.
3015
3016 2004-05-10 Daniel Jacobowitz <dan@debian.org>
3017
3018 * callback.c: Update copyright dates.
3019 * run.c: Likewise.
3020 * sim-basics.h: Likewise.
3021 * sim-load.c: Likewise.
3022 * syscall.c: Likewise.
3023
3024 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3025
3026 * callback.c: Include cconfig.h instead of config.h.
3027 * run.c: Likewise.
3028 * sim-basics.h: Likewise.
3029 * sim-load.c: Likewise.
3030 * syscall.c: Likewise.
3031
3032 2004-01-16 Ben Elliston <bje@wasabisystems.com>
3033
3034 * Makefile.in (clean): Remove rm -f $(ALL), as $(ALL) is empty.
3035
3036 2003-12-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3037
3038 * sim-core.c (sim_core_trans_addr): Added for m32r-linux-run.
3039
3040 2003-11-22 Kazu Hirata <kazu@cs.umass.edu>
3041
3042 * sim-options.c (standard_options): Fix the names of H8
3043 variants.
3044
3045 2003-10-30 Andrew Cagney <cagney@redhat.com>
3046
3047 * sim-trace.c, sim-base.h: Replace "struct symbol_cache_entry"
3048 with "struct bfd_symbol".
3049
3050 2003-10-21 Andrew Cagney <cagney@redhat.com>
3051
3052 * callback.c (os_truncate): Call "truncate", and not "stat".
3053
3054 2003-10-20 Andrew Cagney <cagney@redhat.com>
3055
3056 * sim-base.h: Replace "struct sec" with "struct bfd_section".
3057
3058 2003-10-15 J"orn Rennecke <joern.rennecke@superh.com>
3059
3060 * callback.c (os_ftruncate, os_truncate): New functions.
3061 (default_callback): Initialize ftruncate and truncate members.
3062
3063 2003-09-08 Dave Brolley <brolley@redhat.com>
3064
3065 On behalf of Doug Evans <dje@sebabeach.org>
3066 * cgen.sh: New arg archfile.
3067 * Make-common.in (cgen-arch,cgen-cpu,cgen-defs,cgen-decode,
3068 cgen-cpu-decode,cgen-desc): Update call to cgen.sh.
3069
3070 2003-08-28 Andrew Cagney <cagney@redhat.com>
3071
3072 * dv-glue.c (hw_glue_finish): Change %d to %ld to match sizeof.
3073 * sim-options.c (print_help): Cast the format with specifier to
3074 "int".
3075
3076 2003-08-20 Michael Snyder <msnyder@redhat.com>
3077 Dave Brolley <brolley@redhat.com>
3078
3079 * cgen-par.h (flags, word1): New target-specific
3080 fields of CGEN_WRITE_QUEUE_ELEMENT.
3081 (CGEN_WRITE_QUEUE_ELEMENT_FLAGS): New accessor macro.
3082 (CGEN_WRITE_QUEUE_ELEMENT_WORD1): New accessor macro.
3083 * gennltvals.sh: Add frv target.
3084 * nltvals.def: Add frv target.
3085
3086 2003-06-23 Michael Snyder <msnyder@redhat.com>
3087
3088 * nrun.c (main): Delete h8/300 ifdef (sim now handles signals).
3089 * sim-reg.c: Fix cut-and-paste bug in comment.
3090
3091 2003-06-22 Andrew Cagney <cagney@redhat.com>
3092
3093 From matthew green <mrg@redhat.com>:
3094 * sim-fpu.h: Update copyright.
3095 (sim_fpu_fraction, sim_fpu_guard): New prototypes.
3096 * sim-fpu.c: Update copyright.
3097 (sim_fpu_fraction, sim_fpu_guard): New inline functions.
3098
3099 2003-06-17 Frank Ch. Eigler <fche@redhat.com>
3100
3101 From Doug Evans <dje@sebabeach.org>:
3102 * cgen-trace.h (sim_disasm_read_memory): Update args to be compatible
3103 with disassemble_info:read_memory_func.
3104 * cgen-trace.c (sim_disasm_read_memory): Ditto.
3105
3106 2003-06-04 Michael Snyder <msnyder@redhat.com>
3107
3108 * common/run.c (main): Remove SIM_H8300 ifdef.
3109 (usage): Ditto.
3110 * common/sim-options.c (STANDARD_OPTIONS): Add SIM_H8300SX.
3111 (standard_options): Add '-x' for h8/300sx.
3112 (standard_option_handler): Add case for SIM_H8300SX.
3113
3114 2003-04-13 Michael Snyder <msnyder@redhat.com>
3115
3116 * Make-common.in (sim-events.o, sim-config.o): Depend on sim-main.h.
3117
3118 2003-03-01 Andrew Cagney <cagney@redhat.com>
3119
3120 * sim-engine.c (sim_engine_halt): If jmpbuf is invalid, abort.
3121 (sim_engine_vabort): Ditto.
3122
3123 2003-02-27 Andrew Cagney <cagney@redhat.com>
3124
3125 * sim-utils.h (sim_analyze_program, sim_load_file): Rename _bfd to bfd.
3126 * sim-hload.c (sim_load), sim-base.h (sim_state_base): Ditto.
3127 * nrun.c (main): Ditto.
3128
3129 2003-02-26 Andrew Cagney <cagney@redhat.com>
3130
3131 * sim-engine.h (sim_engine_abort): Add noreturn attribute.
3132 (sim_engine_vabort): Ditto.
3133 (sim_engine_halt, sim_engine_restart): Ditto.
3134
3135 2003-02-20 Andrew Cagney <ac131313@redhat.com>
3136
3137 * Make-common.in (SIM_NEW_COMMON_OBJS): Remove sim-break.o
3138 (sim-break_h): Delete macro.
3139 (sim-break.o): Delete rule.
3140 * sim-break.c: Delete file.
3141 * sim-break.h: Delete file.
3142 * sim-base.h [SIM_HAVE_BREAKPOINTS]: Don't include "sim-break.h".
3143 (STATE_BREAKPOINTS): Delete macro.
3144 (sim_state_base): Delete field breakpoints.
3145 * sim-module.c (modules) [SIM_HAVE_BREAKPOINTS]: Don't add
3146 sim_break_install to array.
3147
3148 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
3149
3150 * run.c (usage): Fix typos.
3151
3152 2002-11-27 Richard Sandiford <rsandifo@redhat.com>
3153
3154 * sim-fpu.c (sim_fpu_inv): Use sim_fpu_div.
3155
3156 2002-11-22 Andrew Cagney <ac131313@redhat.com>
3157
3158 * dv-core.c: Update copyright. sim/common contributed to the FSF.
3159 * dv-glue.c, dv-pal.c, hw-base.c, hw-base.h, hw-device.c: Ditto.
3160 * hw-device.h, hw-handles.c, hw-handles.h: Ditto.
3161 * hw-instances.c, hw-instances.h, hw-properties.c: Ditto.
3162 * hw-properties.h, hw-tree.c, hw-tree.h, sim-alu.h: Ditto.
3163 * sim-basics.h, sim-bits.c, sim-bits.h, sim-config.c: Ditto.
3164 * sim-config.h, sim-core.c, sim-core.h, sim-endian.c: Ditto.
3165 * sim-endian.h, sim-events.c, sim-events.h, sim-inline.c: Ditto.
3166 * sim-inline.h, sim-io.c, sim-io.h, sim-n-bits.h: Ditto.
3167 * sim-n-core.h, sim-n-endian.h, sim-types.h: Ditto.
3168
3169 2002-11-13 Andrew Cagney <cagney@redhat.com>
3170
3171 * run.c (main): Remove SIM_HAVE_ENVIRONMENT from #endif.
3172
3173 2002-11-06 Richard Sandiford <rsandifo@redhat.com>
3174
3175 * Make-common.in (SIM_EXTRA_DISTCLEAN): New macro.
3176 (distclean): Depend on it.
3177
3178 2002-10-14 Alan Modra <amodra@bigpond.net.au>
3179
3180 * cgen-trace.h: Test __BFD_H_SEEN__ rather than BFD_VERSION.
3181
3182 2002-08-29 Dave Brolley <brolley@redhat.com>
3183
3184 * Make-common.in (CGEN_READ_SCM): Remove ../../cgen/stamp-cgen.
3185
3186 2002-07-17 Andrew Cagney <cagney@redhat.com>
3187
3188 * run-sim.h: Add #ifdef RUN_SIM_H wrapper.
3189 (sim_set_callbacks, sim_size, sim_trace)
3190 (sim_set_trace, sim_set_profile_size, sim_kill): Declare. Moved
3191 to here from "gdb/remote-sim.h".
3192
3193 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3194
3195 * sim-resume.c (sim_resume): Add local variable sig_to_deliver to
3196 avoid possible longjmp problems with automatic variable siggnal.
3197
3198 2002-07-14 Andrew Cagney <ac131313@redhat.com>
3199
3200 From 2002-07-11 Momchil Velikov <velco@fadata.bg>:
3201 * Make-common.in (installdirs): Make $(libdir) too, needed when
3202 installing libsim.a.
3203
3204 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3205
3206 * gennltvals.sh (dir): Mark d30v as obsolete.
3207 * nltvals.def: Remove d30v.
3208
3209 2002-06-17 Andrew Cagney <cagney@redhat.com>
3210
3211 * hw-events.c (hw_event_queue_schedule): Initialize `dummy'.
3212
3213 * sim-memopt.c: Include <unistd.h>.
3214 (do_memopt_add): Fix printf format.
3215 * sim-events.c (sim_events_schedule): Initialize ``dummy''.
3216
3217 2002-06-16 Andrew Cagney <ac131313@redhat.com>
3218
3219 * aclocal.m4 (SIM_AC_OPTION_WARNINGS): Update to match GDB's
3220 --enable-gdb-build-warnings.
3221 * configure: Regenerated to track ../common/aclocal.m4 changes.
3222
3223 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
3224
3225 * sim-fpu.c (unpack_fpu): Initialize exponent for
3226 sim_fpu_class_zero.
3227 (i2fpu): Same.
3228 (sim_fpu_sqrt): Same.
3229
3230 2002-06-08 Andrew Cagney <cagney@redhat.com>
3231
3232 * gentmap.c (gen_targ_map_c): Generate "gdb/callback.h".
3233 * sim-basics.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
3234 * run.c: Ditto.
3235 * sim-load.c: Ditto.
3236 * callback.c: Ditto.
3237 * syscall.c: Ditto.
3238 * Make-common.in (callback_h): Define.
3239 (remote_sim_h): Define.
3240 (run.o): Update.
3241 (callback.o): Update.
3242 (syscall.o): Update.
3243 (sim-load.o):
3244 (nrun.o): Update.
3245 (sim-hload.o): Update.
3246 (sim-io.o): Update.
3247 (sim-reason.o): Update.
3248 (sim-reg.o): Update.
3249 (sim-resume.o): Update.
3250
3251 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
3252
3253 * run.c: Fix formatting.
3254
3255 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
3256
3257 * run-sim.h: New header. Provide prototypes for functions used
3258 between run() and libsim.a which are not used by GDB.
3259 * run.c: Include run-sim.h.
3260 (main): If SIM_TARGET_SWITCHES is defined call
3261 sim_target_parse_command_line.
3262 (usage): If SIM_TARGET_SWITCHES is defined call
3263 sim_target_display_usage.
3264
3265 2002-05-17 Andrey Volkov <avolkov@transas.com>
3266
3267 * run.c: Made h8300s as new target, not h8300h alias.
3268 Added new option -S (h8300s target)
3269 * sim-options.c: Ditto.
3270
3271 2002-05-01 Chris Demetriou <cgd@broadcom.com>
3272
3273 * callback.c: Use 'deprecated' rather than 'depreciated.'
3274
3275 2002-02-24 Andrew Cagney <ac131313@redhat.com>
3276
3277 From wiz at danbala:
3278 * sim-fpu.h: Fix grammar and typos.
3279 Fix PR gdb/287.
3280
3281 2002-02-10 Chris Demetriou <cgd@broadcom.com>
3282
3283 * callback.c: Fix some spelling errors.
3284 * hw-device.h: Likewise.
3285 * hw-tree.c: Likewise.
3286 * sim-abort.c: Likewise.
3287 * sim-alu.h: Likewise.
3288 * sim-core.h: Likewise.
3289 * sim-events.c: Likewise.
3290 * sim-events.h: Likewise.
3291 * sim-fpu.h: Likewise.
3292 * sim-profile.h: Likewise.
3293 * sim-utils.c: Likewise.
3294
3295 2002-01-31 Hans-Peter Nilsson <hp@axis.com>
3296
3297 * cgen-ops.h (ADDCQI, ADDCFQI, ADDOFQI, SUBCQI, SUBCFQI, SUBOFQI):
3298 New functions.
3299
3300 2002-01-20 Ben Elliston <bje@redhat.com>
3301
3302 * sim-fpu.h (SIM_FPU_IS_QNAN): Replace "Quite" with "Quiet" in
3303 the comment for this enumerator.
3304
3305 2002-01-14 Ben Elliston <bje@redhat.com>
3306
3307 * sim-fpu.h: Fix comment about sim_fpu_* constants.
3308
3309 2001-12-20 Kazu Hirata <kazu@hxi.com>
3310
3311 * run.c (usage): Fix a typo.
3312
3313 2001-07-05 Ben Elliston <bje@redhat.com>
3314
3315 * Make-common.in (srccgen): Remove.
3316 (CGEN_CPU_DIR): Define.
3317 (CGEN_READ_SCM): Redefine without $(srccgen).
3318 (CGEN_ARCH_SCM): Ditto.
3319 (CGEN_CPU_SCM): Ditto.
3320 (CGEN_DECODE_SCM): Ditto.
3321 (CGEN_DESC_SCM): Ditto.
3322
3323 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
3324
3325 * sim-load.c (sim_load_file): Put it back: external now.
3326 * sim-utils.c (sim_analyze_program): Ditto. Nyuk nyuk nyuk.
3327
3328 2001-04-21 Andrew Cagney <ac131313@redhat.com>
3329
3330 * sim-load.c (sim_load_file): Delete call bfd_cache_close. BFD
3331 internal interface.
3332 * sim-utils.c (sim_analyze_program): Ditto.
3333
3334 2001-04-19 Frank Ch. Eigler <fche@redhat.com>
3335
3336 * sim-utils.c (sim_analyze_program): Call bfd_cache_close after
3337 we're finished with its immediate use.
3338 * sim-load.c (sim_load_file): Ditto.
3339
3340 2001-03-16 Frank Ch. Eigler <fche@redhat.com>
3341
3342 Add support for mmap-based memory regions.
3343 * sim-memopt.c (mmap_next_fd): New global.
3344 (sim_memory_init): Reinitialize it.
3345 (OPTION_MEMORY_MAPFILE, memory_option_handler): Support new
3346 "--memory-mapfile FILE" option. Check for some errors.
3347 (do_memopt_add): Conditionally do mmap instead of malloc for
3348 backing store of simulated memory. Check for more errors.
3349 (do_simopt_delete, sim_memory_uninstall): Corresponding cleanup.
3350 * sim-memopt.h (munmap_length): New member of _sim_memopt.
3351 * configure.in: Look for mmap/fstat related functions and headers.
3352 * config.in, configure: Regenerated.
3353
3354 2001-03-15 Frank Ch. Eigler <fche@redhat.com>
3355
3356 * sim-core.c (sim_core_map_attach): Correct overlap-related
3357 error messages.
3358
3359 2001-03-07 Michael Meissner <meissner@redhat.com>
3360
3361 * run.c (alloca-conf.h): Delete, no longer provided.
3362
3363 2001-02-22 Ben Elliston <bje@redhat.com>
3364
3365 * sim-trace.h (TRACE_VPU_IDX): Add.
3366 (TRACE_vpu): Define.
3367 (WITH_TRACE_VPU_P): Likewise.
3368 (TRACE_VPU_P): Likewise.
3369 * sim-trace.c (OPTION_TRACE_VPU): Define.
3370 (trace_options): Add --trace-vpu.
3371 (trace_option_handler): Handle OPTION_TRACE_VPU.
3372 (trace_option_handler): Include VPU tracing in --trace-semantics.
3373 (trace_idx_to_str): Handle TRACE_VPU_IDX.
3374
3375 2001-02-21 Ben Elliston <bje@redhat.com>
3376
3377 * sim-trace.h (TRACE_BRANCH_INPUT1): New macro.
3378 (TRACE_BRANCH_INPUT2): Likewise.
3379
3380 2001-02-09 Ben Elliston <bje@redhat.com>
3381
3382 * (profile_print_pc): Write header out in target byte order.
3383
3384 2001-02-09 Ben Elliston <bje@redhat.com>
3385
3386 * sim-profile.c (profile_pc_init): Correct bug in loop logic when
3387 adjusting the pc shift value.
3388
3389 2001-01-12 Chris Demetriou <cgd@sibyte.com>
3390
3391 * aclocal.m4 (SIM_AC_OPTION_SCACHE): Properly handle the case
3392 where a numeric value is supplied.
3393
3394 2001-01-06 Ben Elliston <bje@redhat.com>
3395
3396 * cgen.sh: Allow extrafiles to include the semantics files when
3397 generating an ISA-specific decoder.
3398
3399 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
3400
3401 * Make-common.in (sim-io.o): Depend on targ-vals.h.
3402
3403 2000-12-23 Ben Elliston <bje@redhat.com>
3404
3405 * cgen-trace.c (trace_result): Handle 'f' type operands; output
3406 them to the trace stream using sim_fpu_printn_fpu. Include
3407 "sim-fpu.h".
3408
3409 2000-12-15 Ben Elliston <bje@redhat.com>
3410
3411 * sim-fpu.h (sim_fpu_printn_fpu): Declare.
3412 * sim-fpu.c (print_bits): Add digits parameter. Print only as many
3413 trailing digits as specified (-1 to print all digits).
3414 (sim_fpu_print_fpu): New wrapper around sim_fpu_printn_fpu.
3415 (sim_fpu_printn_fpu): Rename from sim_fpu_print_fpu; update calls
3416 to print_bits ().
3417
3418 2000-12-13 Ben Elliston <bje@redhat.com>
3419
3420 * cgen.sh: Set prefix/PREFIX (append ISA if applicable). Factor
3421 sed expressions into $sedscript, substituting @prefix@/@PREFIX@.
3422 (defs): New action.
3423
3424 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3425
3426 * sim-endian.h: Don't have parameters on macro definitions which
3427 are simply renaming functions, to permit use of XCONCAT2 in both
3428 the macro name and the arguments in a use of such a definition.
3429
3430 2000-12-11 Ben Elliston <bje@redhat.com>
3431
3432 * cgen-ops.h (SUBWORDDFDI): New function.
3433
3434 2000-12-05 Ben Elliston <bje@redhat.com>
3435
3436 * Make-common.in (cgen-defs): New target.
3437 (cgen-decode): Pass $(EXTRAFILES).
3438
3439 * genmloop.sh: Use @prefix@, not @cpu@ throughout. Add -prefix and
3440 -outfile-suffix options.
3441
3442 2000-12-04 Ben Elliston <bje@redhat.com>
3443
3444 * cgen-ops.h (SUBWORDSIQI): Mask off top bits.
3445 (SUBWORDSIUQI): Likewise.
3446 (SUBWORDDIHI): Likewise.
3447 (SUBWORDDIQI): New function.
3448
3449 * cgen-trace.c (disassemble_insn): Remove unused declaration.
3450 * cgen-scache.c (scache_option_handler): Remove unused local var.
3451
3452 2000-12-03 Ben Elliston <bje@redhat.com>
3453
3454 * sim-profile.c (profile_option_handler): Remove unused prof_nr.
3455
3456 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3457
3458 * hw-events.c (delete_hw_event_data): Remove the scheduled events.
3459
3460 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3461
3462 * dv-core.c (dv_core_attach_address_callback): Don't abort if
3463 space is not zero.
3464
3465 2000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3466
3467 * hw-base.c (hw_delete): Don't free base_of_hw since it's freed.
3468 (set_hw_delete): Moved the macro as a function.
3469 * hw-base.h (set_hw_delete): Declare as external function.
3470 * hw-alloc.c (delete_hw_alloc_data): Allow to free the memory
3471 allocated using hw_malloc.
3472
3473 2000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3474
3475 * sim-options.c (sim_parse_args): Free the memory used for
3476 long_options, short_options, handlers, opt_cpu, orig_val.
3477
3478 2000-11-20 Ben Elliston <bje@redhat.com>
3479
3480 * cgen-ops.h (SUBBI): New macro.
3481 (SUBWORDSIQI, SUBWORDSIHI, SUBWORDSIUQI): New functions.
3482 (SUBWORDDIHI, SUBWORDDIUQI, SUBWORDDIDF): Likewise.
3483
3484 2000-11-16 Ben Elliston <bje@redhat.com>
3485
3486 * cgen-types.h (VOID): New type.
3487
3488 2000-11-09 Ben Elliston <bje@redhat.com>
3489
3490 * sim-fpu.c (sim_fpu_one): Set exponent to 0.
3491 (sim_fpu_two): Set exponent to 1.
3492
3493 2000-10-26 Ben Elliston <bje@redhat.com>
3494
3495 * cgen.sh: Handle an isa argument between cpu and mach. Default to
3496 `all'. Pass `-i' options to cgen applications.
3497 * Make-common.in (cgen-arch, cgen-cpu, cgen-decode, cgen-cpu-decode,
3498 cgen-desc): Pass $(isa) to cgen.sh.
3499
3500 2000-10-08 Ben Elliston <bje@redhat.com>
3501
3502 * cgen-utils.c (cgen_rtx_error): New function.
3503
3504 2000-10-07 Ben Elliston <bje@redhat.com>
3505
3506 * cgen-trace.c (sim_cgen_disassemble_insn): Handle failure
3507 conditions for sim_core_read_buffer().
3508
3509 2000-09-26 Dave Brolley <brolley@redhat.com>
3510
3511 * cgen-utils.c (RORQI): New function.
3512 (ROLQI): New function.
3513 (RORHI): New function.
3514 (ROLHI): New function.
3515
3516 2000-08-28 Dave Brolley <brolley@redhat.com>
3517
3518 * cgen-trace.c (sim_cgen_disassemble_insn): Make sure entire insn is
3519 in insn_value if it will fit.
3520
3521 2000-08-21 Frank Ch. Eigler <fche@redhat.com>
3522
3523 * Make-common.in, cgen.sh: Contribute CGEN-related build targets/rules.
3524
3525 2000-08-15 Dave Brolley <brolley@redhat.com>
3526
3527 * sim-profile.c (profile_print_speed): Print cpu frequency if not zero.
3528
3529 2000-08-15 Dave Brolley <brolley@redhat.com>
3530
3531 * sim-profile.h (PROFILE_DATA): Add cpu_freq.
3532 (PROFILE_CPU_FREQ): New macro.
3533 * sim-profile.c (OPTION_PROFILE_CPU_FREQUENCY): New enumerator.
3534 (profile-options): Add profile-cpu-frequency.
3535 (parse_frequency): New function.
3536 (profile_option_handler): Handle OPTION_PROFILE_CPU_FREQUENCY.
3537 (profile_print_speed): Print cpu frequency and simulated execution time.
3538 Re-indent other items to match.
3539
3540 2000-08-09 Andrew Cagney <cagney@lulu.cygnus.com>
3541
3542 * dv-sockser.c (dv_sockser_init): Eliminate MIN macro.
3543
3544 2000-07-27 Frank Ch. Eigler <fche@redhat.com>
3545
3546 From Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3547 * Makefile.in (install): Install run.1 man page.
3548
3549 Thu Jul 27 21:56:08 2000 Andrew Cagney <cagney@b1.cygnus.com>
3550
3551 From 2000-06-23 Doug Evans <dje@casey.transmeta.com>:
3552 * Makefile.in (headers,nltvals.def): Merge.
3553
3554 Thu Jul 27 20:37:47 2000 Andrew Cagney <cagney@b1.cygnus.com>
3555
3556 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
3557 * nrun.c (main): Print the simulator statistics only in
3558 verbose mode.
3559 * hw-properties.h (hw_find_integer_array_property): Fix
3560 prototype (use signed_cell).
3561
3562 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
3563 * sim-events.c (sim_events_remain_time): New function returning
3564 the time that remains before the event is raised.
3565 * hw-events.c (hw_event_remain_time): Likewise.
3566 * sim-events.h (sim_events_remain_time): Declare.
3567 * hw-events.h (hw_event_remain_time): Declare.
3568
3569 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
3570 * sim-hw.c: Use <errno.h> instead of <sys/errno.h>
3571 (OPTION_HW_LIST): New option --hw-list to list the devices.
3572 (hw_option_handler): List the device tree with 'sim_hw_print'.
3573
3574 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
3575 * sim-bits.h (_MSB_16, _LSB_16): Define for 16-bit targets.
3576 (MASK, LSBIT, MSBIT): Likewise and use _MSB_16 and _LSB_16.
3577 (EXTENDED): Define for 16-bit word size.
3578 * sim-bits.c (LSEXTRACTED, MSEXTRACTED, LSINSERTED,
3579 MSINSERTED, LSSEXT, MSSEXT): Implement for 16-bit word size.
3580 * sim-types.h: Added support for 16-bit targets.
3581
3582 2000-06-23 Frank Ch. Eigler <fche@redhat.com>
3583
3584 * cgen-trace.h (TRACE_USEFUL_MASK): Remove TRACE_EVENTS_IDX.
3585
3586 2000-06-24 Frank Ch. Eigler <fche@redhat.com>
3587
3588 From Maciej W. Rozycki <macro@ds2.pg.gda.pl>:
3589 * Makefile.in (distclean): Clean cconfig.h also.
3590
3591 Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
3592
3593 * configure: Regenerated to track ../common/aclocal.m4 changes.
3594
3595 Tue May 23 21:35:53 2000 Andrew Cagney <cagney@b1.cygnus.com>
3596
3597 * aclocal.m4 (sim-profile): Enable the profiler by default.
3598
3599 Tue May 23 20:30:12 2000 Andrew Cagney <cagney@amy.cygnus.com>
3600
3601 * run.c (main): Initialize sigrc.
3602
3603 Wed Apr 26 16:18:44 2000 Andrew Cagney <cagney@b1.cygnus.com>
3604
3605 * sim-events.c (update_time_from_event): Add more detailed event
3606 tracing.
3607
3608 2000-03-30 Dave Brolley <brolley@redhat.com>
3609
3610 * aclocal.m4 (cgen): Use guile to run cgen.
3611
3612 2000-03-23 Dave Brolley <brolley@redhat.com>
3613
3614 * cgen-fpu.h: Rename extsfdf to fextsfdf. Rename truncdfsf to
3615 ftruncdfsf.
3616 * cgen-accfp.c (fextsfdf): New function.
3617 (ftruncdfsf): New function.
3618 (cgen_init_accurate_fpu): Initialize fextsfdf and ftruncdfsf.
3619
3620 2000-03-13 Jeff Johnston <jjohnstn@cygnus.com>
3621
3622 * cgen-ops.h: Added TRUNCSISI.
3623
3624 2000-03-08 Dave Brolley <brolley@redhat.com>
3625
3626 * cgen-par.h (cgen_write_queue_kind): Add CGEN_FN_SF_WRITE.
3627 (CGEN_WRITE_QUEUE_ELEMENT): Add fn_sf_write.
3628 (sim_queue_fn_si_write): Last argument is has type USI.
3629 (sim_queue_fn_sf_write): New function.
3630 * cgen-par.c (sim_queue_fn_si_write): Declare 'value' as USI.
3631 (sim_queue_fn_sf_write): New function.
3632 (cgen_write_queue_element_execute): Handle CGEN_FN_SF_WRITE.
3633
3634 Tue Feb 22 16:45:09 2000 Andrew Cagney <cagney@b1.cygnus.com>
3635
3636 * run.c (main): When SIM_HAVE_ENVIRONMENT enable tracing with
3637 sim_set_trace and run simulator using sim_resume.
3638 (main): Add option ``-o'' - operating environment. Only continue
3639 after a signal when operating environment.
3640 (main): Always set REASON and SIGRC using sim_stop_reason.
3641 (sim_trace): Delete extern declaration.
3642
3643 2000-02-08 Nick Clifton <nickc@cygnus.com>
3644
3645 * callback.c: Fix compile time warning messages.
3646 * run.c: Fix compile time warning messages.
3647
3648 1999-12-17 Dave Brolley <brolley@cygnus.com>
3649
3650 * sim-profile.h: (set_profile_option_mask): Add prototype.
3651 * sim-profile.c (set_profile_option_mask): No longer static.
3652
3653 Wed Dec 8 21:47:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
3654
3655 * sim-arange.c: Include <string.h>
3656
3657 1999-12-07 Dave Brolley <brolley@cygnus.com>
3658
3659 * sim-options.c (print_help): '=' required before optional argument.
3660 * cgen-par.h (CGEN_FN_MEM_QI_WRITE): New enumerator.
3661 (CGEN_FN_MEM_HI_WRITE): New enumerator.
3662 (CGEN_FN_MEM_SI_WRITE): New enumerator.
3663 (CGEN_FN_MEM_DI_WRITE): New enumerator.
3664 (CGEN_FN_MEM_DF_WRITE): New enumerator.
3665 (CGEN_FN_MEM_XI_WRITE): New enumerator.
3666 (fn_mem_qi_write): New union members.
3667 (fn_mem_hi_write): New union members.
3668 (fn_mem_si_write): New union members.
3669 (fn_mem_di_write): New union members.
3670 (fn_mem_df_write): New union members.
3671 (fn_mem_xi_write): New union members.
3672 (sim_queue_fn_mem_qi_write): New function.
3673 (sim_queue_fn_mem_hi_write): New function.
3674 (sim_queue_fn_mem_si_write): New function.
3675 (sim_queue_fn_mem_di_write): New function.
3676 (sim_queue_fn_mem_df_write): New function.
3677 (sim_queue_fn_mem_xi_write): New function.
3678 * cgen-par.c (sim_queue_fn_mem_qi_write): New function.
3679 (sim_queue_fn_mem_hi_write): New function.
3680 (sim_queue_fn_mem_si_write): New function.
3681 (sim_queue_fn_mem_di_write): New function.
3682 (sim_queue_fn_mem_df_write): New function.
3683 (sim_queue_fn_mem_xi_write): New function.
3684 (cgen_write_queue_element_execute): Handle CGEN_FN_MEM_QI_WRITE,
3685 CGEN_FN_MEM_HI_WRITE, CGEN_FN_MEM_SI_WRITE, CGEN_FN_MEM_DI_WRITE,
3686 CGEN_FN_MEM_DF_WRITE, CGEN_FN_MEM_XI_WRITE.
3687
3688 1999-12-01 Dave Brolley <brolley@cygnus.com>
3689
3690 * cgen-accfp.c (subsf): Check status code.
3691 (mulsf): Ditto.
3692 (negsf): Ditto.
3693 (abssf): Ditto.
3694 (sqrtsf): Ditto.
3695 (invsf): Ditto.
3696 (minsf): Ditto.
3697 (maxsf): Ditto.
3698 (subdf): Ditto.
3699 (muldf): Ditto.
3700 (divdf): Ditto.
3701 (negdf): Ditto.
3702 (absdf): Ditto.
3703 (sqrtdf): Ditto.
3704 (invdf): Ditto.
3705 (mindf): Ditto.
3706 (maxdf): Ditto.
3707
3708 1999-11-26 Dave Brolley <brolley@cygnus.com>
3709
3710 * cgen-par.h (fn_df_write): Mode of data is DF.
3711 (sim_queue_fn_df_write): Mode of data is DF.
3712 * cgen-par.c (sim_queue_fn_df_write): Mode of data is DF.
3713
3714 1999-11-22 Dave Brolley <brolley@cygnus.com>
3715
3716 * cgen-trace.c (SIZE_TRACE_BUF): Inxrease size of trace buffer.
3717 * cgen-par.h (CGEN_WRITE_QUEUE_SIZE): Increase size of queue.
3718
3719 1999-11-04 Dave Brolley <brolley@cygnus.com>
3720
3721 * cgen-par.h (cgen_write_queue_kind): Add CGEN_FN_XI_WRITE and
3722 CGEN_MEM_XI_WRITE members.
3723 (CGEN_WRITE_QUEUE_ELEMENT): Add fn_xi_write and mem_xi_write members.
3724 (sim_queue_fn_xi_write): New function.
3725 (sim_queue_mem_xi_write): New function.
3726
3727 * cgen-par.c (sim_queue_fn_xi_write): New function.
3728 (sim_queue_mem_xi_write): New function.
3729 (cgen_write_queue_element_execute): Handle CGEN_FN_XI_WRITE and
3730 CGEN_MEM_XI_WRITE.
3731
3732 1999-10-22 Dave Brolley <brolley@cygnus.com>
3733
3734 * cgen-par.h (insn_address): New field in CGEN_WRITE_QUEUE_ELEMENT.
3735 (CGEN_WRITE_QUEUE_ELEMENT_IADDR): New macro.
3736 * cgen-par.c: Set insn_address for each queued write. Get pc from
3737 cpu when executing queued writes.
3738
3739 1999-10-19 Dave Brolley <brolley@cygnus.com>
3740
3741 * cgen-par.h (sim_queue_fn_pc_write): New function.
3742 (CGEN_FN_PC_WRITE): New enumerator.
3743 (fn_pc_write): New union member.
3744 * cgen-par.c (sim_queue_fn_pc_write): New function.
3745 (cgen_write_queue_element_execute): Handle CGEN_FN_PC_WRITE.
3746
3747 1999-10-18 Dave Brolley <brolley@cygnus.com>
3748
3749 * cgen-par.h (CGEN_MEM_DI_WRITE): New enumerator.
3750 (CGEN_MEM_DF_WRITE): New enumerator.
3751 (mem_di_write): New union member.
3752 (mem_df_write): New union member.
3753 * cgen-par.c (sim_queue_mem_di_write): New function.
3754 (sim_queue_mem_df_write): New function.
3755 (cgen_write_queue_element_execute): Handle CGEN_MEM_DI_WRITE and
3756 CGEN_MEM_DF_WRITE.
3757 * cgen-accfp.c (divsf): Check for division errors.
3758
3759 1999-10-14 Doug Evans <devans@casey.cygnus.com>
3760
3761 * cgen-engine.h (EXTRACT_INT,EXTRACT_UINT): Delete.
3762
3763 1999-10-07 Dave Brolley <brolley@cygnus.com>
3764
3765 * cgen-par.h (CGEN_FN_HI_WRITE): New enumerator.
3766 (fn_hi_write): New union member.
3767 (sim_queue_fn_hi_write): New function.
3768 * cgen-par.c (sim_queue_fn_hi_write): New function.
3769 (cgen_write_queue_element_execute): Handle CGEN_FN_HI_WRITE.
3770
3771 1999-09-29 Doug Evans <devans@casey.cygnus.com>
3772
3773 * cgen-defs.h (sim_engine_invalid_insn): New arg `vpc'.
3774 Change type of result to SEM_PC.
3775
3776 Wed Sep 29 14:43:57 1999 Dave Brolley <brolley@cygnus.com>
3777
3778 * cgen-defs.h (sim_engine_invalid_insn): Now returns PC.
3779
3780 1999-09-25 Doug Evans <devans@casey.cygnus.com>
3781
3782 * cgen-ops.h (SUBWORD*): Delete cpu arg.
3783 (JOIN*): Delete cpu arg.
3784
3785 Tue Sep 21 17:14:16 1999 Dave Brolley <brolley@cygnus.com>
3786
3787 * genmloop.sh (@cpu@_scache_lookup): No longer takes last_insn_p
3788 parameter.
3789 (SET_LAST_INSN_P): Set last_insn_p flag in the scache element.
3790
3791 Mon Sep 20 21:44:06 1999 Geoffrey Keating <geoffk@cygnus.com>
3792
3793 * sim-fpu.c (i2fpu): Keep the guard bits sticky when converting
3794 large values.
3795
3796 Tue Feb 8 16:33:48 2000 Andrew Cagney <cagney@b1.cygnus.com>
3797
3798 * run.c (main): Check the sim_stop_reason and only halt simulation
3799 when a valid stop condition is identified.
3800
3801 Wed Sep 15 14:12:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
3802
3803 * hw-tree.c, hw-properties.c, hw-instances.c: Include "sim-io.h".
3804
3805 Tue Sep 14 14:15:47 1999 Dave Brolley <brolley@cygnus.com>
3806
3807 * cgen-par.h (CGEN_BI_WRITE): New enumerator.
3808 (bi_write): New union element.
3809 (sim_queue_bi_write): New function.
3810 * cgen-par.c (sim_queue_bi_write): New function.
3811 (cgen_write_queue_element_execute): Handle CGEN_BI_WRITE.
3812
3813 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
3814
3815 * configure: Regenerated to track ../common/aclocal.m4 changes.
3816
3817 * aclocal.m4 (WERROR_CFLAGS, WARN_CFLAGS): Merge from
3818 ../gdb/configure.in.
3819 * Make-common.in (WERROR_CFLAGS, WARN_CFLAGS): Define.
3820 (SIM_WERROR_CFLAGS, SIM_WARN_CFLAGS): Define.
3821 (SIM_WARNINGS): Delete
3822 (CONFIG_CFLAGS): Update.
3823
3824 Tue Aug 31 16:01:42 1999 Dave Brolley <brolley@cygnus.com>
3825
3826 * cgen-par.c: New file.
3827 * cgen-par.h: New file.
3828 * cgen-sim.h (cgen-par.h): #include it.
3829 * cgen-cpu.h (write_queue): New field.
3830 (CPU_WRITE_QUEUE): New access macro.
3831 * Make-common.in (CGEN_MAIN_CPU_DEPS): Add cgen-par.h.
3832 (cgen-par.o): New target.
3833
3834 1999-08-28 Doug Evans <devans@casey.cygnus.com>
3835
3836 * cgen-types.h (mode_type,MODE_VOID): Renamed from MODE_VM.
3837 * cgen-utils.c (mode_names): Update.
3838
3839 1999-08-20 Doug Evans <devans@casey.cygnus.com>
3840
3841 * genmloop.sh: New args -parallel-generic-write, -parallel-only.
3842 * cgen-engine.h (SEMANTIC_FN): Don't use version with PAREXEC
3843 buffer arg if WITH_PARALLEL_GENWRITE.
3844 (struct insn_sem): Handle WITH_PARALLEL_GENWRITE.
3845 (struct idesc): Ditto.
3846
3847 Wed Aug 18 18:17:28 1999 Doug Evans <devans@canuck.cygnus.com>
3848
3849 * sim-model.c (model_option_handler): Add \n to error message.
3850
3851 1999-08-08 Doug Evans <devans@casey.cygnus.com>
3852
3853 * cgen-engine.h (SEM_FN_NAME,SEMF_FN_NAME): Delete.
3854 (insn_sem): Rewrite.
3855 (sem_fn_desc): New struct.
3856 (idesc): Rewrite.
3857 * genmloop.sh (scache case,@cpu@_scache_lookup): Profile scache hit,
3858 misses if ! FAST_P.
3859 (scache case): Split into non-parallel/parallel versions.
3860 (@cpu@_engine_run_{full,fast}): Call @cpu@_{sem,semf}_init_idesc_table
3861 if not use semantic switch version.
3862
3863 1999-08-04 Doug Evans <devans@casey.cygnus.com>
3864
3865 * cgen-defs.h (SEM_BRANCH_TYPE): New enum.
3866 * cgen-engine.h (SEM_BRANCH_UNTAKEN,SEM_BRANCH_UNCACHEABLE): Delete.
3867 (SEM_BRANCH_INIT_EXTRACT): Delete.
3868 (SEM_BRANCH_INIT): Replace npc_ptr with br_type.
3869 (SEM_BRANCH_FINI): Ditto.
3870 (SEM_BRANCH_VIA_ADDR): Ditto.
3871 (SEM_BRANCH_VIA_CACHE): Ditto. Delete cachvarptr arg.
3872 (SEM_BRANCH_ADDR_CACHE): Delete.
3873 (SEM_SKIP_COMPILE,SEM_SKIP_INSN): New macros.
3874 * cgen-scache.h (cpu_scache): Replace member pbb_pr_npc_ptr with
3875 pbb_br_type.
3876 * genmloop.sh (eng.hin): Update prototype of ${cpu}_pbb_cti_chain.
3877 (@cpu@_pbb_begin): Initialize branch_target.
3878 (@cpu@_pbb_cti_chain): Replace arg new_vpc_ptr with br_type.
3879 (@cpu@_engine_run_full): Replace local pbb_br_npc_ptr with
3880 pbb_br_type.
3881 (@cpu@_engine_run_fast): Ditto.
3882
3883 Fri Jul 16 14:47:53 1999 Dave Brolley <brolley@cygnus.com>
3884
3885 * cgen-utils.c (RORSI): New function.
3886 (ROLSI): New function.
3887
3888 1999-07-14 Doug Evans <devans@casey.cygnus.com>
3889
3890 * Makefile.in (TAGS): Tweak TAGS regex.
3891 * cgen-mem.h (*): Add TAGS markers.
3892
3893 Sun Jul 11 23:47:20 1999 Andrew Cagney <cagney@b1.cygnus.com>
3894
3895 * sim-resume.c (sim_resume): Ensure that the siggnal [sic] is only
3896 passed in when sim_resume is first entered - don't re-pass it
3897 after a restart.
3898
3899 Sun Jul 11 23:34:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
3900
3901 * sim-options.c (standard_option_handler): Add OPTION_LOAD_VMA and
3902 OPTION_LOAD_LMA but only when is defined.
3903 (standard_options): When SIM_HANDLES_LMA is defined include
3904 options --load-lma and --load-vma.
3905 (standard_install): Initialize STATE_LOAD_AT_LMA_P.
3906
3907 * sim-base.h (STATE_LOAD_AT_LMA_P): Define.
3908 (struct sim_state_base): Add load_at_lma_p.
3909 * sim-hload.c (sim_load): Replace SIM_HANDLES_LMA with
3910 STATE_LOAD_AT_LMA_P.
3911
3912 Sun Jul 11 12:03:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
3913
3914 * nrun.c (main): Re-format loop gnu style.
3915
3916 Wed Jul 7 19:56:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
3917
3918 * dv-sockser.c (connected_p): Initialize addrlen.
3919
3920 1999-07-06 Dave Brolley <brolley@cygnus.com>
3921
3922 * cgen-accfp.c (floatsidf): New function.
3923 (fixdfsi): New function.
3924
3925 1999-07-06 Doug Evans <devans@casey.cygnus.com>
3926
3927 * sim-model.c (sim_model_init): Issue error if machine is unsupported.
3928
3929 1999-07-05 Doug Evans <devans@casey.cygnus.com>
3930
3931 * Make-common.in (CGEN_MAIN_CPU_DEPS): Add cgen-fpu.h.
3932 (cgen-fpu.o,cgen-accfp.o): Add rules for.
3933 * cgen-fpu.c: New file.
3934 * cgen-fpu.h: New file.
3935 * cgen-accfp.c: New file.
3936 * cgen-cpu.h (CGEN_CPU): New member fpu.
3937 * cgen-mem.h: Redo fp support.
3938 * cgen-ops.h: Delete k&r support. Redo fp support.
3939 * cgen-sim.h: Include cgen-fpu.h.
3940 * cgen-types.h (SF,DF,XF,TF): Moved to cgen-fpu.h.
3941
3942 1999-06-23 Doug Evans <devans@casey.cygnus.com>
3943
3944 * cgen-engine.h (TARGET_SEM_BRANCH_FINI): Remove cruft at end of
3945 ifndef.
3946 * genmloop.sh (@cpu@_scache_lookup): Delete unused local var.
3947 (@cpu@_pbb_cti_chain): Minor clean up.
3948
3949 1999-05-08 Felix Lee <flee@cygnus.com>
3950
3951 * aclocal.m4: Use AC_EXEEXT instead of AM_EXEEXT. Delete defn of
3952 AM_CYGWIN32 and AM_EXEEXT.
3953 * configure: Regenerate.
3954
3955 Fri Apr 16 16:43:22 1999 Doug Evans <devans@charmed.cygnus.com>
3956
3957 * sim-core.c (device_error,device_io_read_buffer,
3958 device_io_write_buffer): Delete decls.
3959 * sim-core.h: Put them here.
3960
3961 * sim-core.c (sim_core_read_buffer): Pass sd to device_io_read_buffer.
3962 (sim_core_write_buffer): Pass sd to device_io_write_buffer.
3963 * sim-n-core.h (sim_core_read_aligned_N): Ditto.
3964 (sim_core_write_aligned_N): Ditto.
3965
3966 1999-04-14 Stephane Carrez <stcarrez@worldnet.fr>
3967
3968 * sim-memopt.c (sim_memory_uninstall): Don't look into
3969 free()d memory.
3970
3971 1999-04-14 Doug Evans <devans@casey.cygnus.com>
3972
3973 * cgen-utils.scm (virtual_insn_entries): Update attribute definition.
3974
3975 1999-04-13 Doug Evans <devans@casey.cygnus.com>
3976
3977 * sim-core.c (sim_core_read_buffer): Handle NULL cpu when WITH_DEVICES.
3978 (sim_core_write_buffer): Ditto.
3979
3980 1999-04-02 Keith Seitz <keiths@cygnus.com>
3981
3982 * sim-io.c (sim_io_poll_quit): Only call the poll_quit callback
3983 after the interval counter has expired.
3984 (POLL_QUIT_INTERVAL): Define. Used to tweak the frequency of
3985 poll_quit callbacks. May be overridden by Makefile.
3986 (poll_quit_counter): New global.
3987 * sim-events.c: Remove all mentions of ui_loop_hook. The
3988 host callback "poll_quit" will serve the purpose.
3989 * run.c: Add definition of ui_loop_hook when NEED_UI_LOOP_HOOK
3990 is defined.
3991 * nrun.c: Remove declaration of ui_loop_hook.
3992
3993 Wed Mar 31 18:55:41 1999 Doug Evans <devans@canuck.cygnus.com>
3994
3995 * cgen-run.c (sim_resume): Don't tell main loop to run "forever"
3996 if being used by gdb.
3997
3998 1999-03-22 Doug Evans <devans@casey.cygnus.com>
3999
4000 * cgen-types.h (XF,TF): Tweak.
4001 * cgen-ops.h: Redo inline support. Delete DI_FN_SUPPORT,
4002 in cgen-types.h.
4003 (SUBWORD*,JOIN*): Define.
4004 * cgen-trace.c (sim_cgen_disassemble_insn): Update, base_insn_bitsize
4005 moved into cpu descriptor.
4006 * sim-model.h (MACH): New member `num'.
4007
4008 1999-02-09 Doug Evans <devans@casey.cygnus.com>
4009
4010 * cgen-cpu.h (CGEN_DISASSEMBLER): New type.
4011 (CGEN_CPU): Member opcode renamed to cpu_desc.
4012 New members get_idata,disassembler.
4013 * cgen-defs.h (CGEN_INSN_VIRTUAL_P): CGEN_INSN_ATTR renamed to
4014 CGEN_INSN_ATTR_VALUE.
4015 (CGEN_STATE): Delete member opcode_table.
4016 (sim_disassemble_insn): Delete decl.
4017 * cgen-engine.h (struct insn_sem): Moved to here from <cpu>-decode.c.
4018 (struct idesc): Moved to here from <cpu>-decode.h.
4019 * cgen-run.c (prime_cpu): Call prepare_run callback.
4020 * cgen-trace.h (SFILE): New type.
4021 (sim_disasm_sprintf): Declare.
4022 (sim_disasm_read_memory,sim_disasm_perror_memory): Declare.
4023 (sim_cgen_disassemble_insn): Declare.
4024 * cgen-trace.c: Include errno.h,dis-asm.h. Don't include cpu-opc.h.
4025 (insn_fields): Delete.
4026 (trace_insn_fini): STATE_OPCODE_TABLE (sd) replaced with
4027 CPU_CPU_DESC (cpu).
4028 (trace_insn): Call CPU_DISASSEMBLER hook.
4029 (sim_disasm_sprintf): New function.
4030 (sim_disasm_read_memory): New function.
4031 (sim_disasm_perror_memory): New function.
4032 (sim_cgen_disassemble_insn): New function.
4033 * cgen-utils.c: Don't include cpu-opc.h.
4034 (virtual_insn_entries): New static local.
4035 (cgen_virtual_insn_table): Renamed from cgen_virtual_opcode_table.
4036 (cgen_insn_name): Rewrite.
4037 (disasm_sprintf,sim_disassemble_insn): Moved to cgen-trace.c.
4038 * cgen.sh (desc): New file generator handler.
4039 * genmloop.sh: -parallel changed to -parallel-read/-parallel-write.
4040 Define WITH_PARALLEL_READ/WITH_PARALLEL_WRITE appropriately.
4041 Don't include cpu-opc.h,cpu-sim.h.
4042 * sim-model.c (model_set): Delete SIM_DESC arg.
4043 (sim_model_set): Update.
4044 * sim-model.h (MACH): New member prepare_run.
4045
4046 1999-01-28 Frank Ch. Eigler <fche@cygnus.com>
4047
4048 * sim-memopt.c (memory_option_handler): Avoid memset() calls
4049 if redundant with allocator functions.
4050
4051 Wed Jan 27 17:19:09 1999 Doug Evans <devans@canuck.cygnus.com>
4052
4053 * cgen-engine.h (EXTRACT_LSB0_{INT,UINT}): Fix.
4054
4055 * sim-profile.h: Make like sim-trace.h.
4056 (PROFILE_USEFUL_MASK): New macro.
4057 * sim-profile.c (profile_options): Make like trace_options, allow
4058 optional on|off arg where applicable.
4059 (set_profile_option_mask): New function.
4060 (sim_profile_set_option): New function.
4061 (profile_option_handler): Simplify.
4062 Have -p only enable selected things, not everything.
4063 Add missing break to OPTION_PROFILE_PC_RANGE.
4064 * cgen-scache.c (scache_options): Allow optional on|off arg to
4065 --profile-scache.
4066 (scache_option_handler): Use sim_profile_set_option.
4067
4068 1999-01-26 Frank Ch. Eigler <fche@cygnus.com>
4069
4070 * sim-memopt.c (memory_options): Add MEMORY_FILL option.
4071 (memory_option_handler): Implement MEMORY_FILL option. Make
4072 MEMORY_CLEAR an alias for MEMORY_FILL=0.
4073 (parse_ulong_value): New function.
4074 (do_memopt_add): Allocate all buffers. Optionally fill them.
4075
4076 1999-01-15 Richard Henderson <rth@cygnus.com>
4077
4078 * hw-events.c (hw_event_queue_schedule): _vtracef takes a
4079 va_list, not an integer.
4080 * sim-events.c (sim_events_schedule): Likewise.
4081
4082 * sim-types.h (UNSIGNED32, UNSIGNED64): Properly cast to
4083 the appropriate type.
4084
4085 1999-01-14 Doug Evans <devans@casey.cygnus.com>
4086
4087 * cgen-defs.h (PCADDR,CIA): Define in terms of IADDR.
4088 (sim_disassemble_insn): Update prototype.
4089 (sim_engine_invalid_insn): Ditto.
4090 * cgen-engine.h (SEMANTIC_FN): Add !WITH_SCACHE version.
4091 (SEM_BRANCH_INIT): PCADDR->IADDR.
4092 (SEM_NBRANCH_FINI): New macro for !WITH_SCACHE case.
4093 * cgen-scache.c (scache_lookup,scache_lookup_or_alloc): PCADDR->IADDR.
4094 * cgen-scache.h (*): Ditto.
4095 * cgen-trace.c (*): Ditto.
4096 * cgen-trace.h (*): Ditto.
4097 * cgen-utils.c (*): Ditto.
4098 * cgen-types.h (integer modes): Use signedNN/unsignedNN types.
4099 (insn_t): Delete.
4100 * genmloop.sh (@cpu@_fill_argbuf): Add !WITH_SCACHE support.
4101 (simple engine framework): Rewrite.
4102 * sim-module.c (modules): Install model module sooner (and in
4103 particular before the profile module).
4104
4105 1999-01-12 Doug Evans <devans@casey.cygnus.com>
4106
4107 * sim-model.h (sim_mach_lookup_bfd_name): Add prototype.
4108 * sim-model.c (sim_mach_lookup_bfd_name): New function.
4109 (sim_model_init): Call it.
4110
4111 * cgen-trace.c (trace_insn): Pass pc to trace_prefix for virtual insns.
4112
4113 1999-01-05 Doug Evans <devans@casey.cygnus.com>
4114
4115 * Make-common.in (CGEN_INCLUDE_DEPS): Add cgen-defs.h, cgen-engine.h.
4116 * cgen-engine.h (SEM_BRANCH_FINI): New arg pcvar, all uses updated.
4117 (SEM_BRANCH_INIT_EXTRACT): New macro.
4118 (SEM_BRANCH_INIT): Add taken_p.
4119 (TARGET_SEM_BRANCH_FINI): Provide default definition.
4120 (SEM_BRANCH_FINI): Use it.
4121 (SEM_INSN): Update.
4122 * cgen-run.c (sim_resume): Handle tracing of last insn.
4123 * cgen-scache.h (WITH_SCACHE): Define as 0 if not defined.
4124 * cgen-trace.c (current_abuf): New static global.
4125 (trace_insn_init): Initialize it.
4126 (trace_insn_fini): Use it.
4127 (trace_insn): Set it.
4128 * cgen.sh (arch case): Pass -m ${mach} to cgen.
4129 * genmloop.sh (@cpu@_emit_before): Only define if WITH_SCACHE_PBB.
4130 (@cpu@_emit_after): Ditto.
4131 (simple @cpu@_engine_run_full): New local `pc'. Initialize semantic
4132 labels if WITH_SEM_SWITCH_FULL.
4133 * sim-model.c: Include bfd.h.
4134 (sim_model_init): New function.
4135 (sim_model_install): Record init fn.
4136 * sim-model.h (MACH): New member bfd_name.
4137 * sim-module.c (modules): Initialize model before scache.
4138
4139 1998-12-24 Frank Ch. Eigler <fche@cygnus.com>
4140
4141 * dv-sockser.c (DEFAULT_TIMEOUT): Increase to 1 ms.
4142
4143 * nrun.c (main): Remain in simulation loop for traps and
4144 exceptions when in operating environment mode.
4145 (ui_loop_hook): New stub hook for standalone use.
4146 * sim-events.c (sim_events_process): Call ui_loop_hook
4147 periodically on CYGWIN host.
4148
4149 * sim-reason.c (sim_stop_reason): Return host signal numbers
4150 to gdb on sim_stopped and sim_signalled cases.
4151 * sim-engine.c (sim_engine_halt): Call SIM_CPU_EXCEPTION_SUSPEND
4152 hook just before longjmp.
4153 * sim-resume.c (sim_resume): Call SIM_CPU_EXCEPTION_RESUME
4154 hook just before sim_engine_run.
4155
4156 * sim-n-core.h (sim_core_trace_M): Allay const warning.
4157 * sim-trace.h (trace_generic): Ditto.
4158 * sim-trace.c (trace_generic): Ditto.
4159
4160 1998-12-14 Doug Evans <devans@casey.cygnus.com>
4161
4162 * Make-common.in (SIM_MAIN_DEPS): New var.
4163 (CGEN_MAIN_CPU_DEPS): New var.
4164 * aclocal.m4: Add --enable-cgen-maint option.
4165 * cgen-mem.h (GETMEM*): New arg `pc'. Pass to sim_core routine.
4166 (SETMEM*): Ditto.
4167 (GETIMEM*): Pass pc value to sim_core routine.
4168
4169 Fri Dec 11 16:58:36 1998 Andrew Cagney <cagney@b1.cygnus.com>
4170
4171 * hw-handles.c (hw_handle_add_ihandle, hw_handle_add_phandle):
4172 Compare with ZERO not NULL.
4173
4174 Thu Dec 10 14:14:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
4175
4176 * hw-properties.c, hw-instances.c, hw-tree.c: Include
4177 "sim-assert.h".
4178
4179 1998-12-09 Doug Evans <devans@casey.cygnus.com>
4180
4181 * sim-arange.c: Include libiberty.h, and stdlib.h if present.
4182 * sim-trace.c: Include stdlib.h if present.
4183 * dv-sockser.c: Include unistd.h if present.
4184 (dv_sockser_init): Add missing arg to call to sim_io_eprintf.
4185 * cgen-scache.c (scache_flush): Delete unused locals i,sc.
4186
4187 1998-12-08 James E Wilson <wilson@wilson-pc.cygnus.com>
4188
4189 * gennltvals.sh: Add i960.
4190 * nltvals.def: Rebuild.
4191
4192 1998-12-04 Doug Evans <devans@casey.cygnus.com>
4193
4194 * cgen-defs.h: New file, old cgen-sim.h.
4195 * cgen-sim.h: Simple header that includes others.
4196 * sim-arange.c: New file.
4197 * sim-arange.h: New file.
4198 * sim-basics.h: Include it.
4199 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-arange.o.
4200 (sim-arange.o): Add rule for.
4201 * sim-cpu.h (sim_cpu_msg_prefix): Add prototype.
4202 (sim_io_eprintf_cpu): Add prototype.
4203 * sim-inline.h (HAVE_INLINE): Define if GNUC.
4204 (INLINE2): New macro.
4205 (EXTERN_INLINE): New macro.
4206 * sim-module.c (sim_post_argv_init): Initialize cpu backlink
4207 before calling module init fns.
4208 * sim-profile.c (OPTION_PROFILE_*): Move into enum.
4209 (profile_init): New function.
4210 (profile_options): New option --profile-range.
4211 (profile_option_handler): Handle --profile-range.
4212 (profile_print_insn): Qualify address range specific section titles.
4213 (profile_print_addr_ranges): New function.
4214 (profile_info): Print address ranges if specified.
4215 (profile_install): Set profile_init init fn.
4216 * sim-profile.h (PROFILE_DATA): New member `range'.
4217 * sim-trace.c (trace_init): New function.
4218 (trace_options): New option --trace-range.
4219 (trace_option_handler): Handle --trace-range.
4220 (trace_install): Set trace_init init fn.
4221 * sim-trace.h (TRACE_DATA): New member `range'.
4222 * sim-utils.c (sim_cpu_msg_prefix): New function.
4223 (sim_io_eprintf_cpu): New function.
4224 * cgen-engine.h (PC_IN_TRACE_RANGE_P): New macro.
4225 (PC_IN_PROFILE_RANGE_P): New macro.
4226 * cgen-trace.c (trace_insn_init): Set current_insn to NULL.
4227 (trace_insn_fini): New arg abuf. All callers updated.
4228 Exit early if trace_insn not called. Check ARGBUF_PROFILE_P before
4229 printing cycle counts.
4230 * cgen-trace.h (trace_insn_fini): Update prototype.
4231 (TRACE_RESULT_P): New macro.
4232 (TRACE_INSN_INIT,TRACE_INSN_FINI): New arg abuf. All callers updated.
4233 (TRACE_INSN): Check ARGBUF_TRACE_P.
4234 (TRACE_EXTRACT,TRACE_RESULT): New arg abuf. All callers updated.
4235 * cgen-types.h (SIM_INLINE): Delete.
4236 (SIM_HAVE_MODEL,SIM_HAVE_ADDR_RANGE): Define.
4237 * cgen-utils.c: Don't include cgen-engine.h
4238 * genmloop.sh (@cpu@_fill_argbuf): New function.
4239 (@cpu@_fill_argbuf_tp): New function.
4240 (@cpu@_emit_before,@cpu@_emit_after): New functions.
4241 (@cpu@_pbb_begin): Prefix cti_sc,insn_count with '_'.
4242 (SET_CTI_VPC,SET_INSN_COUNT): Update.
4243 (@cpu@_pbb_before): Check ARGBUF_PROFILE_P before calling
4244 doing profiling. Update call to TRACE_INSN_INIT,TRACE_INSN_FINI.
4245 (@cpu@_pbb_after): Check ARGBUF_PROFILE_P before calling
4246 doing profiling. Update call to TRACE_INSN_FINI.
4247
4248 * sim-memopt.c (sim_memory_uninstall): Result type is `void'.
4249
4250 1998-12-03 Frank Ch. Eigler <fche@cygnus.com>
4251
4252 * sim-memopt.c (sim_memory_uninstall): Deallocate all memory
4253 regions.
4254
4255 1998-12-01 Doug Evans <devans@casey.cygnus.com>
4256
4257 * sim-inline.c (SIM_INLINE_P): Fix typo.
4258
4259 1998-11-30 Doug Evans <devans@casey.cygnus.com>
4260
4261 * cgen-utils.c (cgen_virtual_opcode_table): Update.
4262
4263 Tue Nov 24 18:40:03 1998 Andrew Cagney <cagney@b1.cygnus.com>
4264
4265 * gennltvals.sh: Add v850 and d10v. Sort alphabetically.
4266 * nltvals.def: Re-generate.
4267
4268 Mon Nov 23 13:28:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
4269
4270 * sim-core.c (reverse_n, sim_core_uninstall, sim_core_init,
4271 sim_core_map_attach, sim_core_map_detach, next_event_queue,
4272 new_sim_core_mapping): Only define when EXTERN_SIM_CORE_P, pacify
4273 GCC.
4274 * sim-events.c (sim_events_uninstall, sim_events_suspend,
4275 sim_events_resume, sim_events_zalloc, insert_sim_event): Ditto.
4276
4277 1998-11-22 Doug Evans <devans@tobor.to.cygnus.com>
4278
4279 * genmloop.sh (${cpu}_pbb_chain): Watch for Ctrl-C's.
4280 (${cpu}_pbb_cti_chain): Ditto.
4281
4282 1998-11-18 Doug Evans <devans@casey.cygnus.com>
4283
4284 * Make-common.in (cgen-utils.o): Depend on cgen-engine.h.
4285 * cgen-engine.h (EXTRACT_[ML]SB0_{INT,UINT}): New macros.
4286 (EXTRACT_INT,EXTRACT_UINT): New macros.
4287 (SEM_SEM_ARG): New macro.
4288 (SEM_NEXT_VPC): New arg `pc'.
4289 * cgen-sim.h (EXTRACT_SIGNED,EXTRACT_UNSIGNED): Delete.
4290 (sim_disassemble_insn): Update prototype.
4291 * cgen-trace.c (current_insn,insn_fields): New static locals.
4292 (trace_insn): Set them.
4293 * cgen-utils.c: #include cgen-engine.h.
4294 (sim_disassemble_insn): New arg insn_fields.
4295 Handle variable length insns.
4296 * genmloop.sh: Only emit pbb decls if -pbb.
4297 (${cpu}_scache_lookup): New arg `vpc'.
4298 (scache support): Fetch pc before entering loop.
4299
4300 * gennltvals.sh: Add fr30 support.
4301 * nltvals.def: Rebuild.
4302
4303 Wed Nov 18 10:22:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
4304
4305 * sim-types.h: Re-do type system so that GCC's attribute and mode
4306 are used to specify types. Handle case of ALPHA.
4307
4308 1998-11-13 Frank Ch. Eigler <fche@elastic.org>
4309
4310 * aclocal.m4: Add tests for dlopen family.
4311 * config.in: Regenerated.
4312
4313 Wed Nov 11 14:02:25 1998 Doug Evans <devans@canuck.cygnus.com>
4314
4315 * sim-hload.c (sim_load): Pass `prog_name' to sim_load_file, not NULL.
4316
4317 Wed Nov 4 23:51:19 1998 Doug Evans <devans@seba.cygnus.com>
4318
4319 * genmloop.sh (eng.hin): Rename HAVE_PARALLEL_EXEC to
4320 HAVE_PARALLEL_INSNS, define as 0 or 1. Emit decls of fns in mloop.cin.
4321 * cgen-engine.h: Typedefs of IADDR,CIA,SEM_ARG,SEM_PC moved ...
4322 * cgen-sim.h: ... to here.
4323
4324 Wed Oct 28 12:00:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
4325
4326 * aclocal.m4 (enable-build-warnings): Replace
4327 enable-sim-warnings. Extend =LIST syntax so that prepend and
4328 append of options is possible. Drop -Werror, add
4329 -Wstrict-prototypes for GDB compatibility.
4330 * Make-common.in (SIM_WARNINGS): Update.
4331
4332 Mon Oct 19 13:56:32 1998 Doug Evans <devans@seba.cygnus.com>
4333
4334 * Make-common.in (CGEN_INCLUDE_DEPS): Define.
4335 (sim-core.o): Delete duplicate dependence on $(SIM_EXTRA_DEPS).
4336 (sim-cpu.o,sim-endian.o,sim-hw.o): Ditto.
4337 (cgen-run.o,cgen-scache.o,cgen-trace.o,cgen-utils.o): Delete
4338 explicit cgen header dependencies, require SIM_EXTRA_DEPS to include
4339 CGEN_INCLUDE_DEPS.
4340 * cgen-cpu.h: New file.
4341 * cgen-engine.h: New file.
4342 * cgen-scache.h: New file.
4343 * cgen-sim.h: Delete portions moved to new files.
4344 * genmloop.sh: Generate two files eng.hin,mloop.cin explicitly,
4345 rather than sending result to stdout.
4346
4347 Fri Oct 9 14:20:22 1998 Doug Evans <devans@seba.cygnus.com>
4348
4349 * Make-common.in (sim-reg.o): New rule.
4350 (cgen-run.o): New rule.
4351 * cgen-ops.h: Delete many BI macros. Change all UBI -> BI.
4352 * cgen-run.c (prime_cpu): New function.
4353 * cgen-scache.c: Add pseudo-basic-block (pbb) scaching support.
4354 (scache_option_handler, case OPTION_PROFILE_SCACHE): Handle explicitly
4355 mentioned cpu.
4356 (scache_flush_cpu,scache_lookup,scache_lookup_or_alloc): New fns.
4357 * cgen-sim.h (CGEN_INSN_VIRTUAL_TYPE): New enum.
4358 (CGEN_INSN_VIRTUAL_P): New macro.
4359 (SEM_PC): New typedef.
4360 (SEMANTIC_FN): Change type of result to SEM_PC.
4361 (SEM_SET_FULL_CODE,SEM_SET_FAST_CODE,SEM_SET_CODE): New macros.
4362 (IDESC_CTI_P,IDESC_SKIP_P): New macros.
4363 (SCACHE_MAP): New typedef.
4364 (CPU_SCACHE): Add pbb support.
4365 (scace_lookup,scache_lookup_or_alloc,scache_flush_cpu): Declare.
4366 (SEM_BRANCH_INIT_EXTRACT,SEM_BRANCH_INIT,SEM_BRANCH_FINI): New macros.
4367 (CGEN_CPU): New members running_p,insn_count,{fast,full}_engine_fn,
4368 max_slice_insns.
4369 (INSN_NAME): Delete.
4370 (cgen_insn_name): Declare.
4371 (sim_engine_invalid_insn): Renamed from sim_engine_illegal_insn.
4372 * cgen-trace.c (trace_buf): Shrink from 1024 to 256 bytes.
4373 (first_insn_p): Make static.
4374 (trace_insn): Handle virtual insns specially.
4375 (cgen_trace_printf): Ensure we haven't overflowed the buffer.
4376 * cgen-types.h (UBI): Delete.
4377 (MODE_TYPE): New enum.
4378 (HOSTINT,HOSTUINT,HOSTPTR): Delete.
4379 * cgen-utils.c (mode_names): Delete UBI. Add INT,UINT,PTR.
4380 (cgen_virtual_opcode_table): New global.
4381 (cgen_insn_name): New function.
4382 (sim_disassemble_insn): Ignore virtual insns.
4383 * genmloop.sh: Delete top level loop generation. Add pbb support.
4384 * sim-cpu.h (CPU_INSN_NAME_FN): New typedef.
4385 (sim_cpu_base): New members max_insns,insn_name,model_data.
4386 (CPU_PC_GET,CPU_PC_SET): New macros.
4387 (sim_pc_get,sim_pc_set): Declare.
4388 * sim-model.c (model_set): Call model init fn.
4389 * sim-model.h (MODEL_FN): New typedef.
4390 (INSN_TIMING): New member model_fn.
4391 (MODEL): New members num,init.
4392 * sim-profile.c (sim_profile_print_bar): Renamed from print_bar.
4393 All callers updated.
4394 (profile_insn_init): New fn.
4395 (profile_print_insn): Update, INSN_NAME -> CPU_INSN_NAME.
4396 Exit early if insn profiling not supported.
4397 (profile_print_memory): Update, MAX_MODES -> MODE_TARGET_MAX.
4398 (profile_install): Record profile_insn_init as init fn.
4399 (profile_uninstall): Free PROFILE_INSN_COUNT if non-null.
4400 * sim-profile.h: Update, MAX_MODES -> MODE_TARGET_MAX.
4401 (PROFILE_DATA): Delete member exec_time.
4402 Change insn_count to pointer to array, rather than the array.
4403 (sim_profile_print_bar): Declare.
4404
4405 Wed Oct 7 16:56:42 1998 Doug Evans <devans@seba.cygnus.com>
4406
4407 * cgen-run.c: New file.
4408 * sim-reg.c: New file.
4409
4410 Mon Sep 14 10:58:19 1998 Frank Ch. Eigler <fche@cygnus.com>
4411
4412 * aclocal.m4: Add checks for -lsocket and -lnsl.
4413
4414 * dv-sockser.c (dv_sockser_init): Use SO_REUSEADDR to
4415 allow local port reuse on listening socket.
4416
4417 Tue Sep 1 15:36:52 1998 Frank Ch. Eigler <fche@cygnus.com>
4418
4419 * sim-config.h: Remove reference to linux kernel header.
4420
4421 Tue Aug 25 12:45:27 1998 Frank Ch. Eigler <fche@cygnus.com>
4422
4423 * dv-sockser.c (sockser_addr): Make variable non-static.
4424
4425 Mon Aug 24 11:47:37 1998 Joyce Janczyn <janczyn@cygnus.com>
4426
4427 * sim-hw.{c,h} (sim_hw_parse): Return struct hw pointer.
4428
4429 Tue Aug 11 18:12:19 1998 Doug Evans <devans@canuck.cygnus.com>
4430
4431 * sim-events.c (sim_events_elapsed_time): Fix calculation.
4432
4433 Tue Aug 4 20:36:46 1998 Jeff Holcomb <jeffh@cygnus.com>
4434
4435 * Make-common.in (install-common): Add $(EXEEXT) when installing
4436 run.
4437
4438 Mon Aug 3 11:46:01 1998 Doug Evans <devans@seba.cygnus.com>
4439
4440 * cgen-sim.h (cgen_state): New member opcode_table.
4441 * cgen-utils.c (sim_disassemble_insn): Use it.
4442
4443 Fri Jul 24 10:14:18 1998 Doug Evans <devans@canuck.cygnus.com>
4444
4445 * cgen-mem.h (DECLARE_SETT): Fix return type.
4446 * cgen-sim.h (sim_engine_illegal_insn): Declare.
4447 * cgen-scache.c: Include stdlib.h.
4448 * cgen-trace.c (trace_extract): Use %lx for PCADDR.
4449 * sim-model.c (model_option_handler): Remove unused variable `n'.
4450
4451 Tue Jul 21 16:27:43 1998 Doug Evans <devans@seba.cygnus.com>
4452
4453 * cgen-utils.c: Include bfd.h.
4454 (sim_disassemble_insn): Update call to CGEN_EXTRACT_FN.
4455
4456 Wed Jul 8 18:24:10 1998 Jeffrey A Law (law@cygnus.com)
4457
4458 * sim-bits.h (EXTEND24): Fix typo.
4459
4460 Wed Jul 8 17:41:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
4461
4462 * sim-events.c (ETRACE_P): New macro.
4463 (struct _sim_event): Add member trace.
4464 (sim_events_free): Reclaim trace message.
4465
4466 * sim-events.c, sim-events.h (sim_events_schedule_vtracef,
4467 sim_events_schedule_tracef): New functions, include printf trace
4468 information in argument list. If tracing, store asprintf'd trace
4469 message in sim_event.
4470
4471 * hw-events.c, hw-events.h (hw_event_queue_schedule_tracef,
4472 hw_event_queue_schedule_vtracef): New functions, mimic
4473 sim_event_tracef.
4474
4475 Mon Jul 6 15:51:14 1998 Jeffrey A Law (law@cygnus.com)
4476
4477 * sim-bits.h (EXTEND24): Define.
4478
4479 Thu Jul 2 17:13:25 1998 Doug Evans <devans@seba.cygnus.com>
4480
4481 * cgen-sim.h (CPU_SCACHE): Make size unsigned.
4482 (CPU_SCACHE_HASH_MASK): New macro.
4483 (SCACHE_HASH_PC): Rewrite.
4484 * genmloop.sh (engine_resume_{full,fast}): Move some of hash
4485 computation out of main loop.
4486
4487 Wed Jul 1 16:44:12 1998 Doug Evans <devans@seba.cygnus.com>
4488
4489 * cgen-sim.h (RECORD_IADDR): Delete.
4490 * cgen-types.h (HOSTINT,HOSTUINT,HOSTPTR): New types.
4491 * genmloop.sh (engine_resume_{full,fast}): Delete icount.
4492
4493 Wed Jun 17 12:25:08 1998 Mark Alexander <marka@cygnus.com>
4494
4495 * gennltvals.def (mn10200): Add entry.
4496 * nltvals.def: Regenerate with MN10200 additions.
4497
4498 Wed Jun 17 13:18:28 1998 Andrew Cagney <cagney@b1.cygnus.com>
4499
4500 * sim-inline.h (EXTERN_*): Replace with EXTERN_*_P. Correct
4501 documentation on how it works.
4502
4503 * sim-core.h, sim-core.c (sim_core_install, sim_core_attach,
4504 sim_core_detach, sim_core_read_buffer, sim_core_write_buffer,
4505 sim_core_set_xor, sim_core_xor_read_buffer,
4506 sim_core_xor_write_buffer): Update.
4507
4508 * sim-events.h, sim-events.c (sim_events_install,
4509 sim_events_watch_clock, sim_events_schedule_after_signal,
4510 sim_events_schedule, sim_events_watch_sim, sim_events_watch_core,
4511 sim_events_deschedule): Update.
4512
4513 * sim-fpu.h, sim-fpu.c (sim_fpu_zero, sim_fpu_one, sim_fpu_two,
4514 sim_fpu_max32, sim_fpu_max64): Update.
4515
4516 Sat Jun 13 07:45:38 1998 Doug Evans <devans@fallis.cygnus.com>
4517
4518 * cgen-trace.c (trace_insn_fini): Redo cycle handling.
4519 * sim-profile.h (PROFILE_DATA): Rename cycle handling members.
4520 * sim-profile.c (profile_print_model): Update.
4521
4522 Fri Jun 12 18:35:07 1998 Doug Evans <devans@seba.cygnus.com>
4523
4524 * gennltvals.def (m32r): Use common syscall.h now.
4525 (mn10300): Add entry.
4526 * nltvals.def: Regenerate.
4527
4528 * sim-engine.c (sim_engine_get_run_state): New function.
4529 * sim-engine.h (sim_engine_get_run_state): Declare it.
4530
4531 Thu Jun 11 00:50:03 1998 Doug Evans <devans@seba.cygnus.com>
4532
4533 * sim-core.h (SIM_CORE_SIGNAL_FN): New typedef.
4534 * sim-core.c (sim_core_signal): Make extern, always define.
4535
4536 Wed Jun 10 16:02:29 1998 Doug Evans <devans@seba.cygnus.com>
4537
4538 * Make-common.in (CGEN_FLAGS_TO_PASS): New variable.
4539 * cgen-ops.h (ANDIF): New macro.
4540 (ANDIF[BQHSD]I): Delete.
4541
4542 Thu Jun 4 13:53:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
4543
4544 * hw-events.c (create_hw_event, delete_hw_event): Delete.
4545 (hw_event_queue_schedule, hw_event_queue_deschedule,
4546 bounce_hw_event): Fix hw-event memory corruptions found by Joyce
4547 Janczyn.
4548
4549 * hw-alloc.h (HW_NZALLOC): Define.
4550
4551 * Make-common.in (test-hw-events): Add target for testing the
4552 hw-event code.
4553
4554 Mon May 25 21:11:26 1998 Andrew Cagney <cagney@b1.cygnus.com>
4555
4556 * Make-common.in (SIM_COMMON_HW_OBJS): Add hw-handles.o and
4557 hw-instances.o.
4558 hw-handles.c, hw-instances.c, hw-handles.h, hw-instances.h: New
4559 files.
4560 * hw-main.h: Include hw-handles.h, hw-instances.h.
4561 * hw-base.h ({create,delete}_hw_{handles,instances}_data): Declare
4562 * hw-base.c (hw_create, hw_delete): Call same.
4563
4564 Mon May 25 18:55:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
4565
4566 * dv-core.c: Include hw-main.h and sim-main.h.
4567 * dv-pal.c: Include hw-main.h and sim-io.h.
4568 * dv-glue.c: Include hw-main.h.
4569
4570 * hw-main.h: New file. Move list of includes to here.
4571 * hw-base.h: From here.
4572 * Make-common.in (hw_base_headers): Rename to hw_main_headers.
4573 (hw-*.o, dv-*.o): Update.
4574 * hw-tree.c, hw-base.c, hw-properties.c, hw-ports.c, hw-device.c,
4575 hw-events.c, hw-alloc.c, sim-hw.c: Include hw-main.h instead of
4576 sim-main.h.
4577
4578 * hw-base.h (do_hw_attach_regs, do_hw_poll_read_method,
4579 do_hw_poll_read): Move declarations from here.
4580 * hw-main.h: To here.
4581
4582 * hw-base.h (struct hw_device_descriptor, hw_finish_callback):
4583 Move from here.
4584 * hw-main.h (struct hw_descriptor, hw_finish_method): To here,
4585 rename.
4586 * Make-common.in (hw-config.h): Update
4587 * hw-base.c, dv-pal.c, dv-glue.c: Update
4588
4589 * dv-glue.c, hw-device.h, hw-base.h, hw-ports.c: Rename
4590 `*_callback' to `*_method.
4591
4592 Mon May 25 18:41:18 1998 Andrew Cagney <cagney@b1.cygnus.com>
4593
4594 * hw-base.h (set_*): Move set method macros from here.
4595 * hw-device.h: To here.
4596
4597 Mon May 25 18:21:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
4598
4599 * hw-base.h (create_hw_property_data, delete_hw_property_data):
4600 Declare.
4601
4602 * hw-base.c (hw_create, hw_delete): Call
4603 * hw-properties.c (create_hw_property_data,
4604 delete_hw_property_data): Define.
4605
4606 Mon May 25 17:40:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
4607
4608 * hw-device.c, hw-properties.c: Include hw-base.h
4609
4610 * hw-alloc.h, hw-alloc.c: New files. Move alloc code to here.
4611 * hw-device.c: From here.
4612 * hw-base.h: Include "hw-events.h".
4613
4614 * hw-base.h (create_hw_alloc_data, delete_hw_alloc_data): Declare.
4615 * hw-base.c (hw_create, hw_delete): Call.
4616 * hw-alloc.c (create_hw_alloc_data, delete_hw_alloc_data): Define.
4617
4618 * Make-common.in (SIM_NEW_COMMON_OBJS): Add hw-alloc.o.
4619 (hw-alloc.o): New target.
4620
4621 Mon May 25 17:14:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
4622
4623 * hw-events.h, hw-events.c: New files. Move event code to here.
4624 * sim-hw.c: From here.
4625 * hw-base.h: Include "hw-events.h".
4626 * Make-common.in (SIM_NEW_COMMON_OBJS): Add hw-events.o.
4627 (hw-events.o): New target.
4628
4629 * hw-device.h (struct hw): Add struct hw_event_data events_of_hw.
4630 * hw-events.h (struct hw_event): Replace typedef hw_event.
4631
4632 * hw-base.h (create_hw_event_data, delete_hw_event_data): Declare.
4633 * hw-base.c (hw_create, hw_delete): Call.
4634 * hw-events.c (create_hw_event_data, delete_hw_event_data): Define.
4635
4636 * dv-pal.c: Update.
4637
4638 Mon May 25 16:55:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
4639
4640 * hw-base.c (panic_hw_port_event, empty_hw_ports): Move from here.
4641 * hw-ports.c: To here.
4642
4643 * hw-base.h, hw-ports.c (create_hw_port_data,
4644 delete_hw_port_data): New functions.
4645 * hw-base.c (hw_delete, hw_create): Call same.
4646
4647 * hw-base.h (set_hw_ports, set_hw_port_event): Move set functions
4648 from here.
4649 * hw-ports.h: To here.
4650
4651 Mon May 25 16:42:48 1998 Andrew Cagney <cagney@b1.cygnus.com>
4652
4653 * hw-device.c (hw_ioctl), hw-device.h (hw_ioctl_callback): Drop
4654 PROCESSOR and CIA arguments.
4655
4656 Fri May 22 12:16:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
4657
4658 * aclocal.m4 (SIM_AC_OPTION_HW): Add enable / disable argument.
4659 Move common object files from here.
4660 * Make-common.in (SIM_COMMON_HW_OBJS): To here.
4661
4662 Thu May 21 17:57:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
4663
4664 * sim-hw.c: Include ctype.h.
4665 (do_hw_poll_read): Do not assume EAGAIN.
4666
4667 Wed May 20 04:37:57 1998 Doug Evans <devans@seba.cygnus.com>
4668
4669 * cgen-trace.c (first_insn_p): New static local.
4670 (trace_insn_init): Set it.
4671 (trace_insn_fini): Use TRACE_PREFIX.
4672 (trace_insn): Rewrite to use trace_prefix.
4673 * sim-trace.c (trace_prefix): Don't print filename arg if NULL.
4674 Adjust width accordingly.
4675
4676 * sim-profile.h (PROFILE_DATA): New member profile_any_p.
4677 (PROFILE_ANY_P,PROFILE_INSN_P,PROFILE_MEMORY): New macros.
4678 (PROFILE_SCACHE_P,PROFILE_PC_P,PROFILE_CORE_P): New macros.
4679 (PROFILE_COUNT_INSN,PROFILE_COUNT_READ,PROFILE_COUNT_WRITE): Simplify.
4680 (PROFILE_COUNT_CORE): Simplify.
4681 * sim-profile.c (profile_option_handler): Compute profile_any_p.
4682
4683 Tue May 19 23:55:30 1998 Doug Evans <devans@seba.cygnus.com>
4684
4685 * cgen-ops.h (ADDCFSI): Fix typo.
4686
4687 Sat May 16 12:44:52 1998 Doug Evans <devans@seba.cygnus.com>
4688
4689 * cgen-sim.h (CGEN_CPU): New members idesc_{read,sem}_init_p.
4690 * genmloop.sh: Use them rather than static locals.
4691
4692 * sim-engine.c (sim_engine_set_run_state): New function.
4693 * sim-engine.h (sim_engine_set_run_state): Declare.
4694 * genmloop.sh (pending_reason,pending_sigrc): New static locals.
4695 (@cpu@_engine_stop): New args reason,sigrc. All callers updated.
4696 (engine_resume): Reorganize. Allow synchronous exit from main loop.
4697
4698 Fri May 15 16:06:05 1998 Doug Evans <devans@seba.cygnus.com>
4699
4700 * cgen-trace.c (trace_insn_init): New arg first_p.
4701 All callers updated.
4702 (trace_insn_fini): New arg last_p. All callers updated.
4703 * cgen-trace.h (trace_insn_init,trace_insn_fini): Update.
4704 (TRACE_INSN_INIT,TRACE_INSN_FINI): Update.
4705 * genmloop.sh (engine_resume): Update.
4706
4707 Fri May 15 15:59:00 1998 Joyce Janczyn <janczyn@cygnus.com>
4708
4709 * Make-common.in (install-common): Run ranlib on installed copy of
4710 libsim.a.
4711
4712 Fri May 15 15:03:00 1998 Joyce Janczyn <janczyn@cygnus.com>
4713
4714 * Make-common.in (install-common): Rename and install libsim.a.
4715
4716 Tue May 12 15:23:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
4717
4718 * sim-io.c (unistd.h): Include.
4719
4720 Wed May 6 16:04:18 1998 Doug Evans <devans@seba.cygnus.com>
4721
4722 * Make-common (sim_main_headers): Sort.
4723 (cgen-*.o): Add cgen-sim.h dependency.
4724
4725 * cgen-scache.c (scache_init): Only allocate space if scache element
4726 size is non-zero.
4727 (scache_flush,scache_print_profile): Check if scache in use first.
4728
4729 * cgen-sim.h (IDESC): Provide forward declaration.
4730 (DECODE): Delete.
4731 (CGEN_CPU): Always define scache member. New members idesc,opcode.
4732 (cgen_cpu_max_extra_bytes): Declare.
4733 * cgen-utils.c (cgen_cpu_max_extra_bytes): New function.
4734
4735 * sim-cpu.h: New file. sim_cpu_base moved here.
4736 Move sim_cpu_lookup decl here.
4737 * sim-base.h: #include "sim-cpu.h".
4738 * sim-cpu.c: New file.
4739 * Make-common (sim_main_headers): Add sim-cpu.h.
4740 (sim-cpu.o): Add rule for.
4741
4742 * sim-model.c (set_model): Delete.
4743 (sim_model_set,model_set): New functions.
4744 (sim_model_install): Renamed from model_install.
4745 Don't set default model here.
4746 (model_option_handler): Rewrite --model processing.
4747 (sim_model_lookup,sim_mach_lookup): New functions.
4748 * sim-model.h (MAX_MODELS,MAX_INSNS): Delete.
4749 (insn_timing): Delete.
4750 (INSN_TIMING): New member `num'.
4751 (IMP_PROPERTIES): Always define scache_elm_size member.
4752 (MACH): New member init_cpu.
4753 (sim_machs): Renamed from machs.
4754 (sim_model_install): Renamed from model_install.
4755 (sim_model_set,sim_model_lookup,sim_mach_lookup): Declare.
4756 * sim-module.c (modules): Update.
4757
4758 * sim-profile.c (profile_print_insn): Add cpu arg to INSN_NAME macro.
4759
4760 * sim-io.c: #include <errno.h>.
4761
4762 Wed May 6 12:39:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
4763
4764 * dv-pal.c (struct hw_pal_device): Add reader.
4765 (hw_pal_finish): Initialize reader.
4766 (scan_hw_pal): Use reader.
4767
4768 * hw-base.h, sim-hw.c (do_hw_poll_read): New function.
4769 (HW_IO_EOF, HW_IO_NOT_READY): Define.
4770 * dv-pal.c: Use.
4771
4772 * sim-io.h, sim-io.c (sim_io_poll_read): New function. Copy from
4773 ../ppc/main.c sim_io_read_stdin.
4774
4775 Fri May 1 12:11:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
4776
4777 * hw-tree.h (hw_tree_print): Paramaterize with print and file
4778 arguments.
4779 * hw-tree.c: Update.
4780
4781 * hw-base.h (hw_port_event_callback): Delete CPU/CIA args.
4782 * hw-device.h (hw_io_read_buffer, hw_io_write_buffer): Delete
4783 CPU/CIA args.
4784 * hw-ports.h (hw_port_event): Ditto.
4785 * hw-ports.c (hw_port_event): Update.
4786 * hw-base.c (panic_hw_io_read_buffer, panic_hw_io_write_buffer):
4787 Update.
4788 * dv-pal.c (hw_pal_io_read_buffer, hw_pal_io_write_buffer):
4789 Update.
4790 (hw_pal_io_write_buffer): Call hw_halt not sim_engine_halt.
4791 (do_counter_event): Update.
4792 * dv-glue.c (hw_glue_io_read_buffer): Update.
4793 (hw_glue_port_event): Update.
4794
4795 * hw-device.h (SIM_DESC): Replace with struct sim_state.
4796 * hw-base.h (hw_create): Ditto.
4797 * hw-base.c (hw_create): Ditto.
4798
4799 * hw-device.c (hw_abort, hw_trace, hw_hw_event_queue_schedule,
4800 hw_event_queue_deschedule, hw_event_queue_time): Delete, moved
4801 from here to.
4802 * sim-hw.c: Here.
4803 * hw-device.h (hw_system_cpu): Declare.
4804 * sim-hw.c (hw_system_cpu): New function.
4805
4806 * sim-core.c (sim_core_map_attach, sim_core_attach): Call
4807 sim_hw_abort not hw_abort.
4808 (sim-hw.h): Include.
4809 (sim_core_read_buffer, sim_core_write_buffer): Call
4810 sim_hw_io_read_buffer and sim_hw_io_write_buffer. Do not pass CPU
4811 argument.
4812 (sim_core_set_xor): Do not pass CPU when aborting.
4813
4814 * sim-n-core.h (sim_core_read_aligned_N,
4815 sim_core_write_aligned_N): Call sim_hw_abort not hw_abort.
4816 (sim_core_read_aligned_N, sim_core_write_aligned_N): Call
4817 sim_cpu_hw_io_read_buffer and sim_cpu_hw_io_write_buffer. Does not
4818 return length.
4819
4820 * sim-hw.h: Declare sim_hw_io_{read,write}_buffer. Declare
4821 sim_hw_print.
4822 * sim-hw.c (sim_hw_io_read_buffer, sim_hw_io_write_buffer,
4823 sim_cpu_hw_io_read_buffer, sim_cpu_hw_io_write_buffer): New
4824 functions.
4825 (sim_hw_print): New function.
4826
4827 * sim-engine.h (sim_engine_vabort): Declare.
4828 * sim-engine.c (sim_engine_vabort): New function.
4829
4830 Wed Apr 29 23:58:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
4831
4832 * sim-trace.c (print_data): For floating-point numbers trace raw
4833 hex value.
4834 (trace_result_fp2): New function.
4835 * sim-trace.h (trace_result_fp2): New declaration.
4836 (TRACE_FP_RESULT2): New macro.
4837
4838 Tue Apr 28 18:28:58 1998 Geoffrey Noer <noer@cygnus.com>
4839
4840 * common/aclocal.m4: call AM_EXEEXT in SIM_AC_COMMON, define
4841 AM_CYGWIN32 and AM_EXEEXT.
4842 * common/Make-common.in: set EXEEXT, add missing EXEEXTs
4843 to run and install-common rules.
4844 * common/configure: regenerate
4845
4846 Sat Apr 25 17:45:01 1998 Andrew Cagney <cagney@b1.cygnus.com>
4847
4848 * sim-types.h (cell_word): New type.
4849 (natural_cell): Delete type.
4850
4851 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
4852
4853 * configure: Regenerated to track ../common/aclocal.m4 changes.
4854 * config.in: Ditto.
4855
4856 Sun Apr 26 15:25:07 1998 Tom Tromey <tromey@cygnus.com>
4857
4858 * acconfig.h (NEED_DECLARATION_PRINTF): Removed.
4859
4860 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
4861
4862 * configure: Regenerated to track ../common/aclocal.m4 changes.
4863 * config.in: Ditto.
4864
4865 Fri Apr 24 11:38:08 1998 Tom Tromey <tromey@cygnus.com>
4866
4867 * acconfig.h: New file.
4868 * Make-common.in (top_builddir): New macro.
4869 (INTL_LIB): Removed.
4870 (INTLLIBS): New macro.
4871 (INTLDEPS): Likewise.
4872 (LIBDEPS): Use INTLDEPS.
4873 (EXTRA_LIBS): Use INTLLIBS.
4874 * aclocal.m4 (SIM_AC_COMMON): Call CY_GNU_GETTEXT.
4875 (CY_WITH_NLS, CY_GNU_GETTEXT, AM_PATH_PROG_WITH_TEST,
4876 AM_LC_MESSAGES): New macros from GNU gettext.
4877
4878 Fri Apr 24 19:57:59 1998 Andrew Cagney <cagney@b1.cygnus.com>
4879
4880 * sim-config.h: Discard leading _ from macros.
4881 * sim-types.h: Ditto.
4882
4883 Wed Apr 22 14:14:19 1998 Michael Meissner <meissner@cygnus.com>
4884
4885 * Make-common.in (CSEARCH): Add -I to intl directories.
4886 (INTL_LIB): Point to libintl.a.
4887 (LIBDEPS): Add $(INTL_LIB).
4888 (EXTRA_LIBS): Ditto.
4889
4890 Tue Apr 21 12:44:27 1998 Doug Evans <devans@canuck.cygnus.com>
4891
4892 * cgen-types.h (GETHIDI,MAKEDI): Tweak.
4893
4894 * cgen-ops.h (ADDCFSI): Fix.
4895 (SUBCFSI): Tweak.
4896
4897 Tue Apr 21 13:18:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
4898
4899 * sim-types.h (signed_address, unsigned_address): Define.
4900
4901 Mon Apr 20 21:47:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
4902
4903 * sim-fpu.c (sim_fpu_2d): Don't return an SNaN, convert it into a
4904 QNaN.
4905
4906 Thu Apr 16 10:30:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
4907
4908 * sim-fpu.c, sim-fpu.h (sim_fpu_fractionto, sim_fpu_tofraction):
4909 New functions, pack / unpack sim_fpu struct using raw values.
4910 (sim_fpu_is): Differentiate between negative and positive
4911 infinity.
4912
4913 Tue Apr 14 18:49:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
4914
4915 * sim-bits.h (EXTEND4): Define.
4916 (EXTEND4, EXTEND15, EXTEND11): Ditto.
4917
4918 Tue Apr 14 16:31:35 1998 John Metzler <jmetzler@cygnus.com>
4919
4920 * sim-memopt.c (parse_addr): Sunos 4.5 does not have strtol
4921 declared so we need this cast to prevent long long addresses
4922 from being misconfigures. Results in access to unmapped memory.
4923
4924 Tue Apr 14 13:19:14 1998 Doug Evans <devans@canuck.cygnus.com>
4925
4926 * Make-common.in (RUNTESTFLAGS): Define.
4927 (check): Pass RUNTESTFLAGS to recursive make.
4928
4929 Tue Apr 14 15:09:19 1998 Andrew Cagney <cagney@b1.cygnus.com>
4930
4931 * sim-info.c (sim_info): Be verbose when either VERBOSE or
4932 STATE_VERBOSE_P.
4933
4934 Sat Apr 4 23:24:17 1998 Andrew Cagney <cagney@b1.cygnus.com>
4935
4936 * aclocal.m4 (sim-inline): By default, disable sim-inline when
4937 cross compiling.
4938
4939 Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
4940
4941 * aclocal.m4 (sim-cflags): Add -fomit-frame-pointer to defaults.
4942 (sim-inline): Update to match sim-inline.[hc]
4943 * configure: Regenerated to track ../common/aclocal.m4 changes.
4944
4945 * Make-common.in (sim_main_headers): Add sim-inline.h
4946
4947 * sim-bits.h (sim-bits.c): Include when H_REVEALS_MODULE_P.
4948 selected.
4949 * sim-endian.h (sim-endian.c): Ditto.
4950
4951 * sim-events.h (_SIM_EVENTS_H_): Replace with SIM_EVENTS_H.
4952 (sim_events_set_trace): Delete unused prototype.
4953
4954 * sim-core.h (_SIM_CORE_H_): Replace with SIM_CORE_H.
4955 * sim-core.c (_SIM_CORE_C_): Ditto for SIM_CORE_C.
4956
4957 * sim-fpu.h (sim-fpu.c): Include when H_REVEALS_MODULE_P.
4958 (sim_fpu_to232i, sim_fpu_to232u, sim_fpu_i232to, sim_fpu_u232to):
4959 Comment out, not yet implemented in sim-fpu.c.
4960 (sim_fpu_zero, sim_fpu_one, sim_fpu_two, sim_fpu_qnan,
4961 sim_fpu_max32, sim_fpu_max64): Mark as EXTERN_SIM_FPU.
4962
4963 * sim-inline.h: Rewrite description.
4964 (H_REVEALS_MODULE_P, C_REVEALS_MODULE_P): Define.
4965 (SIM_MAIN_INLINE): Add inline option.
4966
4967 * sim-inline.c (semantics.c, idecode.c, engine.c, ...): Do not
4968 include generated files. Handled by generator directly.
4969
4970 Sat Apr 4 01:07:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
4971
4972 * sim-trace.c (set_trace_option_mask): Keep TRACE_ANY_P
4973 up-to-date.
4974
4975 * sim-trace.h (TRACE_ANY_P): Define.
4976 (struct _trace_data): Add trace_any_p.
4977
4978 Mon Mar 30 17:11:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
4979
4980 * run.c (main): Handle all alternatives of enum sim_stop.
4981 (main): Delete unused `asection *s'.
4982
4983 Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
4984
4985 * hw-tree.h, hw-tree.c (hw_tree_vparse): New function
4986
4987 * configure: Regenerated to track ../common/aclocal.m4 changes.
4988
4989 * sim-hw.c: New file.
4990 * sim-hw.h (sim_hw_parse): Declare function.
4991 (hw-tree.h): Do not include.
4992
4993 * sim-base.h (STATE_HW): Define.
4994 (struct sim_state_base): Add member struct *hw.
4995
4996 * sim-module.c (sim-hw.h): Include.
4997 (modules): Add sim_hw_install.
4998
4999 * aclocal.m4 (sim_hw_obj): Add sim-hw.o
5000
5001 Fri Mar 27 14:55:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
5002
5003 * sim-base.h (CPU_INDEX): Define.
5004
5005 * sim-utils.c (sim_state_alloc): Initialize.
5006 * sim-module.c (sim_post_argv_init): Ditto.
5007
5008 Thu Mar 26 10:07:57 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
5009
5010 * aclocal.m4 (sim_hw_obj): Fix sed expression to generate
5011 properly formatted lists.
5012
5013 Thu Mar 26 10:37:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
5014
5015 * dv-pal.c (enum hw_pal_address_mask): From Stu Grossman, was
5016 0x2f needs to be 0x3f.
5017
5018 Thu Mar 26 09:10:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
5019
5020 * hw-tree.c (hw_tree_find_property): Return NULL when device is
5021 not found.
5022 (hw_tree_find_*_property): Clean up error message when property is
5023 not found.
5024
5025 * dv-pal.c (hw_pal_io_read_buffer): Check the smp property is
5026 present before looking for it.
5027
5028 Wed Mar 25 16:17:38 1998 Ian Carmichael <iancarm@cygnus.com>
5029
5030 * aclocal.m4 (AC_CHECK_HEADERS): Add check for fpu_control.h.
5031 (AC_CHECK_FUNCS): Add check for __setfpucw.
5032 * configure: Regenerated.
5033
5034 Wed Mar 25 09:18:34 1998 Andrew Cagney <cagney@b1.cygnus.com>
5035
5036 * dv-pal.c (hw_pal_countdown, hw_pal_countdown_value,
5037 hw_pal_timer, hw_pal_timer_value): Define.
5038 (hw_pal_io_read_buffer, hw_pal_io_write_buffer): Add timer support
5039 (do_counter_event, do_counter_read, do_counter_value,
5040 do_counter_write): new functions.
5041
5042 Tue Mar 24 12:24:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
5043
5044 * hw-tree.c (hw_printf): Send tree dump to stderr, same as other
5045 trace output.
5046
5047 * hw-base.c (hw_create): Stop searching for a device when one is
5048 found.
5049
5050 Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
5051
5052 * configure: Regenerated to track ../common/aclocal.m4 changes.
5053
5054 Mon Mar 23 10:25:08 1998 Andrew Cagney <cagney@b1.cygnus.com>
5055
5056 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Add second argument,
5057 appends extra devices.
5058 (SIM_AC_OPTION_HARDWARE): Substute sim_hw, a non-duplicate list of
5059 the device names.
5060
5061 * Make-common.in (hw-config.h): New target, create hw-config.h
5062 file.
5063 (SIM_HW): Definition from @sim_hw@.
5064 (hw-base.o): Depend on hw-config.h
5065
5066 Tue Mar 24 17:41:35 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
5067
5068 * Make-common.in: Get SHELL from configure.
5069 * (stamp-tvals sim-inline.c): Use $(SHELL) when invoking
5070 move-if-change. Fixes NT native build problem.
5071 * Makefile.in (nltvals.def): Use $(SHELL) when invoking
5072 move-if-change. Fixes NT native build problem.
5073 * configure: Regenerate with autoconf 2.12.1 to fix shell issues for
5074 NT native builds.
5075
5076 Sun Mar 22 16:54:40 1998 Andrew Cagney <cagney@b1.cygnus.com>
5077
5078 * hw-device.h, hw-device.c (hw_strdup): New function.
5079
5080 * hw-base.c (hw_create): Use hw_strdup when saving a copy of the
5081 strings name, family and args.
5082 (full_name_of_hw): Use hw_strdup when returning the full path.
5083
5084 * hw-properties.c: Clean up property not found / wrong type error
5085 messages.
5086
5087 * hw-tree.c (hw_tree_parse): Finish a devices initialization
5088 before attaching any ports.
5089
5090 * hw-base.c (hw-config.): Include. Replace hardwired table.
5091
5092 * dv-glue.c: Copy over ../ppc/hw_glue.c. Update to new framework.
5093
5094 * Make-common.in: Add rule for dv-glue.o.
5095
5096 Sun Mar 22 16:45:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
5097
5098 * hw-base.c (hw_finish): Move setting of trace level to here.
5099 (hw_create): From here.
5100
5101 * hw-base.h, hw-base.c (do_hw_attach_regs): Copy function from
5102 ../ppc/device_table.c.
5103
5104 * dv-pal.c (hw_pal_finish): Attach PAL device to parent bus.
5105
5106 * hw-tree.c (print_properties): Supress path when printing
5107 properties of root node.
5108
5109 Sun Mar 22 16:21:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
5110
5111 * hw-device.h (HW_TRACE): Define.
5112 (hw_trace): Declare.
5113 * hw-device.c (hw_trace): Implement function.
5114
5115 * hw-base.c (hw_create): Set hw trace level from "trace?"
5116 property.
5117
5118 * dv-core.c (dv_core_attach_address_callback): Add trace.
5119
5120 * dv-pal.c: Replace DTRACE with HW_TRACE.
5121
5122 Sun Mar 22 15:23:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
5123
5124 * hw-device.h (HW_ZALLOC, HW_MALLOC): New macros.
5125 (hw_alloc_data): Delcare.
5126 (struct hw): Add member alloc_of_hw.
5127
5128 * hw-device.c (hw_zalloc, hw_malloc, hw_free, hw_free_all): New
5129 functions. Assocate memory with a device.
5130 (stdlib.h): Include.
5131
5132 * hw-base.h (set_hw_delete): Define.
5133 (hw_delete_callback): Declare.
5134 (hw_delete): Declare.
5135
5136 * hw-base.c (hw_delete): Implement function.
5137 (struct hw_base_data): Add member to_delete.
5138 (ignore_hw_delete): New function, does nothing.
5139 (hw_create): Set the hw_delete method.
5140 (hw_create): Allocate the base type using HW_ZALLOC before setting
5141 any methods.
5142
5143 * hw-tree.h, hw-tree.c (hw_tree_delete): New function.
5144
5145 * hw-properties.c: Replace zalloc/zfree with hw_zalloc/hw_free.
5146
5147 * hw-ports.c: Replace zalloc/zfree with hw_zalloc/hw_free.
5148 (attach_hw_port_edge): Add struct hw argument
5149
5150 * dv-pal.c (hw_pal_finish): Replace zalloc/zfree with
5151 hw_zalloc/hw_free.
5152
5153 Sun Mar 22 15:09:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
5154
5155 * hw-device.h (hw_attach_address_callback,
5156 hw_detach_address_callback): Attach to a single space not a space
5157 mask. Clarify interpretation of SPACE:ADDR parameters.
5158
5159 * hw-base.c (passthrough_hw_attach_address,
5160 passthrough_hw_detach_address): Update.
5161 * dv-core.c (dv_core_attach_address_callback): Ditto.
5162 * dv-pal.c (hw_pal_attach_address): Ditto.
5163
5164 Thu Mar 19 00:41:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
5165
5166 * sim-options.h: Document additional CPU arg to OPTION_HANDLER.
5167
5168 Wed Mar 18 14:13:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
5169
5170 * Make-common.in (SIM_HW_OBJS, SIM_HW_SRC, SIM_DV_OBJS): Define.
5171 (hw-base_h, hw-device_h, hw-handles_h, hw-instances_h, hw_ports_h,
5172 hw-properties_h, hw-tree_h): Define, point at corresponding
5173 header.
5174 (hw_base_headers): Define list of headers included by hw-base.h
5175 (hw-base.o, hw-device.o, hw-instances.o, hw-handles.o, hw-ports.o,
5176 hw-properties.o, hw-tree.o): Specify dependencies.
5177 (dv-core.o, dv-pal.o): Ditto.
5178
5179 * sim-hw.h: New file.
5180
5181 * hw-device.h, hw-device.c, hw-properties.h, hw-properties.c,
5182 hw-ports.h, hw-ports.c: New files. Copied from ../ppc/device.[ch].
5183
5184 * hw-tree.h, hw-tree.c: New files. Copied from ../ppc/tree.[hc].
5185
5186 * hw-base.h, hw-base.c: new files. Copied from
5187 ../ppc/device_table.[hc].
5188
5189 * dv-core.c, dv-pal.c: New files. Copied from
5190 ../ppc/hw_{core,pal}.c
5191
5192 * sim-basics.h (struct hw): Declare.
5193 (enum port_direction, enum object_disposition): Declare.
5194
5195 Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
5196
5197 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Set sim_hw_obj, sim_dv_obj,
5198 sim_dv_src in Makefile. Take list of devices as parameter to m4
5199 macro..
5200
5201 * configure: Regenerated to track ../common/aclocal.m4 changes.
5202
5203 Mon Mar 16 12:37:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
5204
5205 * sim-trace.h, sim-trace.c (trace_prefix): Pass in sim_cia so that
5206 trace_prefix can abort cleanly.
5207
5208 Sat Mar 14 18:36:12 1998 Doug Evans <devans@seba.cygnus.com>
5209
5210 * dv-sockser.c, dv-sockser.h: New files.
5211 * Make-common.in (dv-sockser.o): Add rule for.
5212 * aclocal.m4: Check for fcntl.h.
5213 * config.h: Add HAVE_FCNTL_H.
5214
5215 * sim-break.c (remove_breakpoint): Fix thinko.
5216
5217 * sim-hload.c (sim_load): Provide default value of SIM_HANDLES_LMA.
5218 Use SIM_HANDLES_LMA for lma_p arg to sim_load_file.
5219
5220 1998-03-13 Fred Fish <fnf@cygnus.com>
5221
5222 * sim-base.h (struct sim_state_base): Add prog_syms and
5223 define macro STATE_PROG_SYMS.
5224 * sim-trace.c (trace_prefix): Add variables abfd, symsize,
5225 symbol_count, and asymbols. Call bfd_get_symtab_upper_bound
5226 and bfd_canonicalize_symtab, to get symbol table on first use
5227 and preserve it via STATE_PROG_SYMS for future calls to
5228 bfd_find_nearest_line.
5229
5230 Wed Mar 11 14:02:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
5231
5232 * sim-core.h, sim-core.c (sim_core_map_to_str): Delete.
5233
5234 * sim-core.c (sim_core_attach): Handle a generic number of maps -
5235 up to nr_maps, not just access_* maps.
5236
5237 * sim-profile.h (struct PROFILE_DATA): Track nr_maps different
5238 maps.
5239
5240 * sim-profile.c (profile_print_core): Make map unsigned. Iterate
5241 over nr_maps not sim_core_nr_maps.
5242
5243 * sim-events.h, sim-events.c (sim_events_watch_core): Change
5244 core_map argument to unsigned.
5245 (struct _sim_core): Ditto for struct member core_map.
5246
5247 * sim-core.h (nr_sim_core_maps, sim_core_*_map): Delete
5248
5249 * sim-basics.h (access_io, access_*_io): Define.
5250 (map_read, map_write, map_exec, map_io): Define.
5251
5252 * sim-core.c, sim-core.h (sim_core_attach): Replace argument
5253 attach with more generic mapmask.
5254 (sim_core_{read,write}_*): Change map argument to unsigned.
5255
5256 * sim-core.c (sim_core_uninstall, sim_core_attach,
5257 sim_core_detach): Iterate over nr_maps instead of
5258 sim_core_nr_maps.
5259
5260 * sim-break.c (insert_breakpoint): Write breakpoints to exec_map
5261 instead of the write_map.
5262 (remove_breakpoint): Ditto.
5263
5264 * genmloop.sh (engine_resume_full): Replace sim_core_*_map
5265 with read_map, write_map, exec_map resp.
5266
5267 * cgen-mem.h (DECLARE_GETMEM, DECLARE_SETMEM, DECLARE_GETIMEM):
5268 Ditto.
5269
5270 * cgen-utils.c (sim_disassemble_insn): Ditto.
5271
5272 * sim-hrw.c (sim_write, sim_write): Ditto.
5273
5274 * sim-utils.h, sim-utils.c (access_to_str, map_to_str,
5275 transfer_to_str): New functions.
5276
5277 Mon Mar 9 12:50:59 1998 Doug Evans <devans@seba.cygnus.com>
5278
5279 * sim-base.h (sim_state_base): New member environment.
5280 (STATE_ENVIRONMENT): New macro.
5281 * sim-config.c (current_environment): Delete.
5282 (sim_config_default): New function.
5283 (sim_config): Set STATE_ENVIRONMENT, not current_environment.
5284 * sim-config.h (current_environment,CURRENT_ENVIRONMENT): Delete.
5285 (sim_config_default): Add prototype.
5286 * sim-module.c (sim_pre_argv_init): Call sim_config_default.
5287 * sim-options.c (standard_option_handler, case OPTION_ENVIRONMENT):
5288 Set STATE_ENVIRONMENT, not current_environment.
5289
5290 Mon Mar 9 11:59:03 1998 Jim Wilson <wilson@cygnus.com>
5291
5292 * sim-fpu.c (NR_GUARDS64): Change NR_PAD32 to NR_PAD64.
5293
5294 Tue Mar 3 10:53:05 1998 Andrew Cagney <cagney@b1.cygnus.com>
5295
5296 * sim-types.h (SIGNED32, SIGNED64): Pacify GCC.
5297
5298 * sim-alu.h (ALU64_BEGIN): Make alu64_r unsigned.
5299
5300 Mon Mar 2 10:20:06 1998 Doug Evans <devans@seba.cygnus.com>
5301
5302 * Make-common.in (TAGS): Make smarter.
5303 * Makefile.in (TAGS): Ditto.
5304
5305 Fri Feb 27 19:09:57 1998 Doug Evans <devans@canuck.cygnus.com>
5306
5307 * sim-module.c (*): Fix typos in assertion tests.
5308
5309 Sat Feb 28 13:54:10 1998 Andrew Cagney <cagney@b1.cygnus.com>
5310
5311 * sim-module.c (sim_pre_argv_init): String passed to asprintf
5312 can't be constant.
5313
5314 * sim-options.c (sim_parse_args): Ditto.
5315 (sim_args_command): Return OK, instead of nothing, for an empty
5316 command.
5317
5318 Fri Feb 27 13:29:13 1998 Andrew Cagney <cagney@b1.cygnus.com>
5319
5320 * sim-profile.c (profile_info): Rename from profile_print. Drop
5321 misc and misc_cpu callback arguments. Use
5322 PROFILE_INFO_CPU_CALLBACK and STATE_PROFILE_INFO_CALLBACK instead.
5323 (profile_install): Install profile_info function.
5324
5325 * sim-profile.h (PROFILE_INFO_CPU_CALLBACK,
5326 STATE_PROFILE_INFO_CALLBACK): Define.
5327 (struct PROFILE_DATA): Add field info_cpu_callback.
5328 (profile_print): Delete function.
5329
5330 * sim-base.h (STATE_MODULES): Define. Replace individual
5331 STATE_*_LIST with single struct module_list.
5332
5333 * sim-module.h (MODULE_INFO_FN, MODULE_INFO_LIST): Declare.
5334 (struct module_list): Declare.
5335
5336 * sim-module.h, sim-module.c (sim_module_add_info_fn,
5337 sim_module_info): New functions.
5338 (sim_module_install): Clean up module data structures.
5339
5340 * sim-info.c (sim_info): New file. New function. Call
5341 sim_module_info.
5342
5343 * Make-common.in (sim-info.o): Define rule.
5344 (SIM_NEW_COMMON_OBJS): Add sim-info.o.
5345
5346
5347 Fri Feb 27 18:26:16 1998 Doug Evans <devans@canuck.cygnus.com>
5348
5349 * sim-base.h (sim_cpu_base): New members name, options.
5350 (sim_cpu_lookup): Add prototype.
5351 * sim-module.c (sim_pre_argv_init): Provide default names for cpus.
5352 * sim-options.h (DECLARE_OPTION_HANDLER): New argument `cpu'.
5353 (sim_add_option_table): Update prototype.
5354 * sim-options.c (sim_add_option_table): New argument `cpu'.
5355 (standard_option_handler,standard_install): Update.
5356 (sim_parse_args): Handle cpu specific options.
5357 (print_help): New static function.
5358 (sim_print_help): Call it. Print cpu specific options.
5359 (find_match): New static function.
5360 (sim_args_command): Call it. Handle cpu specific options.
5361 * sim-utils.c (sim_cpu_lookup): New function.
5362 * sim-memopt.c (memory_option_handler): Update.
5363 (sim_memopt_install): Update.
5364 * sim-model.c (model_option_handler): Update.
5365 (model_install): Update.
5366 * sim-profile.c (profile_option_handler): Update.
5367 (profile_install): Update.
5368 * sim-trace.c (trace_option_handler): Update.
5369 (trace_install): Update.
5370 * sim-watch.c (watchpoint_option_handler): Update.
5371 (sim_watchpoint_install): Update.
5372 * cgen-scache.c (scache_option_handler): Update.
5373 (scache_install): Update.
5374
5375 Wed Feb 25 11:00:26 1998 Doug Evans <devans@canuck.cygnus.com>
5376
5377 * Make-common.in (check): Run `make check' in testsuite dir.
5378
5379 Wed Feb 25 14:40:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
5380
5381 * sim-trace.c (trace_result0): New function.
5382
5383 * sim-trace.h (TRACE_FP_*, TRACE_FPU_*): Rename TRACE_FPU_*
5384 macro's to TRACE_FP_*. TRACE_FPU_* should be defined and used when
5385 tracing sim_fpu variables.
5386 (TRACE_ALU_RESULT0): Define.
5387 (TRACE_FP_RESULT_WORD): Define.
5388 (TRACE_FP_INPUT_WORD1): Define.
5389
5390 * sim-fpu.c, sim-fpu.h (sim_fpu_max32, sim_fpu_max64, sim_fpu_one,
5391 sim_fpu_two): New constants.
5392 (sim_fpu_op1, sim_fpu_op2): New types.
5393 (struct _sim_fpu): Delete member result. Re-order other members.
5394 (sim_fpu_sign, sim_fpu_exp): New functions.
5395 (sim_fpu_max, sim_fpu_min): new functions.
5396 (EXPMAX32, EXPMAX64, NR_PAD32, NR_PAD64, NR_GUARDS32, NR_GUARDS64,
5397 NORMAL_EXPMAX32, NORMAL_EXPMAX64): Define.
5398
5399 Tue Feb 24 22:45:39 1998 Doug Evans <devans@seba.cygnus.com>
5400
5401 * sim-profile.c (profile_print): Delete duplicate test of
5402 PROFILE_INSN_IDX.
5403 (profile_print_pc): Exit early if data collection not set up.
5404 (profile_print_core): Simplify by calling sim_core_map_to_str.
5405 * sim-core.h (sim_core_map_to_str): Declare.
5406 * sim-core.c (sim_core_map_to_str): Make non-static.
5407
5408 * genmloop.sh (engine_resume): Update insn_count before exiting.
5409 (engine_resume_full): Keep accurate core profile data.
5410
5411 * cgen-utils.c (sim_disassemble_insn): Don't use
5412 sim_core_read_aligned_N, it messes up profiling results.
5413
5414 Mon Feb 23 20:45:57 1998 Mark Alexander <marka@cygnus.com>
5415
5416 * nltvals.def: Regenerate with MN10300 additions.
5417
5418 Tue Feb 24 13:18:42 1998 Andrew Cagney <cagney@b1.cygnus.com>
5419
5420 * sim-trace.h (TRACE_ALU_RESULT2): Define.
5421
5422 * sim-trace.h, sim-trace.c (trace_result_word2,
5423 trace_input_word4, trace_result_word4): New function.
5424
5425 Mon Feb 23 13:08:35 1998 Doug Evans <devans@canuck.cygnus.com>
5426
5427 * cgen-sim.h (SEM_NEXT_PC): New arg `len'.
5428
5429 * sim-xcat.h: Delete.
5430 * cgen-mem.h: Delete inclusion of sim-xcat.h.
5431 * cgen-sim.h: Ditto.
5432 * sim-alu.h: Replace sim-xcat.h with symcat.h.
5433 * sim-n-bits.h: Ditto.
5434 * sim-n-core.h: Ditto.
5435 * sim-n-endian.h: Ditto.
5436
5437 Mon Feb 23 13:19:58 1998 Michael Meissner <meissner@cygnus.com>
5438
5439 * syscall.c (cb_syscall): Handle short reads, and EOF.
5440
5441 Tue Feb 24 00:29:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
5442
5443 * sim-trace.c (print_data): case trace_fmt_fp missing break. Use
5444 sim_fpu to safely print fp_word values.
5445 (print_data): Add trace_fmt_bool and trace_fmt_addr.
5446 (trace_result_bool1, trace_result_addr1): New functions.
5447 (trace_input_bool1, trace_input_addr1): New functions.
5448
5449 * sim-trace.h (TRACE_FPU_*): Define.
5450
5451 Mon Feb 23 13:24:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
5452
5453 * sim-fpu.h (enum sim_fpu_class): Add sim_fpu_class_denorm.
5454 (sim_fpu_fpto, sim_fpu_tofp): Define.
5455
5456 Fri Feb 20 18:08:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
5457
5458 * sim-fpu.c (sim_fpu_cmp): New function.
5459
5460 Wed Feb 18 16:29:21 1998 Doug Evans <devans@canuck.cygnus.com>
5461
5462 * cgen-utils.h (sim_disassemble_insn): Use CGEN_INSN_BITSIZE
5463 instead of abuf->length.
5464 * sim-trace.c (trace_options): Have -t only trace a few useful things.
5465 (set_trace_option_mask): Renamed from set_trace_options.
5466 (set_trace_option): New function.
5467 (trace_option_handler): Update calls to set_trace_option{,_mask}.
5468 * sim-trace.h (TRACE_USEFUL_MASK): New macro.
5469
5470 Wed Feb 18 12:42:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
5471
5472 * sim-basics.h: Declare struct _sim_fpu.
5473
5474 Tue Feb 17 16:27:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
5475
5476 * sim-trace.h (TRACE_ALU_INPUT*, TRACE_ALU_RESULT): Define.
5477 (trace_prefix, trace_input*, trace_result*): Declare.
5478 (trace_one_insn): Change declaration, assume trace_prefix called.
5479 (trace_generic): Like trace_one_insn.
5480 (TRACE_ALU_IDX, TRACE_*_IDX): Change #define's to enum.
5481 (TRACE_alu, TRACE_[a-z]*): Update.
5482
5483 * sim-trace.c (trace_prefix, trace_input*, trace_result*,
5484 trace_insn, save_data, trace_idx_to_str, print_data): New
5485 functions.
5486 (trace_one_insn): Rewrite.
5487 (trace_generic): New function.
5488
5489 Tue Feb 17 17:27:30 1998 Doug Evans <devans@seba.cygnus.com>
5490
5491 * aclocal.m4 (USE_MAINTAINER_MODE): New variable.
5492
5493 * cgen-sim.h (SEMANTIC_CACHE_FN): Delete.
5494 (SEMANTIC_FN): Rewrite declaration.
5495 (DECODE): Update type of semantic_fast member.
5496 ({EX,SEM}_FN_NAME): Have only one version.
5497 * sim-base.h (sim_state_base): Delete conditionals surrounding
5498 member scache_size.
5499
5500 Tue Feb 10 18:31:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
5501
5502 * sim-load.c (sim_load_file): Print LMA/VMA according to value
5503 used.
5504
5505 Tue Feb 10 14:56:23 1998 Ian Carmichael <iancarm@cygnus.com>
5506
5507 * sim-core.c: Add missing prototypes for WITH_DEVICES.
5508 Add missing parameters to device_io calls.
5509 * sim-core.h: Add missing parameters to device_io calls.
5510
5511 Mon Feb 9 14:48:37 1998 Doug Evans <devans@canuck.cygnus.com>
5512
5513 * cgen-sim.h (DECODE): Always use switch for `read' for now.
5514 (PAREXEC): Renamed from PARALLEL_EXEC. All uses updated.
5515 (SEMANTIC{,_CACHE}_FN): Fix return type.
5516 * genmloop.sh (@cpu@_engine_run): Delete `current_state'.
5517 (engine_resume): Likewise. Make `engine' volatile. Save copy
5518 of cpu pointer in volatile object. Initialize read switch if
5519 -parallel.
5520
5521 Thu Feb 5 13:27:04 1998 Doug Evans <devans@seba.cygnus.com>
5522
5523 * cgen-sim.h (EX_FN_NAME): _exc_ -> _ex_.
5524 (SEM_INSN): New macro.
5525
5526 Tue Feb 3 16:31:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
5527
5528 * sim-run.c (sim_engine_run): Assume IMEM is 32 bit.
5529
5530 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
5531
5532 * configure: Regenerated to track ../common/aclocal.m4 changes.
5533
5534 Sun Feb 1 16:16:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
5535
5536 * sim-types.h (fp_word): New type, define according to
5537 WITH_TARGET_FLOATING_POINT_BITSIZE.
5538
5539 * aclocal.m4 (default_sim_floating_point_bitsize): Add
5540 configuration of size of floating point registers.
5541
5542 Sun Feb 1 14:02:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
5543
5544 * sim-profile.c (profile_print): Only print CPU <N> if other
5545 output is going to appear.
5546
5547 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
5548
5549 * configure: Regenerated to track ../common/aclocal.m4 changes.
5550
5551 Sat Jan 31 18:03:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
5552
5553 * sim-types.h (address_word): Typedef according to
5554 WITH_TARGET_ADDRESS_BITSIZE.
5555 (signed_cell, unsigned_cell, natural_cell): Ditto using
5556 WITH_TARGET_CELL_BITSIZE.
5557
5558 * sim-config.h (WITH_TARGET_ADDRESS_BITSIZE): Define.
5559 (WITH_TARGET_CELL_BITSIZE): Define.
5560 (WITH_HOST_WORD_BITSIZE): Delete.
5561
5562 * sim-config.c (print_sim_config): Update.
5563
5564 * aclocal.m4 (SIM_AC_OPTION_BITSIZE): Add support for
5565 configuration of address and OpenFirmware cell sizes.
5566
5567 Fri Jan 30 09:36:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
5568
5569 * sim-engine.h (sim_engine_run): Add argument nr_cpus.
5570 * sim-run.c (sim_engine_run): Update.
5571
5572 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use SET_CPU_CIA instead of
5573 CPU_CIA.
5574 * sim-run.c (sim_engine_run): Ditto.
5575
5576 * sim-resume.c (sim_resume): Obtain nr_cpus from sim_engine.
5577 (sim_resume): Pass nr_cpus to sim_engine_run.
5578
5579 * sim-engine.h (struct _sim_engine): Add member nr_cpus.
5580
5581 * sim-engine.c (sim_engine_init): Hardwire nr_cpus to
5582 MAX_NR_PROCESSORS.
5583 (sim_engine_nr_cpus) sim-engine.c, sim-engine.h: New function
5584
5585 Fri Jan 23 14:20:54 1998 Doug Evans <devans@seba.cygnus.com>
5586
5587 * Make-common.in (stamp-tvals): New rule.
5588 (targ-vals.h,targ-map.c): Depend on it.
5589 (clean): Remove stamp-tvals.
5590
5591 Tue Jan 20 21:35:13 1998 Michael Meissner <meissner@cygnus.com>
5592
5593 * sim-utils.c (sim_state_alloc): #if 0 variable that is only used
5594 in code also #if 0'ed.
5595
5596 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
5597
5598 * configure: Regenerated to track ../common/aclocal.m4 changes.
5599 * aclocal.m4: Recognize --enable-maintainer-mode.
5600
5601 Mon Jan 19 12:45:45 1998 Doug Evans <devans@seba.cygnus.com>
5602
5603 * cgen-scache.h: Deleted.
5604 * Make-common.in (cgen-run.o,cgen-scache.o): Delete cgen-scache.h dep.
5605 * cgen-scache.c: Only compile contents if WITH_SCACHE.
5606 (scache_init): Use runtime computed size of SCACHE.
5607 (scache_flush): Likewise.
5608 * cgen-mem.h (GETIMEMU[QHSD]I): Declare.
5609 ([GS]ETT{QI,UQI,HI,UHI,SI,USI,DI,UDI}): Declare.
5610 * cgen-sim.h: Scache support moved here.
5611 (PC): Redo definition.
5612 (ARGBUF,SCACHE,PARALLEL_EXEC): Provide forward decls.
5613 (DECODE): Add parallel execution support.
5614 Only include semantic label members if using switch.
5615 (SWITCH,CASE,BREAK,DEFAULT,ENDSWITCH): Portable computed goto support.
5616 (CGEN_CPU): Delete members exec_state, halt_sigrc, halt_jmp_buf.
5617 (IADDR,CIA,SEM_ARG,EX_FN_NAME,SEM_FN_NAME,RECORD_IADDR,SEM_ARGBUF,
5618 SEM_NEXT_PC,SEM_BRANCH_VIA_{CACHE,ADDR},SEM_NEW_PC_ADDR): Moved here
5619 from cgen-types.h.
5620 (engine_{stop,run,resume,halt,signal}): Delete decls.
5621 * cgen-types.h (CGEN_{XCAT3,CAT3}): Delete.
5622 (argbuf,scache): Delete forward decls.
5623 (STATE): Delete decl.
5624 * cgen-utils.c: Don't include decode.h, mem-ops.h, sem-ops.h.
5625 Include cgen-mem.h, cgen-ops.h.
5626 (engine_halt,engine_signal): Delete.
5627 ({ex,exc,sem,semc}_illegal): Delete.
5628 (sim_disassemble_insn): Result of extract fn is in bits.
5629 * genmloop.sh: Rewrite.
5630
5631 * cgen-trace.c (trace_insn): Set printed_result_p=0 if not tracing
5632 line numbers.
5633
5634 * sim-base.h (sim_state_base): Delete member `model'.
5635 (sim_cpu_base): Add member `model'.
5636 * sim-model.h (IMP_PROPERTIES): New type.
5637 (MACH): New members imp_props, models.
5638 (models): Delete decl.
5639 * sim-model.c (set_model): Update.
5640 * sim-profile.c (profile_print_model): Update.
5641
5642 * sim-utils.c (sim_state_alloc): Delete setting of cpu backlink here.
5643
5644 Fri Jan 16 12:33:09 1998 Nick Clifton <nickc@cygnus.com>
5645
5646 * cgen-trace.c (trace_insn): Call CGEN_INSN_MNEMONIC() rather than
5647 CGEN_INSN_SYNTAX().
5648
5649 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
5650
5651 * configure: Regenerated to track ../common/aclocal.m4 changes.
5652 * config.in: Ditto.
5653
5654 Mon Dec 15 23:16:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
5655
5656 * aclocal.m4 (AR): Check for sigaction.
5657
5658 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
5659
5660 * Make-common.in (sim-core.o): Depend on $(sim_main_headers).
5661
5662 * sim-config.h (WITH_TREE_PROPERTIES): Define as 0.
5663 * sim-config.c (sim_config): Replace WITH_DEVICES with
5664 WITH_TREE_PROPERTIES.
5665
5666 * configure: Regenerated to track ../common/aclocal.m4 changes.
5667
5668 Wed Dec 3 17:56:02 1997 Doug Evans <devans@canuck.cygnus.com>
5669
5670 * Make-common.in (SIM_ENVIRONMENT): New variable.
5671 (CONFIG_CFLAGS): Add it.
5672 * aclocal.m4 (SIM_AC_OPTION_ENVIRONMENT): Handle
5673 --enable-sim-environment option.
5674 * configure: Regenerated.
5675 * sim-config.h (environment support): Rewrite.
5676 * sim-config.c (current_environment): Define as enum, unconditionally.
5677 (current_alignment): Define unconditionally.
5678 (config_environment_to_a): Update.
5679 (config_alignment_to_a): Fix type of argument. Define unconditionally.
5680 (sim_config): Handle environment and alignment determination
5681 unconditionally. Delete sanity checks of current_environment,
5682 unnecessary.
5683 (print_sim_config): Update.
5684 * sim-options.c (STANDARD_OPTIONS enum): Add OPTION_ENVIRONMENT.
5685 (standard_options): Add --environment.
5686 (standard_option_handler): Likewise.
5687
5688 Fri Nov 28 12:21:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
5689
5690 * sim-alu.h: Add notes on carry vs borrow for subtraction.
5691 (ALU{,8,16,32,64}ADD): Redefine ADD macro as add overflowing.
5692 (ALU{,8,16,32,64}ADDC): Define - add carrying.
5693 (ALU{,8,16,32,64}SUB): Redefine SUB macro as subtract overflowing.
5694 (ALU{,8,16,32,64}SUBB): Define - subtract borrowing.
5695 (ALU{,8,16,32,64}SUBC): Define - tract carrying.
5696 (ALU{,8,16,32,64}ADD_CA, ALU{,8,16,32,64}ADDC_C): Replace single
5697 argument ADD_CA macro with two argument ADDC_C - add carrying with
5698 carry in.
5699 (ALU{,8,16,32,64}SUB_CA, ALU{,8,16,32,64}SUBC_X): Replace single
5700 argument SUB_CA macro with two argument SUBC_X - subtract
5701 carrying, extended.
5702 (ALU{,8,16,32,64}SUBB_B): Define - subtract borrowing with
5703 borrow-in.
5704 (ALU{,8,16,32,64}NEGC, ALU{,8,16,32,64}NEGB): Define.
5705
5706 Sun Nov 30 17:40:57 1997 Michael Meissner <meissner@cygnus.com>
5707
5708 * sim-io.c (sim_io_{syscalls,getstring}): Delete. No longer used.
5709 * sim-io.h (sim_io_syscalls): Delete.
5710
5711 Fri Nov 28 20:10:09 1997 Michael Meissner <meissner@cygnus.com>
5712
5713 * syscall.c (cb_syscall): Add missing else, so write to stdout
5714 isn't doubled.
5715
5716 * sim-alu.h (ALU{,8,16,32,64}_SET_CARRY): Provide macros to import
5717 the carry bit from the CPU's psw.
5718
5719 Fri Nov 28 11:15:05 1997 Doug Evans <devans@canuck.cygnus.com>
5720
5721 * gennltvals.sh: Redo syscall support.
5722 * nltvals.def: Regenerated.
5723
5724 Wed Nov 26 16:49:38 1997 Michael Meissner <meissner@cygnus.com>
5725
5726 * syscall.c (cb_syscall): If writing to stdout or stderr, flush
5727 the stream immediately.
5728
5729 Wed Nov 26 12:32:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
5730
5731 * sim-io.c (sim_io_getstring): Delete unused len2.
5732 (sim_io_syscalls): Ditto for sys_errno.
5733
5734 Wed Nov 26 11:18:40 1997 Doug Evans <devans@canuck.cygnus.com>
5735
5736 * syscall.c (cb_syscall): Test CB_SYSCALL struct magic number.
5737
5738 * Make-common.in (run.o): Depend on remote-sim.h.
5739 (nrun.o,sim-hload.o,sim-hrw.o): Likewise.
5740 (sim-io.o,sim-reason.o,sim-resume.o): Likewise.
5741
5742 Tue Nov 25 20:12:46 1997 Michael Meissner <meissner@cygnus.com>
5743
5744 * sim-io.c (sim_io_syscalls): Disable lseek.
5745
5746 Tue Nov 25 00:12:38 1997 Doug Evans <devans@seba.cygnus.com>
5747
5748 * gennltvals.sh: Generate syscall values for d30v.
5749
5750 * gennltvals.sh: Use libgloss/syscall.h for sparc.
5751 * nltvals.def: Regenerate.
5752
5753 * callback.c (os_stat): Make 3rd arg a host struct stat ptr.
5754 (os_fstat): Likewise. Validate fd argument.
5755 (cb_host_to_target_stat): Delete big_p arg. If HS arg is NULL,
5756 just compute target stat struct length.
5757 * syscall.c: #include "libiberty.h", <sys/types.h>, <sys/stat.h>.
5758 (ENOSYS,ENAMETOOLONG): Provide definitions if missing.
5759 (get_string): Return host errno values so they can be properly
5760 translated later.
5761 (cb_syscall): Likewise.
5762 (cb_syscall, cases open,unlink): Use get_path instead of get_string.
5763 (cb_syscall, case read): Use read_stdin for file descriptor 0.
5764 (cb_syscall, case write): Use write_stderr for file descriptor 2.
5765 (cb_syscall): Add cases for lseek, unlink, stat, fstat, time.
5766 (get_path): New function.
5767
5768 Mon Nov 24 18:56:07 1997 Michael Meissner <meissner@cygnus.com>
5769
5770 * sim-io.c (sim_io_syscalls): New function to provide system call
5771 emulation. Provide exit, open, close, read, write, lseek, and
5772 unlink.
5773 (sim_io_getstring): New function to return a string from a
5774 simulated memory location.
5775
5776 * sim-io.h (sim_io_syscalls): Add declaration.
5777
5778 Mon Nov 24 12:09:59 1997 Doug Evans <devans@seba.cygnus.com>
5779
5780 * sim-core.c (sim_core_signal): Fix spelling error in message.
5781
5782 * sim-hrw.c (sim_read): Use read map, not write map.
5783
5784 * Make-common.in (all): Add .gdbinit.
5785 * gdbinit.in: Add dump command.
5786
5787 * sim-model.c (model_options): Use '\0' for `shortopt'.
5788
5789 * sim-trace.c (trace_option_handler): Set state trace file
5790 for --trace-file in addition to cpu's values.
5791 (trace_vprintf): If cpu == NULL, try state's trace file.
5792 (trace_options): Reorganize table, reword some descriptions.
5793
5794 Sun Nov 23 10:57:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
5795
5796 * sim-fpu.c (sim_fpu_abs, sim_fpu_neg, sim_fpu_inv), sim-fpu.h:
5797 New functions.
5798
5799 Sat Nov 22 19:16:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
5800
5801 * sim-reason.c (sim_stop_reason): For sim_signalled, return the
5802 signal untranslated, document problem with this.
5803
5804 * nrun.c (main): Check for a prog name of `*step'. If present,
5805 step the simulator instead of allowing it to run free.
5806
5807 * sim-signal.c (SIGQUIT): Define on _MSC_VER hosts.
5808
5809 * Make-common.in (sim_main_headers): Add sim-signal.h.
5810
5811 Fri Nov 21 09:32:32 1997 Andrew Cagney <cagney@b1.cygnus.com>
5812
5813 * sim-signal.c (sim_signal_to_host): Return 0 for SIM_SIGNONE.
5814
5815 Thu Nov 20 20:35:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
5816
5817 * sim-signal.h: Start simulator signals at 64 so that host signal
5818 numbers can be detected and reported.
5819
5820 * sim-signal.h (SIM_SIGFPE), sim-signal.h: Add signal.
5821
5822 Wed Nov 19 12:02:41 1997 Doug Evans <devans@seba.cygnus.com>
5823
5824 * callback.c (cb_host_to_target_stat): Fix return values.
5825
5826 * cgen-sim.h (enum_signal_type): Delete.
5827 (engine_signal): Update prototype.
5828 * cgen-utils.c: Don't include <signal.h>.
5829 (sim_signal_to_host): Delete, lives in sim-signal.c now.
5830 (engine_signal): Update.
5831
5832 * sim-utils.c (sim_state_alloc): Call SIM_STATE_ALLOC if defined.
5833 (sim_state_free): Call SIM_STATE_FREE if defined.
5834
5835 * sim-module.c (sim_module_install): Don't leave any modules
5836 installed if one fails to install.
5837
5838 Wed Nov 19 13:25:48 1997 Michael Meissner <meissner@cygnus.com>
5839
5840 * sim-options.c: Don't include ../libiberty/alloca-conf.h any
5841 more, since alloca is not used in this file.
5842
5843 * sim-alu.h (ALU{32,64}_*): Rewrite 32 and 64 bit ALU support to
5844 correctly set the carry and overflow bits for those types.
5845 (ALU{8,16,32,64}_{ADD,SUB}_CA): Take VAL argument to add along
5846 with carry, so carry is correct after doing both adds.
5847 (ALU*): Space out '\' to make it easier to read.
5848
5849 Tue Nov 18 15:53:45 1997 Doug Evans <devans@canuck.cygnus.com>
5850
5851 * sim-core.c (sim_core_signal): Use sim_stopped instead of
5852 sim_signalled.
5853
5854 * sim-signal.c, sim-signal.h: New files.
5855 * Make-common.in (sim-signal.o): Add rule for.
5856 (SIM_NEW_COMMON_OBJS): Add sim-signal.o.
5857 * sim-abort.c: Don't include <signal.h>.
5858 * sim-basics.h: #include "sim-signal.h".
5859 * sim-break.c: Don't include <signal.h>.
5860 (sim_handle_breakpoint): Replace SIGTRAP with SIM_SIGTRAP.
5861 * sim-core.c: Don't include <signal.h>.
5862 (SIGBUS): Delete definition.
5863 (sim_core_signal): Replace SIGSEGV,SIGBUS with SIM_SIGSEGV,SIM_SIGBUS.
5864 * sim-engine.c: Don't include <signal.h>.
5865 (sim_engine_abort): Replace SIGABRT with SIM_SIGABRT.
5866 * sim-reason.c (sim_stop_reason): Call sim_signal_to_host.
5867 * sim-resume.c: Don't include <signal.h>.
5868 (SIGTRAP): Delete definition.
5869 (has_stepped): Replace SIGTRAP with SIM_SIGTRAP.
5870 * sim-stop.c: Don't include <signal.h>.
5871 (control_c_simulation): Replace SIGINT with SIM_SIGINT.
5872 * sim-watch.c: Don't include <signal.h>.
5873 (handle_watchpoint): Replace SIGINT with SIM_SIGINT.
5874
5875 * Make-common.in (SIM_NEW_COMMON_OBJS): New variable.
5876
5877 * sim-base.h (CIA_ADDR): Provide default definition.
5878 * sim-core.c (sim_core_signal): Use CIA_ADDR to fetch value.
5879 * sim-break.c (sim_handle_breakpoint): Likewise.
5880
5881 Mon Nov 17 14:15:31 1997 Doug Evans <devans@seba.cygnus.com>
5882
5883 * Make-common.in (srccom): New variable.
5884
5885 * Make-common.in (DEP, COMMON_DEP_CFLAGS): Define.
5886 (LIB_OBJS): Add syscall.o.
5887 (gentmap): Pass $(NL_TARGET) to $(CC).
5888 (syscall.o): Add rule for.
5889 (sim_main_headers): Add $(SIM_EXTRA_DEPS).
5890 (sim-bits.o): Depend on $(sim-n-bits_h).
5891 (sim-load.o): Depend on callback.h.
5892
5893 * Make-common.in (cgen-*.o): Update dependencies, mem-ops.h renamed to
5894 cgen-mem.h, sem-ops.h renamed to cgen-ops.h.
5895 * cgen-mem.h, cgen-ops.h: New files.
5896
5897 * aclocal.m4 (--enable-sim-scache): Pass -DWITH_SCACHE=0 for "=no".
5898
5899 * Makefile.in (nltvals.def): Depend on gennltvals.sh.
5900 Rewrite build rule.
5901 * callback.c: #include string.h or strings.h.
5902 #include sys/types.h and sys/stat.h.
5903 (cb_init_syscall_map,cb_init_errno_map,cb_init_open_map): Declare.
5904 (os_get_errno,os_open): Update.
5905 (os_stat,os_fstat): New functions.
5906 (os_init): Initialize syscall_map, errno_map, open_map.
5907 (default_callback): Add entries for os_stat, os_fstat, syscall_map,
5908 errno_map, open_map, signal_map, stat_map.
5909 (cb_read_target_syscall_maps): New function.
5910 (cb_target_to_host_syscall): New function.
5911 (cb_host_to_target_errno): Renamed from host_to_target_errno.
5912 (cb_target_to_host_open): Renamed from target_to_host_open.
5913 (store): New function.
5914 (cb_host_to_target_stat): New function.
5915 * syscall.c: New file.
5916 * gentmap.c (sys_tdefs): New global.
5917 (gen_targ_vals_h): Output target syscall numbers.
5918 (gen_targ_map_c): Update. Output target syscall translation map.
5919 * gentvals.sh: New first argument `target'. Preface table with
5920 #ifdef NL_TARGET_$target if non-null target passed.
5921 * gennltvals.sh: New file.
5922 * nltvals.def: Regenerated.
5923
5924 Fri Nov 14 11:33:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
5925
5926 * sim-n-core.h (sim_core_read_unaligned_N): Return static
5927 sim_core_dummy_M.
5928 (sim_core_dummy_M): Declare.
5929
5930 Wed Nov 12 18:16:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
5931
5932 * sim-core.c (sim_core_signal): Print the address of the
5933 instruction.
5934
5935 Thu Nov 13 11:49:41 1997 Doug Evans <devans@seba.cygnus.com>
5936
5937 * sim-base.h (sim_state_base): Move `magic' to end of struct.
5938
5939 * sim-base.h (sim_state_base): Add member trace_data.
5940 (STATE_TRACE_DATA): New macro.
5941 * sim-trace.h (TRACE_DEBUG_IDX,TRACE_debug): New macros.
5942 ({WITH_,}TRACE_DEBUG_P): New macros.
5943 (STATE_TRACE_FLAGS,STRACE_P,STRACE_DEBUG_P): New macros.
5944 (_sim_cpu): Delete forward reference.
5945 (debug_printf): Update.
5946 * sim-trace.c (OPTION_TRACE_DEBUG): Define.
5947 (trace_options): Add --trace-debug.
5948 (set_trace_options): Handle it.
5949 (trace_option_handler): Likewise.
5950 (trace_install): Init state trace_data struct.
5951 (trace_uninstall): Close state trace file.
5952 * sim-events.c (ETRACE): Only print source file and line number if
5953 --trace-debug.
5954 * sim-n-core.h (sim_core_trace_M): Likewise.
5955
5956 * sim-core.c (sim_core_signal): Add missing "\n" in message.
5957
5958 1997-11-13 Felix Lee <flee@cygnus.com>
5959
5960 * sim-n-core.h (sim_core_read_unaligned_N): illegal empty
5961 initializer.
5962 * sim-types.h (unsigned128,signed128): fix typo for MSVC.
5963
5964 Wed Nov 12 12:18:08 1997 Doug Evans <devans@canuck.cygnus.com>
5965
5966 * aclocal.m4 (SIM_AC_OPTION_SCACHE): Fix typo.
5967
5968 * Make-common.in (BUILT_SRC_FROM_COMMON): Remove files no longer
5969 built this way.
5970 (sim-config.o): Remove non-existent $(sim-nconfig_h) dependency.
5971 (clean): Don't delete $(BUILT_SRC_FROM_COMMON) if building in
5972 source tree.
5973
5974 Tue Nov 11 13:28:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
5975
5976 * sim-events.c (sim_events_process): Re-compute the time -
5977 update_time_from_event - as each event is processed. Reverses
5978 previous change.
5979
5980 Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
5981
5982 * callback.c (os_poll_quit): Replace _WIN32 with _MSC_VER.
5983
5984 Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
5985
5986 * sim-events.c (sim_events_process): Delete redundant call to
5987 update_time_from_event.
5988 (sim_events_slip): Always decrement time_from_event.
5989 (sim_events_tick, sim_events_deschedule, update_time_from_event):
5990 Delete assertion that time_from_event >=0 when work in queue, no
5991 longer applicable.
5992
5993 Thu Nov 6 12:06:46 1997 Andrew Cagney <cagney@b1.cygnus.com>
5994
5995 * sim-options.c (STANDARD_OPTIONS): Change OPTION_* to an enum.
5996 (standard_option_handler): Update.
5997
5998 * sim-options.h: Clarify documentation.
5999 (OPTION_LONG_ONLY_P): Delete definition.
6000 (OPTION_VALID_P): Define.
6001
6002 * sim-options.c (sim_print_help): Allow short only options.
6003 (sim_parse_args): Ditto.
6004 (sim_args_command): Skip short only options.
6005 (sim_parse_args): Allocate space for NUM_OPTS not just 256. Make
6006 separate entries for short and long options in the HANDLERS and
6007 ORIG_VAL tables.
6008 (sim_parse_args): Disable argument permutation.
6009
6010 Wed Nov 5 13:40:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
6011
6012 * sim-core.h (DECLARE_SIM_CORE_WRITE_N. DECLARE_SIM_CORE_READ_N):
6013 Add argument M, size of data type.
6014 (sim_core_read_misaligned_3, sim_core_write_misaligned_3):
6015 Declare, ditto for 5, 6 & 7 byte transfers.
6016 (sim_core_write_unaligned_1, sim_core_write_unaligned_1): Define
6017 as aligned variant.
6018
6019 * sim-n-core.h (sim_core_trace_M): Rename from
6020 sim_core_trace_N. Add nr_bytes argument. Replace transfer argument
6021 with transfer type. Print transfer direction. Handle 1 and 2 byte
6022 transfers.
6023 (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Trace
6024 unaligned accesses.
6025 (unsigned_M, T2H_M, H2T_M): Rename from unsigned_N, T2H_N, H2T_N.
6026 Update all functions.
6027
6028 * sim-core.c: Generate functions starting with 16 not 1.
6029 (sim_core_read_unaligned_3): Generate. Ditto for 3 byte write and
6030 all 5, 6 & 7 byte transfers.
6031
6032 * sim-n-core.h (sim_core_read_misaligned_N,
6033 sim_core_write_misaligned_N): Implement.
6034
6035 Mon Nov 3 15:03:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
6036
6037 * sim-endian.h (U16_8): Implement
6038
6039 * sim-endian.c (sim_endian_split_16, sim_endian_join_16): New functions
6040
6041 * sim-endian.h (VL8_16, VH8_16): Implement.
6042
6043 * sim-memopt.c (memory_option_handler): Typecast 64bit value to
6044 long in printf.
6045 (memory_option_handler): Only zalloc modulo bytes when non-zero.
6046 (memory_option_handler): Skip comma in alias address list
6047
6048 Fri Oct 31 13:03:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
6049
6050 * sim-memopt.c (do_memopt_add, do_memopt_delete): Add level and
6051 space params.
6052 (parse_size, parse_addr): New functions
6053 (memory_option_handler, memory_options): Parse address & size
6054 using new functions. Pass level, space, modulo to do_memopt_add &
6055 do_memopt_del.
6056
6057 * sim-memopt.h (struct _sim_memopt): Add level & space fields.
6058
6059 * sim-core.h (sim_core_arrach, sim_core_detach): Replace
6060 `attach_type attach' argument with `unsigned level' argument.
6061 Document.
6062
6063 * sim-core.c (new_sim_core_mapping, sim_core_map_attach,
6064 sim_core_attach): Replace argument attach with level. Update
6065 verification of arguments.
6066 (sim_core_map_detach, sim_core_detach): Replace argument attach
6067 with level.
6068
6069 * sim-basics.h (enum _attach_type): Delete.
6070
6071 Thu Oct 30 13:45:00 1997 Doug Evans <devans@seba.cygnus.com>
6072
6073 * sim-core.h (sim_core_write_8): Define.
6074
6075 Tue Oct 28 12:29:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6076
6077 * sim-bits.h: Document ROTn macro.
6078
6079 * sim-endian.h (H2T): Handle 16 byte variables.
6080
6081 * sim-n-core.h (sim_core_read_unaligned_N): Return a dummy when an
6082 error.
6083
6084 * sim-core.c: Do not generate sim_core_*_word.
6085
6086 * sim-n-core.h (sim_core_trace_N): Add line_nr argument.
6087 (sim_core_write_aligned_N, sim_core_read_aligned_N): Update.
6088
6089 * sim-core.h (sim_core_read_unaligned_word,
6090 sim_core_read_aligned_word, sim_core_read_word,
6091 sim_core_write_unaligned_word, sim_core_write_aligned_word,
6092 sim_core_write_word): Change to macros that map onto sim_core_*_N.
6093
6094 Mon Oct 27 11:25:10 1997 Doug Evans <devans@canuck.cygnus.com>
6095
6096 * sim-n-endian.h: Add TAGS entrys for 16 byte versions.
6097
6098 * sim-endian.h: Disable 16 byte support.
6099
6100 Mon Oct 27 12:00:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
6101
6102 * sim-endian.c (_SWAP_16): Define. Generate 126 bit swap code.
6103
6104 * sim-n-core.h (sim_core_trace_N): New function.
6105 (sim_core_read_aligned_N, sim_core_write_aligned_N): Use,
6106 (sim_core_read_unaligned_N): Do not retyrn bogus value wden error.
6107
6108 * sim-endian.h: Add 128 bit variant.
6109
6110 * sim-core.h, sim-core.c: Add 128 bit variant.
6111
6112 * sim-types.h: Add signed128 and unsigned128 types using a struct.
6113
6114 Fri Oct 24 11:33:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
6115
6116 * sim-events.c (sim_events_process): Clear events->work_pending.
6117 (sim_events_tickn, sim_events_tick): Accumulate, instead of
6118 setting, nr_ticks_to_process.
6119 (sim_events_preprocess): Allow nr_ticks_to_process to be non-zero
6120 when the event queue isn't next.
6121
6122 * sim-events.h, sim-events.c (sim_events_slip): New function.
6123
6124 Wed Oct 22 14:18:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
6125
6126 * sim-hload.c (sim_load): Pass lma_p==0 and do_load=sim_load.
6127
6128 * sim-utils.h, sim-load.c (sim_load_file): Add lma_p and do_load
6129 arguments.
6130
6131 Tue Oct 21 18:37:57 1997 Doug Evans <devans@canuck.cygnus.com>
6132
6133 * nrun.c (main): Remove useless test of name != NULL.
6134 Exit if bfd_openr fails. Call bfd_check_format after bfd_openr.
6135
6136 Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
6137
6138 * sim-fpu.c (EXPMAX): Type is unsigned.
6139 (MIN_INT, MAX_INT): Type is signed64.
6140 (i2fpu): Type of val is signed64.
6141
6142 Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
6143
6144 * sim-profile.h (PROFILE_PC_BUCKET_SIZE): Treat a shift of zero as
6145 a bucket size of zero.
6146
6147 * sim-profile.c (OPTION_PROFILE_PC_GRANULARITY,
6148 OPTION_PROFILE_PC): Define.
6149 (profile_option_handler): Add support for --profile-pc and
6150 --profile-pc-granularity options.
6151 (profile_pc_init): When possible, compute nr buckets from bucket
6152 size.
6153
6154 * sim-profile.c (profile_pc_init): Align the profile-pc end
6155 address with the profile-pc bucket size.
6156
6157 * sim-profile.h (PROFILE_PC_NR_BUCKETS): Rename PROFILE_PC_SIZE to
6158 something less ambiguous.
6159 (PROFILE_PC_BUCKET_SIZE): Ditto for PROFILE_PC_SAMPLE_SIZE.
6160
6161 * sim-profile.c (profile_pc_cleanup): New function. Move
6162 profile_pc_uninstall code to here.
6163 (profile_pc_uninstall): Call.
6164 (profile_pc_init): Call.
6165
6166 Mon Oct 20 17:23:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
6167
6168 * sim-profile.c (profile_print_pc): Dump pc profile to dmon.out
6169 file using BSD gprof format.
6170
6171 * sim-bits.h (LSBIT, MSBIT, BIT): Force result to type
6172 unsigned_word.
6173 (LSBIT8, LSBIT16, LSBIT32, LSBIT64, MSBIT8, MSBIT16, MSBIT32,
6174 MSBIT64): Force result to unsignedN.
6175
6176 Thu Oct 16 11:38:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
6177
6178 * sim-alu.h (ALU16_BEGIN, ALU32_BEGIN, ALU64_BEGIN): Drop opening
6179 brace from macro.
6180 (ALU8_BEGIN, ALU8_SET, ALU8_ADD, ALU8_SUB, ALU8_NEGATE): Define.
6181 (ALU16_ADD, ALU16_SUB, ALU16_NEGATE): Simplify arrithmetic.
6182 (ALU32_ADD, ALU32_SUB, ALU32_NEGATE): Simplify arrithmetic.
6183 (ALU64_ADD, ALU64_SUB, ALU64_NEGATE): Simplify arrithmetic.
6184
6185 Wed Oct 15 09:24:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
6186
6187 * sim-core.h (struct _sim_core_mapping): Change free_buffer to
6188 type void*.
6189
6190 * sim-core.c (sim_core_uninstall, new_sim_core_mapping,
6191 sim_core_map_attach, sim_core_map_detach): Change free_buffer to
6192 type void*.
6193 (sim_core_attach): Rename buffer_freed to free_buffer, type
6194 void*. Ensure that allocated buffer is alligned according to
6195 region's address.
6196
6197 Mon Oct 13 11:34:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
6198
6199 * sim-alu.h (ALU64_HAD_OVERFLOW): Define.
6200 (ALU64_SUB): Define.
6201
6202 * Make-common.in (all): Build SIM_EXTRA_ALL first.
6203 (.gdbinit): Remove dependencies, generate once per build.
6204
6205 Tue Oct 14 19:20:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
6206
6207 * sim-n-core.h (sim_core_read_aligned_N,
6208 sim_core_write_aligned_N): Make xaddr param type address_word not
6209 unsigned_word.
6210
6211 Fri Oct 3 09:49:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
6212
6213 * sim-fpu.h, sim-fpu.c: Rewrite. Change sim_fpu object to an
6214 unpacked floating point struct. Pass sim_fpu object by reference.
6215 Add preliminary support for rounding modes.
6216
6217 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
6218
6219 * configure: Regenerated to track ../common/aclocal.m4 changes.
6220
6221 Thu Oct 2 19:43:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
6222
6223 * aclocal.m4 (sim-bitsize): Fix typo, WITH_TARGET_WORD_BITSIZE not
6224 WITH_TARGET_BITSIZE.
6225
6226 Thu Sep 25 23:20:20 1997 Felix Lee <flee@yin.cygnus.com>
6227
6228 * sim-profile.c (profile_print_core): label needs empty statement.
6229
6230 Thu Sep 25 11:20:47 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
6231
6232 * sim-break.c (sim_set_breakpoint sim_clear_breakpoint): Use ZALLOC
6233 and zfree instead of xmalloc and free. Prevents warnings.
6234
6235 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
6236
6237 * configure: Regenerated to track ../common/aclocal.m4 changes.
6238
6239 Wed Sep 24 17:23:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
6240
6241 * Make-common.in (SIM_BITSIZE): Assign from configured value.
6242 (CONFIG_CFLAGS): Add SIM_BITSIZE.
6243
6244 * aclocal.m4 (--enable-sim-bitsize): Developer option for
6245 controling the bitsize/msb of the target.
6246
6247 Wed Sep 24 17:41:40 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
6248
6249 * Make-common.in: New files sim-break.c, sim-break.h.
6250 * sim-base.h: Add point to breakpoint list to sim_state_base.
6251 * sim-break.c sim-break.h: New modules that implement intrinsic
6252 breakpoint support.
6253 * sim-module.c: Add breakpoint module.
6254
6255 Tue Sep 23 00:26:39 1997 Felix Lee <flee@yin.cygnus.com>
6256
6257 * sim-events.c (SIM_EVENTS_POLL_RATE): poll more often than once
6258 an hour.
6259 * sim-n-core.h (WITH_XOR_ENDIAN): MSVC barfs on
6260 if (0) { 1 % 0; }
6261 * sim-core.c (sim_core_xor_write_buffer): WITH_XOR_ENDIAN + 1.
6262 (SIGBUS) define for Windows.
6263 * sim-trace.c (trace_printf,debug_printf): added ALMOST_STDC.
6264 * sim-resume.c: define SIGTRAP for windows.
6265 * sim-xcat.h: use token pasting if ALMOST_STDC.
6266
6267 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
6268
6269 * Make-common.in (SIM_SCACHE, SIM_DEFAULT_MODEL): Assign
6270 configured values.
6271 (CONFIG_CFLAGS): Add same.
6272
6273 Mon Sep 22 17:20:27 1997 Felix Lee <flee@cygnus.com>
6274
6275 * sim-types.h (SIGNED64): ##i64 when _MSC_VER, not _WIN32.
6276 (SIGNED32): use ##i32.
6277
6278 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
6279
6280 * configure: Regenerated to track ../common/aclocal.m4 changes.
6281
6282 Tue Sep 23 10:07:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
6283
6284 * aclocal.m4 (sim-endian): Simplify logic determining [default]
6285 endian of target.
6286
6287 * Make-common.in (SIM_WARNINGS, SIM_ALIGNMENT, SIM_ENDIAN,
6288 SIM_HOSTENDIAN, SIM_RESERVED_BITS, SIM_ASSERT, SIM_FLOAT,
6289 SIM_HARDWARE, SIM_INLINE, SIM_PACKAGES, SIM_REGPARM, SIM_SMP,
6290 SIM_STDCALL, SIM_XOR_ENDIAN): Assign configured values.
6291 (CONFIG_CFLAGS): Add same.
6292
6293 * aclocal.m4: Perform AC_SUBST on optional options.
6294
6295 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
6296
6297 * sim-config.h (WITH_DEFAULT_ALIGNMENT): Don't hardwire any alignment.
6298
6299 * sim-options.c (standard_option_handler): Typo in warning message.
6300
6301 * sim-base.h (STATE_MODEL): Make conditional on SIM_HAVE_MODEL.
6302
6303 * sim-profile.c (profile_print_insn): Check 0 .. MAX_INSN for any
6304 insn count. Make count conditional on there being a valid
6305 INSN_NAME.
6306 (profile_pc_init): Make default PC profile frequency an arbitrary
6307 256.
6308
6309 * sim-base.h: Ditto.
6310
6311 * sim-profile.h (WITH_PROFILE_MODEL_P): Only enable modeling when
6312 SIM_HAVE_MODEL.
6313
6314 * sim-model.h (struct MACH): Depreciate, to be replaced by bfd
6315 archure struct.
6316
6317 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
6318
6319 * configure: Regenerated to track ../common/aclocal.m4 changes.
6320
6321 Mon Sep 22 11:45:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
6322
6323 * aclocal.m4 (sim_alignment): Simplify logic for selecting the
6324 configured alignment.
6325
6326 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
6327
6328 * configure: Regenerated to track ../common/aclocal.m4 changes.
6329
6330 Fri Sep 19 17:26:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
6331
6332 * sim-config.c (sim_config): Check for default alignment.
6333
6334 * sim-options.c (standard_option_handler): Add alignment option.
6335
6336 * aclocal.m4 (sim_alignment): Allow configuration of hardwired and
6337 default alignment requirements on memory accesses.
6338
6339 Fri Sep 19 11:51:35 1997 Jeffrey A Law (law@cygnus.com)
6340
6341 * sim-load.c (sim_load_file): Return failure if the executable
6342 had no loadable sections.
6343
6344 Wed Sep 17 13:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
6345
6346 * sim-events.c (ETRACE): Use trace_printf not sim_io_printf for
6347 trace output.
6348
6349 * sim-core.c (sim_core_signal): When bad access halt simulator
6350 SIGSEGV / SIGBUS instead of aborting.
6351 (signal.h): Include.
6352
6353 * sim-watch.c (sim_watchpoint_install): Handler for watchpoint
6354 options was missing.
6355
6356 * sim-bits.h (MOVED): Define
6357
6358 Wed Sep 17 10:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
6359
6360 * sim-alu.h (ALU32_HAD_OVERFLOW): Pacify GCC, Use MSBIT instead of
6361 BIT.
6362
6363 * sim-bits.h (LSBIT, MSBIT): Check for overflow of shift value.
6364
6365 * sim-bits.c: Add 8 bit versions of bit macros.
6366
6367 * sim-bits.h: Ditto.
6368
6369 Tue Sep 16 16:15:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
6370
6371 * sim-bits.c (LSSEXT, MSSEXT): Replace SEXT.
6372 (LSINSERTED, MSINSERTED): Ditto for INSERTED.
6373
6374 * sim-n-bits.h (MSSEXTn, LSSEXTn): Replace SEXTn.
6375 (LSINSERTDn, MSINSERTEDN): Ditto for INSERTEDn.
6376
6377 * sim-bits.h (SEXT*): Define as MSEXT/LSEXT.
6378 (INSERTED*): Ditto for LSINSERTED/MSINSERTED.
6379
6380 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
6381
6382 * aclocal.m4 (SIM_AC_COMMON): Add optional config.h file argument.
6383 configure.in: Output to cconfig.h instead of config.h.
6384
6385 * configure: Regenerated to track ../common/aclocal.m4 changes.
6386
6387 Mon Sep 15 15:39:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
6388
6389 * sim-utils.c (sim_analyze_program): Set STATE_ARCHITECTURE from
6390 BFD if known.
6391
6392 Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
6393
6394 * callback.c (os_write): divert stdout and stderr to their
6395 respective hooks.
6396
6397 Thu Sep 11 10:08:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
6398
6399 * sim-profile.c (profile_print_speed): Call
6400 sim_events_elapsed_time instead of PROFILE_EXEC_TIME for moment.
6401
6402 * sim-events.c (sim_events_elapsed_time): New function return nr
6403 host MS consumed by the simulator.
6404 (sim_watch_valid): Use.
6405
6406 * sim-module.c (modules): Install sim_events very very early.
6407
6408 * sim-profile.c (profile_print): Call profile_print_pc.
6409 (print_bar):
6410 (profile_pc_init): New function, set up processor for PC
6411 profiling.
6412 (profile_print_pc): New function, print a PC profile.
6413 (profile_pc_event): New function, sample PC.
6414
6415 * sim-profile.h (PROFILE_PC_COUNT, PROFILE_PC_START,
6416 PROFILE_PC_END, PROFILE_PC_SHIFT, PROFILE_PC_SAMPLE_SIZE): Add to
6417 profile struct.
6418
6419 * sim-options.c (sim_print_help): Pacify GCC.
6420
6421 * sim-n-core.h (sim_core_read_aligned_N,
6422 sim_core_write_aligned_N): Add un-conditional profile call.
6423 (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Add
6424 profile call when aligned read/write isn't used.
6425
6426 * sim-base.h: Include sim-profile, sim-model after sim-core &
6427 sim-events allow sim-core to define useful values.
6428
6429 * sim-profile.c (OPTION_PROFILE_CORE): Define.
6430 (profile_option_handler, profile_options): Add support for
6431 --profile-core option.
6432 (print_bar): Include when core profiling.
6433 (profile_print_core): New function, print core profile.
6434
6435 * sim-config.c (print_sim_config): Print profile status.
6436
6437 * sim-profile.h (PROFILE_NEXT_IDX, PROFILE_core,
6438 WITH_PROFILE_PC_P): Define.
6439 (PROFILE_CORE_COUNT): Count each core-map/size separatly.
6440 (PROFILE_COUNT_CORE): Define.
6441
6442 Thu Sep 11 08:44:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
6443
6444 * sim-watch.c (handle_watchpoint): Pass a char** index into the
6445 interrupt_names array as the data.
6446 (sim-watch.h): Document.
6447
6448 Wed Sep 10 16:15:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6449
6450 * sim-options.c (sim_print_help): When the doc string is to long
6451 word wrap it.
6452
6453 * sim-watch.c (sim_watchpoint_install): Use option.doc_name so
6454 that only the first few the watch options are listed. Generate
6455 meanginful usage messages.
6456
6457 * sim-options.h (struct OPTION): Clarify use of doc_name field
6458
6459 Wed Sep 10 13:23:24 1997 Andrew Cagney <cagney@b1.cygnus.com>
6460
6461 * sim-options.c (OPTION_ARCHITECTURE_INFO): New option.
6462 (standard_option_handler): Handle --architecture-info.
6463
6464 Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
6465
6466 * sim-core.h (sim_cpu_core): [WITH_XOR_ENDIAN + 1], to avoid
6467 illegal zero-sized array.
6468 * sim-core.c (sim_core_xor_read_buffer): same.
6469
6470 Tue Sep 9 11:20:35 1997 Doug Evans <dje@canuck.cygnus.com>
6471
6472 * nltvals.def: Regenerate.
6473
6474 Tue Sep 9 02:10:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
6475
6476 * sim-fpu.c (DP_FRACHIGH2): Define LL using SIGNED64.
6477
6478 Mon Sep 8 12:22:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
6479
6480 * sim-bits.c (MASKED): Delete.
6481 (EXTRACTED): Delete.
6482 (LSEXTRACTED, MSEXTRACTED): New functions.
6483
6484 * sim-n-bits.h (MASKEDn): Delete, define as MSMASKED or LSMASKED.
6485 (MSMASKEDn, LSMASKEDn): Add last argument.
6486 (MSMASK*): Ditto.
6487
6488 * sim-bits.h (EXTEND8, EXTEND16): Define.
6489 (EXTRACTED64): Define as 64 bit extract, not 32 bit.
6490
6491 * sim-run.c (sim_engine_run): Use CPU_CIA macro.
6492
6493 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use CPU_CIA to get at
6494 current instruction address.
6495
6496 * sim-inline.h (*_ENGINE): Define.
6497
6498 Fri Sep 5 08:39:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
6499
6500 * sim-core.c (sim_core_attach): Fix checks of modulo/mask.
6501
6502 * sim-watch.c (delete_watchpoint): Delete by ident and type.
6503 (watch_option_handler): Call delete_watchpoint with ident or type.
6504 (sim_watchpoint_install): Create interrupt specific watchpoint
6505 commands on the fly.
6506 (do_watchpoint_create): New function, create a watch point using
6507 type/int-nr info encoded in the option nr.
6508 (do_watchpoint_info): New function. List active watchpoints.
6509
6510 * sim-watch.h: Change data structure to a list.
6511
6512 * sim-memopt.c (memory_option_handler): Require explicit "all"
6513 before deleting all memory regions.
6514
6515 * sim-utils.c (sim_do_commandf): New function, printf version of
6516 sim_do_command.
6517
6518 * sim-basics.h (asprintf, vasprintf): Hack, define for CYGWIN32.
6519
6520 * sim-alu.h (ALU64_ADD): Use explicit MSEXTRACTED64, do not assume
6521 bit endianness.
6522 (SIGNED64, UNSIGNED64): Delete.
6523 (ALU64_ADD): Don't rely on bit endianness.
6524 (ALU64_BEGIN): Define.
6525
6526 * sim-n-bits.h (MSEXTRACTEDn, LSEXTRACTED): New functions.
6527 (EXTRACTEDn): Delete, define as either LSEXTRACTED or MSEXTRACTED.
6528
6529 * sim-types.h (SIGNED64, UNSIGNED64): New macros, attach relevant
6530 suffix - u64, LL - to 64 bit constants.
6531
6532 Thu Sep 4 09:27:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
6533
6534 * sim-config.c (sim_config): Add assert for SIM_MAGIC_NUMBER.
6535
6536 * sim-utils.h (NZALLOC): Define - zalloc * N.
6537
6538 * sim-hrw.c (sim_read, sim_write): New file. Provide generic
6539 implementation of read/write functions.
6540
6541 * Make-common.in (sim-hrw.o): New target.
6542
6543 * sim-base.h (STATE_MEMOPT_P): Delete, simulators _always_ add
6544 memory.
6545
6546 * sim-memopt.c (memory_option_handler): Implement memory-size
6547 command. Implement memory-alias command. Let memory-delete delete
6548 all memory regions.
6549 (add_memopt): New function. Add a memory region.
6550 (do_memopt_delete): New function. Delete a memory region.
6551
6552 * sim-utils.c (sim_elapsed_time_get): Never return zero.
6553
6554 * sim-core.c (sim_core_detach): New function.
6555 (sim_core_map_detach): New function. Perform the actual detach.
6556 (sim_core_init): Move initialization code from here.
6557 (sim_core_install): To here.
6558 (sim_core_uninstall): And here.
6559
6560 * sim-module.c: Add memopt module.
6561
6562 * sim-base.h (STATE_MEMOPT, STATE_MEMOPT_P): Add memopt to
6563 simulator base type.
6564
6565 * Make-common.in (sim_main_headers): Add sim-memopt.h
6566 (sim-memopt.o): New target.
6567
6568 * sim-core.c (sim_core_install): Add core_options to the option
6569 table.
6570
6571 * sim-watch.c (watch_options): Make --delete-watch a synonym for
6572 --watch-delete.
6573
6574 * sim-config.h (WITH_MODULO_MEMORY): Define as 0. Update
6575 comments.
6576
6577 * sim-core.h (struct _sim_core_mapping): Change nr_bytes to type
6578 address_word, add mask member.
6579
6580 * sim-core.h, sim-core.c (sim_core_attach): Make nr_bytes of type
6581 address_word, allow for 64bit targets in 32bit host. Add modulo
6582 argument.
6583 (sim_core_map_attach): Ditto.
6584 (new_sim_core_mapping): Ditto.
6585 (sim_core_translate): Mask address when modulo memory.
6586
6587 Wed Sep 3 17:32:54 1997 Doug Evans <dje@seba.cygnus.com>
6588
6589 * sim-hload.c (sim_load): Add assert for SIM_MAGIC_NUMBER.
6590
6591 * gdbinit.in: New file.
6592 * aclocal.m4 (SIM_AC_OUTPUT): Build .gdbinit.
6593 * Make-common.in (distclean): Delete .gdbinit.
6594 (.gdbinit): Add rule for.
6595 * configure: Regenerated to track ../common/aclocal.m4 changes.
6596
6597 * Make-common.in (cgen-run.o): Add rule for.
6598
6599 Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
6600
6601 * sim-resume.c (sim_resume): Suspend/resume the simulator.
6602
6603 * sim-events.c (sim_watch_valid): Compute total elapsed time from
6604 both resumed and previous elapsed time.
6605 (sim_events_init): Set initial_wallclock and current_wallclock to
6606 zero.
6607 (sim_events_install): Install sim_events_suspend and
6608 sim_events_resume.
6609 (sim_events_watch_clock): Allow for suspended simulator when
6610 computing the time of the clock event.
6611
6612 * sim-events.h (struct _sim_event): Add resume_wallclock, rename
6613 initial_wallclock to elapsed_wallclock, set both to zero.
6614 (sim_events_init, sim_events_uninstall): Delete prototypes.
6615
6616 * sim-module.h (MODULE_SUSPEND_FN, MODULE_RESUME_FN): Define types.
6617
6618 * sim-module.c(sim_module_resume, sim_module_suspend): New
6619 functions.
6620
6621 Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
6622
6623 * sim-core.c (sim_core_map_attach): Clarify memory overlap error
6624 message.
6625
6626 Tue Sep 2 14:57:06 1997 Doug Evans <dje@canuck.cygnus.com>
6627
6628 * Makefile.in (TAGS): Add support for "/* TAGS: foo */" marker.
6629 * Make-common.in (TAGS): Likewise.
6630 * sim-n-bits.h: Add TAGS comments for all functions.
6631 * sim-n-core.h: Likewise.
6632 * sim-n-endian.h: Likewise.
6633
6634 Mon Sep 1 10:50:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
6635
6636 * sim-utils.c (sim_state_alloc): Set CPU backlinks, callback and
6637 kind.
6638
6639 * sim-base.h (sim_state_alloc): Add callback and kind arguments.
6640
6641 * sim-base.h (INVALID_INSTRUCTION_ADDRESS): Add default
6642 definition.
6643
6644 Sat Aug 30 09:47:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
6645
6646 * sim-fpu.c (DP_GARDMSB, ...): Make unsigned.
6647 (DP_FRACHIGH, DP_FRACHIGH2, ..): Use MSMASK to avoid LL.
6648
6649 Fri Aug 29 13:37:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
6650
6651 * sim-core.c (sim_core_map_attach): Cast attach enum to int.
6652 (sim_core_xor_read_buffer, sim_core_xor_write_buffer): Make
6653 nr_transfered and nr_this_transfer unsigned.
6654
6655 * sim-events.c (sim_events_tickn): N is signed, as limited to
6656 MAXINT.
6657
6658 * sim-n-endian.h (offset_N): Change size to unsigned.
6659
6660 * callback.c (os_poll_quit): Add prototypes for kbhit and getkey.
6661
6662 Fri Aug 29 10:10:53 1997 Andrew Cagney <cagney@b1.cygnus.com>
6663
6664 * sim-utils.c (sim_copy_argv): Delete, replaced by dupargv.
6665
6666 * sim-options.c (sim_parse_args): Use dupargv.
6667
6668 Thu Aug 28 10:36:34 1997 Doug Evans <dje@canuck.cygnus.com>
6669
6670 * sim-options.c (standard_option_handler): Use xstrdup, not strdup.
6671
6672 Thu Aug 28 12:09:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
6673
6674 * sim-base.h (STATE_ARCHITECTURE, STATE_TARGET): Add to simulator
6675 base type.
6676
6677 * sim-options.c (standard_options): Add --architecture=MACHINE and
6678 --target=TARGET options.
6679 (OPTION_ARCHITECTURE, OPTION_TARGET): Define.
6680 (standard_option_handler): Handle architecture and target options.
6681 (bfd.h): Include.
6682
6683 * sim-utils.c (sim_analyze_program): Pass STATE_TARGET to
6684 bfd_openr.
6685 (sim_analyze_program): Set prog_bfd architecture from
6686 STATE_ARCHITECTURE if known.
6687
6688 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6689
6690 * configure: Regenerated to track ../common/aclocal.m4 changes.
6691 * config.in: Ditto.
6692
6693 Wed Aug 27 18:11:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
6694
6695 * aclocal.m4 (enable-sim-warnings): Remove comment stating
6696 that option does not apply to certain files.
6697
6698 Wed Aug 27 15:13:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
6699
6700 * sim-bits.h (LSBIT8, LSBIT16, LSBIT32, LSBIT64, LSBIT, MSBIT8,
6701 MSBIT16, MSBIT32, MSBIT64, MSBIT): New macros - single bit as
6702 offset from MSB/LSB.
6703
6704 * sim-endian.h (A1_8, A2_8, A4_8, A1_4, A2_4, A1_2): New macro,
6705 access address of sub word quantity of a hosts 16, 32, 64 bit word
6706 type.
6707 (V1_2, V1_4, V2_4, V1_8, V2_8, V4_8): Ditto for values.
6708 (U8_1, U8_2, U8_4, U4_1, U4_2, U2_1): Ditto for set of values.
6709 (V2_H1, V2_L1, V4_H2, V4_L2, V8_L4, V8_H4): Given N byte argument,
6710 return N*2 byte value with argument in Hi/Lo word. Renamed from
6711 V1_H2, V1_L2, V2_H4, V2_L4, V4_H8, V4_L8.
6712
6713 * sim-alu.h (ALU32_HAD_OVERFLOW): Use 64 bit mask not 32bit.
6714 (ALU16_HAD_CARRY, ALU32_HAD_CARRY, ALU16_HAD_OVERFLOW): Use MSBIT
6715 so that bit offset is explicit.
6716
6717 Wed Aug 27 11:55:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
6718
6719 * sim-utils.c (sim_analyze_program): Add prog_name argument.
6720 Update STATE_PROG_BFD when needed with a dup'd copy of the
6721 program.
6722
6723 * sim-config.c (sim_config): Delete ABFD argument, use
6724 STATE_PROG_BFD directly.
6725
6726 Tue Aug 26 12:55:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
6727
6728 * run.c (main): Pass the open ABFD to sim_create_inferior.
6729
6730 * nrun.c (main): Determine prog_bfd. Pass to sim_create_inferior
6731 and sim_load.
6732 (bfd.h): Include.
6733
6734 * sim-hload.c (sim_load): New file. Implement generic sim_load for
6735 hardware only simulator targets.
6736
6737 * Make-common.in (sim-hload.o): Add rule.
6738
6739 Wed Aug 27 09:51:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
6740
6741 * sim-utils.c (sim_copy_argv): Rewrite to match malloc strategy
6742 used by copyargv and freeargv.
6743
6744 * sim-options.c (sim_parse_args): Save a copy of PROG-ARGS in
6745 STATE_PROG_ARGV, not just a pointer.
6746
6747 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6748
6749 * configure: Regenerated to track ../common/aclocal.m4 changes.
6750 * config.in: Ditto.
6751
6752 Mon Aug 25 12:11:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
6753
6754 * aclocal.m4 (sim-endian): Add second argument to
6755 SIM_AC_OPTION_ENDIAN. First is hardwired endian, second is
6756 default endian when not hardwired.
6757
6758 * sim-config.h (WITH_DEFAULT_TARGET_BYTE_ORDER): New macro, if all
6759 else failes value for target byte order.
6760
6761 * sim-config.c (sim_config): Add abfd arguments. Set
6762 STATE_PROG_BFD accordingly. Determine prefered_target_byte_order
6763 from same.
6764 (sim_config): Return SIM_RC, don't abort.
6765 (bfd.h): Include.
6766
6767 * run.c (main): Update call to sim_open - add ABFD argument.
6768 * nrun.c (main): Add NULL ABFD argument.
6769
6770 Thu Aug 14 12:48:57 1997 Doug Evans <dje@canuck.cygnus.com>
6771
6772 * callback.c (os_poll_quit): Make static.
6773 Call sim_cb_eprintf, not p->eprintf.
6774 (sim_cb_printf, sim_cb_eprintf): New functions.
6775 * sim-utils.h (sim_cb_printf, sim_cb_eprintf): Declare.
6776
6777 * sim-basics.h (zalloc,zfree,sim_add_commas,SIM_ELAPSED_TIME,
6778 sim_elapsed_time_get,sim_elapsed_time_since): Move decls to
6779 sim-utils.h. #include sim-utils.h.
6780 * sim-utils.h: Above decls moved here.
6781 (sim_analyze_program,sim_load_file): Use `struct _bfd', not `bfd'.
6782
6783 * sim-watch.c (action_watchpoint): Fix thinkos.
6784
6785 Thu Jul 24 08:48:05 1997 Stu Grossman (grossman@critters.cygnus.com)
6786
6787 * sim-types.h: Fix defs of 64 bit data types for MSVC.
6788
6789 Tue Jul 22 10:35:37 1997 Doug Evans <dje@canuck.cygnus.com>
6790
6791 * sim-n-core.h (sim_core_write_unaligned_N): Add missing break
6792 to FORCED_ALIGNMENT case.
6793
6794 Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
6795
6796 * callback.c (target_to_host_open): Handle hosts with O_BINARY.
6797
6798 Thu Jun 5 08:47:10 1997 Jeffrey A Law (law@cygnus.com)
6799
6800 * Make-common.in (libsim.a): Fix typo.
6801
6802 Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
6803
6804 * nrun.c (main): Verify the structure returned before using it.
6805
6806 Wed Jun 4 11:44:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
6807
6808 * sim-config.h (WITH_ENGINE): Enable the sim-engine module by
6809 default.
6810
6811 * sim-engine.c (sim_engine_install): New function. Install the
6812 engine init functions.
6813 (sim_engine_init): [Re]initialize the simulator engine.
6814
6815 * sim-module.c: Add sim_engine to list of modules that always
6816 install.
6817
6818 Tue Jun 3 04:52:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
6819
6820 * sim-watch.c (schedule_watchpoint): Use sim_unschedule_watchpoint
6821 to remove the old watchpoint, not delete_watchpoint.
6822 (watch_option_handler): Action the correct watchpoint, not just
6823 cycles.
6824
6825 Wed May 28 14:47:41 1997 Andrew Cagney <cagney@b1.cygnus.com>
6826
6827 * sim-n-core.h (sim_core_write_aligned_N): For 8byte reads, output
6828 both low and high word.
6829 (sim_core_write_aligned_N): Ditto.
6830
6831 * sim-trace.c (set_trace_options): Delete code explicitly setting
6832 core->trace.
6833
6834 * sim-options.c (sim_print_help): Call the list commands if not a
6835 standalone simulator.
6836 (sim_print_help): Advise that some options may not be applicable.
6837
6838 * sim-trace.c (set_trace_options): Assume core present.
6839
6840 * sim-events.c (sim_events_schedule_after_signal): Overflow signal
6841 buffer when full not almost full.
6842
6843 Tue May 27 14:32:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
6844
6845 * sim-events.c (sim_events_process): Don't blat the event queue
6846 when processing watchpoints.
6847
6848 * sim-watch.h: Make arg unsigned long - stop sign extension.
6849
6850 * sim-events.c (sim_watch_valid): rewrite so debugable.
6851
6852 * sim-config.h (WITH_XOR_ENDIAN): Default to zero.
6853
6854 * sim-watch.c (schedule_watchpoint): Add is_within option so that
6855 inequality test is possible.
6856 (handle_watchpoint): Re-pass is_within arg.
6857 (watch_option_handler): When `!' prefix to pc-watchpoint arg pass
6858 0 to schedule_watchpoint's is_within arg.
6859 (sim_watchpoint_init): Re-pass is_within arg.
6860
6861 * sim-options.c (sim_print_help): Add is_command argument. Don't
6862 include -- prefix when called from the command line interpreter.
6863
6864 * sim-watch.c (schedule_watchpoint): Pass true is_within argument.
6865
6866 * sim-events.c (sim_events_watch_sim): Add is_within argument,
6867 zero indicates that the test should be reversed.
6868 (sim_events_watch_core): Ditto.
6869 (WATCH_CORE): Compare range against is_within.
6870 (WATCH_SIM): Ditto.
6871
6872 Tue May 27 12:48:03 1997 Andrew Cagney <cagney@b2.cygnus.com>
6873
6874 * sim-events.c (WATCH_CORE): Pass NULL cpu argument to
6875 sim_core_read_buffer. Check nr-bytes transfered.
6876
6877 * sim-core.h (sim_core_common): Define a new struct that contains
6878 the common data. to sd and cpu structures.
6879 * sim-core.c (sim_core_attach): Update.
6880 (sim_core_init): Update. Remember to copy initialized data to each
6881 cpu.
6882 (sim_core_find_mapping): Ditto.
6883
6884 * sim-core.c (sim_core_read_buffer): Add cpu argument.
6885 (sim_core_write_buffer): Ditto.
6886
6887 * sim-n-core.h (sim_core_read_unaligned_N): When mis-aligned
6888 transfer use xor version of read buffer.
6889 (sim_core_write_unaligned_N): Ditto for write.
6890
6891 * sim-core.c (sim_core_xor_read_buffer): New function implement
6892 xor-endian data read breaking transfer up into xor-endian sized
6893 blocks.
6894 (sim_core_xor_write_buffer): Ditto for write.
6895 (reverse_n): Reverse order of arbitrary number of bytes in buffer
6896 - needed for xor-endian transfers.
6897
6898 Fri May 23 14:24:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
6899
6900 * sim-inline.h: Review description.
6901
6902 * sim-core.h, sim-core.c: Reduce number of functions being inlined
6903 to just those involved in data transfers and configuration.
6904
6905 * sim-xcat.h (XSTRING): New macro, map macro definition onto
6906 string.
6907 * sim-n-core.h (sim_core_read_aligned_N): Use.
6908 (sim_core_read_unaligned_N): Ditto.
6909 (sim_core_read_unaligned_N): Ditto..
6910 (sim_core_write_unaligned_N): Ditto.
6911
6912 * sim-core.h: Add xor endian bitmap to main structure. *
6913
6914 sim-n-core.h (sim_core_write_aligned_N): Add suport for xor
6915 endian.
6916 (sim_core_read_aligned_N): Ditto.
6917
6918 * sim-core.c (sim_core_set_xor_endian): New function.
6919 (sim_core_attach): Don't overwrite the per-cpu xor map when
6920 cloning the global core.
6921
6922 Fri May 23 10:53:13 1997 Andrew Cagney <cagney@b1.cygnus.com>
6923
6924 * sim-engine.h: Update below so that it is using an enumerated
6925 type.
6926
6927 Thu May 22 09:12:16 1997 Gavin Koch <gavin@cygnus.com>
6928
6929 * sim-engine.c (sim_engine_restart):
6930 * sim-resume.c (sim_resume): Change longjmp param/setjmp
6931 return value used for simulator restart from 0 to 2.
6932
6933 Wed May 21 08:47:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
6934
6935 * cgen-scache.c (scache_option_handler): Add is_command arg.
6936
6937 * sim-model.c (model_option_handler): Add is_command argument.
6938
6939 * sim-profile.c (profile_option_handler): Add is_command arg.
6940
6941 * sim-events.c (sim_watch_valid): Use ub64, lb64 when 64bit value
6942 involved.
6943
6944 * sim-module.c (sim_module_add_init_fn): Call init fn in the same
6945 order that they are registered.
6946
6947 * sim-options.h (OPTION_HANDLER): Add argument to differentiate
6948 between option and command line processing.
6949
6950 * sim-options.c: Include stdlib.h, ctype.h.
6951
6952 * Make-common.in (sim-watch.o): Add rule.
6953 (sim_main_headers): Assume sim-assert.h included.
6954 (sim-*.o): Simplify make rule.
6955
6956 * sim-module.c: Add sim_watch_install to module list.
6957
6958 Tue May 20 14:15:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
6959
6960 * sim-base.h (STATE_LOADED_P): New predicate. Set once everything
6961 has been loaded.
6962
6963 * sim-trace.c (trace_install): Check magic. Include sim-assert.h.
6964 * sim-events.c (sim_events_install): Ditto.
6965 * sim-core.c (sim_core_install): Ditto.
6966 * sim-model.c (model_install): Ditto.
6967 * sim-options.c (standard_install): Ditto.
6968 * sim-profile.c (profile_install): Ditto.
6969 * sim-reason.c (sim_stop_reason): Ditto.
6970 * sim-run.c (sim_engine_run): Ditto.
6971 * sim-utils.c (sim_analyze_program): Ditto.
6972
6973 * sim-module.c (modules): Make profile_install and trace_install
6974 optional.
6975
6976 * sim-base.h (STATE_MEM_BASE): Define for flat memory systems.
6977
6978 * sim-options.c (standard_option_handler): Set the byte order.
6979
6980 * sim-events.c (sim_events_process): Allow multi tick processing.
6981 (sim_events_tickn): New function - multi cycle tick.
6982
6983 * sim-events.h (sim_events_tickn, sim_events_timewarp): Add
6984 prototypes. Under development.
6985 (sim_events): Replace processing with nr_ticks_to_process.
6986
6987 Tue May 20 09:39:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6988
6989 * nrun.c (main): Pass callbacks to sim_open instead of using
6990 sim_set_callbacks.
6991
6992 * run.c (main): Ditto.
6993
6994 Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6995
6996 * sim-events.c (sim_events_zalloc): Signal save memory allocator -
6997 stop tk interrupting malloc calls.
6998 (sim_events_zalloc): Converse.
6999
7000 * Make-common.in (sim_main_headers): Add sim-events.h.
7001
7002 * sim-events.c (sim_events_schedule_after_signal): Change return
7003 type to void - signal events are strictly internal.
7004 (sim_events_init): Allocate a finite buffer for signal events.
7005 (sim_events_schedule_after_signal): Enter signal events into the
7006 signal buffer.
7007
7008 * sim-engine.c (sim_engine_halt): Check SIM_DESC magic.
7009 (sim_engine_restart): Ditto.
7010 (sim_engine_abort): Ditto.
7011 * sim-stop.c (sim_stop): Ditto.
7012 (control_c_simulation): Ditto.
7013 * sim-resume.c (sim_resume): Ditto.
7014 (has_stepped): Ditto.
7015 * sim-abort.c (sim_engine_abort): Ditto.
7016
7017 * sim-basics.h (transfer_type): New type.
7018
7019 * sim-core.c (sim_core_signal): New function. Print core signal
7020 information.
7021 (sim_core_find_mapping): Add transfer argument.
7022
7023 * sim-n-core.h (sim_core_{write,write}_unaligned_N): Call
7024 SIM_CORE_SIGNAL if a recoverable abort.
7025 * sim-core.c (sim_core_find_mapping): Ditto.
7026
7027 Fri May 16 15:13:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
7028
7029 * sim-core.c (sim_core_find_mapping): Replace calls to
7030 sim_io_error to more resiliant sim_engine_abort.
7031
7032 * sim-n-core.h (sim_core_read_unaligned_N): Ditto.
7033 (sim_core_write_unaligned_N): Ditto.
7034
7035 Tue May 13 13:50:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
7036
7037 * sim-module.c: Add sim_events_install to list.
7038
7039 * sim-events.c (sim_events_install, sim_events_uninstall): Clonse
7040 from sim_core_*.
7041 (sim_events_init): Now returns SIG_RC.
7042
7043 * sim-run.c: New file. Generic sim_engine_run.
7044 * sim-reason.c: New file. Generic sim_stop_reason.
7045 * sim-stop.c: New file. Generic sim_stop.
7046 * sim-resume.c: New file. Generic sim_resume.
7047
7048 * Make-common.in (sim-engine.o): Add rule.
7049 (sim-run.o, sim-reason.o, sim-stop.o, sim-resume.o): Ditto.
7050
7051 * sim-engine.h, sim-engine.c: New file. Provide generic
7052 implementation of sim_engine_halt, sim_engine_error. et.al.
7053
7054 * sim-base.h (sim_state_base): Add member halt.
7055 (sim-engine.h): Include.
7056
7057 * sim-events.h (sim_event_handler): Always pass SIM_DESC to event
7058 handlers.
7059 * sim-events.c (sim_events_poll): Update event handler.
7060
7061 Tue May 13 09:57:49 1997 Andrew Cagney <cagney@b2.cygnus.com>
7062
7063 * sim-events.h, sim-events.c (sim_events_watch_clock): New
7064 function.
7065 (sim_events_watch_sim): New function.
7066 (sim_events_watch_core): New function.
7067 (sim_watch_valid): New function.
7068 (sim_events_preprocess): New function.
7069 (sim_events_process): Process the watchpoints as well as the timer
7070 queue.
7071 (sim_events_tick): Check WORK_PENDING instead of the hold queue.
7072 (sim_events_deschedule): Check all the queues when removing an
7073 event.
7074 (sim_events_init): Ditto for cleaning.
7075
7076 Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
7077
7078 * sim-fpu.c (is_ufpu_number): Comment out - currently unused.
7079
7080 Mon May 19 11:23:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
7081
7082 * callback.c (os_open): Type of arg flags is int.
7083
7084 Fri May 16 22:26:43 1997 Michael Meissner <meissner@cygnus.com>
7085
7086 * sim-fpu.c (sim_fpu_is_{eq,ne,lt,le,gt,ge}): Compare Infinities
7087 just like normal numbers as per IEEE rules.
7088
7089 Wed May 14 21:20:38 1997 Bob Manson <manson@charmed.cygnus.com>
7090
7091 * callback.c (os_close): Mark the descriptor as being
7092 available if the close succeeded.
7093 (os_open): Pass 0644 as the mode of the file being created.
7094
7095 Thu May 15 10:58:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
7096
7097 * sim-fpu.c (pack_fpu, unpack_fpu): New functions - decode a
7098 float.
7099
7100 * sim-inline.c (SIM_INLINE_C): Rename from _SIM_INLINE_C_.
7101 * sim-lnline.h: Update.
7102
7103 * sim-fpu.h, sim-fpu.c (sim_fpu_[iu]{32,64}to): New int2fp
7104 conversion functions.
7105 (sim_fpu_to{32,64}[iu]): New fp2int functions.
7106
7107 * sim-fpu.h, sim-fpu.c (sim_fpu_is_{lt,le,eq,ne,ge,gt}): New fp
7108 compare functions. Replacing.
7109 (sim_fpu_cmp): This. Delete.
7110
7111 Mon May 12 14:49:05 1997 Andrew Cagney <cagney@b1.cygnus.com>
7112
7113 * sim-core.c (sim_core_find_mapping): Call engine_error not
7114 sim_io_error when possible.
7115
7116 Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b2.cygnus.com>
7117
7118 * sim-endian.h (V1_H2): Add macro's to insert a word into a
7119 high/low double word.
7120
7121 * sim-trace.h: Remove definition of attribute - defined in
7122 sim_basics.h.
7123
7124 Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
7125
7126 * sim-options.h (struct OPTION): Add doc_opt as the documenting
7127 name of the option - or family of options.
7128
7129 * sim-options.c (sim_args_command): Match command `a-b c' with
7130 option `--a-b-c' from option table.
7131
7132 Thu May 8 12:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
7133
7134 * sim-options.c (sim_print_help): For optional arguments, wrap
7135 them in [].
7136
7137 * sim-trace.c (set_trace_options): New function, handle optional
7138 argument and multiple assignment.
7139 (trace_option_handler): Update.
7140
7141 * sim-trace.c (trace_option_handler): Trace branch and not fpu
7142 when branch tracing selected.
7143
7144 Wed May 7 15:19:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
7145
7146 * sim-trace.c (trace_one_insn): Make a va-args function.
7147
7148 * sim-trace.c (trace_vprintf): New function, va-arg version of
7149 trace_printf.
7150
7151 Tue May 6 16:38:16 1997 Doug Evans <dje@canuck.cygnus.com>
7152
7153 * sim-trace.c (trace_uninstall): Don't close a file twice.
7154 * sim-profile.c (profile_uninstall): Likewise.
7155
7156 Tue May 6 06:14:01 1997 Mike Meissner <meissner@cygnus.com>
7157
7158 * sim-trace.c (toplevel): Include bfd.h.
7159 (trace_options): Note that --trace-linenum also turns on
7160 --trace-insn. Add --trace-{branch,semantics}.
7161 (trace_option_handler): If --trace-linenum, also turn on
7162 --trace-insn. Add --trace-branch support. If --trace-semantics,
7163 turn on ALU, FPU, branch, and memory tracing.
7164 (trace_one_insn): New function to trace an instruction. Support
7165 --trace-linenum.
7166 (OPTION_TRACE_*): Use an enum, rather than lots of defines.
7167
7168 * sim-trace.h (TRACE_{SEMANTICS,BRANCH}_IDX): Add new macros.
7169 (MAX_TRACE_VALUES): Use 32, not 12 by default.
7170 (TRACE_branch): Add new mask.
7171 (TRACE_*_P): Define all possible trace_p macros.
7172 (trace_one_insn): Declare function.
7173
7174 Mon May 5 14:08:34 1997 Mike Meissner <meissner@cygnus.com>
7175
7176 * sim-trace.h (__attribute__): Define as nothing if not GNU C or
7177 GNU C doesn't support __attributes__.
7178 ({trace,debug}_printf): Add attribute's so -Wformat can check the
7179 format strings.
7180
7181 Mon May 5 11:16:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
7182
7183 * sim-config.h (FORCED_ALIGNMENT): New alignment option -
7184 addresses are masked forcing them to be correctly aligned.
7185 (WITH_ALIGNMENT): Make NONSTRICT_ALIGNMENT the default.
7186 * sim-config.c (config_alignment_to_a): Update.
7187
7188 * sim-core.h (sim_cpu_core): New data type contains cpu specific
7189 core data.
7190 * sim-base.h (CPU_CORE): Add cpu specific core data to cpu base
7191 type.
7192 * sim-core.c (sim_core_attach): Add CPU argument. Ready for
7193 processor specific core maps.
7194 (sim_core_map_attach): Copy the core map data to each of the
7195 processor specific core data structures.
7196 * sim-core.c (sim_core_find_mapping): Update.
7197
7198 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Rename.
7199 (sim_core_write_aligned_N, sim_core_write_aligned_N): New names.
7200 (sim_core_write_unaligned_N, sim_core_write_unaligned_N): New
7201 alternatives that handle unaligned addresses.
7202 (sim_core_{read,write}_{,un}aligned_N): Drop SIM_DESC arg, replace
7203 with just CPU arg.
7204 * cgen-utils.c (sim_disassemble_insn): Update.
7205
7206 Mon May 5 13:19:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
7207
7208 * sim-trace.h (TRACE_FPU_IDX): Add Floating-point specific
7209 tracing.
7210
7211 * sim-fpu.h, sim-fpu.c: New files - prototype for generic target
7212 fpu support.
7213
7214 * sim-inline.h, sim-inline.c: Add support for SIM_FPU.
7215
7216 Fri May 2 17:59:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
7217
7218 * sim-core.c (sim_core_map_to_str): New function ascii equivalent
7219 to map type.
7220
7221 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Use in trace
7222 statement.
7223
7224 Fri May 2 17:28:02 1997 Andrew Cagney <cagney@b2.cygnus.com>
7225
7226 * cgen-trace.c: Prepend additional trace_printf argument.
7227
7228 * cgen-utils.c (sim_disassemble_insn): Add additional core
7229 arguments.
7230
7231 Fri May 2 11:40:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
7232
7233 * nrun.c (main): Catch/report errorenous simulator states.
7234
7235 * sim-module.c: #include "libiberty.h" so that xmalloc is defined.
7236 * sim-trace.c: #include string.h/strings.h so that memset is
7237 defined.
7238 * sim-utils.c: Ditto.
7239 * sim-profile.c: Ditto. And stdlib.h.
7240 (print_bar): Only define when used by instruction or memory profiler.
7241
7242 * sim-options.c (standard_option_handler): Make ul more local.
7243
7244 * sim-load.c (sim_load_file): Make the name constant.
7245 (sim_load_file): Passify gcc.
7246
7247 * sim-utils.h: New file, pre-declare utilites in corresponding .c
7248 file.
7249 * sim-utils.c, sim-load.c: Include sim-utils.h.
7250
7251 * sim-base.h (sim_cpu): Pre define here so available to all.
7252
7253 * sim-core.h (DECLARE_SIM_CORE_WRITE_N, DECLARE_SIM_CORE_READ_N):
7254 Restore the sim_cpu and instruction_address arguments so that full
7255 information is available to the abort function.
7256 * sim-core.c (sim_core_find_mapping, sim_core_write_buffer): Ditto.
7257 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
7258
7259 * sim-trace.h, sim-trace.c (trace_option_handler): Add interim
7260 tracing support for sim-events and sim-core.
7261 (trace_option_handler): Convert #if to if where possible so always
7262 compiled/checked by C compiler.
7263 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
7264
7265 * sim-base.h: Adjust comment documenting how to define the cpu
7266 structure.
7267 (sim_state_base): Add sim_core and sim_events to simulator base
7268 object.
7269
7270 * sim-trace.h, sim-trace.c (trace_printf): Add SIM_DESC argument.
7271 * sim-core.c (sim_core_init, sim_core_attach,
7272 sim_core_find_mapping): Update.
7273 * sim-events.c (ETRACE, sim_events_init, sim_events_time,
7274 update_time_from_event, insert_sim_event,
7275 sim_events_schedule_after_signal, sim_events_deschedule,
7276 sim_events_tick): Ditto.
7277
7278 * sim-basics.h (sim-module.h, sim-trace.h, sim-profile.h,
7279 sim-model.h): Move #includes from here.
7280 * sim-base.h: To here.
7281 (sim-core.h, sim-events.h, sim-io.h): Include also
7282
7283 Wed Apr 30 15:37:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
7284
7285 * callback.c (default_callback): Missing initialisers.
7286
7287 Thu May 1 10:40:47 1997 Doug Evans <dje@canuck.cygnus.com>
7288
7289 * sim-utils.c (sim_add_commas): New function.
7290 * sim-basics.h (sim_add_commas): Add prototype.
7291 * cgen-scache.c (scache_print_profile): Print commas in numbers.
7292 * sim-profile.c (COMMAS): New macro.
7293 (print_*): Use it to print commas in numbers.
7294
7295 * configure: Regenerated.
7296
7297 * cgen-sim.h (sim_signal_type): Add SIM_SIGINT.
7298 (cgen_state): New member run_fast_p.
7299 (cgen_init): Add prototype.
7300 (sim_disassemble_insn): New arg `cpu'.
7301 * cgen-trace.c (trace_insn): Update call to sim_disassemble_insn.
7302 * cgen-utils.c (cgen_init): New function.
7303 (sim_disassemble_insn): New arg `cpu'. Rewrite fetching of insn.
7304 * genmloop.sh: Call engine_halt if loop exits.
7305
7306 * Makefile.in (sim-options_h): Define.
7307 (sim-{module,options,trace,profile,utils}.o): Clean up dependencies.
7308 (sim-model.o): Add new rule.
7309 (cgen-{scache,trace,utils}.o): Add new rules.
7310 * aclocal.m4 (SIM_AC_OPTION_{SCACHE,DEFAULT_MODEL}): Add.
7311 * cgen-scache.c (scache_print_profile): Change `sd' arg to `cpu'.
7312 Indent output by 2 spaces.
7313 * cgen-scache.h (scache_print_profile): Update.
7314 * cgen-trace.c (trace_insn_fini): Indent output by 2 spaces.
7315 Use trace_printf, not fprintf.
7316 (trace_extract): Use trace_printf, not cgen_trace_printf.
7317 * genmloop.sh (!FAST case): Increment `insn_count'.
7318 * sim-base.h (sim_state_base): Only include scache_size if WITH_SCACHE.
7319 (sim_cpu_base): Rename member `sd' to `state' to be consistent with
7320 access macro's name.
7321 * sim-core.c (sim_core_init): Use EXTERN_SIM_CORE to define it.
7322 Change return type to SIM_RC.
7323 (sim_core_{install,uninstall}): New functions.
7324 * sim-core.h (sim_core_{install,uninstall}): Declare.
7325 (sim_core_init): Use EXTERN_SIM_CORE to define it.
7326 Change return type to SIM_RC.
7327 * sim-model.h (models,machs,model_install): Declare.
7328 * sim-module.c (modules): Add scache_install, model_install.
7329 (sim_post_argv_init): Set cpu->state backlinks.
7330 * sim-options.c (standard_options): Delete --simcache-size,--max-insns.
7331 (standard_option_handler): Likewise.
7332 * sim-profile.c (PROFILE_{HISTOGRAM,LABEL}_WIDTH): Move to
7333 sim-profile.h.
7334 (*): Assume ANSI C.
7335 (profile_options): Delete --profile-simcache.
7336 (profile_option_handler): Likewise.
7337 (profile_print_insn): Change `sd' arg to `cpu'. Indent output 2
7338 spaces.
7339 (profile_print_{memory,model}): Likewise.
7340 (profile_print_simcache): Delete.
7341 (profile_print_speed): New function.
7342 (profile_print): Rewrite.
7343 * sim-profile.h (PROFILE_scache): Renamed from PROFILE_simcache.
7344 (WITH_PROFILE_SCACHE_P): Renamed from WITH_PROFILE_SIMCACHE_P.
7345 (PROFILE_DATA): Delete members simcache_{hits,misses}.
7346 (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): Delete.
7347 (PROFILE_{CALLBACK,CPU_CALLBACK}): New types.
7348 (profile_print): Update prototype.
7349
7350 Wed Apr 30 11:34:14 1997 Doug Evans <dje@canuck.cygnus.com>
7351
7352 * cgen-scache.[ch], cgen-sim.h: New files.
7353 * cgen-trace.[ch], cgen-types.h, cgen-utils.c, genmloop.sh: New files.
7354 * sim-model.c: New file.
7355
7356 * Make-common.in (clean targets): Undo patch of Apr. 22.
7357
7358 Fri Apr 25 15:28:32 1997 Mike Meissner <meissner@cygnus.com>
7359
7360 * sim-n-bits.h (signed): If we have a standard compiler, undef
7361 signed, so that signedN is defined correctly.
7362
7363 Thu Apr 24 00:00:07 1997 Doug Evans <dje@canuck.cygnus.com>
7364
7365 * sim-module.h, sim-model.h, sim-profile.h: New files.
7366 * sim-module.c, sim-profile.c: New files.
7367 * Make-common.in (SIM_PROFILE): Define
7368 (CONFIG_CFLAGS): Add $(SIM_PROFILE).
7369 (sim_main_headers): Add sim-module.h, sim-model.h, sim-profile.h.
7370 (sim_module.o,sim-profile.o): Add rules for.
7371 * aclocal.m4 (--enable-sim-trace): Allow symbolic arguments.
7372 (--enable-sim-profile): Add.
7373 * configure: Regenerated.
7374 * sim-base.h (sim_state_base): New members init_list, uninstall_list,
7375 model. Move trace and profile support to sim-{trace,profile}.h.
7376 New members trace_data, profile_data.
7377 * sim-basics.h: #include sim-module.h, sim-model.h, sim-profile.h.
7378 * sim-config.h: Provide default definition of WITH_PROFILE.
7379 (WITH_TRACE): Change default to -1.
7380 (MAX_NR_PROCESSORS): Always define.
7381 * sim-options.c: Move trace and profile support to
7382 sim-{trace,profile}.h.
7383 (sim_pre_argv_init): Moved to sim-model.c.
7384 (standard_install): New function.
7385 * sim-options.h (sim_pre_argv_init): Move decl to sim-model.c.
7386 (standard_install): Declare.
7387 * sim-trace.c: Tracing option handling moved here from sim-options.c.
7388 (trace_install, trace_uninstall): New functions.
7389 (trace_printf): Update reference to TRACE_FILE.
7390 * sim-trace.h (TRACE_FOO_IDX): Moved here from sim-base.h.
7391 (TRACE_foo): Bit masks for symbolic arguments to --enable-sim-trace.
7392 (WITH_TRACE_FOO_P): Define.
7393 (trace_install): Declare.
7394 (TRACE_DATA): New struct.
7395
7396 Wed Apr 23 17:23:15 1997 Doug Evans <dje@canuck.cygnus.com>
7397
7398 * run.c: Undo last exec_bfd patch.
7399 (main): Only pass -E ifdef SIM_HAVE_BIENDIAN.
7400
7401 Wed Apr 23 17:54:27 1997 Mike Meissner <meissner@cygnus.com>
7402
7403 * run.c (exec_bfd): Add back in.
7404 (main): Set exec_bfd.
7405
7406 Tue Apr 22 14:43:46 1997 Doug Evans <dje@canuck.cygnus.com>
7407
7408 * sim-load.c (sim_load_file): #include <stdio.h> for NULL.
7409
7410 Wed Apr 23 02:55:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
7411
7412 * sim-events.c (insert_sim_event): Call sim_io_error instead of
7413 less well defined engine_error.
7414 * sim-core.c: Ditto.
7415
7416 Tue Apr 22 08:48:16 1997 Stu Grossman (grossman@critters.cygnus.com)
7417
7418 * Make-common.in: Change clean targets to use :: so that other
7419 Makefiles can have their own clean targets.
7420 * sim-load.c (xprintf eprintf): Use ANSI_PROTOTYPES instead of
7421 __STDC__ to control use of stdarg vs. varargs syntax. Some
7422 systems can't use __STDC__, but require stdarg.
7423
7424 Fri Apr 18 11:14:43 1997 Doug Evans <dje@canuck.cygnus.com>
7425
7426 * sim-options.c (standard_options): Add --endian.
7427 (standard_option_handler): Likewise.
7428
7429 * nrun.c: #include <signal.h>.
7430 (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
7431 handler that calls sim_stop ().
7432
7433 Fri Apr 18 13:11:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
7434
7435 * run.c (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
7436 handler that calls sim_stop (). Simulators may still be
7437 establishing their own handler.
7438
7439 * sim-events.c (sim_events_poll): Rename from
7440 sim_events_at_large_int. Poll IO.
7441
7442 * sim-io.c (sim_io_poll_quit): New function - pass on a polling
7443 request.
7444
7445 * callback.c (os_poll_quit): New function poll for quit signal
7446 where needed.
7447 (default_callback): Include magic number.
7448
7449 Thu Apr 17 02:25:11 1997 Doug Evans <dje@canuck.cygnus.com>
7450
7451 * aclocal.m4: Check for headers time.h, sys/time.h, sys/resource.h.
7452 Check for functions getrusage, time.
7453 * sim-basics.h (SIM_ELAPSED_TIME): New typedef.
7454 (sim_elapsed_time_get, sim_elapsed_time_since): Add prototypes.
7455 * sim-utils.c: #include time.h, sys/time.h, sys/resource.h if able.
7456 (sim_elapsed_time_get, sim_elapsed_time_since): New functions.
7457
7458 * sim-utils.c (sim_copy_argv, sim_analyze_program): New functions.
7459
7460 * sim-options.c, sim-options.h: New files.
7461 * sim-config.h (WITH_DEBUG): Provide default value of zero.
7462 * Make-common.in (nrun.o): Add rules for.
7463 * nrun.c: New file.
7464
7465 * run.c (main): Check return value of sim_open.
7466
7467 * Make-common.in (sim-options.o, sim-load.o, sim-trace.o): Add rules.
7468 (sim_main_headers): Add sim-trace.h.
7469 * run.c (exec_bfd, target_byte_order): Delete.
7470 (main): Pass -E <endian> to sim_open. Delete code to load sections,
7471 call sim_load instead. Check return code of sim_create_inferior.
7472 * sim-base.h (CURRENT_STATE): Define.
7473 (sim_state_base): Make typedef. New members options, prog_argv,
7474 prog_bfd, text_{section,start,end}, start_addr, simcache_size,
7475 mem_size, memory [+ corresponding access macros].
7476 (sim_cpu_base): New typedef.
7477 * sim-trace.h: New file.
7478 * sim-trace.c: New file.
7479 * sim-basics.h: #include it.
7480 * sim-load.c: New file.
7481
7482 Tue Apr 15 15:10:13 1997 Ian Lance Taylor <ian@cygnus.com>
7483
7484 * Make-common.in (INSTALL): Set to @INSTALL@.
7485 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
7486 (install-common): Depend upon installdirs. Use
7487 $(program_transform_name) directly, rather than using
7488 $(INSTALL_XFORM).
7489 (installdirs): New target.
7490 * Makefile.in (INSTALL): Set to @INSTALL@.
7491 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
7492 (install-man): Depend upon installdirs. Use
7493 $(program_transform_name) directly, rather than using
7494 $(INSTALL_XFORM).
7495 (installdirs): New target.
7496
7497 Tue Apr 15 15:08:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
7498
7499 * sim-assert.h (SIM_ASSERT, ASSERT): Allow these macros to
7500 be overriden.
7501
7502 Wed Apr 9 16:06:44 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7503
7504 * sim-basics.h: Only bring in config.h and tconfig.h if
7505 HAVE_CONFIG_H.
7506
7507 Mon Apr 7 11:39:45 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7508
7509 * sim-config.h (WITH_TARGET_WORD_MSB): New Macro. Define the bit
7510 numbering convention of the target.
7511 * sim-config.c (print_sim_config): Print WITH_TARGET_WORD_BITSIZE
7512 and WITH_TARGET_WORD_MSB.
7513 (sim_config): When possible, check for consistency with bitsize
7514 and msb.
7515
7516 * sim-bits.h: Allow MSB to be other than zero.
7517 * sim-bits.c: Ditto.
7518 * sim-n-bits.h: Ditto.
7519
7520 * sim-bits.h (MSMASK*): New macros - converce to LSMASK*.
7521 * sim-n-bits.h (MSMASKEDn): Ditto.
7522
7523 Mon Apr 14 16:29:21 1997 Ian Lance Taylor <ian@cygnus.com>
7524
7525 * Makefile.in (INSTALL): Change install.sh to install-sh.
7526
7527 Mon Apr 7 10:46:38 1997 Doug Evans <dje@canuck.cygnus.com>
7528
7529 * sim-base.h (sim_state_base): Move `magic' to end of struct.
7530
7531 Mon Apr 7 15:53:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7532
7533 * run.c (main): Check that a program to run was specified.
7534
7535 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7536
7537 * aclocal.m4 (AC_TYPE_SIGNAL): Add check.
7538
7539 * configure: Regenerated to track ../common/aclocal.m4 changes.
7540 * config.in: Ditto.
7541
7542 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
7543
7544 * sim-endian.h: Move host {LITTLE,BIG}_ENDIAN support from here,
7545 * sim-config.h: To here.
7546
7547 * Make-common.in (SIM_EXTRA_DEPS): New config var.
7548 (sim_main_headers): Define.
7549 (sim-*.o): Depend on $(SIM_EXTRA_DEPS).
7550 (BUILT_SRC_FROM_COMMON): Move here from ../d30v/Makefile.in.
7551 (clean): Use it.
7552 (sim-utils.o): Add rule for.
7553 * sim-utils.o: New file.
7554 * sim-basics.h: #include sim-base.h.
7555 (zalloc): Make argument unsigned long.
7556 * sim-base.h: New file.
7557 * sim-inline.h (SIM_IO support): Delete.
7558 * sim-io.h: Delete inline support.
7559 * sim-io.c: Likewise. sim-state.h renamed to sim-main.h.
7560 * sim-config.c: sim-state.h renamed to sim-main.h.
7561 * sim-core.c: Likewise.
7562 * sim-events.c: Likewise.
7563
7564 * run.c (main): Pass SIM_OPEN_STANDALONE to sim_open.
7565
7566 * aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h.
7567 (sim-debug): Allow arguments. Define WITH_DEBUG in addition to
7568 -DDEBUG.
7569 * configure: Regenerated to track ../common/aclocal.m4 changes.
7570
7571 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7572
7573 * configure: Regenerated to track ../common/aclocal.m4 changes.
7574
7575 Wed Apr 2 11:08:11 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7576
7577 * sim-config.h (WITH_ALIGNMENT, WITH_FLOATING_POINT,
7578 WITH_XOR_ENDIAN, WITH_SMP, WITH_RESERVED_BITS): Assume that these
7579 are defined by the configure.
7580
7581 * aclocal.m4 (sim-stdio): Add option stdio from ../ppc configure.
7582
7583 * aclocal.m4 (floating-point, xor-endian, alignment, smp,
7584 reserved-bits): Always define.
7585
7586 * sim-config.h, sim-config.c (sim_config): New function - and new
7587 file - co-ordinate the setting/checking of the common simulator
7588 configuration options.
7589
7590 * Make-common.in (sim-config.o): Add rule.
7591
7592 Fri Mar 28 15:32:00 1997 Mike Meissner <meissner@cygnus.com>
7593
7594 * callback.c (os_{,e}vprintf_filtered): Change stdarg type to
7595 va_list from void *, since va_list might not be a pointer type.
7596
7597 Mon Mar 24 15:27:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7598
7599 * sim-n-endian.h (offset_N): Correct assertion - word and sub word
7600 in wrong order.
7601 (offset_N): Correct computation of LE offset.
7602
7603 * sim-io.c (sim_io_error): Include a new line when reporting
7604 errors.
7605
7606 * sim-assert.h (SIM_FILTER_PATH): Out by one when locating last
7607 `/'.
7608
7609 Thu Mar 20 22:31:06 1997 Jeffrey A Law (law@cygnus.com)
7610
7611 * run.c: Include alloca-conf.h.
7612
7613 * callback.c (os_evprintf_filtered): Fix typo.
7614
7615 Fri Mar 21 13:36:20 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7616
7617 * run.c (string.h, strings.h, stdlib.h): Include.
7618
7619 * sim-events.c (sim_events_tick): Recent cleanup failed to return
7620 0 when nothing pending.
7621
7622 * run.c (sim_size, sim_trace): Plicate GCC - these two functions
7623 will soon be going away.
7624 (getopt): Plicate GCC.
7625
7626 * sim-endian.c (sim-io.h): Plicate GCC.
7627 * sim-bits.c (sim-io.h): Ditto.
7628 * sim-n-bits.h (ROTn): Ditto.
7629
7630 * sim-io.c (sim_io_error): Correct check for NULL.
7631
7632 * sim-assert.h (SIM_FILTER_PATH): Separate out the code filtering
7633 the __FILE__.
7634 * sim-events.c: Use SIM_FILTER_PATH to filter out the filename
7635 path.
7636
7637 Wed Mar 19 01:12:06 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7638
7639 * aclocal.m4 (SIM_AC_OPTION_*: Move so that they are outside of
7640 SIM_AC_COMMON - SIM_AC_COMMON was gobling arguments.
7641
7642 Tue Mar 18 20:48:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7643
7644 * sim-alu.h: Include sim-xcat.h.
7645
7646 Tue Mar 18 13:58:18 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7647
7648 * Make-common.in (sim-bits.c, sim-core.c, sim-endian.c,
7649 sim-events.c, sim-inline.c, sim-io.c): Define rules for building
7650 these.
7651
7652 * sim-events.c (sim_events_at_large_int): New function. Just
7653 schedules an event every large-int ticks.
7654 (sim_events_init): Call.
7655 (sim_events_tick, sim_events_process): Move async handing to
7656 sim_events_process. Move timer decrement so that it occures after
7657 events have been processed.
7658
7659 * sim-basics.h (struct _engine): Remove declaration.
7660
7661 * sim-events.h, sim-events.c: Rename type to sim_events. Prefix
7662 everything with same. Rename global struct to SIM_DESC.
7663 * sim-core.h, sim-core.c, sim-n-core.c: Ditto for sim_core.
7664 * sim-io.h, sim-io.c: Ditto.
7665
7666 * sim-assert.h: New file. Optional assertion checking macros.
7667 * sim-io.c (sim_io_error): Make just this function tolerant to
7668 null pointers.
7669
7670 * sim-xcat.h: New file. Define concatenate macros.
7671 * sim-basics.h (XCONCAT*): Move to sim-xcat.h.
7672 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Explicitly include
7673 concat macros.
7674
7675
7676 Tue Mar 18 12:44:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7677
7678 * sim-bits.h (LSMASK): New macro. Create mask of LS bits.
7679
7680 Mon Mar 17 18:10:05 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7681
7682 * sim-inline.h: Add definitions for sim-types.
7683 (ALL_BY_MODULE): New macro, encapsulate full inlining by the
7684 module.
7685
7686 Mon Mar 17 15:38:27 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7687
7688 * sim-events.h: Remove defunct reference to callback struct.
7689
7690 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7691
7692 * configure: Re-generate.
7693
7694 Mon Mar 17 15:04:47 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7695
7696 * Make-common.in (CSEARCH): Do not include the gdb directory in
7697 the search path.
7698
7699 Mon Mar 17 13:16:26 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7700
7701 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
7702 SIM_WARNING): Drop, requiring the simulator specific Makefile.in
7703 to explicitly incorporate these.
7704
7705 * aclocal.m4 (--enable-sim-alignment); New option. Strongly
7706 specify the alignment restrictions of the target architecture -
7707 without this option all alignment restrictions are accomodated.
7708 (--enable-sim-assert): New option. Conditionally compile in
7709 assertion statements.
7710 (--enable-sim-float): New option. Strongly specify the target's
7711 floating point support.
7712 (--enable-sim-hardware): New option. Specify the hardware devices
7713 included in the simulation.
7714 (--enable-sim-packages): New option. Specify the hardware
7715 packages included in the simulation.
7716 (--enable-sim-regparm): New option. Specify that parameters be
7717 passed in registers instead of on the stack.
7718 (--enable-sim-reserved-bits): New option. Specify that reserved
7719 bits within an instruction are are correctly set.
7720 (--enable-sim-smp): New option. Specify the level of SMP support
7721 to be included in the simulator.
7722 (--enable-sim-stdcall): New option. Specify an alternative
7723 function call convention.
7724 (--enable-sim-xor-endian): New option. Configure xor-endian
7725 support used by some targets to implement bi-endian support.
7726
7727 Fri Mar 14 19:51:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7728
7729 * aclocal.m4 (--enable-sim-hostendian): New option. Allow the
7730 host endianness to be overridden.
7731 (--enable-sim-endian): Allow the target platform's byte order
7732 to be overridden.
7733 (--enable-sim-inline): Control the inlining of common components.
7734 (--enable-sim-bswap): For compatibility, also define WITH_BSWAP.
7735 (--enable-sim-warnings): Enable additional GCC compiler checks.
7736 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
7737 SIM_WARNINGS): Add.
7738
7739 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Rename from
7740 sim-*-n.h so that the names are uniq on dos machines
7741 * sim-core.c, sim-bits.c, sim-endian.c: Update.
7742
7743 Thu Mar 13 12:32:42 1997 Doug Evans <dje@canuck.cygnus.com>
7744
7745 * run.c: #include "libiberty.h".
7746 (main): New locals sd,no_args,sim_argv.
7747 Run buildargv on -a option. Pass argv to sim_open, argv[0]
7748 is program name. Update call to sim_set_callbacks.
7749 Record result of sim_open, pass to other sim_foo routines.
7750
7751 Thu Mar 13 10:24:05 1997 Michael Meissner <meissner@cygnus.com>
7752
7753 * callback.c (os_printf_filtered): Do not call exit(1) or print a
7754 final newline.
7755
7756 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7757
7758 * callback.c: Add os_flush_stdout and vprintf_filtered callbacks.
7759 Route stdout through buffered IO.
7760
7761 * callback.c: Add os_flush_stderr, os_write_stderr,
7762 os_evprintf_filtered functions to route error output through
7763 stderr.
7764
7765 * sim-io.h, sim-io.c (sim_io_flush_stderr, sim_io_flush_stdout):
7766 Correct return type - should be void.
7767
7768 Fri Mar 7 20:14:37 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7769
7770 * sim-basics.h: Clean up. Many macro's moved to sim-inline.h.
7771
7772 * sim-config.h: Ditto. For some options - eg WITH_DEVICES - do
7773 not provide a default value as undefined indicates disable code.
7774
7775 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7776
7777 * sim-core.h, sim-core-n.h, sim-core.c: Borrow code from ppc
7778 directory.
7779 * sim-events.h, sim-events.c: Ditto.
7780 * sim-io.h, sim-io.c: Ditto.
7781
7782 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7783
7784 * sim-alu.h (ALU_SUB_CA, ALU*_SUB_CA): New alu operation.
7785
7786 * sim-bits.h, sim-bits-n.h, sim-bits.c (LSMASKED*): New macro's
7787 extract the tail or least signifiant bits from an integer of the
7788 specified size.
7789
7790 * sim-bits.h, sim-bits.c: Clean up conditionally compiled #if
7791 WITH_TARGET_BITSIZE so that the compilation will fail when an
7792 unsupported bitsize value is defined.
7793
7794 (INSERTED*): Convert to functions.
7795 (EXTRACTED*): Ditto.
7796
7797 (SIGN_EXTEND, SEXT): Change to more terse name.
7798
7799 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7800
7801 * sim-inline.h: Allow explicit control over which .c files will be
7802 included by their header.
7803
7804 * sim-inline.h: Allow explicit control over which .c files use the
7805 alternative - REGPARM - parameter passing mechanism.
7806
7807 * sim-inline.h, sim-inline.c: Don't attempt to include any of
7808 icache.c, idecode.c, semantics.c or support.c. Those names are
7809 not generally applicable.
7810
7811 Thu Feb 27 10:17:23 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7812
7813 * sim-bits.c, sim-bits-n.h (new): Split sim-bits.c into two parts
7814 in a fashion similar to sim-endian-n.
7815
7816 * sim-endian.h: (H_word, L_word, AL_*, VL_*): Extend to include
7817 both value and address macro's.
7818
7819 Tue Feb 25 18:51:57 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7820
7821 * sim-alu.h (ALU16_BEGIN, ALU16_SET, ...): Fill in.
7822
7823 * sim-endian.h (L_word, H_word): Replace MS2W_4, LS2W_4 with more
7824 generic L_word, H_word macro's.
7825
7826 Thu Feb 20 18:36:55 1997 Andrew Cagney <cagney@critters.cygnus.com>
7827
7828 * sim-basics.h: Borrow code from ppc directory.
7829 * sim-bits.c: Ditto.
7830 * sim-bits.h: Ditto.
7831 * sim-config.h: Ditto.
7832 * sim-endian-n.h: Ditto.
7833 * sim-endian.c: Ditto.
7834 * sim-endian.h: Ditto.
7835 * sim-inline.c: Ditto.
7836 * sim-inline.h: Ditto.
7837 * sim-types.h: Ditto.
7838
7839 Wed Feb 19 12:40:50 1997 Andrew Cagney <cagney@critters.cygnus.com>
7840
7841 * sim-alu.h (ALU_SET16, ALU_SET32, ALU_SET64, etc): Make available
7842 all the ALU size alternatives and then auto-configure a default.
7843
7844 * sim-alu.h: Copy ppc/idecode_expression.h.
7845
7846 Mon Feb 17 10:44:18 1997 Andrew Cagney <cagney@critters.cygnus.com>
7847
7848 * bits.h, bits.c (SIGN_EXTEND32, SIGN_EXTEND64): New functions,
7849 sign extend a bit within a value.
7850
7851 * sim-endian.h, sim-endian-n.h (offset_N): New functions - return
7852 a pointer into the middle of a host word.
7853 * sim-endian.h (MS2W_4, LS2W_4): Use this function.
7854
7855 Tue Feb 11 13:46:49 1997 Michael Meissner <meissner@tiktok.cygnus.com>
7856
7857 * callback.c: If HAVE_CONFIG_H is defined, include config.h from
7858 autoconf. If HAVE_UNISTD_H is defined, include unistd.h to get
7859 appropriate definitions of read, write, etc. Add prototype for
7860 system.
7861
7862 Tue Feb 4 13:24:44 1997 Doug Evans <dje@canuck.cygnus.com>
7863
7864 * Makefile.in (libcommon.a): Delete.
7865 (callback.o,targ-map.o): Delete, moved to Make-common.in.
7866 (gentmap,targ-vals.h,targ-map.c): Likewise.
7867 (run-autoconf): Delete.
7868 * aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile.
7869 (common makefile fragment): Moved back into ...
7870 * Make-common.in: Resurrect.
7871 * configure.in (AC_LINK_FILES): Delete, unnecessary now.
7872 * configure: Regenerated.
7873
7874 Fri Jan 31 07:16:49 1997 Doug Evans <dje@canuck.cygnus.com>
7875
7876 * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
7877 (SIM_AC_OUTPUT): To here.
7878
7879 Fri Jan 24 10:37:17 1997 Stu Grossman (grossman@critters.cygnus.com)
7880
7881 * aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s in
7882 comments and single quotes. Fixes a problem found on hpux.
7883
7884 Thu Jan 23 13:35:03 1997 Stu Grossman (grossman@critters.cygnus.com)
7885
7886 * aclocal.m4: Remove Make-common.in from dependencies.
7887 * (distclean): Remove targ-vals.def.
7888
7889 * aclocal.m4 (SIM_AC_COMMON): Move contents of Make-common.in
7890 into here. Makes insertion into makefiles easier. Also, change
7891 the way that callback.o, gentmap, targ-vals.h, targ-map.c,
7892 targ-map.o, and run are built. They are now built in the
7893 individual simulator directories, taking sources from ../common as
7894 necessary. This replaces the merging of libcommon.a into
7895 linsim.a, which was problematic for the WinGDB build process.
7896 * run.c: Include config.h from . instead of ../common.
7897 * Make-common.in: Remove. It's no longer necessary.
7898
7899 Mon Dec 16 15:02:33 1996 Ian Lance Taylor <ian@cygnus.com>
7900
7901 * Make-common.in (ALL_CLAGS): Put CFLAGS at the end.
7902 (.c.o): Put $(ALL_CFLAGS) before the file being compiled.
7903
7904 Wed Dec 11 11:30:58 1996 Jim Wilson <wilson@cygnus.com>
7905
7906 * run.c (main): Set target_byte_order before call to sim_open.
7907
7908 Sun Dec 8 18:22:06 1996 Doug Evans <dje@canuck.cygnus.com>
7909
7910 * callback.c: #include <stdlib.h>
7911 (os_error): New function.
7912 (default_callback): Add os_error.
7913
7914 Mon Nov 25 19:44:35 1996 Doug Evans <dje@canuck.cygnus.com>
7915
7916 * Make-common.in (Makefile): Set CONFIG_HEADERS="".
7917 * aclocal.m4: Mark the fact that --enable-sim-bswap isn't host
7918 specific.
7919 (SIM_AC_OUTPUT): Don't build Makefile if CONFIG_FILES="".
7920
7921 Wed Nov 20 01:11:04 1996 Doug Evans <dje@canuck.cygnus.com>
7922
7923 * run.c: #include ../common/config.h, tconfig.h.
7924 (myname): New static global.
7925 (main): Recognize new options -a, -c. Also recognize -h if h8/300.
7926 Only process -c ifdef SIM_HAVE_SIMCACHE.
7927 Only process -p/-s ifdef SIM_HAVE_PROFILE.
7928 Parse program name from argv[0] and use in error messages.
7929 Pass sim_args to sim_open. Pass prog_args to sim_create_inferior.
7930 Add support for incomplete h8/300 termination indicators.
7931 (usage): Make more verbose.
7932 * aclocal.m4,config.in,tconfig.in,configure.in,configure: New files.
7933 * Makefile.in,Make-common.in,callback.c: New files.
7934 * nltvals.def,gentmap.c,gentvals.sh: New files.
7935
7936 Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
7937
7938 * run.c: Include stdarg.h if __STDC__.
7939
7940 Tue Oct 15 11:16:31 1996 Jeffrey A Law (law@cygnus.com)
7941
7942 * run.c (main): Don't print out anything if the signal
7943 number is zero (ie no signal).
7944
7945 Tue Oct 15 11:20:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7946
7947 * run.c (main): Print out if the program raised a signal.
7948
7949 Wed Sep 18 09:52:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7950
7951 * run.c (exec_bfd): Rename from sim_bfd, to use the gdb name.
7952 (main): Ditto.
7953
7954 Tue Sep 17 11:04:50 1996 James G. Smith <jsmith@cygnus.co.uk>
7955
7956 * run.c (main): Explicitly cast malloc() parameter.
7957
7958 Thu Sep 12 11:27:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7959
7960 * run.c (sim_bfd): New global to hold the bfd pointer for the
7961 executable.
7962 (main): Initialize sim_bfd.
7963
7964 Fri Dec 15 16:27:49 1995 Ian Lance Taylor <ian@cygnus.com>
7965
7966 * run.c (main): Use new bfd_big_endian macro.
7967
7968 Wed Nov 8 15:49:49 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
7969
7970 * run.c (main): Removed SH specific comments, so source is
7971 generic. Also updated to only load relevant sections. Moved
7972 sim_open() to after callback attach (to match GDB).
7973
7974 * run.1: Removed SH specific comments.
7975
7976 Sat Oct 21 12:31:01 1995 Jim Wilson <wilson@chestnut.cygnus.com>
7977
7978 * run.c (main): Always return sigrc at end.
7979
7980 Tue Oct 10 12:03:13 1995 J.T. Conklin <jtc@rtl.cygnus.com>
7981
7982 * run.c (main): Print error diagnostic and exit if bfd_openr() or
7983 bfd_check_format() fails.
7984
7985 Thu Sep 28 15:40:36 1995 steve chamberlain <sac@slash.cygnus.com>
7986
7987 * run.c, run.1: From sh directory.