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