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