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