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