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