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