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