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