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