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