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