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