]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/common/ChangeLog
daily update
[thirdparty/binutils-gdb.git] / sim / common / ChangeLog
CommitLineData
f06dccb0
MF
12013-09-03 Mike Stump <mikestump@comcast.net>
2
3 * sim-options.c (complete_option_list): Mark text and word const.
4
d6c2da54
TT
52013-06-28 Tom Tromey <tromey@redhat.com>
6
7 * Make-common.in (version.c): Use version.in, not
8 common/version.in.
9 * create-version.sh: Likewise.
10
b652c496
JB
112013-06-24 Joel Brobecker <brobecker@adacore.com>
12
13 * create-version.sh: New script. Adapted from
14 gdb/commong/create-version.sh.
15 * Make-common.in (version.c): Update rule dependencies,
16 and re-implement using create-version.sh.
17
3346cfda
NC
182013-06-21 Nick Clifton <nickc@redhat.com>
19
20 * gennltvals.sh: Add msp430 support.
21 * nltvals.def: Regenerate.
22
31e6ad7d
MF
232013-06-03 Mike Frysinger <vapier@gentoo.org>
24
25 * acinclude.m4: Replace maintainer-mode code with AM_MAINTAINER_MODE.
26 * aclocal.m4, configure: Regenerate.
27
d3685d60
TT
282013-05-10 Freddie Chopin <freddie_chopin@op.pl>
29
30 PR build/15414:
31 * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Do not use
32 -Wformat-nonliteral with -Wno-format.
33
1517bd27
MF
342013-03-26 Mike Frysinger <vapier@gentoo.org>
35
36 * acinclude.m4: Regenerate.
37
3fd38161
JS
382013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
39
40 * acinclude.m4: Add SIM_DV_SOCKSER_O which is empty on hosts
41 which do not support dv-sockser.o. Add always as option to
42 first argument to SIM_AC_OPTION_HARDWARE. Fail if hardware
43 is always required to be enabled by simulator.
44
3f170f37
MF
452012-08-28 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
46
47 * gennltvals.sh: Use libgloss/syscall.h for cr16.
48 * nltvals.def: Regenerate.
49
5f3ef9d0
JB
502012-06-16 Joel Brobecker <brobecker@adacore.com>
51
52 * acinclude.m4 (SIM_AC_COMMON): Define PACKAGE.
53 * config.in, configure: Regenerate.
54
2c1fa544
PA
552012-05-24 Pedro Alves <palves@redhat.com>
56
57 * sim-signal.h (sim_signal_to_target): Rename to ...
58 (sim_signal_to_gdb_signal): ... this.
59 * sim-signal.c (sim_signal_to_target): Rename to ...
60 (sim_signal_to_gdb_signal): ... this.
61 * sim-reason.c (sim_stop_reason): Adjust to rename.
62
a493e3e2
PA
632012-05-24 Pedro Alves <palves@redhat.com>
64
65 PR gdb/7205
66
67 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
68
2ea28649
PA
692012-05-24 Pedro Alves <palves@redhat.com>
70
71 PR gdb/7205
72
73 Replace target_signal with gdb_signal throughout.
74
a6ff997c
NC
752012-05-18 Nick Clifton <nickc@redhat.com>
76
77 PR 14072
78 * callback.c: Include config.h before system header files.
79 * cgen-trace.c: Likewise.
80 * cgen-utils.c: Likewise.
81 * gentmap.c: Likewise.
82
ffbc20d9
MF
832012-04-02 Mike Frysinger <vapier@gentoo.org>
84
85 * hw-ports.c (hw_port_decode): Change "Unreconized" to "Unrecognized".
86
2aaed979
KB
872012-03-28 Rathish C <rathish.c@kpitcummins.com>
88
89 * sim-trace.c: Update the function prototype of save_data_size.
90 Move the enum data_fmt from here...
91 * sim-trace.h: ...to here.
92 Add function prototype of save_data.
93
a35a3322
MF
942012-03-25 Mike Frysinger <vapier@gentoo.org>
95
96 * sim-core.h (sim_core_trans_addr): Add prototype.
97
f914e384
HPN
982012-03-24 Hans-Peter Nilsson <hp@axis.com>
99
100 * nrun.c: Add #ifdef HAVE_CONFIG_H and associated includes stanza
101 missing in last change.
102
2232061b
MF
1032012-03-24 Mike Frysinger <vapier@gentoo.org>
104
105 * acinclude.m4 (SIM_AC_COMMON): Call AC_USE_SYSTEM_EXTENSIONS.
106 * nrun.c: Include string.h/strings.h.
107 * aclocal.m4, config.in, configure: Regenerate.
108
ac0aacdf
MF
1092012-03-22 Mike Frysinger <vapier@gentoo.org>
110
111 * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Copy AC_ARG_ENABLE(werror),
112 WERROR_CFLAGS, and build_warnings from gdb/configure.ac. Comment
113 out -Werror initialization.
114
509deab2
MF
1152012-03-19 Mike Frysinger <vapier@gentoo.org>
116
117 * Make-common.in (TAGS): Change a-z to [:lower:].
118 * acinclude.m4 (sim-trace): Likewise.
119 * gennltvals.sh: Change A-Z0-9 to [:upper:][:digit:].
120 Change A-Za-z0-9 to [:alnum:].
121
9a5e0c49
MF
1222012-03-18 Mike Frysinger <vapier@gentoo.org>
123
124 * nrun.c (main): Display strsignal of sigrc.
125
96cdfef0
MF
1262012-01-06 Mike Frysinger <vapier@gentoo.org>
127
128 * Makefile.in (abs_srcdir): Declare.
129 (srcroot): Define in terms of abs_srcdir.
130 (headers): Change srcdir to abs_srcdir.
131
12c3e59c
JB
1322012-01-02 Joel Brobecker <brobecker@adacore.com>
133
134 * dv-sockser.h, sim-assert.h, sim-fpu.c: Reformat the copyright
135 header.
136
96987c2b
JB
1372011-12-19 Joel Brobecker <brobecker@adacore.com>
138
139 * Make-common.in (hw-config.h): Work around bug in Solaris 2.8
140 system bourne shell.
141
71712327
MF
1422011-12-03 Mike Frysinger <vapier@gentoo.org>
143
144 * syscall.c (cb_get_string): Rename from "get_string".
145 (get_path): Rename get_string call to cb_get_string.
146
db2e4d67
MF
1472011-12-03 Mike Frysinger <vapier@gentoo.org>
148
149 * Make-common.in (VPATH): Add $(srccom).
150 (DEP): Delete.
151 (DEPMODE, DEPDIR, depcomp, COMPILE.pre, COMPILE.post, COMPILE,
152 POSTCOMPILE): New variables.
153 (.c.o): Replace recipe with call to $(COMPILE) and $(POSTCOMPILE).
154 Include dependency files, when using GNU Make. Delete all
155 dependency-only rules.
156 * aclocal.m4: Include ../../config/depstand.m4. Call
157 ZW_CREATE_DEPDIR and ZW_PROG_COMPILER_DEPENDENCIES.
158 (MAKE, GMAKE): New substs.
159
a13852d9
MF
1602011-11-07 Mike Frysinger <vapier@gentoo.org>
161
162 PR sim/13161
163 * configure.ac (AC_CHECK_FUNCS): Add posix_fallocate.
164 * configure, config.in: Regenerate.
165 * dv-cfi.c (attach_cfi_regs): Check for HAVE_POSIX_FALLOCATE.
166
4399a56b
MF
1672011-10-19 Mike Frysinger <vapier@gentoo.org>
168
169 * acinclude.m4: Call AC_CHECK_LIB when $hardware contains cfi.
170
f1a81b37
JB
1712011-10-18 John Wehle <john@feith.com> (tiny patch)
172
173 * sim-profile.c (profile_info): Only print the title once.
174
9c082ca8
MF
1752011-10-17 Mike Frysinger <vapier@gentoo.org>
176
177 * acinclude.m4: Rename from aclocal.m4.
178 * aclocal.m4: Regenerate.
179
6ffe910a
MF
1802011-10-17 Mike Frysinger <vapier@gentoo.org>
181
182 * aclocal.m4: Change AC_PREREQ comment to 2.64.
183 * common.m4: Delete.
184 * configure.ac: Change AC_PREREQ to 2.64. Replace AC_CONFIG_HEADER
185 call and common.m4 include with SIM_AC_COMMON(cconfig.h).
186 * configure: Regenerate.
187
59c0b43d
TT
1882011-10-14 Alexey Makhalov <makhaloff@gmail.com>
189
190 * sim-alu.h (ALU32_AND): Clear carry flag.
191 (ALU32_AND): Clear carry flag.
192
66f8d993
MF
1932011-10-09 Mike Frysinger <vapier@gentoo.org>
194
195 * dv-cfi.c: Include stdbool.h.
196
d56a2aae
MF
1972011-10-09 Mike Frysinger <vapier@gentoo.org>
198
199 * dv-cfi.c: Replace devices.h include with hw-base.h and hw-main.h.
200
4a99173d
MF
2012011-10-04 Mike Frysinger <vapier@gentoo.org>
202
203 * aclocal.m4 (SIM_AC_COMMON): Call AM_ZLIB, ACX_PKGVERSION, and
204 ACX_BUGURL. Define PKGVERSION and REPORT_BUGS_TO.
205
10915d9a
MF
2062011-07-12 Mike Frysinger <vapier@gentoo.org>
207
208 * sim-command.c: Include sim-options.h.
209
63042524
MF
2102011-07-12 Mike Frysinger <vapier@gentoo.org>
211
212 * aclocal.m4: Move sinclude comment after AC_INIT comment.
213
24a6c33d
MF
2142011-07-12 Mike Frysinger <vapier@gentoo.org>
215
216 * aclocal.m4 (SIM_AC_COMMON): Call AC_REQUIRE on AC_PROG_CC.
217 Delete direct call to AC_PROG_CC.
218
2419798b
MF
2192011-07-05 Mike Frysinger <vapier@gentoo.org>
220
221 * sim-command.c: New file.
222 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-command.o.
223 (sim-command.o): New rule.
224
440db575
MF
2252011-05-27 Mike Frysinger <vapier@gentoo.org>
226
227 * sim-options.c (standard_option_handler): Remove arg[0] check
228 when freeing simulator_sysroot. Only strdup arg when arg[0] is
229 not an empty string, otherwise assign "" back to it.
230
3ddcae71
MF
2312011-05-26 Mike Frysinger <vapier@gentoo.org>
232
233 * nltvals.def: Regenerate to include Blackfin syscalls again.
234
3a49ea9f
MF
2352011-05-25 Mike Frysinger <vapier@gentoo.org>
236
237 * sim-trace.c (OPTION_TRACE_SYSCALL): New enum.
238 (trace_options): Handle "trace-syscall" with OPTION_TRACE_SYSCALL.
239 (trace_option_handler): Handle OPTION_TRACE_SYSCALL.
240 (trace_idx_to_str): Likewise.
241 * sim-trace.h (TRACE_SYSCALL_IDX): New enum.
242 (TRACE_syscall): Define.
243 (WITH_TRACE_SYSCALL_P): Likewise.
244 (TRACE_SYSCALL_P): Likewise.
245
dd931b2f
MF
2462011-05-23 Mike Frysinger <vapier@gentoo.org>
247
248 * dv-glue.c (hw_glue_finish): Move "name" to function scope and
249 remove now-unnecessary sub-scope for glue->type setting.
250 Check to see if the "reg" property exists before we use it, and
251 if it doesn't exist, error out for "glue" devices.
252
0e31da21
MF
2532011-05-23 Mike Frysinger <vapier@gentoo.org>
254
255 * dv-glue.c (hw_glue_finish): Set type to glue_or when name is
256 glue-or, and set type to glue_xor when name is glue-xor.
257 (hw_glue_port_event): Return immediately when type is glue_io
258 or unmatched. Handle glue_or and glue_xor types. Move HW_TRACE
259 and hw_port_event calls from glue_and to end of function.
260
34b47c38
MF
2612011-05-11 Mike Frysinger <vapier@gentoo.org>
262
263 * callback.c, dv-pal.c, dv-sockser.c, hw-base.c, hw-device.c,
264 hw-instances.c, hw-ports.c, hw-properties.c, hw-tree.c, sim-abort.c,
265 sim-arange.c, sim-config.c, sim-core.c, sim-engine.c, sim-events.c,
266 sim-hw.c, sim-io.c, sim-memopt.c, sim-options.c, sim-profile.c,
267 sim-resume.c, sim-stop.c, syscall.c: Add space before parenthesis
268 around function arguments.
269
56a9aa1d
MF
2702011-04-14 Mike Frysinger <vapier@gentoo.org>
271
272 * sim-options.c (complete_option_list, sim_complete_command):
273 New functions.
274
d45bea91
MF
2752011-04-02 Mike Frysinger <vapier@gentoo.org>
276
277 * dv-glue.c: Fix up style.
278
12c4cbd5
MF
2792011-04-02 Mike Frysinger <vapier@gentoo.org>
280
281 * hw-alloc.c (hw_alloc_data): Adjust brace.
282 * hw-base.c (hw_base_data): Likewise.
283 (generic_hw_unit_decode): Fix indentation.
284 * hw-device.h (_hw_unit, enum, hw): Adjust braces.
285 * hw-events.c (hw_event, hw_event_data): Likewise.
286 * hw-handles.c (hw_handle_mapping, hw_handle_data): Likewise.
287 * hw-instances.c (hw_instance_data): Likewise.
288 * hw-instances.h (hw_instance): Likewise.
289 * hw-main.h (hw_descriptor, enum): Likewise.
290 * hw-ports.c (hw_port_edge, hw_port_data, empty_hw_ports): Likewise.
291 * hw-ports.h (hw_port_descriptor): Likewise.
292 * hw-properties.c (hw_property_data): Likewise.
293 * hw-properties.h (enum, hw_property, _ihandle_runtime_property_spec,
294 _range_property_spec, _reg_property_spec): Likewise.
295 * hw-tree.c (_name_specifier, printer): Likewise.
296 (split_device_specifier, parse_string_property, hw_tree_traverse,
297 print_size, print_reg_property, print_string, print_properties):
298 Fix indentation.
299
66ee2731
MF
3002011-03-29 Mike Frysinger <vapier@gentoo.org>
301
302 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Add cfi to default list.
303 * Make-common.in (dv-cfi.o): New rule.
304 * dv-cfi.c, dv-cfi.h: New files.
305
165b70ea
KB
3062011-03-21 Kevin Buettner <kevinb@redhat.com>
307
308 * gennltvals.sh: Search sys/_default_fcntl.h, in addition to
309 fcntl.h and sys/fcntl.h, for constants.
310 * nltvals.def: Regenerate.
311 * sim-io.c (sim_io_stat, sim_io_fstat): New functions.
312 * sim-io.h (sys/types.h, sys/stat.h): Include.
313 (sim_io_stat, sim_io_fstat): Declare.
314
028f6515
MF
3152011-03-14 Mike Frysinger <vapier@gentoo.org>
316
317 * callback.c, cgen-engine.h, dv-core.c, dv-glue.c, dv-pal.c,
318 hw-base.c, hw-device.c, hw-device.h, hw-handles.c, hw-instances.c,
319 hw-ports.c, hw-ports.h, hw-properties.c, hw-tree.c, nrun.c,
320 run-sim.h, run.c, sim-alu.h, sim-assert.h, sim-base.h, sim-basics.h,
321 sim-config.c, sim-core.c, sim-core.h, sim-engine.h, sim-events.c,
322 sim-events.h, sim-fpu.c, sim-hw.c, sim-inline.h, sim-load.c,
323 sim-memopt.c, sim-n-core.h, sim-options.c, sim-profile.c,
324 sim-signal.c, sim-trace.c, sim-trace.h, sim-utils.c, sim-watch.c,
325 syscall.c: Trim trailing whitespace.
326
ef016f83
MF
3272011-03-05 Mike Frysinger <vapier@gentoo.org>
328
329 * gennltvals.sh: Handle bfin targets.
330 * nltvals.def: Regenerate.
331
fee17b35
KB
3322011-02-25 Kevin Buettner <kevinb@redhat.com>
333
334 * callback.c (fdbad): Return EBADF rather than EINVAL for bad
335 file descriptors.
336
d79fe0d6
MF
3372011-02-14 Mike Frysinger <vapier@gentoo.org>
338
339 * hw-alloc.c (hw_alloc_data): Delete zalloc_p.
340 (hw_zalloc, hw_malloc): Delete zalloc_p reference.
341 (hw_free): Drop zfree logic and always call free.
342 * hw-base.c (hw_delete): Change zfree to free.
343 * hw-handles.c (hw_handle_remove_ihandle): Likewise.
344 (hw_handle_remove_phandle): Likewise.
345 * hw-instances.c (hw_instance_delete): Likewise.
346 * hw-tree.c (parse_reg_property): Likewise.
347 (parse_ranges_property): Likewise.
348 (parse_string_property): Likewise.
349 * sim-core.c (sim_core_uninstall): Likewise.
350 * sim-cpu.c (sim_cpu_free_all): Likewise.
351 * sim-hw.c (sim_hw_uninstall): Likewise.
352 * sim-memopt.c (do_memopt_delete): Likewise.
353 (sim_memory_uninstall): Likewise.
354 * sim-module.c (sim_module_uninstall): Likewise.
355 * sim-options.c (sim_parse_args): Likewise.
356 * sim-profile.c (profile_pc_cleanup): Likewise.
357 (profile_uninstall): Likewise.
358 * sim-watch.c (do_watchpoint_delete): Likewise.
359 * sim-utils.c (zfree): Delete.
360 (sim_state_free): Change zfree to free.
361 * sim-utils.h (zfree): Delete.
362
891e7fb1
MF
3632011-02-13 Mike Frysinger <vapier@gentoo.org>
364
365 * sim-events.h (_sim_events.time_from_event): Change type to signed64.
366
9bd90cce
MF
3672011-01-12 Mike Frysinger <vapier@gentoo.org>
368
369 * sim-hw.c (sim_hw_uninstall): Uncomment hw_tree_delete.
370
39a3ae0a
MF
3712011-01-12 Mike Frysinger <vapier@gentoo.org>
372
373 * sim-module.c (sim_pre_argv_init): Return SIM_RC_FAIL when asprintf
374 fails.
375 * sim-options.c (sim_parse_args): Issue an error and return SIM_RC_FAIL
376 when asprintf fails.
377 * sim-utils.c (sim_do_commandf): Issue an error and return when
378 asprintf fails.
379 * sim-watch.c (sim_watchpoint_install): Return SIM_RC_FAIL when
380 asprintf fails.
381
3143e5a9
MF
3822011-01-11 Mike Frysinger <vapier@gentoo.org>
383
384 * sim-memopt.c (do_memopt_add): Set nr_bytes to s.st_size before
385 bytes has been calculated and when mmap_next_fd is valid and
386 nr_bytes is 0.
387 (memory_option_handler): Allow missing size when mmap_next_fd is
388 valid.
389
cb11d1f4
MF
3902011-01-10 Mike Frysinger <vapier@gentoo.org>
391
392 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Set $hardware to $2 when $2 is
393 not empty, and always append $3 to $hardware.
394
3952011-01-10 Mike Frysinger <vapier@gentoo.org>
5f78776a
MF
396
397 * hw-device.h (hw_abort, hw_vabort, hw_halt): Add noreturn attribute.
398 * sim-hw.h (sim_hw_abort): Likewise.
399
cc25892b
MF
4002011-01-05 Mike Frysinger <vapier@gentoo.org>
401
402 * sim-load.c (sim_load_file): Change buffer type to unsigned char *.
403
44944448
JB
4042011-01-05 Joel Brobecker <brobecker@adacore.com>
405
406 * run.1: Copyright year update.
407
e61ddca7
MF
4082010-12-28 Mike Frysinger <vapier@gentoo.org>
409
e71b81d8
MF
410 * hw-alloc.h (HW_NALLOC): Define.
411
412010-12-28 Mike Frysinger <vapier@gentoo.org>
413
e61ddca7
MF
414 * hw-alloc.h (HW_NZALLOC): Change ME,TYPE,N to me,type,n.
415
bef6be3d
MF
4162010-12-15 Mike Frysinger <vapier@gentoo.org>
417
418 * sim-memopt.c (OPTION_MAP_INFO): Define.
419 (memory_options): Handle --map-info.
420 (memory_option_handler): Handle OPTION_MAP_INFO.
421
5be229c0
MF
4222010-11-22 Mike Frysinger <vapier@gentoo.org>
423
424 * sim-profile.c (PROFILE_PC_FREQ, PROFILE_PC_NR_BUCKETS,
425 PROFILE_PC_SHIFT, PROFILE_PC_START, PROFILE_PC_END,
426 PROFILE_INSN_COUNT): Add stubs when profile is disabled.
427
81c641e7
MF
4282010-11-22 Mike Frysinger <vapier@gentoo.org>
429
430 * sim-core.c (WITH_HW): Add device casts to device_error,
431 device_io_read_buffer, and device_io_write_buffer.
432
6ab5626b
MF
4332010-11-16 Mike Frysinger <vapier@gentoo.org>
434
435 * dv-sockser.c (dv_sockser_write_buffer): New function.
436 (dv_sockser_write): Rewrite to use dv_sockser_write_buffer.
437 * dv-sockser.h (dv_sockser_write_buffer): New prototype.
438
0bd15c7f
HPN
4392010-10-07 Hans-Peter Nilsson <hp@axis.com>
440
441 * callback.c (os_lseek): Call wrap on lseek result.
442
363a6e9f
OS
4432010-05-26 Ozkan Sezer <sezeroz@gmail.com>
444
445 * dv-sockser.c (dv_sockser_init): Check error return from socket()
446 call by its equality to -1 not by it being negative.
447 (connected_p): Likewise for accept() call.
448
c8551de3
MF
4492010-04-23 Mike Frysinger <vapier@gentoo.org>
450
451 * sim-fpu.c (sim_fpu_zero, sim_fpu_qnan): Add 0 initializers.
452
ef93a840
MF
4532010-04-21 Mike Frysinger <vapier@gentoo.org>
454
455 * profile.c (sim_profile_print_bar): Add cpu argument.
456
f093db8c
MF
4572010-04-21 Mike Frysinger <vapier@gentoo.org>
458
459 * sim-profile.h (sim_profile_print_bar): Use sim_cpu, not SIM_CPU.
460
0d3d2c71
MF
4612010-04-21 Mike Frysinger <vapier@gentoo.org>
462
463 * sim-profile.c (profile_vprintf, profile_printf): New functions.
464 (profile_print_pc): Convert sim_io_printf to profile_printf.
465 (profile_print_insn): Likewise.
466 (profile_print_memory): Likewise.
467 (profile_print_core): Likewise.
468 (profile_print_model): Likewise.
469 (sim_profile_print_bar): Likewise.
470 (profile_print_speed): Likewise.
471 (profile_print_addr_ranges): Likewise.
472 (profile_info): Likewise.
473 * sim-profile.h (sim_profile_print_bar): Add cpu argument.
474
bd0bd508
MF
4752010-04-19 Mike Frysinger <vapier@gentoo.org>
476
477 * sim-model.c (OPTION_MODEL): Convert to enum.
478 (OPTION_MODEL_INFO): New enum.
479 (model_options): Add model-info/info-model entries.
480 (model_option_handler): Handle OPTION_MODEL_INFO.
481
e8a76151
MF
4822010-04-13 Mike Frysinger <vapier@gentoo.org>
483
484 * dv-sockser.h (DV_SOCKSER_DISCONNECTED): Define.
485 * dv-sockser.c (dv_sockser_status): Set DV_SOCKSER_DISCONNECTED
486 initially.
487
cb1cc9c6
MF
4882010-04-13 Mike Frysinger <vapier@gentoo.org>
489
490 * sim-hrw.c (sim_write): Add const to buf arg.
491 * sim-utils.h (sim_write_fn): Likewise.
492
58f03a40
MF
4932010-04-12 Mike Frysinger <vapier@gentoo.org>
494
495 * sim-profile.h (PROFILE_BRANCH_TAKEN, PROFILE_BRANCH_UNTAKEN): New
496 defines.
497
21cf617c
MF
4982010-04-12 Mike Frysinger <vapier@gentoo.org>
499
500 * dv-core.c (dv_core_descriptor): Add NULL initializer.
501 * dv-glue.c (hw_glue_ports, dv_glue_descriptor): Likewise.
502 * dv-pal.c (hw_pal_ports, dv_pal_descriptor): Likewise.
503 * dv-sockser.c (sockser_options): Likewise.
504 * hw-ports.c (empty_hw_ports): Likewise.
505 * sim-hw.c (hw_options): Likewise.
506 * sim-model.c (model_options): Likewise.
507 * sim-options.c (standard_options): Likewise.
508 * sim-profile.c (profile_options): Likewise.
509 * sim-trace.c (trace_options): Likewise.
510 * sim-watch.c (watchpoint_options): Likewise.
511
e377ca52
MF
5122010-04-12 Mike Frysinger <vapier@gentoo.org>
513
514 * sim-options.c (dup_arg_p): Add "const" to the "arg" argument,
515 the local "arg_table" variable, and the xmalloc cast.
516
adaaf009
MF
5172010-04-10 Mike Frysinger <vapier@gentoo.org>
518
519 * sim-fpu.c (sim_fpu_print_status): Add const markings to local
520 "prefix" var.
092d8476 521 (sim_fpu_print_func): Add const markings to format buffer.
adaaf009 522
9ec7269f
MF
5232010-04-10 Mike Frysinger <vapier@gentoo.org>
524
525 * sim-fpu.c (sim_fpu_print_status): Remove duplicate break statements.
526
709b3bb3
MF
5272010-04-10 Mike Frysinger <vapier@gentoo.org>
528
529 * sim-trace.c (save_data): Add const markings to "buf" argument.
530
3dd68605
MF
5312010-04-10 Mike Frysinger <vapier@gentoo.org>
532
533 * sim-options.c (standard_option_handler): Add const markings to
534 local "type" var.
535
0ad22a74
MF
5362010-04-02 Mike Frysinger <vapier@gentoo.org>
537
538 * hw-ports.h: Fix spelling typos.
539
75005b3a
MF
5402010-03-30 Mike Frysinger <vapier@gentoo.org>
541
542 * configure.ac: Check for socklen_t.
543 * configure, config.in: Regenerated.
544 * dv-sockser.c (connected_p): Change addrlen type to socklen_t.
545
d946c288
MF
5462010-03-30 Mike Frysinger <vapier@gentoo.org>
547
548 * sim-utils.c (sim_io_eprintf_cpu): Use %s with printf string.
549 * sim-hw.c (hw_option_handler): Likewise.
550
ff398ee4
MF
5512010-03-30 Mike Frysinger <vapier@gentoo.org>
552
553 * sim-watch.c (watchpoint_type_to_str): Add const to return.
554 (interrupt_nr_to_str): Likewise.
555 (default_interrupt_names): Add const to pointer type.
556 (sim_watchpoint_install): Add const to prefix.
557 * sim-watch.h (struct _sim_watchpoints): Add const to interrupt_names.
558
6bf91687
MF
5592010-03-30 Mike Frysinger <vapier@gentoo.org>
560
561 * sim-core.c (sim_core_read_buffer): Change raddr to address_word.
562 (sim_core_write_buffer): Likewise.
563
15f3c2de
MF
5642010-03-30 Mike Frysinger <vapier@gentoo.org>
565
566 * sim-trace.c (trace_option_handler): Move cpu_nr decl behind
567 the SIM_HAVE_ADDR_RANGE define.
568
fb0cc53e
MF
5692010-03-30 Mike Frysinger <vapier@gentoo.org>
570
571 * sim-core.h (device_error): Add const to message, and add printf
572 format attribute.
573
739dfd28
MF
5742010-03-30 Mike Frysinger <vapier@gentoo.org>
575
576 * sim-profile.c (profile_print_addr_ranges): Wrap with the
577 SIM_HAVE_ADDR_RANGE define.
578
59db87ad
MF
5792010-03-30 Mike Frysinger <vapier@gentoo.org>
580
581 * dv-glue.c (hw_glue_ports): Swap static and const.
582
dc416615
MF
5832010-03-30 Mike Frysinger <vapier@gentoo.org>
584
585 * nrun.c (usage): Use void in definition.
586 * sim-options.c (dup_arg_p): Convert old-style function definition.
587 (sim_parse_args): Likewise.
588 (sim_print_help): Likewise.
589 * sim-trace.c (set_trace_option_mask): Likewise.
590 (set_trace_option): Likewise.
591 * sim-utils.c (sim_analyze_program): Likewise.
592 (sim_elapsed_time_get): Likewise.
593 (sim_elapsed_time_since): Likewise.
594
11409fac
MF
5952010-03-22 Mike Frysinger <vapier@gentoo.org>
596
597 * sim/common/sim-options.c (enum): Remove SIM_HAVE_BIENDIAN ifdef.
598 (standard_options): Likewise.
599 (standard_option_handler): Likewise.
600
6d519a46
MF
6012010-03-16 Mike Frysinger <vapier@gentoo.org>
602
603 * hw-ports.c (TRACE): Delete.
604 * hw-properties.c (TRACE): Delete.
605 (hw_find_ihandle_runtime_property): Change TRACE to HW_TRACE.
606 (hw_find_integer_property): Likewise.
607 (hw_find_integer_array_property): Likewise.
608 (hw_add_duplicate_property): Likewise.
609
799026a7
MF
6102010-03-15 Mike Frysinger <vapier@gentoo.org>
611
612 * hw-properties.h (hw_add_boolean_property): Rename "bool" to
613 "boolean".
614
fd87baa9
MF
6152010-02-04 Mike Frysinger <vapier@gentoo.org>
616
617 * sim-model.c: Include sim-model.h
618
294bcb78
MF
6192010-02-04 Mike Frysinger <vapier@gentoo.org>
620
621 * sim-base.h: Declare sim_state.cpu as a pointer in the comment. Drop
622 & from the STATE_CPU() examples.
623
80532737
DE
6242010-01-24 Doug Evans <dje@sebabeach.org>
625
d2c7a1a6
DE
626 * cgen-accfp.c (fextsfdf): New arg how. All callers updated.
627 (ftruncdfsf, floatsisf, flostsidf, ufloatsisf, fixsfsi, fixdfsi,
628 ufixsfsi): Ditto.
629 * cgen-fpu.h (CGEN_FPCONV_KIND): New enum.
630 (struct cgen_fp_ops): Update signatures of floating point conversion
631 operations.
632
80532737
DE
633 * Make-common.in (CGEN_SIM_DEPS): Define.
634 (CGEN_INCLUDE_DEPS): Use it.
635 (CGEN_MAIN_CPU_DEPS): Simplify.
636
1377e154
DE
6372010-01-22 Doug Evans <dje@sebabeach.org>
638
639 * cgen-ops.h (SUBWORDXFSI): Fix word ordering.
640 (SUBWORDTFSI, JOINSIDI): Ditto.
641
ec11f055
DE
6422010-01-05 Doug Evans <dje@sebabeach.org>
643
644 * cgen-types.h (SETDI): Delete, unused.
645
a09a0bfd
DE
6462009-12-02 Doug Evans <dje@sebabeach.org>
647
648 * cgen-engine.h: Remove duplicated comment.
649
62836bf4
DE
6502009-11-23 Doug Evans <dje@sebabeach.org>
651
652 * cgen-engine.h (EXTRACT_MSB0_SINT): Renamed from EXTRACT_MSB0_INT.
653 (EXTRACT_LSB0_SINT): Renamed from EXTRACT_LSB0_INT.
654
e94d449d
DE
6552009-11-22 Doug Evans <dje@sebabeach.org>
656
197fa1aa
DE
657 * cgen-engine.h (EXTRACT_MSB0_LGSINT, EXTRACT_MSB0_LGUINT): Define.
658 (EXTRACT_LSB0_LGSINT, EXTRACT_LSB0_LGUINT): Define.
659 (EXTRACT_FN, SEMANTIC_FN): Use CGEN_INSN_WORD in prototype
660 instead of CGEN_INSN_INT.
661
e94d449d
DE
662 * cgen-trace.h (trace_extract): Add cast to fix warning.
663
ca25db52
DE
6642009-11-05 Doug Evans <dje@sebabeach.org>
665
666 * cgen-mem.h (DECLARE_GETT): Don't inline.
667 (DECLARE_SETT): Ditto.
668
c272cb46
JS
6692009-10-15 Joel Sherrill <joel.sherrill@oarcorp.com>
670
671 * sim-inline.h: Fix spelling error.
672
1428dced
TT
6732009-10-02 Ralf Corsepius <ralf.corsepius@rtems.org>
674
675 * Make-common.in: Add datarootdir.
676
44330079
RW
6772009-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
678
0aec8eb1
RW
679 * aclocal.m4 (SIM_CHECK_MEMBER, SIM_CHECK_MEMBERS)
680 (SIM_CHECK_MEMBERS_1): Remove.
681 * configure.ac: Replace SIM_CHECK_MEMBERS call with equivalent
682 AC_CHECK_MEMBERS one.
683 * configure: Regenerate.
684
44330079
RW
685 * aclocal.m4 (SIM_CHECK_MEMBER): Use AU_ALIAS to define, not defn.
686 * configure: Regenerate.
687
d6416cdc
RW
6882009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
689
81ecdfbb
RW
690 * config.in: Regenerate.
691 * configure: Likewise.
692
c462b41b
RW
693 * aclocal.m4 (SIM_CHECK_MEMBER): Replace definition with
694 definition of AC_CHECK_MEMBER.
695
d6416cdc
RW
696 * aclocal.m4: m4_include toplevel config/override.m4.
697 * configure: Regenerate.
698
96e946ca
RW
6992009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
700
701 * Makefile.in (datarootdir): New variable.
702
6a8b8615
DE
7032009-07-07 Doug Evans <dje@sebabeach.org>
704
705 * Make-common.in (CPU_DIR): Define.
706
2c2a86d7
DE
7072009-07-06 Doug Evans <dje@sebabeach.org>
708
709 * Make-common.in (CGEN_CPU_EXTR,CGEN_CPU_READ): Pass canonical
710 identifiers for file types rather than encoding internal
711 implementation details of cgen.sh.
712 (CGEN_CPU_WRITE,CGEN_CPU_SEM,CGEN_CPU_SEMSW): Ditto.
713 * cgen.sh: Add support for parallel makes.
714 Rewrite cpu/decode handling to avoid generating "extrafiles" twice.
715
c28c63d8
JB
7162009-05-18 Jon Beniston <jon@beniston.com>
717
718 * gennltvals.sh: Add lm32 target.
719 * nltvals.def: Add lm32 syscall definitions.
720
982807ce
JB
7212009-03-19 J"orn Rennecke <joern.rennecke@arc.com> (tiny change)
722
723 Speed up simulator startup:
724 * sim-utils.c (zalloc): Use xcalloc.
725
2a8922a9
HPN
7262009-01-07 Hans-Peter Nilsson <hp@axis.com>
727
2225d5bd
HPN
728 * cgen-ops.h (ADDQI, SUBQI, MULQI, NEGQI, ABSQI, ADDHI, SUBHI)
729 (MULHI, NEGHI, ABSHI, ADDSI, SUBSI, MULSI, NEGSI, ABSSI, ADDDI)
730 (SUBDI, MULDI, NEGDI, ABSDI): Cast arguments to the unsigned type
731 variant; UQI, UHI, USI, UDI, and cast the result to the signed
732 type, QI, HI, SI, DI.
733
2a8922a9
HPN
734 * callback.c (os_error): Mark as being a noreturn function.
735 * sim-io.h (sim_io_error): Similar for sim_io_error.
736
6878aceb
JS
7372008-11-12 Joel Sherrill <joel.sherrill@oarcorp.com>
738
739 * aclocal.m4: Fix underquoting of function names.
740
be091327
DJ
7412008-10-21 Julian Brown <julian@codesourcery.com>
742
743 * Make-common.in (run$(EXEEXT)): Add LDFLAGS.
744
79e1e459
HPN
7452008-07-11 Hans-Peter Nilsson <hp@axis.com>
746
747 * common.m4: Add test for libz and zlib.h.
748 * configure: Regenerate to track ../common/common.m4 changes.
749 * config.in: Ditto.
750
6efef468
JM
7512008-06-06 Vladimir Prus <vladimir@codesourcery.com>
752 Daniel Jacobowitz <dan@codesourcery.com>
753 Joseph Myers <joseph@codesourcery.com>
754
755 * aclocal.m4: Include ../../config/acx.m4.
756 * common.m4: Use ACX_PKGVERSION and ACX_BUGURL.
757 * configure, config.in: Regenerate.
758 * Make-common.in (LIB_OBJS): Add version.o.
759 (version.c, version.o): New rules.
760 * run.c: Include version.h.
761 (usage): Add help parameter. Print output either to stdout or
762 stderr depending on that parameter.
763 (print_version): New.
764 (main): Check for --help and --version.
765 * run-sim.h (sim_target_display_usage): Add help parameter.
766 * version.h: New.
767
a4e64307
DJ
7682008-04-14 Hans Kester <kester.hans@gmail.com>
769
770 * sim-signal.c: Define missing signals for _WIN32.
771
2a3591b0
SR
7722008-02-12 M Ranga Swami Reddy <MR.Swami.Reddy@nsc.com>
773
774 * gennltvals.sh: Add cr16.
775 * nltvals.def: Rebuild.
776
b981d709
DJ
7772007-10-11 Jesper Nilsson <jesper.nilsson@axis.com>
778
eb639c50
DJ
779 * callback.c (cb_is_stdin, cb_is_stdout, cb_is_stderr): Add functions.
780 * syscall.c (cb_syscall): Test for stdin/out/err, not just fd 0/1/2.
b981d709 781
f40f1a01
NC
7822007-08-10 Nick Clifton <nickc@redhat.com>
783
784 * sim-memopt.c (memory_options): Mention that the
785 --memory-size switch accepts suffixes.
786 (parse_size): Handle a suffix on the size value.
787 * sim-options.c (standard_options): Mention that the mem-size
788 switch accepts suffixes.
789 (standard_option_handler): Handle a suffix on the size value.
790
edc5d9ec
HPN
7912006-12-21 Hans-Peter Nilsson <hp@axis.com>
792
793 * acconfig.h: Remove.
794 * config.in: Regenerate.
795
09d96939
TS
7962006-11-07 Thiemo Seufer <ths@mips.com>
797
798 * gentmap.c: Fix compile time warning.
799
7e129781
TS
8002006-11-07 Thiemo Seufer <ths@mips.com>
801
802 * sim-base.h (text_start, text_end, start_addr): Use bfd_vma type
803 for bfd text addresses.
804
3ae2e9a3
TS
8052006-08-29 Thiemo Seufer <ths@mips.com>
806 Nigel Stephens <nigel@mips.com>
807
808 * sim-fpu.c (pack_fpu): Handle QUIET_NAN correctly for
809 SIM_QUIET_NAN_NEGATED.
810
41ec9f20
TS
8112006-08-29 Nigel Stephens <nigel@mips.com>
812
813 * sim-profile.c (profile_pc_init): Initialise default profiling
814 frequency to a prime number.
815 (profile_print_pc): Convert gmon.out sample data into target
816 byte order.
817
e85e3205
RE
8182006-06-13 Richard Earnshaw <rearnsha@arm.com>
819
820 * aclocal.m4: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR.
821 * common.m4: Likewise.
822 * configure: Regenerated.
823
2f0122dc
DJ
8242006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
825
826 * aclocal.m4: Use ZW_GNU_GETTEXT_SISTER_DIR.
827 * configure: Regenerated.
828
20e95c23
DJ
8292006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
830
831 * Make-common.in: Replace INTLLIBS and INTLDEPS with LIBINTL
832 and LIBINTL_DEP everywhere.
833 (CSEARCH): Use INCINTL.
834 * aclocal.m4: Use ZW_GNU_GETTEXT_SISTER_DIR. Include new
835 gettext macros.
836 * configure: Regenerated.
837
ea696909
HPN
8382006-03-29 Hans-Peter Nilsson <hp@axis.com>
839
840 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Correct duplicate-
841 option-contents test.
842
aba6488e
MM
8432005-11-28 Mark Mitchell <mark@codesourcery.com>
844
25520859
MM
845 * sim-signal.c (sim_signal_to_target): Fix typos.
846
aba6488e
MM
847 * sim-reason.c (sim_stop_reason): Use
848 sim_signal_to_target, not sim_signal_to_host.
849 * sim-signal.c (sim_signal_to_host): Fix typo.
850 (sim_signal_to_target): New function.
851
f010abaa
HPN
8522005-07-10 Hans-Peter Nilsson <hp@bitrange.com>
853
854 * sim-load.c (xprintf, eprintf): Remove fallout from ANSI_PROTOTYPES
855 change.
856
09b96ea0
ILT
8572005-07-08 Ian Lance Taylor <ian@airs.com>
858
efd36314
ILT
859 * sim-fpu.c (sim_fpu_abs): Always clear the sign bit.
860
09b96ea0
ILT
861 * sim-fpu.c (pack_fpu): If SIM_QUIET_NAN_NEGATED is defined, use a
862 different fraction for a quiet NaN.
863 (unpack_fpu): Likewise.
864
3b02a06b
BE
8652005-07-08 Ben Elliston <bje@au.ibm.com>
866
867 * callback.c: Remove ANSI_PROTOTYPES conditional code.
868 * sim-load.c: Likewise.
869 * syscall.c: Likewise.
870
18d59ab9
CV
8712005-05-24 Corinna Vinschen <vinschen@redhat.com>
872
873 * Make-common.in (LIBDEPS): Correctly use INTLDEPS for dependency
874 check.
875
149cfe5b
DJ
8762005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
877
878 * Make-common.in (install-common, installdirs): Honor $DESTDIR.
879
3f6da722 8802005-04-20 Manoj Iyer <manjo@austin.ibm.com>
15254e9d 881
3f6da722
MI
882 * sim-types.h: Changed unsigned32 and unsigned64 to signed32
883 and signed64 for __ALPHA__.
884
2b193c4a
MK
8852005-03-23 Mark Kettenis <kettenis@gnu.org>
886
887 * aclocal.m4 Include ../../gettext.m4.
888 (CY_WITH_NLS, CY_GNU_GETTEXT, AM_PATH_PROG_WITH_TEST)
889 (AM_LC_MESSAGES): Remove.
890 * configure: Regenerate.
891
51216631
JB
8922005-02-28 Jim Blandy <jimb@redhat.com>
893
894 * aclocal.m4 (SIM_AC_OPTION_WARNINGS): Don't include
895 -Wuninitialized in the default list of build warnings if CFLAGS is
896 set, and doesn't include -O. (Using -Wuninitialized without
897 optimization produces a warning, which interferes with compilation
898 with -Werror.)
899
0c4507fd
JB
9002005-02-21 Jim Blandy <jimb@redhat.com>
901
902 * callback.c (os_fstat): Don't declare 't' unless it's used.
903
9ab46d53
JB
9042005-02-09 Jim Blandy <jimb@redhat.com>
905
906 * Make-common.in (CGEN): Load guile.scm, and include a trailing
907 '-s' argument.
908 (CGEN_FLAGS_TO_PASS): Include single quotes around the reference
909 to $(CGEN), to ensure that the command substitution happens where
910 the variable is referenced in the submake, not when the submake's
911 arguments are expanded.
912 (cgen.sh): Be prepared for the 'cgen' argument to contain spaces.
913 (arch, cpu, decode, cpu-decode, defs, desc): Place the name of the
914 application Scheme script directly after ${cgen}; don't precede it
915 with a -s.
916
f4f8cce4
HPN
9172005-01-28 Hans-Peter Nilsson <hp@axis.com>
918
97f669ed
HPN
919 * syscall.c (cb_syscall) <case CB_SYS_pipe>: New case.
920 * callback.c [HAVE_LIMITS_H]: Include limits.h.
921 Include libiberty.h.
922 (os_close, os_read, os_write, os_fstat, os_ftruncate): Support fd
923 being either end of a pipe.
924 (os_pipe, os_pipe_empty, os_pipe_nonempty): New functions.
925 (os_shutdown): Clear pipe state.
926 (default_callback): Initialize new members.
927
f4f8cce4
HPN
928 * callback.c (default_callback): Initialize target_endian.
929 (cb_store_target_endian): Renamed from store, new first parameter
930 host_callback *cb, drop last parameter big_p. Take endianness
931 from cb.
932 (cb_host_to_target_stat): Change to use cb_store_target_endian.
933 Remove variable big_p.
934 * nrun.c (main): Initialize default_callback.target_endian.
935
35695fd6
AC
9362005-01-14 Andrew Cagney <cagney@gnu.org>
937
938 * configure.ac: Replace SIM_AC_COMMON with sinclude of common.m4.
939 Add explicit call to AC_CONFIG_HEADER.
940 * common.m4: Delete call to AC_CONFIG_HEADER, update usage.
941 * configure: Re-generate.
942
f0569246
AC
9432005-01-12 Andrew Cagney <cagney@gnu.org>
944
945 * common.m4: New file, based on of aclocal.m4.
946
38f48d72
AC
9472005-01-11 Andrew Cagney <cagney@localhost.localdomain>
948
949 * aclocal.m4 (SIM_AC_OUTPUT): Rewrite to use 2.59 macros.
950 * configure: Regenerated to track ../common/aclocal.m4 changes.
951
b7026657
AC
9522005-01-07 Andrew Cagney <cagney@gnu.org>
953
954 * configure.ac: Rename configure.in, require autoconf 2.59.
955 * aclocal.m4 (SIM_AC_COMMON): Delete call to AC_CONFIG_AUX_DIR.
956 * configure: Re-generate.
957
5d945fec
HPN
9582004-12-15 Hans-Peter Nilsson <hp@axis.com>
959
960 * syscall.c (cb_syscall) <case CB_SYS_truncate>
961 <case CB_SYS_ftruncate>: New cases.
962
0d3cd463
HPN
9632004-12-13 Hans-Peter Nilsson <hp@axis.com>
964
965 * syscall.c (cb_syscall) <case CB_SYS_lstat>: New case.
82571856 966 (cb_syscall) <case CB_SYS_rename>: New case.
af596d08 967 * callback.c (os_lstat): New function.
0d3cd463 968
119860e5
HPN
9692004-12-08 Hans-Peter Nilsson <hp@axis.com>
970
027e2a04
HPN
971 * run.1: Document --sysroot=filepath.
972 * sim-options.c (STANDARD_OPTIONS): New member OPTION_SYSROOT.
973 (standard_options): Support --sysroot=<path>.
974 (standard_option_handler): Handle OPTION_SYSROOT.
975 * syscall.c (simulator_sysroot): Define, initialized empty.
976 (get_path): Prepend simulator_sysroot to absolute file path.
977 [HAVE_STRING_H]: Include string.h.
978 [!HAVE_STRING_H && HAVE_STRINGS_H]: Include strings.h.
979 * nrun.c [HAVE_UNISTD_H]: Include unistd.h.
980 (main): If simulator_sysroot is not empty, chdir there.
981 * sim-config.h (simulator_sysroot): Declare.
982
119860e5
HPN
983 * aclocal.m4 (SIM_AC_OUTPUT): Substitute @cgen_breaks@ for "break
984 cgen_rtx_error" in a CGEN-generated simulator.
985 * gdbinit.in: Break on sim_core_signal too. Have autoconf
986 replacement for CGEN-related breakpoints.
987
70ae6611
HPN
9882004-12-07 Hans-Peter Nilsson <hp@axis.com>
989
990 * Make-common.in (sim-basics_h): Add $(callback_h).
991
697afb65
HPN
9922004-12-03 Hans-Peter Nilsson <hp@axis.com>
993
994 * configure.in (SIM_CHECK_MEMBERS): Call for struct stat members
995 st_dev, st_ino, st_mode, st_nlink, st_uid, st_gid, st_rdev,
996 st_size, st_blksize, st_blocks, st_atime, st_mtime and st_ctime.
997 * aclocal.m4 (SIM_CHECK_MEMBER, SIM_CHECK_MEMBERS_1)
998 (SIM_CHECK_MEMBERS): New macros.
999 * callback.c (cb_host_to_target_stat): Use temporary macro ST_x
1000 for struct stat member test and write. Add ST_x calls for each
1001 struct stat member tested in configure.in. Wrap each ST_x call in
1002 #ifdef of configure macro for that member.
1003 * configure, config.in: Regenerate.
1004
6e56eb07
HPN
10052004-12-01 Hans-Peter Nilsson <hp@axis.com>
1006
1007 * cgen.sh: New thirteenth parameter opcfile, defaulting to
1008 /dev/null.
1009 <case desc>: Pass -OPC opcfile.
1010 * Make-common.in (cgen-desc): Pass $(opcfile) as thirteenth
1011 parameter to cgen.sh.
1012
c87368ac
RE
10132004-11-30 Richard Earnshaw <rearnsha@arm.com>
1014
1015 * Make-common.in (sim-basics_h): Correct dependencies on
1016 cconfig.h and tconfig.h
1017 (sim-load.o): Correct typo in sim-basics_h dependency.
1018
08cd3760
RE
10192004-11-18 Richard Earnshaw <rearnsha@arm.com>
1020
15f5e61f
RE
1021 * Make-common.in (sim-*_h): Add macros for all sim headers listing
1022 sub-dependencies for other sim files that they include.
1023 (sim_main_headers): Use sim-*_h macros.
08cd3760
RE
1024 (sim-load.o): Depend on sim-basics_h, not sim_main_headers.
1025
1afbf186
HPN
10262004-11-16 Hans-Peter Nilsson <hp@axis.com>
1027
1d72487d
HPN
1028 * sim-config.c (sim_config): Recognize when a bfd has unspecified
1029 endian information.
1030
1afbf186
HPN
1031 * Make-common.in (sim-load.o): Depend on $(sim_main_headers) and
1032 $(remote_sim_h) too.
1033 (sim_main_headers): Add sim-utils.h.
1034
a3bb1089
FCE
10352004-10-07 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1036
1037 * cgen-defs.h (ENDSWITCH): Changed to compile with gcc-3.4.2.
1038
5a645dc5
AC
10392004-07-26 Andrew Cagney <cagney@gnu.org>
1040
1041 Problem from Olaf Hering <olh@suse.de>.
1042 * Makefile.in (install-man, installdirs): Add DESTDIR prefix.
1043
109d3db3
BE
10442004-07-10 Ben Elliston <bje@au.ibm.com>
1045
1046 * hw-tree.c (parse_integer_property): Typo fix in comments.
1047 * sim-options.c (sim_args_command): Likewise.
1048
0aaa4a81
AC
10492004-06-28 Andrew Cagney <cagney@gnu.org>
1050
1051 * run.c: Rename ui_loop_hook to deprecated_ui_loop_hook.
1052
0242f9ea
JR
10532004-06-27 J"orn Rennecke <joern.rennecke@superh.com>
1054
1055 * callback.c (os_shutdown): Fix bug in last change: actually
1056 mark file descriptors as available on startup.
1057
594ee3a7
JR
10582004-06-25 J"orn Rennecke <joern.rennecke@superh.com>
1059
1060 [ include/gdb: * callback.h (host_callback_struct): Replace
1061 members fdopen and alwaysopen with fd_buddy. ]
1062 * callback.c: Changed all users.
1063
5f510f9c
AM
10642004-06-15 Alan Modra <amodra@bigpond.net.au>
1065
1066 * sim-load.c (sim_load_file): Use bfd_get_section_size
1067 instead of bfd_get_section_size_before_reloc.
1068
7659f80a
DJ
10692004-05-18 Daniel Jacobowitz <dan@debian.org>
1070
1071 * dv-glue.c (hw_glue_finish): Cast result of sizeof to long before
1072 passing it to printf.
1073
41ee5402
DJ
10742004-05-10 Daniel Jacobowitz <dan@debian.org>
1075
1076 * callback.c: Update copyright dates.
1077 * run.c: Likewise.
1078 * sim-basics.h: Likewise.
1079 * sim-load.c: Likewise.
1080 * syscall.c: Likewise.
1081
10822004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1083
1084 * callback.c: Include cconfig.h instead of config.h.
1085 * run.c: Likewise.
1086 * sim-basics.h: Likewise.
1087 * sim-load.c: Likewise.
1088 * syscall.c: Likewise.
1089
6d0c993e
BE
10902004-01-16 Ben Elliston <bje@wasabisystems.com>
1091
1092 * Makefile.in (clean): Remove rm -f $(ALL), as $(ALL) is empty.
1093
6edf0760
NC
10942003-12-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1095
1096 * sim-core.c (sim_core_trans_addr): Added for m32r-linux-run.
1097
a69146da
KH
10982003-11-22 Kazu Hirata <kazu@cs.umass.edu>
1099
1100 * sim-options.c (standard_options): Fix the names of H8
1101 variants.
1102
fc0a2244
AC
11032003-10-30 Andrew Cagney <cagney@redhat.com>
1104
1105 * sim-trace.c, sim-base.h: Replace "struct symbol_cache_entry"
1106 with "struct bfd_symbol".
1107
ee3073b5
AC
11082003-10-21 Andrew Cagney <cagney@redhat.com>
1109
1110 * callback.c (os_truncate): Call "truncate", and not "stat".
1111
198beae2
AC
11122003-10-20 Andrew Cagney <cagney@redhat.com>
1113
1114 * sim-base.h: Replace "struct sec" with "struct bfd_section".
1115
8822d001
JR
11162003-10-15 J"orn Rennecke <joern.rennecke@superh.com>
1117
1118 * callback.c (os_ftruncate, os_truncate): New functions.
1119 (default_callback): Initialize ftruncate and truncate members.
1120
ea52ff81
DB
11212003-09-08 Dave Brolley <brolley@redhat.com>
1122
1123 On behalf of Doug Evans <dje@sebabeach.org>
1124 * cgen.sh: New arg archfile.
1125 * Make-common.in (cgen-arch,cgen-cpu,cgen-defs,cgen-decode,
1126 cgen-cpu-decode,cgen-desc): Update call to cgen.sh.
1127
e158f0a0
AC
11282003-08-28 Andrew Cagney <cagney@redhat.com>
1129
1130 * dv-glue.c (hw_glue_finish): Change %d to %ld to match sizeof.
1131 * sim-options.c (print_help): Cast the format with specifier to
1132 "int".
1133
33319edb
DB
11342003-08-20 Michael Snyder <msnyder@redhat.com>
1135 Dave Brolley <brolley@redhat.com>
1136
1137 * cgen-par.h (flags, word1): New target-specific
1138 fields of CGEN_WRITE_QUEUE_ELEMENT.
1139 (CGEN_WRITE_QUEUE_ELEMENT_FLAGS): New accessor macro.
1140 (CGEN_WRITE_QUEUE_ELEMENT_WORD1): New accessor macro.
1141 * gennltvals.sh: Add frv target.
1142 * nltvals.def: Add frv target.
1143
72f536bd
MS
11442003-06-23 Michael Snyder <msnyder@redhat.com>
1145
ac59bf8d 1146 * nrun.c (main): Delete h8/300 ifdef (sim now handles signals).
72f536bd
MS
1147 * sim-reg.c: Fix cut-and-paste bug in comment.
1148
1f1b2817
AC
11492003-06-22 Andrew Cagney <cagney@redhat.com>
1150
1151 From matthew green <mrg@redhat.com>:
1152 * sim-fpu.h: Update copyright.
1153 (sim_fpu_fraction, sim_fpu_guard): New prototypes.
1154 * sim-fpu.c: Update copyright.
1155 (sim_fpu_fraction, sim_fpu_guard): New inline functions.
1156
89c0d7dd 11572003-06-17 Frank Ch. Eigler <fche@redhat.com>
6ec8fa7a 1158
89c0d7dd 1159 From Doug Evans <dje@sebabeach.org>:
6ec8fa7a
FCE
1160 * cgen-trace.h (sim_disasm_read_memory): Update args to be compatible
1161 with disassemble_info:read_memory_func.
1162 * cgen-trace.c (sim_disasm_read_memory): Ditto.
1163
828c9ae6
MS
11642003-06-04 Michael Snyder <msnyder@redhat.com>
1165
1166 * common/run.c (main): Remove SIM_H8300 ifdef.
1167 (usage): Ditto.
1168 * common/sim-options.c (STANDARD_OPTIONS): Add SIM_H8300SX.
1169 (standard_options): Add '-x' for h8/300sx.
1170 (standard_option_handler): Add case for SIM_H8300SX.
1171
80d35d90
MS
11722003-04-13 Michael Snyder <msnyder@redhat.com>
1173
1174 * Make-common.in (sim-events.o, sim-config.o): Depend on sim-main.h.
1175
876fec02
AC
11762003-03-01 Andrew Cagney <cagney@redhat.com>
1177
1178 * sim-engine.c (sim_engine_halt): If jmpbuf is invalid, abort.
1179 (sim_engine_vabort): Ditto.
1180
6b4a8935
AC
11812003-02-27 Andrew Cagney <cagney@redhat.com>
1182
1183 * sim-utils.h (sim_analyze_program, sim_load_file): Rename _bfd to bfd.
1184 * sim-hload.c (sim_load), sim-base.h (sim_state_base): Ditto.
1185 * nrun.c (main): Ditto.
1186
dbd7cd63
AC
11872003-02-26 Andrew Cagney <cagney@redhat.com>
1188
1189 * sim-engine.h (sim_engine_abort): Add noreturn attribute.
1190 (sim_engine_vabort): Ditto.
1191 (sim_engine_halt, sim_engine_restart): Ditto.
1192
836cc9f4
AC
11932003-02-20 Andrew Cagney <ac131313@redhat.com>
1194
1195 * Make-common.in (SIM_NEW_COMMON_OBJS): Remove sim-break.o
1196 (sim-break_h): Delete macro.
1197 (sim-break.o): Delete rule.
1198 * sim-break.c: Delete file.
1199 * sim-break.h: Delete file.
1200 * sim-base.h [SIM_HAVE_BREAKPOINTS]: Don't include "sim-break.h".
1201 (STATE_BREAKPOINTS): Delete macro.
1202 (sim_state_base): Delete field breakpoints.
1203 * sim-module.c (modules) [SIM_HAVE_BREAKPOINTS]: Don't add
1204 sim_break_install to array.
1205
45a15d6f
KH
12062003-01-08 Kazu Hirata <kazu@cs.umass.edu>
1207
1208 * run.c (usage): Fix typos.
1209
127a77fe
CD
12102002-11-27 Richard Sandiford <rsandifo@redhat.com>
1211
1212 * sim-fpu.c (sim_fpu_inv): Use sim_fpu_div.
1213
b85e4829
AC
12142002-11-22 Andrew Cagney <ac131313@redhat.com>
1215
1216 * dv-core.c: Update copyright. sim/common contributed to the FSF.
1217 * dv-glue.c, dv-pal.c, hw-base.c, hw-base.h, hw-device.c: Ditto.
1218 * hw-device.h, hw-handles.c, hw-handles.h: Ditto.
1219 * hw-instances.c, hw-instances.h, hw-properties.c: Ditto.
1220 * hw-properties.h, hw-tree.c, hw-tree.h, sim-alu.h: Ditto.
1221 * sim-basics.h, sim-bits.c, sim-bits.h, sim-config.c: Ditto.
1222 * sim-config.h, sim-core.c, sim-core.h, sim-endian.c: Ditto.
1223 * sim-endian.h, sim-events.c, sim-events.h, sim-inline.c: Ditto.
1224 * sim-inline.h, sim-io.c, sim-io.h, sim-n-bits.h: Ditto.
1225 * sim-n-core.h, sim-n-endian.h, sim-types.h: Ditto.
1226
d25b1553
AC
12272002-11-13 Andrew Cagney <cagney@redhat.com>
1228
1229 * run.c (main): Remove SIM_HAVE_ENVIRONMENT from #endif.
1230
d690312f
CD
12312002-11-06 Richard Sandiford <rsandifo@redhat.com>
1232
1233 * Make-common.in (SIM_EXTRA_DISTCLEAN): New macro.
1234 (distclean): Depend on it.
1235
7c3e3b33
AM
12362002-10-14 Alan Modra <amodra@bigpond.net.au>
1237
1238 * cgen-trace.h: Test __BFD_H_SEEN__ rather than BFD_VERSION.
1239
7ede505a
DB
12402002-08-29 Dave Brolley <brolley@redhat.com>
1241
1242 * Make-common.in (CGEN_READ_SCM): Remove ../../cgen/stamp-cgen.
1243
75c4388a
AC
12442002-07-17 Andrew Cagney <cagney@redhat.com>
1245
1246 * run-sim.h: Add #ifdef RUN_SIM_H wrapper.
1247 (sim_set_callbacks, sim_size, sim_trace)
1248 (sim_set_trace, sim_set_profile_size, sim_kill): Declare. Moved
1249 to here from "gdb/remote-sim.h".
1250
7a3085c1 12512002-07-16 Andrew Cagney <ac131313@redhat.com>
39248af8
AC
1252
1253 * sim-resume.c (sim_resume): Add local variable sig_to_deliver to
1254 avoid possible longjmp problems with automatic variable siggnal.
1255
076043f2
AC
12562002-07-14 Andrew Cagney <ac131313@redhat.com>
1257
1258 From 2002-07-11 Momchil Velikov <velco@fadata.bg>:
1259 * Make-common.in (installdirs): Make $(libdir) too, needed when
1260 installing libsim.a.
1261
3fbeef0b
AC
12622002-07-13 Andrew Cagney <ac131313@redhat.com>
1263
1264 * gennltvals.sh (dir): Mark d30v as obsolete.
1265 * nltvals.def: Remove d30v.
1266
bf962092
AC
12672002-06-17 Andrew Cagney <cagney@redhat.com>
1268
27961795
AC
1269 * hw-events.c (hw_event_queue_schedule): Initialize `dummy'.
1270
bf962092
AC
1271 * sim-memopt.c: Include <unistd.h>.
1272 (do_memopt_add): Fix printf format.
1273 * sim-events.c (sim_events_schedule): Initialize ``dummy''.
1274
c8cca39f
AC
12752002-06-16 Andrew Cagney <ac131313@redhat.com>
1276
1277 * aclocal.m4 (SIM_AC_OPTION_WARNINGS): Update to match GDB's
1278 --enable-gdb-build-warnings.
1279 * configure: Regenerated to track ../common/aclocal.m4 changes.
1280
307041b7 12812002-06-09 Aldy Hernandez <aldyh@redhat.com>
7d7d930f
AH
1282
1283 * sim-fpu.c (unpack_fpu): Initialize exponent for
1284 sim_fpu_class_zero.
1285 (i2fpu): Same.
1286 (sim_fpu_sqrt): Same.
1287
3c25f8c7
AC
12882002-06-08 Andrew Cagney <cagney@redhat.com>
1289
1290 * gentmap.c (gen_targ_map_c): Generate "gdb/callback.h".
1291 * sim-basics.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
1292 * run.c: Ditto.
1293 * sim-load.c: Ditto.
1294 * callback.c: Ditto.
1295 * syscall.c: Ditto.
1296 * Make-common.in (callback_h): Define.
1297 (remote_sim_h): Define.
1298 (run.o): Update.
1299 (callback.o): Update.
1300 (syscall.o): Update.
1301 (sim-load.o):
1302 (nrun.o): Update.
1303 (sim-hload.o): Update.
1304 (sim-io.o): Update.
1305 (sim-reason.o): Update.
1306 (sim-reg.o): Update.
1307 (sim-resume.o): Update.
1308
dbec3bef
KH
13092002-05-30 Kazu Hirata <kazu@cs.umass.edu>
1310
1311 * run.c: Fix formatting.
1312
de4112fa
NC
13132002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
1314
1315 * run-sim.h: New header. Provide prototypes for functions used
1316 between run() and libsim.a which are not used by GDB.
1317 * run.c: Include run-sim.h.
1318 (main): If SIM_TARGET_SWITCHES is defined call
1319 sim_target_parse_command_line.
1320 (usage): If SIM_TARGET_SWITCHES is defined call
1321 sim_target_display_usage.
1322
a8cdafbd
AV
13232002-05-17 Andrey Volkov <avolkov@transas.com>
1324
1325 * run.c: Made h8300s as new target, not h8300h alias.
1326 Added new option -S (h8300s target)
1327 * sim-options.c: Ditto.
1328
5accf1ff
CD
13292002-05-01 Chris Demetriou <cgd@broadcom.com>
1330
1331 * callback.c: Use 'deprecated' rather than 'depreciated.'
1332
080fe24b
AC
13332002-02-24 Andrew Cagney <ac131313@redhat.com>
1334
1335 From wiz at danbala:
1336 * sim-fpu.h: Fix grammar and typos.
1337 Fix PR gdb/287.
1338
6439295f
CD
13392002-02-10 Chris Demetriou <cgd@broadcom.com>
1340
1341 * callback.c: Fix some spelling errors.
1342 * hw-device.h: Likewise.
1343 * hw-tree.c: Likewise.
1344 * sim-abort.c: Likewise.
1345 * sim-alu.h: Likewise.
1346 * sim-core.h: Likewise.
1347 * sim-events.c: Likewise.
1348 * sim-events.h: Likewise.
1349 * sim-fpu.h: Likewise.
1350 * sim-profile.h: Likewise.
1351 * sim-utils.c: Likewise.
1352
dea03d4e
HPN
13532002-01-31 Hans-Peter Nilsson <hp@axis.com>
1354
1355 * cgen-ops.h (ADDCQI, ADDCFQI, ADDOFQI, SUBCQI, SUBCFQI, SUBOFQI):
1356 New functions.
1357
1636f0bb
BE
13582002-01-20 Ben Elliston <bje@redhat.com>
1359
1360 * sim-fpu.h (SIM_FPU_IS_QNAN): Replace "Quite" with "Quiet" in
1361 the comment for this enumerator.
1362
b59d44de
BE
13632002-01-14 Ben Elliston <bje@redhat.com>
1364
1365 * sim-fpu.h: Fix comment about sim_fpu_* constants.
1366
280b26c0
KH
13672001-12-20 Kazu Hirata <kazu@hxi.com>
1368
1369 * run.c (usage): Fix a typo.
1370
e3e473da
BE
13712001-07-05 Ben Elliston <bje@redhat.com>
1372
1373 * Make-common.in (srccgen): Remove.
1374 (CGEN_CPU_DIR): Define.
1375 (CGEN_READ_SCM): Redefine without $(srccgen).
1376 (CGEN_ARCH_SCM): Ditto.
1377 (CGEN_CPU_SCM): Ditto.
1378 (CGEN_DECODE_SCM): Ditto.
1379 (CGEN_DESC_SCM): Ditto.
1380
2836ee25
FCE
13812001-04-25 Frank Ch. Eigler <fche@redhat.com>
1382
1383 * sim-load.c (sim_load_file): Put it back: external now.
1384 * sim-utils.c (sim_analyze_program): Ditto. Nyuk nyuk nyuk.
1385
5b778125
AC
13862001-04-21 Andrew Cagney <ac131313@redhat.com>
1387
1388 * sim-load.c (sim_load_file): Delete call bfd_cache_close. BFD
1389 internal interface.
1390 * sim-utils.c (sim_analyze_program): Ditto.
1391
6ec9f4a9
FCE
13922001-04-19 Frank Ch. Eigler <fche@redhat.com>
1393
1394 * sim-utils.c (sim_analyze_program): Call bfd_cache_close after
1395 we're finished with its immediate use.
1396 * sim-load.c (sim_load_file): Ditto.
1397
764f1408
FCE
13982001-03-16 Frank Ch. Eigler <fche@redhat.com>
1399
1400 Add support for mmap-based memory regions.
1401 * sim-memopt.c (mmap_next_fd): New global.
1402 (sim_memory_init): Reinitialize it.
1403 (OPTION_MEMORY_MAPFILE, memory_option_handler): Support new
1404 "--memory-mapfile FILE" option. Check for some errors.
1405 (do_memopt_add): Conditionally do mmap instead of malloc for
1406 backing store of simulated memory. Check for more errors.
1407 (do_simopt_delete, sim_memory_uninstall): Corresponding cleanup.
1408 * sim-memopt.h (munmap_length): New member of _sim_memopt.
1409 * configure.in: Look for mmap/fstat related functions and headers.
1410 * config.in, configure: Regenerated.
1411
35c20992
FCE
14122001-03-15 Frank Ch. Eigler <fche@redhat.com>
1413
1414 * sim-core.c (sim_core_map_attach): Correct overlap-related
1415 error messages.
1416
f6bb7a3b
MM
14172001-03-07 Michael Meissner <meissner@redhat.com>
1418
1419 * run.c (alloca-conf.h): Delete, no longer provided.
1420
01816cd8
BE
14212001-02-22 Ben Elliston <bje@redhat.com>
1422
1423 * sim-trace.h (TRACE_VPU_IDX): Add.
1424 (TRACE_vpu): Define.
1425 (WITH_TRACE_VPU_P): Likewise.
1426 (TRACE_VPU_P): Likewise.
1427 * sim-trace.c (OPTION_TRACE_VPU): Define.
1428 (trace_options): Add --trace-vpu.
1429 (trace_option_handler): Handle OPTION_TRACE_VPU.
1430 (trace_option_handler): Include VPU tracing in --trace-semantics.
1431 (trace_idx_to_str): Handle TRACE_VPU_IDX.
1432
44a9331c
BE
14332001-02-21 Ben Elliston <bje@redhat.com>
1434
1435 * sim-trace.h (TRACE_BRANCH_INPUT1): New macro.
1436 (TRACE_BRANCH_INPUT2): Likewise.
1437
c43ad8eb
BE
14382001-02-09 Ben Elliston <bje@redhat.com>
1439
1440 * (profile_print_pc): Write header out in target byte order.
1441
14422001-02-09 Ben Elliston <bje@redhat.com>
1443
1444 * sim-profile.c (profile_pc_init): Correct bug in loop logic when
1445 adjusting the pc shift value.
1446
9397fcbf
FCE
14472001-01-12 Chris Demetriou <cgd@sibyte.com>
1448
badd2b1e
BE
1449 * aclocal.m4 (SIM_AC_OPTION_SCACHE): Properly handle the case
1450 where a numeric value is supplied.
9397fcbf 1451
63fe1038
BE
14522001-01-06 Ben Elliston <bje@redhat.com>
1453
1454 * cgen.sh: Allow extrafiles to include the semantics files when
1455 generating an ISA-specific decoder.
1456
b6f6b44d
AO
14572000-12-27 Alexandre Oliva <aoliva@redhat.com>
1458
1459 * Make-common.in (sim-io.o): Depend on targ-vals.h.
1460
ad8707b5
BE
14612000-12-23 Ben Elliston <bje@redhat.com>
1462
1463 * cgen-trace.c (trace_result): Handle 'f' type operands; output
1464 them to the trace stream using sim_fpu_printn_fpu. Include
1465 "sim-fpu.h".
1466
b94c0966
BE
14672000-12-15 Ben Elliston <bje@redhat.com>
1468
1469 * sim-fpu.h (sim_fpu_printn_fpu): Declare.
1470 * sim-fpu.c (print_bits): Add digits parameter. Print only as many
1471 trailing digits as specified (-1 to print all digits).
1472 (sim_fpu_print_fpu): New wrapper around sim_fpu_printn_fpu.
1473 (sim_fpu_printn_fpu): Rename from sim_fpu_print_fpu; update calls
1474 to print_bits ().
1475
fd5d712e
BE
14762000-12-13 Ben Elliston <bje@redhat.com>
1477
1478 * cgen.sh: Set prefix/PREFIX (append ISA if applicable). Factor
1479 sed expressions into $sedscript, substituting @prefix@/@PREFIX@.
1480 (defs): New action.
1481
4c15ccf7
GK
14822000-12-12 Geoffrey Keating <geoffk@redhat.com>
1483
1484 * sim-endian.h: Don't have parameters on macro definitions which
1485 are simply renaming functions, to permit use of XCONCAT2 in both
1486 the macro name and the arguments in a use of such a definition.
1487
0d277f51
BE
14882000-12-11 Ben Elliston <bje@redhat.com>
1489
1490 * cgen-ops.h (SUBWORDDFDI): New function.
1491
bb4e03e5
BE
14922000-12-05 Ben Elliston <bje@redhat.com>
1493
c79688eb
BE
1494 * Make-common.in (cgen-defs): New target.
1495 (cgen-decode): Pass $(EXTRAFILES).
1496
bb4e03e5
BE
1497 * genmloop.sh: Use @prefix@, not @cpu@ throughout. Add -prefix and
1498 -outfile-suffix options.
1499
76440e4b
BE
15002000-12-04 Ben Elliston <bje@redhat.com>
1501
6227bc85
BE
1502 * cgen-ops.h (SUBWORDSIQI): Mask off top bits.
1503 (SUBWORDSIUQI): Likewise.
1504 (SUBWORDDIHI): Likewise.
1505 (SUBWORDDIQI): New function.
1506
76440e4b
BE
1507 * cgen-trace.c (disassemble_insn): Remove unused declaration.
1508 * cgen-scache.c (scache_option_handler): Remove unused local var.
1509
cdc2a5c3
BE
15102000-12-03 Ben Elliston <bje@redhat.com>
1511
1512 * sim-profile.c (profile_option_handler): Remove unused prof_nr.
1513
4e73b9c1
SC
15142000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1515
1516 * hw-events.c (delete_hw_event_data): Remove the scheduled events.
1517
ce9bc8d1
SC
15182000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1519
1520 * dv-core.c (dv_core_attach_address_callback): Don't abort if
1521 space is not zero.
1522
ce13044d
SC
15232000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1524
1525 * hw-base.c (hw_delete): Don't free base_of_hw since it's freed.
1526 (set_hw_delete): Moved the macro as a function.
1527 * hw-base.h (set_hw_delete): Declare as external function.
1528 * hw-alloc.c (delete_hw_alloc_data): Allow to free the memory
1529 allocated using hw_malloc.
1530
7c070881
SC
15312000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1532
1533 * sim-options.c (sim_parse_args): Free the memory used for
1534 long_options, short_options, handlers, opt_cpu, orig_val.
1535
4f49fa1b
BE
15362000-11-20 Ben Elliston <bje@redhat.com>
1537
1538 * cgen-ops.h (SUBBI): New macro.
1539 (SUBWORDSIQI, SUBWORDSIHI, SUBWORDSIUQI): New functions.
1540 (SUBWORDDIHI, SUBWORDDIUQI, SUBWORDDIDF): Likewise.
1541
2d84da1b
BE
15422000-11-16 Ben Elliston <bje@redhat.com>
1543
1544 * cgen-types.h (VOID): New type.
1545
dbc168af
BE
15462000-11-09 Ben Elliston <bje@redhat.com>
1547
1548 * sim-fpu.c (sim_fpu_one): Set exponent to 0.
1549 (sim_fpu_two): Set exponent to 1.
1550
e4f5c43e
EZ
15512000-10-26 Ben Elliston <bje@redhat.com>
1552
1553 * cgen.sh: Handle an isa argument between cpu and mach. Default to
1554 `all'. Pass `-i' options to cgen applications.
1555 * Make-common.in (cgen-arch, cgen-cpu, cgen-decode, cgen-cpu-decode,
1556 cgen-desc): Pass $(isa) to cgen.sh.
1557
a8d894af
BE
15582000-10-08 Ben Elliston <bje@redhat.com>
1559
1560 * cgen-utils.c (cgen_rtx_error): New function.
1561
15622000-10-07 Ben Elliston <bje@redhat.com>
1563
1564 * cgen-trace.c (sim_cgen_disassemble_insn): Handle failure
1565 conditions for sim_core_read_buffer().
1566
6d4c43bf
DB
15672000-09-26 Dave Brolley <brolley@redhat.com>
1568
1569 * cgen-utils.c (RORQI): New function.
1570 (ROLQI): New function.
1571 (RORHI): New function.
1572 (ROLHI): New function.
1573
0e266e5c
DB
15742000-08-28 Dave Brolley <brolley@redhat.com>
1575
1576 * cgen-trace.c (sim_cgen_disassemble_insn): Make sure entire insn is
1577 in insn_value if it will fit.
1578
604259a0
FCE
15792000-08-21 Frank Ch. Eigler <fche@redhat.com>
1580
1581 * Make-common.in, cgen.sh: Contribute CGEN-related build targets/rules.
1582
4193618c
DB
15832000-08-15 Dave Brolley <brolley@redhat.com>
1584
1585 * sim-profile.c (profile_print_speed): Print cpu frequency if not zero.
1586
15872000-08-15 Dave Brolley <brolley@redhat.com>
1588
1589 * sim-profile.h (PROFILE_DATA): Add cpu_freq.
1590 (PROFILE_CPU_FREQ): New macro.
1591 * sim-profile.c (OPTION_PROFILE_CPU_FREQUENCY): New enumerator.
1592 (profile-options): Add profile-cpu-frequency.
1593 (parse_frequency): New function.
1594 (profile_option_handler): Handle OPTION_PROFILE_CPU_FREQUENCY.
1595 (profile_print_speed): Print cpu frequency and simulated execution time.
1596 Re-indent other items to match.
1597
548a3e15
AC
15982000-08-09 Andrew Cagney <cagney@lulu.cygnus.com>
1599
1600 * dv-sockser.c (dv_sockser_init): Eliminate MIN macro.
1601
fab307a2
FCE
16022000-07-27 Frank Ch. Eigler <fche@redhat.com>
1603
1604 From Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1605 * Makefile.in (install): Install run.1 man page.
1606
46a19b74
AC
1607Thu Jul 27 21:56:08 2000 Andrew Cagney <cagney@b1.cygnus.com>
1608
1609 From 2000-06-23 Doug Evans <dje@casey.transmeta.com>:
1610 * Makefile.in (headers,nltvals.def): Merge.
1611
3c765a54
AC
1612Thu Jul 27 20:37:47 2000 Andrew Cagney <cagney@b1.cygnus.com>
1613
f9cbceb6
AC
1614 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
1615 * nrun.c (main): Print the simulator statistics only in
1616 verbose mode.
1617 * hw-properties.h (hw_find_integer_array_property): Fix
1618 prototype (use signed_cell).
1619
38e64f35
AC
1620 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
1621 * sim-events.c (sim_events_remain_time): New function returning
1622 the time that remains before the event is raised.
1623 * hw-events.c (hw_event_remain_time): Likewise.
1624 * sim-events.h (sim_events_remain_time): Declare.
1625 * hw-events.h (hw_event_remain_time): Declare.
1626
0802cc40
AC
1627 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
1628 * sim-hw.c: Use <errno.h> instead of <sys/errno.h>
1629 (OPTION_HW_LIST): New option --hw-list to list the devices.
1630 (hw_option_handler): List the device tree with 'sim_hw_print'.
1631
3c765a54
AC
1632 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
1633 * sim-bits.h (_MSB_16, _LSB_16): Define for 16-bit targets.
1634 (MASK, LSBIT, MSBIT): Likewise and use _MSB_16 and _LSB_16.
1635 (EXTENDED): Define for 16-bit word size.
1636 * sim-bits.c (LSEXTRACTED, MSEXTRACTED, LSINSERTED,
1637 MSINSERTED, LSSEXT, MSSEXT): Implement for 16-bit word size.
1638 * sim-types.h: Added support for 16-bit targets.
1639
7fb283bc
FCE
16402000-06-23 Frank Ch. Eigler <fche@redhat.com>
1641
1642 * cgen-trace.h (TRACE_USEFUL_MASK): Remove TRACE_EVENTS_IDX.
1643
ab42ee12
FCE
16442000-06-24 Frank Ch. Eigler <fche@redhat.com>
1645
1646 From Maciej W. Rozycki <macro@ds2.pg.gda.pl>:
1647 * Makefile.in (distclean): Clean cconfig.h also.
1648
eb2d80b4
AC
1649Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
1650
1651 * configure: Regenerated to track ../common/aclocal.m4 changes.
1652
1653Tue May 23 21:35:53 2000 Andrew Cagney <cagney@b1.cygnus.com>
1654
1655 * aclocal.m4 (sim-profile): Enable the profiler by default.
1656
781c552e
AC
1657Tue May 23 20:30:12 2000 Andrew Cagney <cagney@amy.cygnus.com>
1658
1659 * run.c (main): Initialize sigrc.
1660
5eb1a8fa
AC
1661Wed Apr 26 16:18:44 2000 Andrew Cagney <cagney@b1.cygnus.com>
1662
1663 * sim-events.c (update_time_from_event): Add more detailed event
1664 tracing.
1665
b2ac51e4
DB
16662000-03-30 Dave Brolley <brolley@redhat.com>
1667
1668 * aclocal.m4 (cgen): Use guile to run cgen.
1669
f8603f2f
DB
16702000-03-23 Dave Brolley <brolley@redhat.com>
1671
1672 * cgen-fpu.h: Rename extsfdf to fextsfdf. Rename truncdfsf to
1673 ftruncdfsf.
1674 * cgen-accfp.c (fextsfdf): New function.
1675 (ftruncdfsf): New function.
1676 (cgen_init_accurate_fpu): Initialize fextsfdf and ftruncdfsf.
1677
0f831eb3
JJ
16782000-03-13 Jeff Johnston <jjohnstn@cygnus.com>
1679
1680 * cgen-ops.h: Added TRUNCSISI.
1681
e88acae7
FCE
16822000-03-08 Dave Brolley <brolley@redhat.com>
1683
1684 * cgen-par.h (cgen_write_queue_kind): Add CGEN_FN_SF_WRITE.
1685 (CGEN_WRITE_QUEUE_ELEMENT): Add fn_sf_write.
1686 (sim_queue_fn_si_write): Last argument is has type USI.
1687 (sim_queue_fn_sf_write): New function.
1688 * cgen-par.c (sim_queue_fn_si_write): Declare 'value' as USI.
1689 (sim_queue_fn_sf_write): New function.
1690 (cgen_write_queue_element_execute): Handle CGEN_FN_SF_WRITE.
1691
baa7ae6f
AC
1692Tue Feb 22 16:45:09 2000 Andrew Cagney <cagney@b1.cygnus.com>
1693
1694 * run.c (main): When SIM_HAVE_ENVIRONMENT enable tracing with
1695 sim_set_trace and run simulator using sim_resume.
1696 (main): Add option ``-o'' - operating environment. Only continue
1697 after a signal when operating environment.
1698 (main): Always set REASON and SIGRC using sim_stop_reason.
1699 (sim_trace): Delete extern declaration.
1700
6d358e86
NC
17012000-02-08 Nick Clifton <nickc@cygnus.com>
1702
1703 * callback.c: Fix compile time warning messages.
1704 * run.c: Fix compile time warning messages.
1705
ed9a39eb
JM
17061999-12-17 Dave Brolley <brolley@cygnus.com>
1707
1708 * sim-profile.h: (set_profile_option_mask): Add prototype.
1709 * sim-profile.c (set_profile_option_mask): No longer static.
1710
c4093a6a
JM
1711Wed Dec 8 21:47:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
1712
1713 * sim-arange.c: Include <string.h>
1714
de57eccd
JM
17151999-12-07 Dave Brolley <brolley@cygnus.com>
1716
c4093a6a 1717 * sim-options.c (print_help): '=' required before optional argument.
de57eccd
JM
1718 * cgen-par.h (CGEN_FN_MEM_QI_WRITE): New enumerator.
1719 (CGEN_FN_MEM_HI_WRITE): New enumerator.
1720 (CGEN_FN_MEM_SI_WRITE): New enumerator.
1721 (CGEN_FN_MEM_DI_WRITE): New enumerator.
1722 (CGEN_FN_MEM_DF_WRITE): New enumerator.
1723 (CGEN_FN_MEM_XI_WRITE): New enumerator.
1724 (fn_mem_qi_write): New union members.
1725 (fn_mem_hi_write): New union members.
1726 (fn_mem_si_write): New union members.
1727 (fn_mem_di_write): New union members.
1728 (fn_mem_df_write): New union members.
1729 (fn_mem_xi_write): New union members.
1730 (sim_queue_fn_mem_qi_write): New function.
1731 (sim_queue_fn_mem_hi_write): New function.
1732 (sim_queue_fn_mem_si_write): New function.
1733 (sim_queue_fn_mem_di_write): New function.
1734 (sim_queue_fn_mem_df_write): New function.
1735 (sim_queue_fn_mem_xi_write): New function.
1736 * cgen-par.c (sim_queue_fn_mem_qi_write): New function.
1737 (sim_queue_fn_mem_hi_write): New function.
1738 (sim_queue_fn_mem_si_write): New function.
1739 (sim_queue_fn_mem_di_write): New function.
1740 (sim_queue_fn_mem_df_write): New function.
1741 (sim_queue_fn_mem_xi_write): New function.
1742 (cgen_write_queue_element_execute): Handle CGEN_FN_MEM_QI_WRITE,
1743 CGEN_FN_MEM_HI_WRITE, CGEN_FN_MEM_SI_WRITE, CGEN_FN_MEM_DI_WRITE,
1744 CGEN_FN_MEM_DF_WRITE, CGEN_FN_MEM_XI_WRITE.
1745
c2d11a7d
JM
17461999-12-01 Dave Brolley <brolley@cygnus.com>
1747
1748 * cgen-accfp.c (subsf): Check status code.
1749 (mulsf): Ditto.
1750 (negsf): Ditto.
1751 (abssf): Ditto.
1752 (sqrtsf): Ditto.
1753 (invsf): Ditto.
1754 (minsf): Ditto.
1755 (maxsf): Ditto.
1756 (subdf): Ditto.
1757 (muldf): Ditto.
1758 (divdf): Ditto.
1759 (negdf): Ditto.
1760 (absdf): Ditto.
1761 (sqrtdf): Ditto.
1762 (invdf): Ditto.
1763 (mindf): Ditto.
1764 (maxdf): Ditto.
1765
17661999-11-26 Dave Brolley <brolley@cygnus.com>
1767
1768 * cgen-par.h (fn_df_write): Mode of data is DF.
1769 (sim_queue_fn_df_write): Mode of data is DF.
1770 * cgen-par.c (sim_queue_fn_df_write): Mode of data is DF.
1771
17721999-11-22 Dave Brolley <brolley@cygnus.com>
1773
1774 * cgen-trace.c (SIZE_TRACE_BUF): Inxrease size of trace buffer.
1775 * cgen-par.h (CGEN_WRITE_QUEUE_SIZE): Increase size of queue.
1776
11cf8741
JM
17771999-11-04 Dave Brolley <brolley@cygnus.com>
1778
1779 * cgen-par.h (cgen_write_queue_kind): Add CGEN_FN_XI_WRITE and
1780 CGEN_MEM_XI_WRITE members.
1781 (CGEN_WRITE_QUEUE_ELEMENT): Add fn_xi_write and mem_xi_write members.
1782 (sim_queue_fn_xi_write): New function.
1783 (sim_queue_mem_xi_write): New function.
1784
1785 * cgen-par.c (sim_queue_fn_xi_write): New function.
1786 (sim_queue_mem_xi_write): New function.
1787 (cgen_write_queue_element_execute): Handle CGEN_FN_XI_WRITE and
1788 CGEN_MEM_XI_WRITE.
1789
e514a9d6
JM
17901999-10-22 Dave Brolley <brolley@cygnus.com>
1791
1792 * cgen-par.h (insn_address): New field in CGEN_WRITE_QUEUE_ELEMENT.
1793 (CGEN_WRITE_QUEUE_ELEMENT_IADDR): New macro.
1794 * cgen-par.c: Set insn_address for each queued write. Get pc from
1795 cpu when executing queued writes.
1796
17971999-10-19 Dave Brolley <brolley@cygnus.com>
1798
1799 * cgen-par.h (sim_queue_fn_pc_write): New function.
1800 (CGEN_FN_PC_WRITE): New enumerator.
1801 (fn_pc_write): New union member.
1802 * cgen-par.c (sim_queue_fn_pc_write): New function.
1803 (cgen_write_queue_element_execute): Handle CGEN_FN_PC_WRITE.
1804
917317f4
JM
18051999-10-18 Dave Brolley <brolley@cygnus.com>
1806
1807 * cgen-par.h (CGEN_MEM_DI_WRITE): New enumerator.
1808 (CGEN_MEM_DF_WRITE): New enumerator.
1809 (mem_di_write): New union member.
1810 (mem_df_write): New union member.
1811 * cgen-par.c (sim_queue_mem_di_write): New function.
1812 (sim_queue_mem_df_write): New function.
1813 (cgen_write_queue_element_execute): Handle CGEN_MEM_DI_WRITE and
1814 CGEN_MEM_DF_WRITE.
1815 * cgen-accfp.c (divsf): Check for division errors.
1816
18171999-10-14 Doug Evans <devans@casey.cygnus.com>
1818
1819 * cgen-engine.h (EXTRACT_INT,EXTRACT_UINT): Delete.
1820
2df3850c
JM
18211999-10-07 Dave Brolley <brolley@cygnus.com>
1822
1823 * cgen-par.h (CGEN_FN_HI_WRITE): New enumerator.
1824 (fn_hi_write): New union member.
1825 (sim_queue_fn_hi_write): New function.
1826 * cgen-par.c (sim_queue_fn_hi_write): New function.
1827 (cgen_write_queue_element_execute): Handle CGEN_FN_HI_WRITE.
1828
2acceee2
JM
18291999-09-29 Doug Evans <devans@casey.cygnus.com>
1830
1831 * cgen-defs.h (sim_engine_invalid_insn): New arg `vpc'.
1832 Change type of result to SEM_PC.
1833
1834Wed Sep 29 14:43:57 1999 Dave Brolley <brolley@cygnus.com>
1835
1836 * cgen-defs.h (sim_engine_invalid_insn): Now returns PC.
1837
6426a772
JM
18381999-09-25 Doug Evans <devans@casey.cygnus.com>
1839
1840 * cgen-ops.h (SUBWORD*): Delete cpu arg.
1841 (JOIN*): Delete cpu arg.
1842
1843Tue Sep 21 17:14:16 1999 Dave Brolley <brolley@cygnus.com>
1844
1845 * genmloop.sh (@cpu@_scache_lookup): No longer takes last_insn_p
1846 parameter.
1847 (SET_LAST_INSN_P): Set last_insn_p flag in the scache element.
1848
c2c6d25f
JM
1849Mon Sep 20 21:44:06 1999 Geoffrey Keating <geoffk@cygnus.com>
1850
1851 * sim-fpu.c (i2fpu): Keep the guard bits sticky when converting
1852 large values.
1853
7fc5b5ad
AC
1854Tue Feb 8 16:33:48 2000 Andrew Cagney <cagney@b1.cygnus.com>
1855
1856 * run.c (main): Check the sim_stop_reason and only halt simulation
1857 when a valid stop condition is identified.
1858
c2c6d25f
JM
1859Wed Sep 15 14:12:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
1860
1861 * hw-tree.c, hw-properties.c, hw-instances.c: Include "sim-io.h".
1862
1863Tue Sep 14 14:15:47 1999 Dave Brolley <brolley@cygnus.com>
1864
1865 * cgen-par.h (CGEN_BI_WRITE): New enumerator.
1866 (bi_write): New union element.
1867 (sim_queue_bi_write): New function.
1868 * cgen-par.c (sim_queue_bi_write): New function.
1869 (cgen_write_queue_element_execute): Handle CGEN_BI_WRITE.
1870
d4f3574e
SS
1871Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
1872
1873 * configure: Regenerated to track ../common/aclocal.m4 changes.
1874
1875 * aclocal.m4 (WERROR_CFLAGS, WARN_CFLAGS): Merge from
1876 ../gdb/configure.in.
1877 * Make-common.in (WERROR_CFLAGS, WARN_CFLAGS): Define.
1878 (SIM_WERROR_CFLAGS, SIM_WARN_CFLAGS): Define.
1879 (SIM_WARNINGS): Delete
1880 (CONFIG_CFLAGS): Update.
1881
1882Tue Aug 31 16:01:42 1999 Dave Brolley <brolley@cygnus.com>
1883
1884 * cgen-par.c: New file.
1885 * cgen-par.h: New file.
1886 * cgen-sim.h (cgen-par.h): #include it.
1887 * cgen-cpu.h (write_queue): New field.
1888 (CPU_WRITE_QUEUE): New access macro.
1889 * Make-common.in (CGEN_MAIN_CPU_DEPS): Add cgen-par.h.
1890 (cgen-par.o): New target.
1891
104c1213
JM
18921999-08-28 Doug Evans <devans@casey.cygnus.com>
1893
1894 * cgen-types.h (mode_type,MODE_VOID): Renamed from MODE_VM.
1895 * cgen-utils.c (mode_names): Update.
1896
53a5351d
JM
18971999-08-20 Doug Evans <devans@casey.cygnus.com>
1898
1899 * genmloop.sh: New args -parallel-generic-write, -parallel-only.
1900 * cgen-engine.h (SEMANTIC_FN): Don't use version with PAREXEC
1901 buffer arg if WITH_PARALLEL_GENWRITE.
1902 (struct insn_sem): Handle WITH_PARALLEL_GENWRITE.
1903 (struct idesc): Ditto.
1904
1905Wed Aug 18 18:17:28 1999 Doug Evans <devans@canuck.cygnus.com>
1906
1907 * sim-model.c (model_option_handler): Add \n to error message.
1908
96baa820
JM
19091999-08-08 Doug Evans <devans@casey.cygnus.com>
1910
1911 * cgen-engine.h (SEM_FN_NAME,SEMF_FN_NAME): Delete.
1912 (insn_sem): Rewrite.
1913 (sem_fn_desc): New struct.
1914 (idesc): Rewrite.
1915 * genmloop.sh (scache case,@cpu@_scache_lookup): Profile scache hit,
1916 misses if ! FAST_P.
1917 (scache case): Split into non-parallel/parallel versions.
1918 (@cpu@_engine_run_{full,fast}): Call @cpu@_{sem,semf}_init_idesc_table
1919 if not use semantic switch version.
1920
19211999-08-04 Doug Evans <devans@casey.cygnus.com>
1922
1923 * cgen-defs.h (SEM_BRANCH_TYPE): New enum.
1924 * cgen-engine.h (SEM_BRANCH_UNTAKEN,SEM_BRANCH_UNCACHEABLE): Delete.
1925 (SEM_BRANCH_INIT_EXTRACT): Delete.
1926 (SEM_BRANCH_INIT): Replace npc_ptr with br_type.
1927 (SEM_BRANCH_FINI): Ditto.
1928 (SEM_BRANCH_VIA_ADDR): Ditto.
1929 (SEM_BRANCH_VIA_CACHE): Ditto. Delete cachvarptr arg.
1930 (SEM_BRANCH_ADDR_CACHE): Delete.
1931 (SEM_SKIP_COMPILE,SEM_SKIP_INSN): New macros.
1932 * cgen-scache.h (cpu_scache): Replace member pbb_pr_npc_ptr with
1933 pbb_br_type.
1934 * genmloop.sh (eng.hin): Update prototype of ${cpu}_pbb_cti_chain.
1935 (@cpu@_pbb_begin): Initialize branch_target.
1936 (@cpu@_pbb_cti_chain): Replace arg new_vpc_ptr with br_type.
1937 (@cpu@_engine_run_full): Replace local pbb_br_npc_ptr with
1938 pbb_br_type.
1939 (@cpu@_engine_run_fast): Ditto.
1940
adf40b2e
JM
1941Fri Jul 16 14:47:53 1999 Dave Brolley <brolley@cygnus.com>
1942
1943 * cgen-utils.c (RORSI): New function.
1944 (ROLSI): New function.
1945
19461999-07-14 Doug Evans <devans@casey.cygnus.com>
1947
1948 * Makefile.in (TAGS): Tweak TAGS regex.
1949 * cgen-mem.h (*): Add TAGS markers.
1950
43e526b9
JM
1951Sun Jul 11 23:47:20 1999 Andrew Cagney <cagney@b1.cygnus.com>
1952
1953 * sim-resume.c (sim_resume): Ensure that the siggnal [sic] is only
1954 passed in when sim_resume is first entered - don't re-pass it
1955 after a restart.
1956
1957Sun Jul 11 23:34:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
1958
1959 * sim-options.c (standard_option_handler): Add OPTION_LOAD_VMA and
1960 OPTION_LOAD_LMA but only when is defined.
1961 (standard_options): When SIM_HANDLES_LMA is defined include
1962 options --load-lma and --load-vma.
1963 (standard_install): Initialize STATE_LOAD_AT_LMA_P.
1964
1965 * sim-base.h (STATE_LOAD_AT_LMA_P): Define.
1966 (struct sim_state_base): Add load_at_lma_p.
1967 * sim-hload.c (sim_load): Replace SIM_HANDLES_LMA with
1968 STATE_LOAD_AT_LMA_P.
1969
1970Sun Jul 11 12:03:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
1971
1972 * nrun.c (main): Re-format loop gnu style.
1973
9846de1b
JM
1974Wed Jul 7 19:56:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
1975
1976 * dv-sockser.c (connected_p): Initialize addrlen.
1977
19781999-07-06 Dave Brolley <brolley@cygnus.com>
1979
1980 * cgen-accfp.c (floatsidf): New function.
1981 (fixdfsi): New function.
1982
19831999-07-06 Doug Evans <devans@casey.cygnus.com>
1984
1985 * sim-model.c (sim_model_init): Issue error if machine is unsupported.
1986
43ff13b4
JM
19871999-07-05 Doug Evans <devans@casey.cygnus.com>
1988
1989 * Make-common.in (CGEN_MAIN_CPU_DEPS): Add cgen-fpu.h.
1990 (cgen-fpu.o,cgen-accfp.o): Add rules for.
1991 * cgen-fpu.c: New file.
1992 * cgen-fpu.h: New file.
1993 * cgen-accfp.c: New file.
1994 * cgen-cpu.h (CGEN_CPU): New member fpu.
1995 * cgen-mem.h: Redo fp support.
1996 * cgen-ops.h: Delete k&r support. Redo fp support.
1997 * cgen-sim.h: Include cgen-fpu.h.
1998 * cgen-types.h (SF,DF,XF,TF): Moved to cgen-fpu.h.
1999
085dd6e6
JM
20001999-06-23 Doug Evans <devans@casey.cygnus.com>
2001
2002 * cgen-engine.h (TARGET_SEM_BRANCH_FINI): Remove cruft at end of
2003 ifndef.
2004 * genmloop.sh (@cpu@_scache_lookup): Delete unused local var.
2005 (@cpu@_pbb_cti_chain): Minor clean up.
2006
cd0fc7c3
SS
20071999-05-08 Felix Lee <flee@cygnus.com>
2008
2009 * aclocal.m4: Use AC_EXEEXT instead of AM_EXEEXT. Delete defn of
2010 AM_CYGWIN32 and AM_EXEEXT.
2011 * configure: Regenerate.
2012
7a292a7a
SS
2013Fri Apr 16 16:43:22 1999 Doug Evans <devans@charmed.cygnus.com>
2014
2015 * sim-core.c (device_error,device_io_read_buffer,
2016 device_io_write_buffer): Delete decls.
2017 * sim-core.h: Put them here.
2018
2019 * sim-core.c (sim_core_read_buffer): Pass sd to device_io_read_buffer.
2020 (sim_core_write_buffer): Pass sd to device_io_write_buffer.
2021 * sim-n-core.h (sim_core_read_aligned_N): Ditto.
2022 (sim_core_write_aligned_N): Ditto.
2023
20241999-04-14 Stephane Carrez <stcarrez@worldnet.fr>
2025
2026 * sim-memopt.c (sim_memory_uninstall): Don't look into
2027 free()d memory.
2028
20291999-04-14 Doug Evans <devans@casey.cygnus.com>
2030
2031 * cgen-utils.scm (virtual_insn_entries): Update attribute definition.
2032
20331999-04-13 Doug Evans <devans@casey.cygnus.com>
2034
2035 * sim-core.c (sim_core_read_buffer): Handle NULL cpu when WITH_DEVICES.
2036 (sim_core_write_buffer): Ditto.
2037
20381999-04-02 Keith Seitz <keiths@cygnus.com>
2039
2040 * sim-io.c (sim_io_poll_quit): Only call the poll_quit callback
2041 after the interval counter has expired.
2042 (POLL_QUIT_INTERVAL): Define. Used to tweak the frequency of
2043 poll_quit callbacks. May be overridden by Makefile.
2044 (poll_quit_counter): New global.
2045 * sim-events.c: Remove all mentions of ui_loop_hook. The
2046 host callback "poll_quit" will serve the purpose.
2047 * run.c: Add definition of ui_loop_hook when NEED_UI_LOOP_HOOK
2048 is defined.
2049 * nrun.c: Remove declaration of ui_loop_hook.
2050
2051Wed Mar 31 18:55:41 1999 Doug Evans <devans@canuck.cygnus.com>
2052
2053 * cgen-run.c (sim_resume): Don't tell main loop to run "forever"
2054 if being used by gdb.
2055
20561999-03-22 Doug Evans <devans@casey.cygnus.com>
2057
2058 * cgen-types.h (XF,TF): Tweak.
2059 * cgen-ops.h: Redo inline support. Delete DI_FN_SUPPORT,
2060 in cgen-types.h.
2061 (SUBWORD*,JOIN*): Define.
2062 * cgen-trace.c (sim_cgen_disassemble_insn): Update, base_insn_bitsize
2063 moved into cpu descriptor.
2064 * sim-model.h (MACH): New member `num'.
2065
c906108c
SS
20661999-02-09 Doug Evans <devans@casey.cygnus.com>
2067
c906108c
SS
2068 * cgen-cpu.h (CGEN_DISASSEMBLER): New type.
2069 (CGEN_CPU): Member opcode renamed to cpu_desc.
2070 New members get_idata,disassembler.
2071 * cgen-defs.h (CGEN_INSN_VIRTUAL_P): CGEN_INSN_ATTR renamed to
2072 CGEN_INSN_ATTR_VALUE.
2073 (CGEN_STATE): Delete member opcode_table.
2074 (sim_disassemble_insn): Delete decl.
2075 * cgen-engine.h (struct insn_sem): Moved to here from <cpu>-decode.c.
2076 (struct idesc): Moved to here from <cpu>-decode.h.
2077 * cgen-run.c (prime_cpu): Call prepare_run callback.
2078 * cgen-trace.h (SFILE): New type.
2079 (sim_disasm_sprintf): Declare.
2080 (sim_disasm_read_memory,sim_disasm_perror_memory): Declare.
2081 (sim_cgen_disassemble_insn): Declare.
2082 * cgen-trace.c: Include errno.h,dis-asm.h. Don't include cpu-opc.h.
2083 (insn_fields): Delete.
2084 (trace_insn_fini): STATE_OPCODE_TABLE (sd) replaced with
2085 CPU_CPU_DESC (cpu).
2086 (trace_insn): Call CPU_DISASSEMBLER hook.
2087 (sim_disasm_sprintf): New function.
2088 (sim_disasm_read_memory): New function.
2089 (sim_disasm_perror_memory): New function.
2090 (sim_cgen_disassemble_insn): New function.
2091 * cgen-utils.c: Don't include cpu-opc.h.
2092 (virtual_insn_entries): New static local.
2093 (cgen_virtual_insn_table): Renamed from cgen_virtual_opcode_table.
2094 (cgen_insn_name): Rewrite.
2095 (disasm_sprintf,sim_disassemble_insn): Moved to cgen-trace.c.
2096 * cgen.sh (desc): New file generator handler.
2097 * genmloop.sh: -parallel changed to -parallel-read/-parallel-write.
2098 Define WITH_PARALLEL_READ/WITH_PARALLEL_WRITE appropriately.
2099 Don't include cpu-opc.h,cpu-sim.h.
2100 * sim-model.c (model_set): Delete SIM_DESC arg.
2101 (sim_model_set): Update.
2102 * sim-model.h (MACH): New member prepare_run.
2103
21041999-01-28 Frank Ch. Eigler <fche@cygnus.com>
2105
2106 * sim-memopt.c (memory_option_handler): Avoid memset() calls
2107 if redundant with allocator functions.
2108
2109Wed Jan 27 17:19:09 1999 Doug Evans <devans@canuck.cygnus.com>
2110
2111 * cgen-engine.h (EXTRACT_LSB0_{INT,UINT}): Fix.
2112
2113 * sim-profile.h: Make like sim-trace.h.
2114 (PROFILE_USEFUL_MASK): New macro.
2115 * sim-profile.c (profile_options): Make like trace_options, allow
2116 optional on|off arg where applicable.
2117 (set_profile_option_mask): New function.
2118 (sim_profile_set_option): New function.
2119 (profile_option_handler): Simplify.
2120 Have -p only enable selected things, not everything.
2121 Add missing break to OPTION_PROFILE_PC_RANGE.
2122 * cgen-scache.c (scache_options): Allow optional on|off arg to
2123 --profile-scache.
2124 (scache_option_handler): Use sim_profile_set_option.
2125
21261999-01-26 Frank Ch. Eigler <fche@cygnus.com>
2127
2128 * sim-memopt.c (memory_options): Add MEMORY_FILL option.
2129 (memory_option_handler): Implement MEMORY_FILL option. Make
2130 MEMORY_CLEAR an alias for MEMORY_FILL=0.
2131 (parse_ulong_value): New function.
2132 (do_memopt_add): Allocate all buffers. Optionally fill them.
2133
21341999-01-15 Richard Henderson <rth@cygnus.com>
2135
2136 * hw-events.c (hw_event_queue_schedule): _vtracef takes a
2137 va_list, not an integer.
2138 * sim-events.c (sim_events_schedule): Likewise.
2139
2140 * sim-types.h (UNSIGNED32, UNSIGNED64): Properly cast to
2141 the appropriate type.
2142
21431999-01-14 Doug Evans <devans@casey.cygnus.com>
2144
2145 * cgen-defs.h (PCADDR,CIA): Define in terms of IADDR.
2146 (sim_disassemble_insn): Update prototype.
2147 (sim_engine_invalid_insn): Ditto.
2148 * cgen-engine.h (SEMANTIC_FN): Add !WITH_SCACHE version.
2149 (SEM_BRANCH_INIT): PCADDR->IADDR.
2150 (SEM_NBRANCH_FINI): New macro for !WITH_SCACHE case.
2151 * cgen-scache.c (scache_lookup,scache_lookup_or_alloc): PCADDR->IADDR.
2152 * cgen-scache.h (*): Ditto.
2153 * cgen-trace.c (*): Ditto.
2154 * cgen-trace.h (*): Ditto.
2155 * cgen-utils.c (*): Ditto.
2156 * cgen-types.h (integer modes): Use signedNN/unsignedNN types.
2157 (insn_t): Delete.
2158 * genmloop.sh (@cpu@_fill_argbuf): Add !WITH_SCACHE support.
2159 (simple engine framework): Rewrite.
2160 * sim-module.c (modules): Install model module sooner (and in
2161 particular before the profile module).
2162
21631999-01-12 Doug Evans <devans@casey.cygnus.com>
2164
2165 * sim-model.h (sim_mach_lookup_bfd_name): Add prototype.
2166 * sim-model.c (sim_mach_lookup_bfd_name): New function.
2167 (sim_model_init): Call it.
2168
2169 * cgen-trace.c (trace_insn): Pass pc to trace_prefix for virtual insns.
2170
21711999-01-05 Doug Evans <devans@casey.cygnus.com>
2172
2173 * Make-common.in (CGEN_INCLUDE_DEPS): Add cgen-defs.h, cgen-engine.h.
c906108c
SS
2174 * cgen-engine.h (SEM_BRANCH_FINI): New arg pcvar, all uses updated.
2175 (SEM_BRANCH_INIT_EXTRACT): New macro.
2176 (SEM_BRANCH_INIT): Add taken_p.
2177 (TARGET_SEM_BRANCH_FINI): Provide default definition.
2178 (SEM_BRANCH_FINI): Use it.
2179 (SEM_INSN): Update.
2180 * cgen-run.c (sim_resume): Handle tracing of last insn.
2181 * cgen-scache.h (WITH_SCACHE): Define as 0 if not defined.
2182 * cgen-trace.c (current_abuf): New static global.
2183 (trace_insn_init): Initialize it.
2184 (trace_insn_fini): Use it.
2185 (trace_insn): Set it.
2186 * cgen.sh (arch case): Pass -m ${mach} to cgen.
2187 * genmloop.sh (@cpu@_emit_before): Only define if WITH_SCACHE_PBB.
2188 (@cpu@_emit_after): Ditto.
2189 (simple @cpu@_engine_run_full): New local `pc'. Initialize semantic
2190 labels if WITH_SEM_SWITCH_FULL.
2191 * sim-model.c: Include bfd.h.
2192 (sim_model_init): New function.
2193 (sim_model_install): Record init fn.
2194 * sim-model.h (MACH): New member bfd_name.
2195 * sim-module.c (modules): Initialize model before scache.
2196
21971998-12-24 Frank Ch. Eigler <fche@cygnus.com>
2198
2199 * dv-sockser.c (DEFAULT_TIMEOUT): Increase to 1 ms.
2200
2201 * nrun.c (main): Remain in simulation loop for traps and
2202 exceptions when in operating environment mode.
2203 (ui_loop_hook): New stub hook for standalone use.
2204 * sim-events.c (sim_events_process): Call ui_loop_hook
2205 periodically on CYGWIN host.
2206
2207 * sim-reason.c (sim_stop_reason): Return host signal numbers
2208 to gdb on sim_stopped and sim_signalled cases.
2209 * sim-engine.c (sim_engine_halt): Call SIM_CPU_EXCEPTION_SUSPEND
2210 hook just before longjmp.
2211 * sim-resume.c (sim_resume): Call SIM_CPU_EXCEPTION_RESUME
2212 hook just before sim_engine_run.
2213
2214 * sim-n-core.h (sim_core_trace_M): Allay const warning.
2215 * sim-trace.h (trace_generic): Ditto.
2216 * sim-trace.c (trace_generic): Ditto.
2217
22181998-12-14 Doug Evans <devans@casey.cygnus.com>
2219
2220 * Make-common.in (SIM_MAIN_DEPS): New var.
2221 (CGEN_MAIN_CPU_DEPS): New var.
2222 * aclocal.m4: Add --enable-cgen-maint option.
2223 * cgen-mem.h (GETMEM*): New arg `pc'. Pass to sim_core routine.
2224 (SETMEM*): Ditto.
2225 (GETIMEM*): Pass pc value to sim_core routine.
2226
2227Fri Dec 11 16:58:36 1998 Andrew Cagney <cagney@b1.cygnus.com>
2228
2229 * hw-handles.c (hw_handle_add_ihandle, hw_handle_add_phandle):
2230 Compare with ZERO not NULL.
2231
2232Thu Dec 10 14:14:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
2233
2234 * hw-properties.c, hw-instances.c, hw-tree.c: Include
2235 "sim-assert.h".
2236
22371998-12-09 Doug Evans <devans@casey.cygnus.com>
2238
2239 * sim-arange.c: Include libiberty.h, and stdlib.h if present.
2240 * sim-trace.c: Include stdlib.h if present.
2241 * dv-sockser.c: Include unistd.h if present.
2242 (dv_sockser_init): Add missing arg to call to sim_io_eprintf.
2243 * cgen-scache.c (scache_flush): Delete unused locals i,sc.
2244
22451998-12-08 James E Wilson <wilson@wilson-pc.cygnus.com>
2246
2247 * gennltvals.sh: Add i960.
2248 * nltvals.def: Rebuild.
2249
22501998-12-04 Doug Evans <devans@casey.cygnus.com>
2251
2252 * cgen-defs.h: New file, old cgen-sim.h.
2253 * cgen-sim.h: Simple header that includes others.
2254 * sim-arange.c: New file.
2255 * sim-arange.h: New file.
2256 * sim-basics.h: Include it.
2257 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-arange.o.
2258 (sim-arange.o): Add rule for.
2259 * sim-cpu.h (sim_cpu_msg_prefix): Add prototype.
2260 (sim_io_eprintf_cpu): Add prototype.
2261 * sim-inline.h (HAVE_INLINE): Define if GNUC.
2262 (INLINE2): New macro.
2263 (EXTERN_INLINE): New macro.
2264 * sim-module.c (sim_post_argv_init): Initialize cpu backlink
2265 before calling module init fns.
2266 * sim-profile.c (OPTION_PROFILE_*): Move into enum.
2267 (profile_init): New function.
2268 (profile_options): New option --profile-range.
2269 (profile_option_handler): Handle --profile-range.
2270 (profile_print_insn): Qualify address range specific section titles.
2271 (profile_print_addr_ranges): New function.
2272 (profile_info): Print address ranges if specified.
2273 (profile_install): Set profile_init init fn.
2274 * sim-profile.h (PROFILE_DATA): New member `range'.
2275 * sim-trace.c (trace_init): New function.
2276 (trace_options): New option --trace-range.
2277 (trace_option_handler): Handle --trace-range.
2278 (trace_install): Set trace_init init fn.
2279 * sim-trace.h (TRACE_DATA): New member `range'.
2280 * sim-utils.c (sim_cpu_msg_prefix): New function.
2281 (sim_io_eprintf_cpu): New function.
2282 * cgen-engine.h (PC_IN_TRACE_RANGE_P): New macro.
2283 (PC_IN_PROFILE_RANGE_P): New macro.
2284 * cgen-trace.c (trace_insn_init): Set current_insn to NULL.
2285 (trace_insn_fini): New arg abuf. All callers updated.
2286 Exit early if trace_insn not called. Check ARGBUF_PROFILE_P before
2287 printing cycle counts.
2288 * cgen-trace.h (trace_insn_fini): Update prototype.
2289 (TRACE_RESULT_P): New macro.
2290 (TRACE_INSN_INIT,TRACE_INSN_FINI): New arg abuf. All callers updated.
2291 (TRACE_INSN): Check ARGBUF_TRACE_P.
2292 (TRACE_EXTRACT,TRACE_RESULT): New arg abuf. All callers updated.
2293 * cgen-types.h (SIM_INLINE): Delete.
2294 (SIM_HAVE_MODEL,SIM_HAVE_ADDR_RANGE): Define.
2295 * cgen-utils.c: Don't include cgen-engine.h
2296 * genmloop.sh (@cpu@_fill_argbuf): New function.
2297 (@cpu@_fill_argbuf_tp): New function.
2298 (@cpu@_emit_before,@cpu@_emit_after): New functions.
2299 (@cpu@_pbb_begin): Prefix cti_sc,insn_count with '_'.
2300 (SET_CTI_VPC,SET_INSN_COUNT): Update.
2301 (@cpu@_pbb_before): Check ARGBUF_PROFILE_P before calling
2302 doing profiling. Update call to TRACE_INSN_INIT,TRACE_INSN_FINI.
2303 (@cpu@_pbb_after): Check ARGBUF_PROFILE_P before calling
2304 doing profiling. Update call to TRACE_INSN_FINI.
2305
2306 * sim-memopt.c (sim_memory_uninstall): Result type is `void'.
2307
23081998-12-03 Frank Ch. Eigler <fche@cygnus.com>
2309
2310 * sim-memopt.c (sim_memory_uninstall): Deallocate all memory
2311 regions.
2312
23131998-12-01 Doug Evans <devans@casey.cygnus.com>
2314
2315 * sim-inline.c (SIM_INLINE_P): Fix typo.
2316
23171998-11-30 Doug Evans <devans@casey.cygnus.com>
2318
2319 * cgen-utils.c (cgen_virtual_opcode_table): Update.
2320
2321Tue Nov 24 18:40:03 1998 Andrew Cagney <cagney@b1.cygnus.com>
2322
2323 * gennltvals.sh: Add v850 and d10v. Sort alphabetically.
2324 * nltvals.def: Re-generate.
2325
2326Mon Nov 23 13:28:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
2327
2328 * sim-core.c (reverse_n, sim_core_uninstall, sim_core_init,
2329 sim_core_map_attach, sim_core_map_detach, next_event_queue,
2330 new_sim_core_mapping): Only define when EXTERN_SIM_CORE_P, pacify
2331 GCC.
2332 * sim-events.c (sim_events_uninstall, sim_events_suspend,
2333 sim_events_resume, sim_events_zalloc, insert_sim_event): Ditto.
2334
23351998-11-22 Doug Evans <devans@tobor.to.cygnus.com>
2336
2337 * genmloop.sh (${cpu}_pbb_chain): Watch for Ctrl-C's.
2338 (${cpu}_pbb_cti_chain): Ditto.
2339
23401998-11-18 Doug Evans <devans@casey.cygnus.com>
2341
2342 * Make-common.in (cgen-utils.o): Depend on cgen-engine.h.
c906108c
SS
2343 * cgen-engine.h (EXTRACT_[ML]SB0_{INT,UINT}): New macros.
2344 (EXTRACT_INT,EXTRACT_UINT): New macros.
2345 (SEM_SEM_ARG): New macro.
2346 (SEM_NEXT_VPC): New arg `pc'.
2347 * cgen-sim.h (EXTRACT_SIGNED,EXTRACT_UNSIGNED): Delete.
2348 (sim_disassemble_insn): Update prototype.
2349 * cgen-trace.c (current_insn,insn_fields): New static locals.
2350 (trace_insn): Set them.
b83266a0 2351 * cgen-utils.c: #include cgen-engine.h.
c906108c
SS
2352 (sim_disassemble_insn): New arg insn_fields.
2353 Handle variable length insns.
2354 * genmloop.sh: Only emit pbb decls if -pbb.
2355 (${cpu}_scache_lookup): New arg `vpc'.
2356 (scache support): Fetch pc before entering loop.
2357
2358 * gennltvals.sh: Add fr30 support.
2359 * nltvals.def: Rebuild.
2360
2361Wed Nov 18 10:22:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
2362
2363 * sim-types.h: Re-do type system so that GCC's attribute and mode
2364 are used to specify types. Handle case of ALPHA.
2365
23661998-11-13 Frank Ch. Eigler <fche@elastic.org>
2367
2368 * aclocal.m4: Add tests for dlopen family.
2369 * config.in: Regenerated.
2370
2371Wed Nov 11 14:02:25 1998 Doug Evans <devans@canuck.cygnus.com>
2372
2373 * sim-hload.c (sim_load): Pass `prog_name' to sim_load_file, not NULL.
2374
2375Wed Nov 4 23:51:19 1998 Doug Evans <devans@seba.cygnus.com>
2376
2377 * genmloop.sh (eng.hin): Rename HAVE_PARALLEL_EXEC to
2378 HAVE_PARALLEL_INSNS, define as 0 or 1. Emit decls of fns in mloop.cin.
2379 * cgen-engine.h: Typedefs of IADDR,CIA,SEM_ARG,SEM_PC moved ...
2380 * cgen-sim.h: ... to here.
2381
2382Wed Oct 28 12:00:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
2383
2384 * aclocal.m4 (enable-build-warnings): Replace
2385 enable-sim-warnings. Extend =LIST syntax so that prepend and
2386 append of options is possible. Drop -Werror, add
2387 -Wstrict-prototypes for GDB compatibility.
2388 * Make-common.in (SIM_WARNINGS): Update.
2389
2390Mon Oct 19 13:56:32 1998 Doug Evans <devans@seba.cygnus.com>
2391
2392 * Make-common.in (CGEN_INCLUDE_DEPS): Define.
2393 (sim-core.o): Delete duplicate dependence on $(SIM_EXTRA_DEPS).
2394 (sim-cpu.o,sim-endian.o,sim-hw.o): Ditto.
2395 (cgen-run.o,cgen-scache.o,cgen-trace.o,cgen-utils.o): Delete
2396 explicit cgen header dependencies, require SIM_EXTRA_DEPS to include
2397 CGEN_INCLUDE_DEPS.
2398 * cgen-cpu.h: New file.
2399 * cgen-engine.h: New file.
2400 * cgen-scache.h: New file.
2401 * cgen-sim.h: Delete portions moved to new files.
2402 * genmloop.sh: Generate two files eng.hin,mloop.cin explicitly,
2403 rather than sending result to stdout.
2404
2405Fri Oct 9 14:20:22 1998 Doug Evans <devans@seba.cygnus.com>
2406
2407 * Make-common.in (sim-reg.o): New rule.
2408 (cgen-run.o): New rule.
2409 * cgen-ops.h: Delete many BI macros. Change all UBI -> BI.
2410 * cgen-run.c (prime_cpu): New function.
2411 * cgen-scache.c: Add pseudo-basic-block (pbb) scaching support.
2412 (scache_option_handler, case OPTION_PROFILE_SCACHE): Handle explicitly
2413 mentioned cpu.
2414 (scache_flush_cpu,scache_lookup,scache_lookup_or_alloc): New fns.
2415 * cgen-sim.h (CGEN_INSN_VIRTUAL_TYPE): New enum.
2416 (CGEN_INSN_VIRTUAL_P): New macro.
2417 (SEM_PC): New typedef.
2418 (SEMANTIC_FN): Change type of result to SEM_PC.
2419 (SEM_SET_FULL_CODE,SEM_SET_FAST_CODE,SEM_SET_CODE): New macros.
2420 (IDESC_CTI_P,IDESC_SKIP_P): New macros.
2421 (SCACHE_MAP): New typedef.
2422 (CPU_SCACHE): Add pbb support.
2423 (scace_lookup,scache_lookup_or_alloc,scache_flush_cpu): Declare.
2424 (SEM_BRANCH_INIT_EXTRACT,SEM_BRANCH_INIT,SEM_BRANCH_FINI): New macros.
2425 (CGEN_CPU): New members running_p,insn_count,{fast,full}_engine_fn,
2426 max_slice_insns.
2427 (INSN_NAME): Delete.
2428 (cgen_insn_name): Declare.
2429 (sim_engine_invalid_insn): Renamed from sim_engine_illegal_insn.
2430 * cgen-trace.c (trace_buf): Shrink from 1024 to 256 bytes.
2431 (first_insn_p): Make static.
2432 (trace_insn): Handle virtual insns specially.
2433 (cgen_trace_printf): Ensure we haven't overflowed the buffer.
2434 * cgen-types.h (UBI): Delete.
2435 (MODE_TYPE): New enum.
2436 (HOSTINT,HOSTUINT,HOSTPTR): Delete.
2437 * cgen-utils.c (mode_names): Delete UBI. Add INT,UINT,PTR.
2438 (cgen_virtual_opcode_table): New global.
2439 (cgen_insn_name): New function.
2440 (sim_disassemble_insn): Ignore virtual insns.
2441 * genmloop.sh: Delete top level loop generation. Add pbb support.
2442 * sim-cpu.h (CPU_INSN_NAME_FN): New typedef.
2443 (sim_cpu_base): New members max_insns,insn_name,model_data.
2444 (CPU_PC_GET,CPU_PC_SET): New macros.
2445 (sim_pc_get,sim_pc_set): Declare.
2446 * sim-model.c (model_set): Call model init fn.
2447 * sim-model.h (MODEL_FN): New typedef.
2448 (INSN_TIMING): New member model_fn.
2449 (MODEL): New members num,init.
2450 * sim-profile.c (sim_profile_print_bar): Renamed from print_bar.
2451 All callers updated.
2452 (profile_insn_init): New fn.
2453 (profile_print_insn): Update, INSN_NAME -> CPU_INSN_NAME.
2454 Exit early if insn profiling not supported.
2455 (profile_print_memory): Update, MAX_MODES -> MODE_TARGET_MAX.
2456 (profile_install): Record profile_insn_init as init fn.
2457 (profile_uninstall): Free PROFILE_INSN_COUNT if non-null.
2458 * sim-profile.h: Update, MAX_MODES -> MODE_TARGET_MAX.
2459 (PROFILE_DATA): Delete member exec_time.
2460 Change insn_count to pointer to array, rather than the array.
2461 (sim_profile_print_bar): Declare.
2462
2463Wed Oct 7 16:56:42 1998 Doug Evans <devans@seba.cygnus.com>
2464
2465 * cgen-run.c: New file.
2466 * sim-reg.c: New file.
2467
2468Mon Sep 14 10:58:19 1998 Frank Ch. Eigler <fche@cygnus.com>
2469
2470 * aclocal.m4: Add checks for -lsocket and -lnsl.
2471
2472 * dv-sockser.c (dv_sockser_init): Use SO_REUSEADDR to
2473 allow local port reuse on listening socket.
2474
2475Tue Sep 1 15:36:52 1998 Frank Ch. Eigler <fche@cygnus.com>
2476
2477 * sim-config.h: Remove reference to linux kernel header.
2478
2479Tue Aug 25 12:45:27 1998 Frank Ch. Eigler <fche@cygnus.com>
2480
2481 * dv-sockser.c (sockser_addr): Make variable non-static.
2482
2483Mon Aug 24 11:47:37 1998 Joyce Janczyn <janczyn@cygnus.com>
2484
2485 * sim-hw.{c,h} (sim_hw_parse): Return struct hw pointer.
2486
2487Tue Aug 11 18:12:19 1998 Doug Evans <devans@canuck.cygnus.com>
2488
2489 * sim-events.c (sim_events_elapsed_time): Fix calculation.
2490
2491Tue Aug 4 20:36:46 1998 Jeff Holcomb <jeffh@cygnus.com>
2492
2493 * Make-common.in (install-common): Add $(EXEEXT) when installing
2494 run.
2495
2496Mon Aug 3 11:46:01 1998 Doug Evans <devans@seba.cygnus.com>
2497
2498 * cgen-sim.h (cgen_state): New member opcode_table.
2499 * cgen-utils.c (sim_disassemble_insn): Use it.
2500
2501Fri Jul 24 10:14:18 1998 Doug Evans <devans@canuck.cygnus.com>
2502
2503 * cgen-mem.h (DECLARE_SETT): Fix return type.
2504 * cgen-sim.h (sim_engine_illegal_insn): Declare.
2505 * cgen-scache.c: Include stdlib.h.
2506 * cgen-trace.c (trace_extract): Use %lx for PCADDR.
2507 * sim-model.c (model_option_handler): Remove unused variable `n'.
2508
2509Tue Jul 21 16:27:43 1998 Doug Evans <devans@seba.cygnus.com>
2510
2511 * cgen-utils.c: Include bfd.h.
2512 (sim_disassemble_insn): Update call to CGEN_EXTRACT_FN.
2513
2514Wed Jul 8 18:24:10 1998 Jeffrey A Law (law@cygnus.com)
2515
2516 * sim-bits.h (EXTEND24): Fix typo.
2517
2518Wed Jul 8 17:41:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
2519
2520 * sim-events.c (ETRACE_P): New macro.
2521 (struct _sim_event): Add member trace.
2522 (sim_events_free): Reclaim trace message.
2523
2524 * sim-events.c, sim-events.h (sim_events_schedule_vtracef,
2525 sim_events_schedule_tracef): New functions, include printf trace
2526 information in argument list. If tracing, store asprintf'd trace
2527 message in sim_event.
2528
2529 * hw-events.c, hw-events.h (hw_event_queue_schedule_tracef,
2530 hw_event_queue_schedule_vtracef): New functions, mimic
2531 sim_event_tracef.
2532
2533Mon Jul 6 15:51:14 1998 Jeffrey A Law (law@cygnus.com)
2534
2535 * sim-bits.h (EXTEND24): Define.
2536
2537Thu Jul 2 17:13:25 1998 Doug Evans <devans@seba.cygnus.com>
2538
2539 * cgen-sim.h (CPU_SCACHE): Make size unsigned.
2540 (CPU_SCACHE_HASH_MASK): New macro.
2541 (SCACHE_HASH_PC): Rewrite.
2542 * genmloop.sh (engine_resume_{full,fast}): Move some of hash
2543 computation out of main loop.
2544
2545Wed Jul 1 16:44:12 1998 Doug Evans <devans@seba.cygnus.com>
2546
c906108c
SS
2547 * cgen-sim.h (RECORD_IADDR): Delete.
2548 * cgen-types.h (HOSTINT,HOSTUINT,HOSTPTR): New types.
2549 * genmloop.sh (engine_resume_{full,fast}): Delete icount.
2550
2551Wed Jun 17 12:25:08 1998 Mark Alexander <marka@cygnus.com>
2552
2553 * gennltvals.def (mn10200): Add entry.
2554 * nltvals.def: Regenerate with MN10200 additions.
2555
2556Wed Jun 17 13:18:28 1998 Andrew Cagney <cagney@b1.cygnus.com>
2557
2558 * sim-inline.h (EXTERN_*): Replace with EXTERN_*_P. Correct
2559 documentation on how it works.
2560
2561 * sim-core.h, sim-core.c (sim_core_install, sim_core_attach,
2562 sim_core_detach, sim_core_read_buffer, sim_core_write_buffer,
2563 sim_core_set_xor, sim_core_xor_read_buffer,
2564 sim_core_xor_write_buffer): Update.
2565
2566 * sim-events.h, sim-events.c (sim_events_install,
2567 sim_events_watch_clock, sim_events_schedule_after_signal,
2568 sim_events_schedule, sim_events_watch_sim, sim_events_watch_core,
2569 sim_events_deschedule): Update.
2570
2571 * sim-fpu.h, sim-fpu.c (sim_fpu_zero, sim_fpu_one, sim_fpu_two,
2572 sim_fpu_max32, sim_fpu_max64): Update.
2573
2574Sat Jun 13 07:45:38 1998 Doug Evans <devans@fallis.cygnus.com>
2575
2576 * cgen-trace.c (trace_insn_fini): Redo cycle handling.
2577 * sim-profile.h (PROFILE_DATA): Rename cycle handling members.
2578 * sim-profile.c (profile_print_model): Update.
2579
2580Fri Jun 12 18:35:07 1998 Doug Evans <devans@seba.cygnus.com>
2581
2582 * gennltvals.def (m32r): Use common syscall.h now.
2583 (mn10300): Add entry.
2584 * nltvals.def: Regenerate.
2585
2586 * sim-engine.c (sim_engine_get_run_state): New function.
2587 * sim-engine.h (sim_engine_get_run_state): Declare it.
2588
2589Thu Jun 11 00:50:03 1998 Doug Evans <devans@seba.cygnus.com>
2590
2591 * sim-core.h (SIM_CORE_SIGNAL_FN): New typedef.
2592 * sim-core.c (sim_core_signal): Make extern, always define.
2593
2594Wed Jun 10 16:02:29 1998 Doug Evans <devans@seba.cygnus.com>
2595
2596 * Make-common.in (CGEN_FLAGS_TO_PASS): New variable.
2597 * cgen-ops.h (ANDIF): New macro.
2598 (ANDIF[BQHSD]I): Delete.
2599
2600Thu Jun 4 13:53:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
2601
2602 * hw-events.c (create_hw_event, delete_hw_event): Delete.
2603 (hw_event_queue_schedule, hw_event_queue_deschedule,
2604 bounce_hw_event): Fix hw-event memory corruptions found by Joyce
2605 Janczyn.
2606
2607 * hw-alloc.h (HW_NZALLOC): Define.
2608
2609 * Make-common.in (test-hw-events): Add target for testing the
2610 hw-event code.
2611
2612Mon May 25 21:11:26 1998 Andrew Cagney <cagney@b1.cygnus.com>
2613
2614 * Make-common.in (SIM_COMMON_HW_OBJS): Add hw-handles.o and
2615 hw-instances.o.
2616 hw-handles.c, hw-instances.c, hw-handles.h, hw-instances.h: New
2617 files.
2618 * hw-main.h: Include hw-handles.h, hw-instances.h.
2619 * hw-base.h ({create,delete}_hw_{handles,instances}_data): Declare
2620 * hw-base.c (hw_create, hw_delete): Call same.
2621
2622Mon May 25 18:55:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
2623
2624 * dv-core.c: Include hw-main.h and sim-main.h.
2625 * dv-pal.c: Include hw-main.h and sim-io.h.
2626 * dv-glue.c: Include hw-main.h.
2627
2628 * hw-main.h: New file. Move list of includes to here.
2629 * hw-base.h: From here.
2630 * Make-common.in (hw_base_headers): Rename to hw_main_headers.
2631 (hw-*.o, dv-*.o): Update.
2632 * hw-tree.c, hw-base.c, hw-properties.c, hw-ports.c, hw-device.c,
2633 hw-events.c, hw-alloc.c, sim-hw.c: Include hw-main.h instead of
2634 sim-main.h.
2635
2636 * hw-base.h (do_hw_attach_regs, do_hw_poll_read_method,
2637 do_hw_poll_read): Move declarations from here.
2638 * hw-main.h: To here.
2639
2640 * hw-base.h (struct hw_device_descriptor, hw_finish_callback):
2641 Move from here.
2642 * hw-main.h (struct hw_descriptor, hw_finish_method): To here,
2643 rename.
2644 * Make-common.in (hw-config.h): Update
2645 * hw-base.c, dv-pal.c, dv-glue.c: Update
2646
2647 * dv-glue.c, hw-device.h, hw-base.h, hw-ports.c: Rename
2648 `*_callback' to `*_method.
2649
2650Mon May 25 18:41:18 1998 Andrew Cagney <cagney@b1.cygnus.com>
2651
2652 * hw-base.h (set_*): Move set method macros from here.
2653 * hw-device.h: To here.
2654
2655Mon May 25 18:21:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
2656
2657 * hw-base.h (create_hw_property_data, delete_hw_property_data):
2658 Declare.
2659
2660 * hw-base.c (hw_create, hw_delete): Call
2661 * hw-properties.c (create_hw_property_data,
2662 delete_hw_property_data): Define.
2663
2664Mon May 25 17:40:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
2665
2666 * hw-device.c, hw-properties.c: Include hw-base.h
2667
2668 * hw-alloc.h, hw-alloc.c: New files. Move alloc code to here.
2669 * hw-device.c: From here.
2670 * hw-base.h: Include "hw-events.h".
2671
2672 * hw-base.h (create_hw_alloc_data, delete_hw_alloc_data): Declare.
2673 * hw-base.c (hw_create, hw_delete): Call.
2674 * hw-alloc.c (create_hw_alloc_data, delete_hw_alloc_data): Define.
2675
2676 * Make-common.in (SIM_NEW_COMMON_OBJS): Add hw-alloc.o.
2677 (hw-alloc.o): New target.
2678
2679Mon May 25 17:14:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
2680
2681 * hw-events.h, hw-events.c: New files. Move event code to here.
2682 * sim-hw.c: From here.
2683 * hw-base.h: Include "hw-events.h".
2684 * Make-common.in (SIM_NEW_COMMON_OBJS): Add hw-events.o.
2685 (hw-events.o): New target.
2686
2687 * hw-device.h (struct hw): Add struct hw_event_data events_of_hw.
2688 * hw-events.h (struct hw_event): Replace typedef hw_event.
2689
2690 * hw-base.h (create_hw_event_data, delete_hw_event_data): Declare.
2691 * hw-base.c (hw_create, hw_delete): Call.
2692 * hw-events.c (create_hw_event_data, delete_hw_event_data): Define.
2693
2694 * dv-pal.c: Update.
2695
2696Mon May 25 16:55:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
2697
2698 * hw-base.c (panic_hw_port_event, empty_hw_ports): Move from here.
2699 * hw-ports.c: To here.
2700
2701 * hw-base.h, hw-ports.c (create_hw_port_data,
2702 delete_hw_port_data): New functions.
2703 * hw-base.c (hw_delete, hw_create): Call same.
2704
2705 * hw-base.h (set_hw_ports, set_hw_port_event): Move set functions
2706 from here.
2707 * hw-ports.h: To here.
2708
2709Mon May 25 16:42:48 1998 Andrew Cagney <cagney@b1.cygnus.com>
2710
2711 * hw-device.c (hw_ioctl), hw-device.h (hw_ioctl_callback): Drop
2712 PROCESSOR and CIA arguments.
2713
2714Fri May 22 12:16:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
2715
2716 * aclocal.m4 (SIM_AC_OPTION_HW): Add enable / disable argument.
2717 Move common object files from here.
2718 * Make-common.in (SIM_COMMON_HW_OBJS): To here.
2719
2720Thu May 21 17:57:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
2721
2722 * sim-hw.c: Include ctype.h.
2723 (do_hw_poll_read): Do not assume EAGAIN.
2724
2725Wed May 20 04:37:57 1998 Doug Evans <devans@seba.cygnus.com>
2726
2727 * cgen-trace.c (first_insn_p): New static local.
2728 (trace_insn_init): Set it.
2729 (trace_insn_fini): Use TRACE_PREFIX.
2730 (trace_insn): Rewrite to use trace_prefix.
2731 * sim-trace.c (trace_prefix): Don't print filename arg if NULL.
2732 Adjust width accordingly.
2733
2734 * sim-profile.h (PROFILE_DATA): New member profile_any_p.
2735 (PROFILE_ANY_P,PROFILE_INSN_P,PROFILE_MEMORY): New macros.
2736 (PROFILE_SCACHE_P,PROFILE_PC_P,PROFILE_CORE_P): New macros.
2737 (PROFILE_COUNT_INSN,PROFILE_COUNT_READ,PROFILE_COUNT_WRITE): Simplify.
2738 (PROFILE_COUNT_CORE): Simplify.
2739 * sim-profile.c (profile_option_handler): Compute profile_any_p.
2740
2741Tue May 19 23:55:30 1998 Doug Evans <devans@seba.cygnus.com>
2742
2743 * cgen-ops.h (ADDCFSI): Fix typo.
2744
2745Sat May 16 12:44:52 1998 Doug Evans <devans@seba.cygnus.com>
2746
2747 * cgen-sim.h (CGEN_CPU): New members idesc_{read,sem}_init_p.
2748 * genmloop.sh: Use them rather than static locals.
2749
2750 * sim-engine.c (sim_engine_set_run_state): New function.
2751 * sim-engine.h (sim_engine_set_run_state): Declare.
2752 * genmloop.sh (pending_reason,pending_sigrc): New static locals.
2753 (@cpu@_engine_stop): New args reason,sigrc. All callers updated.
2754 (engine_resume): Reorganize. Allow synchronous exit from main loop.
2755
2756Fri May 15 16:06:05 1998 Doug Evans <devans@seba.cygnus.com>
2757
2758 * cgen-trace.c (trace_insn_init): New arg first_p.
2759 All callers updated.
2760 (trace_insn_fini): New arg last_p. All callers updated.
2761 * cgen-trace.h (trace_insn_init,trace_insn_fini): Update.
2762 (TRACE_INSN_INIT,TRACE_INSN_FINI): Update.
2763 * genmloop.sh (engine_resume): Update.
2764
2765Fri May 15 15:59:00 1998 Joyce Janczyn <janczyn@cygnus.com>
2766
2767 * Make-common.in (install-common): Run ranlib on installed copy of
2768 libsim.a.
2769
2770Fri May 15 15:03:00 1998 Joyce Janczyn <janczyn@cygnus.com>
2771
2772 * Make-common.in (install-common): Rename and install libsim.a.
2773
2774Tue May 12 15:23:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
2775
2776 * sim-io.c (unistd.h): Include.
2777
2778Wed May 6 16:04:18 1998 Doug Evans <devans@seba.cygnus.com>
2779
2780 * Make-common (sim_main_headers): Sort.
2781 (cgen-*.o): Add cgen-sim.h dependency.
2782
2783 * cgen-scache.c (scache_init): Only allocate space if scache element
2784 size is non-zero.
2785 (scache_flush,scache_print_profile): Check if scache in use first.
2786
2787 * cgen-sim.h (IDESC): Provide forward declaration.
2788 (DECODE): Delete.
2789 (CGEN_CPU): Always define scache member. New members idesc,opcode.
2790 (cgen_cpu_max_extra_bytes): Declare.
2791 * cgen-utils.c (cgen_cpu_max_extra_bytes): New function.
2792
c906108c
SS
2793 * sim-cpu.h: New file. sim_cpu_base moved here.
2794 Move sim_cpu_lookup decl here.
2795 * sim-base.h: #include "sim-cpu.h".
2796 * sim-cpu.c: New file.
2797 * Make-common (sim_main_headers): Add sim-cpu.h.
2798 (sim-cpu.o): Add rule for.
2799
2800 * sim-model.c (set_model): Delete.
2801 (sim_model_set,model_set): New functions.
2802 (sim_model_install): Renamed from model_install.
2803 Don't set default model here.
2804 (model_option_handler): Rewrite --model processing.
2805 (sim_model_lookup,sim_mach_lookup): New functions.
2806 * sim-model.h (MAX_MODELS,MAX_INSNS): Delete.
2807 (insn_timing): Delete.
2808 (INSN_TIMING): New member `num'.
2809 (IMP_PROPERTIES): Always define scache_elm_size member.
2810 (MACH): New member init_cpu.
2811 (sim_machs): Renamed from machs.
2812 (sim_model_install): Renamed from model_install.
2813 (sim_model_set,sim_model_lookup,sim_mach_lookup): Declare.
2814 * sim-module.c (modules): Update.
2815
2816 * sim-profile.c (profile_print_insn): Add cpu arg to INSN_NAME macro.
2817
2818 * sim-io.c: #include <errno.h>.
2819
2820Wed May 6 12:39:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
2821
2822 * dv-pal.c (struct hw_pal_device): Add reader.
2823 (hw_pal_finish): Initialize reader.
2824 (scan_hw_pal): Use reader.
2825
2826 * hw-base.h, sim-hw.c (do_hw_poll_read): New function.
2827 (HW_IO_EOF, HW_IO_NOT_READY): Define.
2828 * dv-pal.c: Use.
2829
2830 * sim-io.h, sim-io.c (sim_io_poll_read): New function. Copy from
2831 ../ppc/main.c sim_io_read_stdin.
2832
2833Fri May 1 12:11:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
2834
2835 * hw-tree.h (hw_tree_print): Paramaterize with print and file
2836 arguments.
2837 * hw-tree.c: Update.
2838
2839 * hw-base.h (hw_port_event_callback): Delete CPU/CIA args.
2840 * hw-device.h (hw_io_read_buffer, hw_io_write_buffer): Delete
2841 CPU/CIA args.
2842 * hw-ports.h (hw_port_event): Ditto.
2843 * hw-ports.c (hw_port_event): Update.
2844 * hw-base.c (panic_hw_io_read_buffer, panic_hw_io_write_buffer):
2845 Update.
2846 * dv-pal.c (hw_pal_io_read_buffer, hw_pal_io_write_buffer):
2847 Update.
2848 (hw_pal_io_write_buffer): Call hw_halt not sim_engine_halt.
2849 (do_counter_event): Update.
2850 * dv-glue.c (hw_glue_io_read_buffer): Update.
2851 (hw_glue_port_event): Update.
2852
2853 * hw-device.h (SIM_DESC): Replace with struct sim_state.
2854 * hw-base.h (hw_create): Ditto.
2855 * hw-base.c (hw_create): Ditto.
2856
2857 * hw-device.c (hw_abort, hw_trace, hw_hw_event_queue_schedule,
2858 hw_event_queue_deschedule, hw_event_queue_time): Delete, moved
2859 from here to.
2860 * sim-hw.c: Here.
2861 * hw-device.h (hw_system_cpu): Declare.
2862 * sim-hw.c (hw_system_cpu): New function.
2863
2864 * sim-core.c (sim_core_map_attach, sim_core_attach): Call
2865 sim_hw_abort not hw_abort.
2866 (sim-hw.h): Include.
2867 (sim_core_read_buffer, sim_core_write_buffer): Call
2868 sim_hw_io_read_buffer and sim_hw_io_write_buffer. Do not pass CPU
2869 argument.
2870 (sim_core_set_xor): Do not pass CPU when aborting.
2871
2872 * sim-n-core.h (sim_core_read_aligned_N,
2873 sim_core_write_aligned_N): Call sim_hw_abort not hw_abort.
2874 (sim_core_read_aligned_N, sim_core_write_aligned_N): Call
2875 sim_cpu_hw_io_read_buffer and sim_cpu_hw_io_write_buffer. Does not
2876 return length.
2877
2878 * sim-hw.h: Declare sim_hw_io_{read,write}_buffer. Declare
2879 sim_hw_print.
2880 * sim-hw.c (sim_hw_io_read_buffer, sim_hw_io_write_buffer,
2881 sim_cpu_hw_io_read_buffer, sim_cpu_hw_io_write_buffer): New
2882 functions.
2883 (sim_hw_print): New function.
2884
2885 * sim-engine.h (sim_engine_vabort): Declare.
2886 * sim-engine.c (sim_engine_vabort): New function.
2887
2888Wed Apr 29 23:58:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
2889
2890 * sim-trace.c (print_data): For floating-point numbers trace raw
2891 hex value.
2892 (trace_result_fp2): New function.
2893 * sim-trace.h (trace_result_fp2): New declaration.
2894 (TRACE_FP_RESULT2): New macro.
2895
2896Tue Apr 28 18:28:58 1998 Geoffrey Noer <noer@cygnus.com>
2897
2898 * common/aclocal.m4: call AM_EXEEXT in SIM_AC_COMMON, define
2899 AM_CYGWIN32 and AM_EXEEXT.
2900 * common/Make-common.in: set EXEEXT, add missing EXEEXTs
2901 to run and install-common rules.
2902 * common/configure: regenerate
2903
2904Sat Apr 25 17:45:01 1998 Andrew Cagney <cagney@b1.cygnus.com>
2905
2906 * sim-types.h (cell_word): New type.
2907 (natural_cell): Delete type.
2908
2909Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
2910
2911 * configure: Regenerated to track ../common/aclocal.m4 changes.
2912 * config.in: Ditto.
2913
2914Sun Apr 26 15:25:07 1998 Tom Tromey <tromey@cygnus.com>
2915
2916 * acconfig.h (NEED_DECLARATION_PRINTF): Removed.
2917
2918Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
2919
2920 * configure: Regenerated to track ../common/aclocal.m4 changes.
2921 * config.in: Ditto.
2922
2923Fri Apr 24 11:38:08 1998 Tom Tromey <tromey@cygnus.com>
2924
2925 * acconfig.h: New file.
2926 * Make-common.in (top_builddir): New macro.
2927 (INTL_LIB): Removed.
2928 (INTLLIBS): New macro.
2929 (INTLDEPS): Likewise.
2930 (LIBDEPS): Use INTLDEPS.
2931 (EXTRA_LIBS): Use INTLLIBS.
2932 * aclocal.m4 (SIM_AC_COMMON): Call CY_GNU_GETTEXT.
2933 (CY_WITH_NLS, CY_GNU_GETTEXT, AM_PATH_PROG_WITH_TEST,
2934 AM_LC_MESSAGES): New macros from GNU gettext.
2935
2936Fri Apr 24 19:57:59 1998 Andrew Cagney <cagney@b1.cygnus.com>
2937
2938 * sim-config.h: Discard leading _ from macros.
2939 * sim-types.h: Ditto.
2940
2941Wed Apr 22 14:14:19 1998 Michael Meissner <meissner@cygnus.com>
2942
2943 * Make-common.in (CSEARCH): Add -I to intl directories.
2944 (INTL_LIB): Point to libintl.a.
2945 (LIBDEPS): Add $(INTL_LIB).
2946 (EXTRA_LIBS): Ditto.
2947
2948Tue Apr 21 12:44:27 1998 Doug Evans <devans@canuck.cygnus.com>
2949
2950 * cgen-types.h (GETHIDI,MAKEDI): Tweak.
2951
2952 * cgen-ops.h (ADDCFSI): Fix.
2953 (SUBCFSI): Tweak.
2954
2955Tue Apr 21 13:18:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
2956
2957 * sim-types.h (signed_address, unsigned_address): Define.
2958
2959Mon Apr 20 21:47:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
2960
2961 * sim-fpu.c (sim_fpu_2d): Don't return an SNaN, convert it into a
2962 QNaN.
2963
2964Thu Apr 16 10:30:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
2965
2966 * sim-fpu.c, sim-fpu.h (sim_fpu_fractionto, sim_fpu_tofraction):
2967 New functions, pack / unpack sim_fpu struct using raw values.
2968 (sim_fpu_is): Differentiate between negative and positive
2969 infinity.
2970
2971Tue Apr 14 18:49:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
2972
2973 * sim-bits.h (EXTEND4): Define.
2974 (EXTEND4, EXTEND15, EXTEND11): Ditto.
2975
2976Tue Apr 14 16:31:35 1998 John Metzler <jmetzler@cygnus.com>
2977
2978 * sim-memopt.c (parse_addr): Sunos 4.5 does not have strtol
2979 declared so we need this cast to prevent long long addresses
2980 from being misconfigures. Results in access to unmapped memory.
2981
2982Tue Apr 14 13:19:14 1998 Doug Evans <devans@canuck.cygnus.com>
2983
2984 * Make-common.in (RUNTESTFLAGS): Define.
2985 (check): Pass RUNTESTFLAGS to recursive make.
2986
2987Tue Apr 14 15:09:19 1998 Andrew Cagney <cagney@b1.cygnus.com>
2988
2989 * sim-info.c (sim_info): Be verbose when either VERBOSE or
2990 STATE_VERBOSE_P.
2991
2992Sat Apr 4 23:24:17 1998 Andrew Cagney <cagney@b1.cygnus.com>
2993
2994 * aclocal.m4 (sim-inline): By default, disable sim-inline when
2995 cross compiling.
2996
2997Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
2998
2999 * aclocal.m4 (sim-cflags): Add -fomit-frame-pointer to defaults.
3000 (sim-inline): Update to match sim-inline.[hc]
3001 * configure: Regenerated to track ../common/aclocal.m4 changes.
3002
3003 * Make-common.in (sim_main_headers): Add sim-inline.h
3004
3005 * sim-bits.h (sim-bits.c): Include when H_REVEALS_MODULE_P.
3006 selected.
3007 * sim-endian.h (sim-endian.c): Ditto.
3008
3009 * sim-events.h (_SIM_EVENTS_H_): Replace with SIM_EVENTS_H.
3010 (sim_events_set_trace): Delete unused prototype.
3011
3012 * sim-core.h (_SIM_CORE_H_): Replace with SIM_CORE_H.
3013 * sim-core.c (_SIM_CORE_C_): Ditto for SIM_CORE_C.
3014
3015 * sim-fpu.h (sim-fpu.c): Include when H_REVEALS_MODULE_P.
3016 (sim_fpu_to232i, sim_fpu_to232u, sim_fpu_i232to, sim_fpu_u232to):
3017 Comment out, not yet implemented in sim-fpu.c.
3018 (sim_fpu_zero, sim_fpu_one, sim_fpu_two, sim_fpu_qnan,
3019 sim_fpu_max32, sim_fpu_max64): Mark as EXTERN_SIM_FPU.
3020
3021 * sim-inline.h: Rewrite description.
3022 (H_REVEALS_MODULE_P, C_REVEALS_MODULE_P): Define.
3023 (SIM_MAIN_INLINE): Add inline option.
3024
3025 * sim-inline.c (semantics.c, idecode.c, engine.c, ...): Do not
3026 include generated files. Handled by generator directly.
3027
3028Sat Apr 4 01:07:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
3029
3030 * sim-trace.c (set_trace_option_mask): Keep TRACE_ANY_P
3031 up-to-date.
3032
3033 * sim-trace.h (TRACE_ANY_P): Define.
3034 (struct _trace_data): Add trace_any_p.
3035
3036Mon Mar 30 17:11:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
3037
3038 * run.c (main): Handle all alternatives of enum sim_stop.
3039 (main): Delete unused `asection *s'.
3040
3041Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
3042
3043 * hw-tree.h, hw-tree.c (hw_tree_vparse): New function
3044
3045 * configure: Regenerated to track ../common/aclocal.m4 changes.
3046
3047 * sim-hw.c: New file.
3048 * sim-hw.h (sim_hw_parse): Declare function.
3049 (hw-tree.h): Do not include.
3050
3051 * sim-base.h (STATE_HW): Define.
3052 (struct sim_state_base): Add member struct *hw.
3053
3054 * sim-module.c (sim-hw.h): Include.
3055 (modules): Add sim_hw_install.
3056
3057 * aclocal.m4 (sim_hw_obj): Add sim-hw.o
3058
3059Fri Mar 27 14:55:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
3060
3061 * sim-base.h (CPU_INDEX): Define.
3062
3063 * sim-utils.c (sim_state_alloc): Initialize.
3064 * sim-module.c (sim_post_argv_init): Ditto.
3065
3066Thu Mar 26 10:07:57 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
3067
3068 * aclocal.m4 (sim_hw_obj): Fix sed expression to generate
3069 properly formatted lists.
3070
3071Thu Mar 26 10:37:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
3072
3073 * dv-pal.c (enum hw_pal_address_mask): From Stu Grossman, was
3074 0x2f needs to be 0x3f.
3075
3076Thu Mar 26 09:10:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
3077
3078 * hw-tree.c (hw_tree_find_property): Return NULL when device is
3079 not found.
3080 (hw_tree_find_*_property): Clean up error message when property is
3081 not found.
3082
3083 * dv-pal.c (hw_pal_io_read_buffer): Check the smp property is
3084 present before looking for it.
3085
3086Wed Mar 25 16:17:38 1998 Ian Carmichael <iancarm@cygnus.com>
3087
3088 * aclocal.m4 (AC_CHECK_HEADERS): Add check for fpu_control.h.
3089 (AC_CHECK_FUNCS): Add check for __setfpucw.
3090 * configure: Regenerated.
3091
3092Wed Mar 25 09:18:34 1998 Andrew Cagney <cagney@b1.cygnus.com>
3093
3094 * dv-pal.c (hw_pal_countdown, hw_pal_countdown_value,
3095 hw_pal_timer, hw_pal_timer_value): Define.
3096 (hw_pal_io_read_buffer, hw_pal_io_write_buffer): Add timer support
3097 (do_counter_event, do_counter_read, do_counter_value,
3098 do_counter_write): new functions.
3099
3100Tue Mar 24 12:24:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
3101
3102 * hw-tree.c (hw_printf): Send tree dump to stderr, same as other
3103 trace output.
3104
3105 * hw-base.c (hw_create): Stop searching for a device when one is
3106 found.
3107
3108Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
3109
3110 * configure: Regenerated to track ../common/aclocal.m4 changes.
3111
3112Mon Mar 23 10:25:08 1998 Andrew Cagney <cagney@b1.cygnus.com>
3113
3114 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Add second argument,
3115 appends extra devices.
3116 (SIM_AC_OPTION_HARDWARE): Substute sim_hw, a non-duplicate list of
3117 the device names.
3118
3119 * Make-common.in (hw-config.h): New target, create hw-config.h
3120 file.
3121 (SIM_HW): Definition from @sim_hw@.
3122 (hw-base.o): Depend on hw-config.h
3123
3124Tue Mar 24 17:41:35 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
3125
3126 * Make-common.in: Get SHELL from configure.
3127 * (stamp-tvals sim-inline.c): Use $(SHELL) when invoking
3128 move-if-change. Fixes NT native build problem.
3129 * Makefile.in (nltvals.def): Use $(SHELL) when invoking
3130 move-if-change. Fixes NT native build problem.
3131 * configure: Regenerate with autoconf 2.12.1 to fix shell issues for
3132 NT native builds.
3133
3134Sun Mar 22 16:54:40 1998 Andrew Cagney <cagney@b1.cygnus.com>
3135
3136 * hw-device.h, hw-device.c (hw_strdup): New function.
3137
3138 * hw-base.c (hw_create): Use hw_strdup when saving a copy of the
3139 strings name, family and args.
3140 (full_name_of_hw): Use hw_strdup when returning the full path.
3141
3142 * hw-properties.c: Clean up property not found / wrong type error
3143 messages.
3144
3145 * hw-tree.c (hw_tree_parse): Finish a devices initialization
3146 before attaching any ports.
3147
3148 * hw-base.c (hw-config.): Include. Replace hardwired table.
3149
3150 * dv-glue.c: Copy over ../ppc/hw_glue.c. Update to new framework.
3151
3152 * Make-common.in: Add rule for dv-glue.o.
3153
3154Sun Mar 22 16:45:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
3155
3156 * hw-base.c (hw_finish): Move setting of trace level to here.
3157 (hw_create): From here.
3158
3159 * hw-base.h, hw-base.c (do_hw_attach_regs): Copy function from
3160 ../ppc/device_table.c.
3161
3162 * dv-pal.c (hw_pal_finish): Attach PAL device to parent bus.
3163
3164 * hw-tree.c (print_properties): Supress path when printing
3165 properties of root node.
3166
3167Sun Mar 22 16:21:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
3168
3169 * hw-device.h (HW_TRACE): Define.
3170 (hw_trace): Declare.
3171 * hw-device.c (hw_trace): Implement function.
3172
3173 * hw-base.c (hw_create): Set hw trace level from "trace?"
3174 property.
3175
3176 * dv-core.c (dv_core_attach_address_callback): Add trace.
3177
3178 * dv-pal.c: Replace DTRACE with HW_TRACE.
3179
3180Sun Mar 22 15:23:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
3181
3182 * hw-device.h (HW_ZALLOC, HW_MALLOC): New macros.
3183 (hw_alloc_data): Delcare.
3184 (struct hw): Add member alloc_of_hw.
3185
3186 * hw-device.c (hw_zalloc, hw_malloc, hw_free, hw_free_all): New
3187 functions. Assocate memory with a device.
3188 (stdlib.h): Include.
3189
3190 * hw-base.h (set_hw_delete): Define.
3191 (hw_delete_callback): Declare.
3192 (hw_delete): Declare.
3193
3194 * hw-base.c (hw_delete): Implement function.
3195 (struct hw_base_data): Add member to_delete.
3196 (ignore_hw_delete): New function, does nothing.
3197 (hw_create): Set the hw_delete method.
3198 (hw_create): Allocate the base type using HW_ZALLOC before setting
3199 any methods.
3200
3201 * hw-tree.h, hw-tree.c (hw_tree_delete): New function.
3202
3203 * hw-properties.c: Replace zalloc/zfree with hw_zalloc/hw_free.
3204
3205 * hw-ports.c: Replace zalloc/zfree with hw_zalloc/hw_free.
3206 (attach_hw_port_edge): Add struct hw argument
3207
3208 * dv-pal.c (hw_pal_finish): Replace zalloc/zfree with
3209 hw_zalloc/hw_free.
3210
3211Sun Mar 22 15:09:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
3212
3213 * hw-device.h (hw_attach_address_callback,
3214 hw_detach_address_callback): Attach to a single space not a space
3215 mask. Clarify interpretation of SPACE:ADDR parameters.
3216
3217 * hw-base.c (passthrough_hw_attach_address,
3218 passthrough_hw_detach_address): Update.
3219 * dv-core.c (dv_core_attach_address_callback): Ditto.
3220 * dv-pal.c (hw_pal_attach_address): Ditto.
3221
3222Thu Mar 19 00:41:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
3223
3224 * sim-options.h: Document additional CPU arg to OPTION_HANDLER.
3225
3226Wed Mar 18 14:13:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
3227
3228 * Make-common.in (SIM_HW_OBJS, SIM_HW_SRC, SIM_DV_OBJS): Define.
3229 (hw-base_h, hw-device_h, hw-handles_h, hw-instances_h, hw_ports_h,
3230 hw-properties_h, hw-tree_h): Define, point at corresponding
3231 header.
3232 (hw_base_headers): Define list of headers included by hw-base.h
3233 (hw-base.o, hw-device.o, hw-instances.o, hw-handles.o, hw-ports.o,
3234 hw-properties.o, hw-tree.o): Specify dependencies.
3235 (dv-core.o, dv-pal.o): Ditto.
3236
3237 * sim-hw.h: New file.
3238
3239 * hw-device.h, hw-device.c, hw-properties.h, hw-properties.c,
3240 hw-ports.h, hw-ports.c: New files. Copied from ../ppc/device.[ch].
3241
3242 * hw-tree.h, hw-tree.c: New files. Copied from ../ppc/tree.[hc].
3243
3244 * hw-base.h, hw-base.c: new files. Copied from
3245 ../ppc/device_table.[hc].
3246
3247 * dv-core.c, dv-pal.c: New files. Copied from
3248 ../ppc/hw_{core,pal}.c
3249
3250 * sim-basics.h (struct hw): Declare.
3251 (enum port_direction, enum object_disposition): Declare.
3252
3253Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
3254
3255 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Set sim_hw_obj, sim_dv_obj,
3256 sim_dv_src in Makefile. Take list of devices as parameter to m4
3257 macro..
3258
3259 * configure: Regenerated to track ../common/aclocal.m4 changes.
3260
3261Mon Mar 16 12:37:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
3262
3263 * sim-trace.h, sim-trace.c (trace_prefix): Pass in sim_cia so that
3264 trace_prefix can abort cleanly.
3265
3266Sat Mar 14 18:36:12 1998 Doug Evans <devans@seba.cygnus.com>
3267
3268 * dv-sockser.c, dv-sockser.h: New files.
3269 * Make-common.in (dv-sockser.o): Add rule for.
3270 * aclocal.m4: Check for fcntl.h.
3271 * config.h: Add HAVE_FCNTL_H.
3272
3273 * sim-break.c (remove_breakpoint): Fix thinko.
3274
3275 * sim-hload.c (sim_load): Provide default value of SIM_HANDLES_LMA.
3276 Use SIM_HANDLES_LMA for lma_p arg to sim_load_file.
3277
32781998-03-13 Fred Fish <fnf@cygnus.com>
3279
3280 * sim-base.h (struct sim_state_base): Add prog_syms and
3281 define macro STATE_PROG_SYMS.
3282 * sim-trace.c (trace_prefix): Add variables abfd, symsize,
3283 symbol_count, and asymbols. Call bfd_get_symtab_upper_bound
3284 and bfd_canonicalize_symtab, to get symbol table on first use
3285 and preserve it via STATE_PROG_SYMS for future calls to
3286 bfd_find_nearest_line.
3287
3288Wed Mar 11 14:02:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
3289
3290 * sim-core.h, sim-core.c (sim_core_map_to_str): Delete.
3291
3292 * sim-core.c (sim_core_attach): Handle a generic number of maps -
3293 up to nr_maps, not just access_* maps.
3294
3295 * sim-profile.h (struct PROFILE_DATA): Track nr_maps different
3296 maps.
3297
3298 * sim-profile.c (profile_print_core): Make map unsigned. Iterate
3299 over nr_maps not sim_core_nr_maps.
3300
3301 * sim-events.h, sim-events.c (sim_events_watch_core): Change
3302 core_map argument to unsigned.
3303 (struct _sim_core): Ditto for struct member core_map.
3304
3305 * sim-core.h (nr_sim_core_maps, sim_core_*_map): Delete
3306
3307 * sim-basics.h (access_io, access_*_io): Define.
3308 (map_read, map_write, map_exec, map_io): Define.
3309
3310 * sim-core.c, sim-core.h (sim_core_attach): Replace argument
3311 attach with more generic mapmask.
3312 (sim_core_{read,write}_*): Change map argument to unsigned.
3313
3314 * sim-core.c (sim_core_uninstall, sim_core_attach,
3315 sim_core_detach): Iterate over nr_maps instead of
3316 sim_core_nr_maps.
3317
3318 * sim-break.c (insert_breakpoint): Write breakpoints to exec_map
3319 instead of the write_map.
3320 (remove_breakpoint): Ditto.
3321
3322 * genmloop.sh (engine_resume_full): Replace sim_core_*_map
3323 with read_map, write_map, exec_map resp.
3324
3325 * cgen-mem.h (DECLARE_GETMEM, DECLARE_SETMEM, DECLARE_GETIMEM):
3326 Ditto.
3327
3328 * cgen-utils.c (sim_disassemble_insn): Ditto.
3329
3330 * sim-hrw.c (sim_write, sim_write): Ditto.
3331
3332 * sim-utils.h, sim-utils.c (access_to_str, map_to_str,
3333 transfer_to_str): New functions.
3334
3335Mon Mar 9 12:50:59 1998 Doug Evans <devans@seba.cygnus.com>
3336
3337 * sim-base.h (sim_state_base): New member environment.
3338 (STATE_ENVIRONMENT): New macro.
3339 * sim-config.c (current_environment): Delete.
3340 (sim_config_default): New function.
3341 (sim_config): Set STATE_ENVIRONMENT, not current_environment.
3342 * sim-config.h (current_environment,CURRENT_ENVIRONMENT): Delete.
3343 (sim_config_default): Add prototype.
3344 * sim-module.c (sim_pre_argv_init): Call sim_config_default.
3345 * sim-options.c (standard_option_handler, case OPTION_ENVIRONMENT):
3346 Set STATE_ENVIRONMENT, not current_environment.
3347
3348Mon Mar 9 11:59:03 1998 Jim Wilson <wilson@cygnus.com>
3349
3350 * sim-fpu.c (NR_GUARDS64): Change NR_PAD32 to NR_PAD64.
3351
3352Tue Mar 3 10:53:05 1998 Andrew Cagney <cagney@b1.cygnus.com>
3353
3354 * sim-types.h (SIGNED32, SIGNED64): Pacify GCC.
3355
3356 * sim-alu.h (ALU64_BEGIN): Make alu64_r unsigned.
3357
3358Mon Mar 2 10:20:06 1998 Doug Evans <devans@seba.cygnus.com>
3359
3360 * Make-common.in (TAGS): Make smarter.
3361 * Makefile.in (TAGS): Ditto.
3362
3363Fri Feb 27 19:09:57 1998 Doug Evans <devans@canuck.cygnus.com>
3364
3365 * sim-module.c (*): Fix typos in assertion tests.
3366
3367Sat Feb 28 13:54:10 1998 Andrew Cagney <cagney@b1.cygnus.com>
3368
3369 * sim-module.c (sim_pre_argv_init): String passed to asprintf
3370 can't be constant.
3371
3372 * sim-options.c (sim_parse_args): Ditto.
3373 (sim_args_command): Return OK, instead of nothing, for an empty
3374 command.
3375
3376Fri Feb 27 13:29:13 1998 Andrew Cagney <cagney@b1.cygnus.com>
3377
3378 * sim-profile.c (profile_info): Rename from profile_print. Drop
3379 misc and misc_cpu callback arguments. Use
3380 PROFILE_INFO_CPU_CALLBACK and STATE_PROFILE_INFO_CALLBACK instead.
3381 (profile_install): Install profile_info function.
3382
3383 * sim-profile.h (PROFILE_INFO_CPU_CALLBACK,
3384 STATE_PROFILE_INFO_CALLBACK): Define.
3385 (struct PROFILE_DATA): Add field info_cpu_callback.
3386 (profile_print): Delete function.
3387
3388 * sim-base.h (STATE_MODULES): Define. Replace individual
3389 STATE_*_LIST with single struct module_list.
3390
3391 * sim-module.h (MODULE_INFO_FN, MODULE_INFO_LIST): Declare.
3392 (struct module_list): Declare.
3393
3394 * sim-module.h, sim-module.c (sim_module_add_info_fn,
3395 sim_module_info): New functions.
3396 (sim_module_install): Clean up module data structures.
3397
3398 * sim-info.c (sim_info): New file. New function. Call
3399 sim_module_info.
3400
3401 * Make-common.in (sim-info.o): Define rule.
3402 (SIM_NEW_COMMON_OBJS): Add sim-info.o.
3403
3404
3405Fri Feb 27 18:26:16 1998 Doug Evans <devans@canuck.cygnus.com>
3406
3407 * sim-base.h (sim_cpu_base): New members name, options.
3408 (sim_cpu_lookup): Add prototype.
3409 * sim-module.c (sim_pre_argv_init): Provide default names for cpus.
3410 * sim-options.h (DECLARE_OPTION_HANDLER): New argument `cpu'.
3411 (sim_add_option_table): Update prototype.
3412 * sim-options.c (sim_add_option_table): New argument `cpu'.
3413 (standard_option_handler,standard_install): Update.
3414 (sim_parse_args): Handle cpu specific options.
3415 (print_help): New static function.
3416 (sim_print_help): Call it. Print cpu specific options.
3417 (find_match): New static function.
3418 (sim_args_command): Call it. Handle cpu specific options.
3419 * sim-utils.c (sim_cpu_lookup): New function.
3420 * sim-memopt.c (memory_option_handler): Update.
3421 (sim_memopt_install): Update.
3422 * sim-model.c (model_option_handler): Update.
3423 (model_install): Update.
3424 * sim-profile.c (profile_option_handler): Update.
3425 (profile_install): Update.
3426 * sim-trace.c (trace_option_handler): Update.
3427 (trace_install): Update.
3428 * sim-watch.c (watchpoint_option_handler): Update.
3429 (sim_watchpoint_install): Update.
3430 * cgen-scache.c (scache_option_handler): Update.
3431 (scache_install): Update.
3432
3433Wed Feb 25 11:00:26 1998 Doug Evans <devans@canuck.cygnus.com>
3434
3435 * Make-common.in (check): Run `make check' in testsuite dir.
3436
3437Wed Feb 25 14:40:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
3438
3439 * sim-trace.c (trace_result0): New function.
3440
3441 * sim-trace.h (TRACE_FP_*, TRACE_FPU_*): Rename TRACE_FPU_*
3442 macro's to TRACE_FP_*. TRACE_FPU_* should be defined and used when
3443 tracing sim_fpu variables.
3444 (TRACE_ALU_RESULT0): Define.
3445 (TRACE_FP_RESULT_WORD): Define.
3446 (TRACE_FP_INPUT_WORD1): Define.
3447
3448 * sim-fpu.c, sim-fpu.h (sim_fpu_max32, sim_fpu_max64, sim_fpu_one,
3449 sim_fpu_two): New constants.
3450 (sim_fpu_op1, sim_fpu_op2): New types.
3451 (struct _sim_fpu): Delete member result. Re-order other members.
3452 (sim_fpu_sign, sim_fpu_exp): New functions.
3453 (sim_fpu_max, sim_fpu_min): new functions.
3454 (EXPMAX32, EXPMAX64, NR_PAD32, NR_PAD64, NR_GUARDS32, NR_GUARDS64,
3455 NORMAL_EXPMAX32, NORMAL_EXPMAX64): Define.
3456
3457Tue Feb 24 22:45:39 1998 Doug Evans <devans@seba.cygnus.com>
3458
3459 * sim-profile.c (profile_print): Delete duplicate test of
3460 PROFILE_INSN_IDX.
3461 (profile_print_pc): Exit early if data collection not set up.
3462 (profile_print_core): Simplify by calling sim_core_map_to_str.
3463 * sim-core.h (sim_core_map_to_str): Declare.
3464 * sim-core.c (sim_core_map_to_str): Make non-static.
3465
3466 * genmloop.sh (engine_resume): Update insn_count before exiting.
3467 (engine_resume_full): Keep accurate core profile data.
3468
3469 * cgen-utils.c (sim_disassemble_insn): Don't use
3470 sim_core_read_aligned_N, it messes up profiling results.
3471
3472Mon Feb 23 20:45:57 1998 Mark Alexander <marka@cygnus.com>
3473
3474 * nltvals.def: Regenerate with MN10300 additions.
3475
3476Tue Feb 24 13:18:42 1998 Andrew Cagney <cagney@b1.cygnus.com>
3477
3478 * sim-trace.h (TRACE_ALU_RESULT2): Define.
3479
3480 * sim-trace.h, sim-trace.c (trace_result_word2,
3481 trace_input_word4, trace_result_word4): New function.
3482
3483Mon Feb 23 13:08:35 1998 Doug Evans <devans@canuck.cygnus.com>
3484
3485 * cgen-sim.h (SEM_NEXT_PC): New arg `len'.
3486
3487 * sim-xcat.h: Delete.
3488 * cgen-mem.h: Delete inclusion of sim-xcat.h.
3489 * cgen-sim.h: Ditto.
3490 * sim-alu.h: Replace sim-xcat.h with symcat.h.
3491 * sim-n-bits.h: Ditto.
3492 * sim-n-core.h: Ditto.
3493 * sim-n-endian.h: Ditto.
3494
3495Mon Feb 23 13:19:58 1998 Michael Meissner <meissner@cygnus.com>
3496
3497 * syscall.c (cb_syscall): Handle short reads, and EOF.
3498
3499Tue Feb 24 00:29:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
3500
3501 * sim-trace.c (print_data): case trace_fmt_fp missing break. Use
3502 sim_fpu to safely print fp_word values.
3503 (print_data): Add trace_fmt_bool and trace_fmt_addr.
3504 (trace_result_bool1, trace_result_addr1): New functions.
3505 (trace_input_bool1, trace_input_addr1): New functions.
3506
3507 * sim-trace.h (TRACE_FPU_*): Define.
3508
3509Mon Feb 23 13:24:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
3510
3511 * sim-fpu.h (enum sim_fpu_class): Add sim_fpu_class_denorm.
3512 (sim_fpu_fpto, sim_fpu_tofp): Define.
3513
3514Fri Feb 20 18:08:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
3515
3516 * sim-fpu.c (sim_fpu_cmp): New function.
3517
3518Wed Feb 18 16:29:21 1998 Doug Evans <devans@canuck.cygnus.com>
3519
3520 * cgen-utils.h (sim_disassemble_insn): Use CGEN_INSN_BITSIZE
3521 instead of abuf->length.
3522 * sim-trace.c (trace_options): Have -t only trace a few useful things.
3523 (set_trace_option_mask): Renamed from set_trace_options.
3524 (set_trace_option): New function.
3525 (trace_option_handler): Update calls to set_trace_option{,_mask}.
3526 * sim-trace.h (TRACE_USEFUL_MASK): New macro.
3527
3528Wed Feb 18 12:42:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
3529
3530 * sim-basics.h: Declare struct _sim_fpu.
3531
3532Tue Feb 17 16:27:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
3533
3534 * sim-trace.h (TRACE_ALU_INPUT*, TRACE_ALU_RESULT): Define.
3535 (trace_prefix, trace_input*, trace_result*): Declare.
3536 (trace_one_insn): Change declaration, assume trace_prefix called.
3537 (trace_generic): Like trace_one_insn.
3538 (TRACE_ALU_IDX, TRACE_*_IDX): Change #define's to enum.
3539 (TRACE_alu, TRACE_[a-z]*): Update.
3540
3541 * sim-trace.c (trace_prefix, trace_input*, trace_result*,
3542 trace_insn, save_data, trace_idx_to_str, print_data): New
3543 functions.
3544 (trace_one_insn): Rewrite.
3545 (trace_generic): New function.
3546
3547Tue Feb 17 17:27:30 1998 Doug Evans <devans@seba.cygnus.com>
3548
c906108c
SS
3549 * aclocal.m4 (USE_MAINTAINER_MODE): New variable.
3550
3551 * cgen-sim.h (SEMANTIC_CACHE_FN): Delete.
3552 (SEMANTIC_FN): Rewrite declaration.
3553 (DECODE): Update type of semantic_fast member.
3554 ({EX,SEM}_FN_NAME): Have only one version.
c906108c
SS
3555 * sim-base.h (sim_state_base): Delete conditionals surrounding
3556 member scache_size.
3557
3558Tue Feb 10 18:31:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
3559
3560 * sim-load.c (sim_load_file): Print LMA/VMA according to value
3561 used.
3562
3563Tue Feb 10 14:56:23 1998 Ian Carmichael <iancarm@cygnus.com>
3564
3565 * sim-core.c: Add missing prototypes for WITH_DEVICES.
3566 Add missing parameters to device_io calls.
3567 * sim-core.h: Add missing parameters to device_io calls.
3568
3569Mon Feb 9 14:48:37 1998 Doug Evans <devans@canuck.cygnus.com>
3570
3571 * cgen-sim.h (DECODE): Always use switch for `read' for now.
3572 (PAREXEC): Renamed from PARALLEL_EXEC. All uses updated.
3573 (SEMANTIC{,_CACHE}_FN): Fix return type.
c906108c
SS
3574 * genmloop.sh (@cpu@_engine_run): Delete `current_state'.
3575 (engine_resume): Likewise. Make `engine' volatile. Save copy
3576 of cpu pointer in volatile object. Initialize read switch if
3577 -parallel.
3578
3579Thu Feb 5 13:27:04 1998 Doug Evans <devans@seba.cygnus.com>
3580
3581 * cgen-sim.h (EX_FN_NAME): _exc_ -> _ex_.
3582 (SEM_INSN): New macro.
3583
3584Tue Feb 3 16:31:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
3585
3586 * sim-run.c (sim_engine_run): Assume IMEM is 32 bit.
3587
3588Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
3589
3590 * configure: Regenerated to track ../common/aclocal.m4 changes.
3591
3592Sun Feb 1 16:16:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
3593
3594 * sim-types.h (fp_word): New type, define according to
3595 WITH_TARGET_FLOATING_POINT_BITSIZE.
3596
3597 * aclocal.m4 (default_sim_floating_point_bitsize): Add
3598 configuration of size of floating point registers.
3599
3600Sun Feb 1 14:02:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
3601
3602 * sim-profile.c (profile_print): Only print CPU <N> if other
3603 output is going to appear.
3604
3605Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
3606
3607 * configure: Regenerated to track ../common/aclocal.m4 changes.
3608
3609Sat Jan 31 18:03:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
3610
3611 * sim-types.h (address_word): Typedef according to
3612 WITH_TARGET_ADDRESS_BITSIZE.
3613 (signed_cell, unsigned_cell, natural_cell): Ditto using
3614 WITH_TARGET_CELL_BITSIZE.
3615
3616 * sim-config.h (WITH_TARGET_ADDRESS_BITSIZE): Define.
3617 (WITH_TARGET_CELL_BITSIZE): Define.
3618 (WITH_HOST_WORD_BITSIZE): Delete.
3619
3620 * sim-config.c (print_sim_config): Update.
3621
3622 * aclocal.m4 (SIM_AC_OPTION_BITSIZE): Add support for
3623 configuration of address and OpenFirmware cell sizes.
3624
3625Fri Jan 30 09:36:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
3626
3627 * sim-engine.h (sim_engine_run): Add argument nr_cpus.
3628 * sim-run.c (sim_engine_run): Update.
3629
3630 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use SET_CPU_CIA instead of
3631 CPU_CIA.
3632 * sim-run.c (sim_engine_run): Ditto.
3633
3634 * sim-resume.c (sim_resume): Obtain nr_cpus from sim_engine.
3635 (sim_resume): Pass nr_cpus to sim_engine_run.
3636
3637 * sim-engine.h (struct _sim_engine): Add member nr_cpus.
3638
3639 * sim-engine.c (sim_engine_init): Hardwire nr_cpus to
3640 MAX_NR_PROCESSORS.
3641 (sim_engine_nr_cpus) sim-engine.c, sim-engine.h: New function
3642
c906108c
SS
3643Fri Jan 23 14:20:54 1998 Doug Evans <devans@seba.cygnus.com>
3644
3645 * Make-common.in (stamp-tvals): New rule.
3646 (targ-vals.h,targ-map.c): Depend on it.
3647 (clean): Remove stamp-tvals.
3648
3649Tue Jan 20 21:35:13 1998 Michael Meissner <meissner@cygnus.com>
3650
3651 * sim-utils.c (sim_state_alloc): #if 0 variable that is only used
3652 in code also #if 0'ed.
3653
3654Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
3655
3656 * configure: Regenerated to track ../common/aclocal.m4 changes.
3657 * aclocal.m4: Recognize --enable-maintainer-mode.
3658
3659Mon Jan 19 12:45:45 1998 Doug Evans <devans@seba.cygnus.com>
3660
3661 * cgen-scache.h: Deleted.
3662 * Make-common.in (cgen-run.o,cgen-scache.o): Delete cgen-scache.h dep.
c906108c
SS
3663 * cgen-scache.c: Only compile contents if WITH_SCACHE.
3664 (scache_init): Use runtime computed size of SCACHE.
3665 (scache_flush): Likewise.
3666 * cgen-mem.h (GETIMEMU[QHSD]I): Declare.
3667 ([GS]ETT{QI,UQI,HI,UHI,SI,USI,DI,UDI}): Declare.
3668 * cgen-sim.h: Scache support moved here.
3669 (PC): Redo definition.
3670 (ARGBUF,SCACHE,PARALLEL_EXEC): Provide forward decls.
3671 (DECODE): Add parallel execution support.
3672 Only include semantic label members if using switch.
3673 (SWITCH,CASE,BREAK,DEFAULT,ENDSWITCH): Portable computed goto support.
3674 (CGEN_CPU): Delete members exec_state, halt_sigrc, halt_jmp_buf.
3675 (IADDR,CIA,SEM_ARG,EX_FN_NAME,SEM_FN_NAME,RECORD_IADDR,SEM_ARGBUF,
3676 SEM_NEXT_PC,SEM_BRANCH_VIA_{CACHE,ADDR},SEM_NEW_PC_ADDR): Moved here
3677 from cgen-types.h.
3678 (engine_{stop,run,resume,halt,signal}): Delete decls.
3679 * cgen-types.h (CGEN_{XCAT3,CAT3}): Delete.
3680 (argbuf,scache): Delete forward decls.
3681 (STATE): Delete decl.
3682 * cgen-utils.c: Don't include decode.h, mem-ops.h, sem-ops.h.
3683 Include cgen-mem.h, cgen-ops.h.
3684 (engine_halt,engine_signal): Delete.
3685 ({ex,exc,sem,semc}_illegal): Delete.
3686 (sim_disassemble_insn): Result of extract fn is in bits.
3687 * genmloop.sh: Rewrite.
3688
3689 * cgen-trace.c (trace_insn): Set printed_result_p=0 if not tracing
3690 line numbers.
3691
3692 * sim-base.h (sim_state_base): Delete member `model'.
3693 (sim_cpu_base): Add member `model'.
3694 * sim-model.h (IMP_PROPERTIES): New type.
3695 (MACH): New members imp_props, models.
3696 (models): Delete decl.
3697 * sim-model.c (set_model): Update.
3698 * sim-profile.c (profile_print_model): Update.
3699
3700 * sim-utils.c (sim_state_alloc): Delete setting of cpu backlink here.
3701
3702Fri Jan 16 12:33:09 1998 Nick Clifton <nickc@cygnus.com>
3703
3704 * cgen-trace.c (trace_insn): Call CGEN_INSN_MNEMONIC() rather than
3705 CGEN_INSN_SYNTAX().
3706
3707Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
3708
3709 * configure: Regenerated to track ../common/aclocal.m4 changes.
3710 * config.in: Ditto.
3711
3712Mon Dec 15 23:16:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
3713
3714 * aclocal.m4 (AR): Check for sigaction.
3715
3716Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
3717
3718 * Make-common.in (sim-core.o): Depend on $(sim_main_headers).
3719
3720 * sim-config.h (WITH_TREE_PROPERTIES): Define as 0.
3721 * sim-config.c (sim_config): Replace WITH_DEVICES with
3722 WITH_TREE_PROPERTIES.
3723
3724 * configure: Regenerated to track ../common/aclocal.m4 changes.
3725
3726Wed Dec 3 17:56:02 1997 Doug Evans <devans@canuck.cygnus.com>
3727
3728 * Make-common.in (SIM_ENVIRONMENT): New variable.
3729 (CONFIG_CFLAGS): Add it.
3730 * aclocal.m4 (SIM_AC_OPTION_ENVIRONMENT): Handle
3731 --enable-sim-environment option.
3732 * configure: Regenerated.
3733 * sim-config.h (environment support): Rewrite.
3734 * sim-config.c (current_environment): Define as enum, unconditionally.
3735 (current_alignment): Define unconditionally.
3736 (config_environment_to_a): Update.
3737 (config_alignment_to_a): Fix type of argument. Define unconditionally.
3738 (sim_config): Handle environment and alignment determination
3739 unconditionally. Delete sanity checks of current_environment,
3740 unnecessary.
3741 (print_sim_config): Update.
3742 * sim-options.c (STANDARD_OPTIONS enum): Add OPTION_ENVIRONMENT.
3743 (standard_options): Add --environment.
3744 (standard_option_handler): Likewise.
3745
3746Fri Nov 28 12:21:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
3747
3748 * sim-alu.h: Add notes on carry vs borrow for subtraction.
3749 (ALU{,8,16,32,64}ADD): Redefine ADD macro as add overflowing.
3750 (ALU{,8,16,32,64}ADDC): Define - add carrying.
3751 (ALU{,8,16,32,64}SUB): Redefine SUB macro as subtract overflowing.
3752 (ALU{,8,16,32,64}SUBB): Define - subtract borrowing.
3753 (ALU{,8,16,32,64}SUBC): Define - tract carrying.
3754 (ALU{,8,16,32,64}ADD_CA, ALU{,8,16,32,64}ADDC_C): Replace single
3755 argument ADD_CA macro with two argument ADDC_C - add carrying with
3756 carry in.
3757 (ALU{,8,16,32,64}SUB_CA, ALU{,8,16,32,64}SUBC_X): Replace single
3758 argument SUB_CA macro with two argument SUBC_X - subtract
3759 carrying, extended.
3760 (ALU{,8,16,32,64}SUBB_B): Define - subtract borrowing with
3761 borrow-in.
3762 (ALU{,8,16,32,64}NEGC, ALU{,8,16,32,64}NEGB): Define.
3763
3764Sun Nov 30 17:40:57 1997 Michael Meissner <meissner@cygnus.com>
3765
3766 * sim-io.c (sim_io_{syscalls,getstring}): Delete. No longer used.
3767 * sim-io.h (sim_io_syscalls): Delete.
3768
3769Fri Nov 28 20:10:09 1997 Michael Meissner <meissner@cygnus.com>
3770
3771 * syscall.c (cb_syscall): Add missing else, so write to stdout
3772 isn't doubled.
3773
3774 * sim-alu.h (ALU{,8,16,32,64}_SET_CARRY): Provide macros to import
3775 the carry bit from the CPU's psw.
3776
3777Fri Nov 28 11:15:05 1997 Doug Evans <devans@canuck.cygnus.com>
3778
3779 * gennltvals.sh: Redo syscall support.
3780 * nltvals.def: Regenerated.
3781
3782Wed Nov 26 16:49:38 1997 Michael Meissner <meissner@cygnus.com>
3783
3784 * syscall.c (cb_syscall): If writing to stdout or stderr, flush
3785 the stream immediately.
3786
3787Wed Nov 26 12:32:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
3788
3789 * sim-io.c (sim_io_getstring): Delete unused len2.
3790 (sim_io_syscalls): Ditto for sys_errno.
3791
3792Wed Nov 26 11:18:40 1997 Doug Evans <devans@canuck.cygnus.com>
3793
3794 * syscall.c (cb_syscall): Test CB_SYSCALL struct magic number.
3795
3796 * Make-common.in (run.o): Depend on remote-sim.h.
3797 (nrun.o,sim-hload.o,sim-hrw.o): Likewise.
3798 (sim-io.o,sim-reason.o,sim-resume.o): Likewise.
3799
3800Tue Nov 25 20:12:46 1997 Michael Meissner <meissner@cygnus.com>
3801
3802 * sim-io.c (sim_io_syscalls): Disable lseek.
3803
3804Tue Nov 25 00:12:38 1997 Doug Evans <devans@seba.cygnus.com>
3805
3806 * gennltvals.sh: Generate syscall values for d30v.
3807
3808 * gennltvals.sh: Use libgloss/syscall.h for sparc.
3809 * nltvals.def: Regenerate.
3810
3811 * callback.c (os_stat): Make 3rd arg a host struct stat ptr.
3812 (os_fstat): Likewise. Validate fd argument.
3813 (cb_host_to_target_stat): Delete big_p arg. If HS arg is NULL,
3814 just compute target stat struct length.
3815 * syscall.c: #include "libiberty.h", <sys/types.h>, <sys/stat.h>.
3816 (ENOSYS,ENAMETOOLONG): Provide definitions if missing.
3817 (get_string): Return host errno values so they can be properly
3818 translated later.
3819 (cb_syscall): Likewise.
3820 (cb_syscall, cases open,unlink): Use get_path instead of get_string.
3821 (cb_syscall, case read): Use read_stdin for file descriptor 0.
3822 (cb_syscall, case write): Use write_stderr for file descriptor 2.
3823 (cb_syscall): Add cases for lseek, unlink, stat, fstat, time.
3824 (get_path): New function.
3825
3826Mon Nov 24 18:56:07 1997 Michael Meissner <meissner@cygnus.com>
3827
3828 * sim-io.c (sim_io_syscalls): New function to provide system call
3829 emulation. Provide exit, open, close, read, write, lseek, and
3830 unlink.
3831 (sim_io_getstring): New function to return a string from a
3832 simulated memory location.
3833
3834 * sim-io.h (sim_io_syscalls): Add declaration.
3835
3836Mon Nov 24 12:09:59 1997 Doug Evans <devans@seba.cygnus.com>
3837
3838 * sim-core.c (sim_core_signal): Fix spelling error in message.
3839
3840 * sim-hrw.c (sim_read): Use read map, not write map.
3841
3842 * Make-common.in (all): Add .gdbinit.
3843 * gdbinit.in: Add dump command.
3844
3845 * sim-model.c (model_options): Use '\0' for `shortopt'.
3846
3847 * sim-trace.c (trace_option_handler): Set state trace file
3848 for --trace-file in addition to cpu's values.
3849 (trace_vprintf): If cpu == NULL, try state's trace file.
3850 (trace_options): Reorganize table, reword some descriptions.
3851
3852Sun Nov 23 10:57:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
3853
3854 * sim-fpu.c (sim_fpu_abs, sim_fpu_neg, sim_fpu_inv), sim-fpu.h:
3855 New functions.
3856
3857Sat Nov 22 19:16:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
3858
3859 * sim-reason.c (sim_stop_reason): For sim_signalled, return the
3860 signal untranslated, document problem with this.
3861
3862 * nrun.c (main): Check for a prog name of `*step'. If present,
3863 step the simulator instead of allowing it to run free.
3864
3865 * sim-signal.c (SIGQUIT): Define on _MSC_VER hosts.
3866
3867 * Make-common.in (sim_main_headers): Add sim-signal.h.
3868
3869Fri Nov 21 09:32:32 1997 Andrew Cagney <cagney@b1.cygnus.com>
3870
3871 * sim-signal.c (sim_signal_to_host): Return 0 for SIM_SIGNONE.
3872
3873Thu Nov 20 20:35:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
3874
3875 * sim-signal.h: Start simulator signals at 64 so that host signal
3876 numbers can be detected and reported.
3877
3878 * sim-signal.h (SIM_SIGFPE), sim-signal.h: Add signal.
3879
3880Wed Nov 19 12:02:41 1997 Doug Evans <devans@seba.cygnus.com>
3881
3882 * callback.c (cb_host_to_target_stat): Fix return values.
3883
3884 * cgen-sim.h (enum_signal_type): Delete.
3885 (engine_signal): Update prototype.
3886 * cgen-utils.c: Don't include <signal.h>.
3887 (sim_signal_to_host): Delete, lives in sim-signal.c now.
3888 (engine_signal): Update.
3889
3890 * sim-utils.c (sim_state_alloc): Call SIM_STATE_ALLOC if defined.
3891 (sim_state_free): Call SIM_STATE_FREE if defined.
3892
3893 * sim-module.c (sim_module_install): Don't leave any modules
3894 installed if one fails to install.
3895
3896Wed Nov 19 13:25:48 1997 Michael Meissner <meissner@cygnus.com>
3897
3898 * sim-options.c: Don't include ../libiberty/alloca-conf.h any
3899 more, since alloca is not used in this file.
3900
3901 * sim-alu.h (ALU{32,64}_*): Rewrite 32 and 64 bit ALU support to
3902 correctly set the carry and overflow bits for those types.
3903 (ALU{8,16,32,64}_{ADD,SUB}_CA): Take VAL argument to add along
3904 with carry, so carry is correct after doing both adds.
3905 (ALU*): Space out '\' to make it easier to read.
3906
3907Tue Nov 18 15:53:45 1997 Doug Evans <devans@canuck.cygnus.com>
3908
3909 * sim-core.c (sim_core_signal): Use sim_stopped instead of
3910 sim_signalled.
3911
3912 * sim-signal.c, sim-signal.h: New files.
3913 * Make-common.in (sim-signal.o): Add rule for.
3914 (SIM_NEW_COMMON_OBJS): Add sim-signal.o.
3915 * sim-abort.c: Don't include <signal.h>.
3916 * sim-basics.h: #include "sim-signal.h".
3917 * sim-break.c: Don't include <signal.h>.
3918 (sim_handle_breakpoint): Replace SIGTRAP with SIM_SIGTRAP.
3919 * sim-core.c: Don't include <signal.h>.
3920 (SIGBUS): Delete definition.
3921 (sim_core_signal): Replace SIGSEGV,SIGBUS with SIM_SIGSEGV,SIM_SIGBUS.
3922 * sim-engine.c: Don't include <signal.h>.
3923 (sim_engine_abort): Replace SIGABRT with SIM_SIGABRT.
3924 * sim-reason.c (sim_stop_reason): Call sim_signal_to_host.
3925 * sim-resume.c: Don't include <signal.h>.
3926 (SIGTRAP): Delete definition.
3927 (has_stepped): Replace SIGTRAP with SIM_SIGTRAP.
3928 * sim-stop.c: Don't include <signal.h>.
3929 (control_c_simulation): Replace SIGINT with SIM_SIGINT.
3930 * sim-watch.c: Don't include <signal.h>.
3931 (handle_watchpoint): Replace SIGINT with SIM_SIGINT.
3932
3933 * Make-common.in (SIM_NEW_COMMON_OBJS): New variable.
3934
3935 * sim-base.h (CIA_ADDR): Provide default definition.
3936 * sim-core.c (sim_core_signal): Use CIA_ADDR to fetch value.
3937 * sim-break.c (sim_handle_breakpoint): Likewise.
3938
3939Mon Nov 17 14:15:31 1997 Doug Evans <devans@seba.cygnus.com>
3940
3941 * Make-common.in (srccom): New variable.
3942
3943 * Make-common.in (DEP, COMMON_DEP_CFLAGS): Define.
3944 (LIB_OBJS): Add syscall.o.
3945 (gentmap): Pass $(NL_TARGET) to $(CC).
3946 (syscall.o): Add rule for.
3947 (sim_main_headers): Add $(SIM_EXTRA_DEPS).
3948 (sim-bits.o): Depend on $(sim-n-bits_h).
3949 (sim-load.o): Depend on callback.h.
3950
3951 * Make-common.in (cgen-*.o): Update dependencies, mem-ops.h renamed to
3952 cgen-mem.h, sem-ops.h renamed to cgen-ops.h.
3953 * cgen-mem.h, cgen-ops.h: New files.
3954
3955 * aclocal.m4 (--enable-sim-scache): Pass -DWITH_SCACHE=0 for "=no".
3956
3957 * Makefile.in (nltvals.def): Depend on gennltvals.sh.
3958 Rewrite build rule.
3959 * callback.c: #include string.h or strings.h.
3960 #include sys/types.h and sys/stat.h.
3961 (cb_init_syscall_map,cb_init_errno_map,cb_init_open_map): Declare.
3962 (os_get_errno,os_open): Update.
3963 (os_stat,os_fstat): New functions.
3964 (os_init): Initialize syscall_map, errno_map, open_map.
3965 (default_callback): Add entries for os_stat, os_fstat, syscall_map,
3966 errno_map, open_map, signal_map, stat_map.
3967 (cb_read_target_syscall_maps): New function.
3968 (cb_target_to_host_syscall): New function.
3969 (cb_host_to_target_errno): Renamed from host_to_target_errno.
3970 (cb_target_to_host_open): Renamed from target_to_host_open.
3971 (store): New function.
3972 (cb_host_to_target_stat): New function.
3973 * syscall.c: New file.
3974 * gentmap.c (sys_tdefs): New global.
3975 (gen_targ_vals_h): Output target syscall numbers.
3976 (gen_targ_map_c): Update. Output target syscall translation map.
3977 * gentvals.sh: New first argument `target'. Preface table with
3978 #ifdef NL_TARGET_$target if non-null target passed.
3979 * gennltvals.sh: New file.
3980 * nltvals.def: Regenerated.
3981
3982Fri Nov 14 11:33:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
3983
3984 * sim-n-core.h (sim_core_read_unaligned_N): Return static
3985 sim_core_dummy_M.
3986 (sim_core_dummy_M): Declare.
3987
3988Wed Nov 12 18:16:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
3989
3990 * sim-core.c (sim_core_signal): Print the address of the
3991 instruction.
3992
3993Thu Nov 13 11:49:41 1997 Doug Evans <devans@seba.cygnus.com>
3994
3995 * sim-base.h (sim_state_base): Move `magic' to end of struct.
3996
3997 * sim-base.h (sim_state_base): Add member trace_data.
3998 (STATE_TRACE_DATA): New macro.
3999 * sim-trace.h (TRACE_DEBUG_IDX,TRACE_debug): New macros.
4000 ({WITH_,}TRACE_DEBUG_P): New macros.
4001 (STATE_TRACE_FLAGS,STRACE_P,STRACE_DEBUG_P): New macros.
4002 (_sim_cpu): Delete forward reference.
4003 (debug_printf): Update.
4004 * sim-trace.c (OPTION_TRACE_DEBUG): Define.
4005 (trace_options): Add --trace-debug.
4006 (set_trace_options): Handle it.
4007 (trace_option_handler): Likewise.
4008 (trace_install): Init state trace_data struct.
4009 (trace_uninstall): Close state trace file.
4010 * sim-events.c (ETRACE): Only print source file and line number if
4011 --trace-debug.
4012 * sim-n-core.h (sim_core_trace_M): Likewise.
4013
4014 * sim-core.c (sim_core_signal): Add missing "\n" in message.
4015
40161997-11-13 Felix Lee <flee@cygnus.com>
4017
4018 * sim-n-core.h (sim_core_read_unaligned_N): illegal empty
4019 initializer.
4020 * sim-types.h (unsigned128,signed128): fix typo for MSVC.
4021
4022Wed Nov 12 12:18:08 1997 Doug Evans <devans@canuck.cygnus.com>
4023
4024 * aclocal.m4 (SIM_AC_OPTION_SCACHE): Fix typo.
4025
4026 * Make-common.in (BUILT_SRC_FROM_COMMON): Remove files no longer
4027 built this way.
4028 (sim-config.o): Remove non-existent $(sim-nconfig_h) dependency.
4029 (clean): Don't delete $(BUILT_SRC_FROM_COMMON) if building in
4030 source tree.
4031
4032Tue Nov 11 13:28:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
4033
4034 * sim-events.c (sim_events_process): Re-compute the time -
4035 update_time_from_event - as each event is processed. Reverses
4036 previous change.
4037
4038Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
4039
4040 * callback.c (os_poll_quit): Replace _WIN32 with _MSC_VER.
4041
4042Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
4043
4044 * sim-events.c (sim_events_process): Delete redundant call to
4045 update_time_from_event.
4046 (sim_events_slip): Always decrement time_from_event.
4047 (sim_events_tick, sim_events_deschedule, update_time_from_event):
4048 Delete assertion that time_from_event >=0 when work in queue, no
4049 longer applicable.
4050
4051Thu Nov 6 12:06:46 1997 Andrew Cagney <cagney@b1.cygnus.com>
4052
4053 * sim-options.c (STANDARD_OPTIONS): Change OPTION_* to an enum.
4054 (standard_option_handler): Update.
4055
4056 * sim-options.h: Clarify documentation.
4057 (OPTION_LONG_ONLY_P): Delete definition.
4058 (OPTION_VALID_P): Define.
4059
4060 * sim-options.c (sim_print_help): Allow short only options.
4061 (sim_parse_args): Ditto.
4062 (sim_args_command): Skip short only options.
4063 (sim_parse_args): Allocate space for NUM_OPTS not just 256. Make
4064 separate entries for short and long options in the HANDLERS and
4065 ORIG_VAL tables.
4066 (sim_parse_args): Disable argument permutation.
4067
4068Wed Nov 5 13:40:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
4069
4070 * sim-core.h (DECLARE_SIM_CORE_WRITE_N. DECLARE_SIM_CORE_READ_N):
4071 Add argument M, size of data type.
4072 (sim_core_read_misaligned_3, sim_core_write_misaligned_3):
4073 Declare, ditto for 5, 6 & 7 byte transfers.
4074 (sim_core_write_unaligned_1, sim_core_write_unaligned_1): Define
4075 as aligned variant.
4076
4077 * sim-n-core.h (sim_core_trace_M): Rename from
4078 sim_core_trace_N. Add nr_bytes argument. Replace transfer argument
4079 with transfer type. Print transfer direction. Handle 1 and 2 byte
4080 transfers.
4081 (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Trace
4082 unaligned accesses.
4083 (unsigned_M, T2H_M, H2T_M): Rename from unsigned_N, T2H_N, H2T_N.
4084 Update all functions.
4085
4086 * sim-core.c: Generate functions starting with 16 not 1.
4087 (sim_core_read_unaligned_3): Generate. Ditto for 3 byte write and
4088 all 5, 6 & 7 byte transfers.
4089
4090 * sim-n-core.h (sim_core_read_misaligned_N,
4091 sim_core_write_misaligned_N): Implement.
4092
4093Mon Nov 3 15:03:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
4094
4095 * sim-endian.h (U16_8): Implement
4096
4097 * sim-endian.c (sim_endian_split_16, sim_endian_join_16): New functions
4098
4099 * sim-endian.h (VL8_16, VH8_16): Implement.
4100
4101 * sim-memopt.c (memory_option_handler): Typecast 64bit value to
4102 long in printf.
4103 (memory_option_handler): Only zalloc modulo bytes when non-zero.
4104 (memory_option_handler): Skip comma in alias address list
4105
4106Fri Oct 31 13:03:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
4107
4108 * sim-memopt.c (do_memopt_add, do_memopt_delete): Add level and
4109 space params.
4110 (parse_size, parse_addr): New functions
4111 (memory_option_handler, memory_options): Parse address & size
4112 using new functions. Pass level, space, modulo to do_memopt_add &
4113 do_memopt_del.
4114
4115 * sim-memopt.h (struct _sim_memopt): Add level & space fields.
4116
4117 * sim-core.h (sim_core_arrach, sim_core_detach): Replace
4118 `attach_type attach' argument with `unsigned level' argument.
4119 Document.
4120
4121 * sim-core.c (new_sim_core_mapping, sim_core_map_attach,
4122 sim_core_attach): Replace argument attach with level. Update
4123 verification of arguments.
4124 (sim_core_map_detach, sim_core_detach): Replace argument attach
4125 with level.
4126
4127 * sim-basics.h (enum _attach_type): Delete.
4128
4129Thu Oct 30 13:45:00 1997 Doug Evans <devans@seba.cygnus.com>
4130
4131 * sim-core.h (sim_core_write_8): Define.
4132
4133Tue Oct 28 12:29:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
4134
4135 * sim-bits.h: Document ROTn macro.
4136
4137 * sim-endian.h (H2T): Handle 16 byte variables.
4138
4139 * sim-n-core.h (sim_core_read_unaligned_N): Return a dummy when an
4140 error.
4141
4142 * sim-core.c: Do not generate sim_core_*_word.
4143
4144 * sim-n-core.h (sim_core_trace_N): Add line_nr argument.
4145 (sim_core_write_aligned_N, sim_core_read_aligned_N): Update.
4146
4147 * sim-core.h (sim_core_read_unaligned_word,
4148 sim_core_read_aligned_word, sim_core_read_word,
4149 sim_core_write_unaligned_word, sim_core_write_aligned_word,
4150 sim_core_write_word): Change to macros that map onto sim_core_*_N.
4151
4152Mon Oct 27 11:25:10 1997 Doug Evans <devans@canuck.cygnus.com>
4153
4154 * sim-n-endian.h: Add TAGS entrys for 16 byte versions.
4155
4156 * sim-endian.h: Disable 16 byte support.
4157
4158Mon Oct 27 12:00:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
4159
4160 * sim-endian.c (_SWAP_16): Define. Generate 126 bit swap code.
4161
4162 * sim-n-core.h (sim_core_trace_N): New function.
4163 (sim_core_read_aligned_N, sim_core_write_aligned_N): Use,
4164 (sim_core_read_unaligned_N): Do not retyrn bogus value wden error.
4165
4166 * sim-endian.h: Add 128 bit variant.
4167
4168 * sim-core.h, sim-core.c: Add 128 bit variant.
4169
4170 * sim-types.h: Add signed128 and unsigned128 types using a struct.
4171
4172Fri Oct 24 11:33:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
4173
4174 * sim-events.c (sim_events_process): Clear events->work_pending.
4175 (sim_events_tickn, sim_events_tick): Accumulate, instead of
4176 setting, nr_ticks_to_process.
4177 (sim_events_preprocess): Allow nr_ticks_to_process to be non-zero
4178 when the event queue isn't next.
4179
4180 * sim-events.h, sim-events.c (sim_events_slip): New function.
4181
4182Wed Oct 22 14:18:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
4183
4184 * sim-hload.c (sim_load): Pass lma_p==0 and do_load=sim_load.
4185
4186 * sim-utils.h, sim-load.c (sim_load_file): Add lma_p and do_load
4187 arguments.
4188
4189Tue Oct 21 18:37:57 1997 Doug Evans <devans@canuck.cygnus.com>
4190
4191 * nrun.c (main): Remove useless test of name != NULL.
4192 Exit if bfd_openr fails. Call bfd_check_format after bfd_openr.
4193
4194Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
4195
4196 * sim-fpu.c (EXPMAX): Type is unsigned.
4197 (MIN_INT, MAX_INT): Type is signed64.
4198 (i2fpu): Type of val is signed64.
4199
4200Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
4201
4202 * sim-profile.h (PROFILE_PC_BUCKET_SIZE): Treat a shift of zero as
4203 a bucket size of zero.
4204
4205 * sim-profile.c (OPTION_PROFILE_PC_GRANULARITY,
4206 OPTION_PROFILE_PC): Define.
4207 (profile_option_handler): Add support for --profile-pc and
4208 --profile-pc-granularity options.
4209 (profile_pc_init): When possible, compute nr buckets from bucket
4210 size.
4211
4212 * sim-profile.c (profile_pc_init): Align the profile-pc end
4213 address with the profile-pc bucket size.
4214
4215 * sim-profile.h (PROFILE_PC_NR_BUCKETS): Rename PROFILE_PC_SIZE to
4216 something less ambiguous.
4217 (PROFILE_PC_BUCKET_SIZE): Ditto for PROFILE_PC_SAMPLE_SIZE.
4218
4219 * sim-profile.c (profile_pc_cleanup): New function. Move
4220 profile_pc_uninstall code to here.
4221 (profile_pc_uninstall): Call.
4222 (profile_pc_init): Call.
4223
4224Mon Oct 20 17:23:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
4225
4226 * sim-profile.c (profile_print_pc): Dump pc profile to dmon.out
4227 file using BSD gprof format.
4228
4229 * sim-bits.h (LSBIT, MSBIT, BIT): Force result to type
4230 unsigned_word.
4231 (LSBIT8, LSBIT16, LSBIT32, LSBIT64, MSBIT8, MSBIT16, MSBIT32,
4232 MSBIT64): Force result to unsignedN.
4233
4234Thu Oct 16 11:38:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
4235
4236 * sim-alu.h (ALU16_BEGIN, ALU32_BEGIN, ALU64_BEGIN): Drop opening
4237 brace from macro.
4238 (ALU8_BEGIN, ALU8_SET, ALU8_ADD, ALU8_SUB, ALU8_NEGATE): Define.
4239 (ALU16_ADD, ALU16_SUB, ALU16_NEGATE): Simplify arrithmetic.
4240 (ALU32_ADD, ALU32_SUB, ALU32_NEGATE): Simplify arrithmetic.
4241 (ALU64_ADD, ALU64_SUB, ALU64_NEGATE): Simplify arrithmetic.
4242
4243Wed Oct 15 09:24:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
4244
4245 * sim-core.h (struct _sim_core_mapping): Change free_buffer to
4246 type void*.
4247
4248 * sim-core.c (sim_core_uninstall, new_sim_core_mapping,
4249 sim_core_map_attach, sim_core_map_detach): Change free_buffer to
4250 type void*.
4251 (sim_core_attach): Rename buffer_freed to free_buffer, type
4252 void*. Ensure that allocated buffer is alligned according to
4253 region's address.
4254
4255Mon Oct 13 11:34:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
4256
4257 * sim-alu.h (ALU64_HAD_OVERFLOW): Define.
4258 (ALU64_SUB): Define.
4259
4260 * Make-common.in (all): Build SIM_EXTRA_ALL first.
4261 (.gdbinit): Remove dependencies, generate once per build.
4262
4263Tue Oct 14 19:20:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
4264
4265 * sim-n-core.h (sim_core_read_aligned_N,
4266 sim_core_write_aligned_N): Make xaddr param type address_word not
4267 unsigned_word.
4268
4269Fri Oct 3 09:49:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
4270
4271 * sim-fpu.h, sim-fpu.c: Rewrite. Change sim_fpu object to an
4272 unpacked floating point struct. Pass sim_fpu object by reference.
4273 Add preliminary support for rounding modes.
4274
4275Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
4276
4277 * configure: Regenerated to track ../common/aclocal.m4 changes.
4278
4279Thu Oct 2 19:43:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
4280
4281 * aclocal.m4 (sim-bitsize): Fix typo, WITH_TARGET_WORD_BITSIZE not
4282 WITH_TARGET_BITSIZE.
4283
4284Thu Sep 25 23:20:20 1997 Felix Lee <flee@yin.cygnus.com>
4285
4286 * sim-profile.c (profile_print_core): label needs empty statement.
4287
4288Thu Sep 25 11:20:47 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
4289
4290 * sim-break.c (sim_set_breakpoint sim_clear_breakpoint): Use ZALLOC
4291 and zfree instead of xmalloc and free. Prevents warnings.
4292
4293Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
4294
4295 * configure: Regenerated to track ../common/aclocal.m4 changes.
4296
4297Wed Sep 24 17:23:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
4298
4299 * Make-common.in (SIM_BITSIZE): Assign from configured value.
4300 (CONFIG_CFLAGS): Add SIM_BITSIZE.
4301
4302 * aclocal.m4 (--enable-sim-bitsize): Developer option for
4303 controling the bitsize/msb of the target.
4304
4305Wed Sep 24 17:41:40 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
4306
4307 * Make-common.in: New files sim-break.c, sim-break.h.
4308 * sim-base.h: Add point to breakpoint list to sim_state_base.
4309 * sim-break.c sim-break.h: New modules that implement intrinsic
4310 breakpoint support.
4311 * sim-module.c: Add breakpoint module.
4312
4313Tue Sep 23 00:26:39 1997 Felix Lee <flee@yin.cygnus.com>
4314
4315 * sim-events.c (SIM_EVENTS_POLL_RATE): poll more often than once
4316 an hour.
4317 * sim-n-core.h (WITH_XOR_ENDIAN): MSVC barfs on
4318 if (0) { 1 % 0; }
4319 * sim-core.c (sim_core_xor_write_buffer): WITH_XOR_ENDIAN + 1.
4320 (SIGBUS) define for Windows.
4321 * sim-trace.c (trace_printf,debug_printf): added ALMOST_STDC.
4322 * sim-resume.c: define SIGTRAP for windows.
4323 * sim-xcat.h: use token pasting if ALMOST_STDC.
4324
4325Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
4326
4327 * Make-common.in (SIM_SCACHE, SIM_DEFAULT_MODEL): Assign
4328 configured values.
4329 (CONFIG_CFLAGS): Add same.
4330
4331Mon Sep 22 17:20:27 1997 Felix Lee <flee@cygnus.com>
4332
4333 * sim-types.h (SIGNED64): ##i64 when _MSC_VER, not _WIN32.
4334 (SIGNED32): use ##i32.
4335
4336Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
4337
4338 * configure: Regenerated to track ../common/aclocal.m4 changes.
4339
4340Tue Sep 23 10:07:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
4341
4342 * aclocal.m4 (sim-endian): Simplify logic determining [default]
4343 endian of target.
4344
4345 * Make-common.in (SIM_WARNINGS, SIM_ALIGNMENT, SIM_ENDIAN,
4346 SIM_HOSTENDIAN, SIM_RESERVED_BITS, SIM_ASSERT, SIM_FLOAT,
4347 SIM_HARDWARE, SIM_INLINE, SIM_PACKAGES, SIM_REGPARM, SIM_SMP,
4348 SIM_STDCALL, SIM_XOR_ENDIAN): Assign configured values.
4349 (CONFIG_CFLAGS): Add same.
4350
4351 * aclocal.m4: Perform AC_SUBST on optional options.
4352
4353Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
4354
4355 * sim-config.h (WITH_DEFAULT_ALIGNMENT): Don't hardwire any alignment.
4356
4357 * sim-options.c (standard_option_handler): Typo in warning message.
4358
4359 * sim-base.h (STATE_MODEL): Make conditional on SIM_HAVE_MODEL.
4360
4361 * sim-profile.c (profile_print_insn): Check 0 .. MAX_INSN for any
4362 insn count. Make count conditional on there being a valid
4363 INSN_NAME.
4364 (profile_pc_init): Make default PC profile frequency an arbitrary
4365 256.
4366
4367 * sim-base.h: Ditto.
4368
4369 * sim-profile.h (WITH_PROFILE_MODEL_P): Only enable modeling when
4370 SIM_HAVE_MODEL.
4371
4372 * sim-model.h (struct MACH): Depreciate, to be replaced by bfd
4373 archure struct.
4374
4375Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
4376
4377 * configure: Regenerated to track ../common/aclocal.m4 changes.
4378
4379Mon Sep 22 11:45:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
4380
4381 * aclocal.m4 (sim_alignment): Simplify logic for selecting the
4382 configured alignment.
4383
4384Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
4385
4386 * configure: Regenerated to track ../common/aclocal.m4 changes.
4387
4388Fri Sep 19 17:26:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
4389
4390 * sim-config.c (sim_config): Check for default alignment.
4391
4392 * sim-options.c (standard_option_handler): Add alignment option.
4393
4394 * aclocal.m4 (sim_alignment): Allow configuration of hardwired and
4395 default alignment requirements on memory accesses.
4396
4397Fri Sep 19 11:51:35 1997 Jeffrey A Law (law@cygnus.com)
4398
4399 * sim-load.c (sim_load_file): Return failure if the executable
4400 had no loadable sections.
4401
4402Wed Sep 17 13:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
4403
4404 * sim-events.c (ETRACE): Use trace_printf not sim_io_printf for
4405 trace output.
4406
4407 * sim-core.c (sim_core_signal): When bad access halt simulator
4408 SIGSEGV / SIGBUS instead of aborting.
4409 (signal.h): Include.
4410
4411 * sim-watch.c (sim_watchpoint_install): Handler for watchpoint
4412 options was missing.
4413
4414 * sim-bits.h (MOVED): Define
4415
4416Wed Sep 17 10:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
4417
4418 * sim-alu.h (ALU32_HAD_OVERFLOW): Pacify GCC, Use MSBIT instead of
4419 BIT.
4420
4421 * sim-bits.h (LSBIT, MSBIT): Check for overflow of shift value.
4422
4423 * sim-bits.c: Add 8 bit versions of bit macros.
4424
4425 * sim-bits.h: Ditto.
4426
4427Tue Sep 16 16:15:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
4428
4429 * sim-bits.c (LSSEXT, MSSEXT): Replace SEXT.
4430 (LSINSERTED, MSINSERTED): Ditto for INSERTED.
4431
4432 * sim-n-bits.h (MSSEXTn, LSSEXTn): Replace SEXTn.
4433 (LSINSERTDn, MSINSERTEDN): Ditto for INSERTEDn.
4434
4435 * sim-bits.h (SEXT*): Define as MSEXT/LSEXT.
4436 (INSERTED*): Ditto for LSINSERTED/MSINSERTED.
4437
4438Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
4439
4440 * aclocal.m4 (SIM_AC_COMMON): Add optional config.h file argument.
4441 configure.in: Output to cconfig.h instead of config.h.
4442
4443 * configure: Regenerated to track ../common/aclocal.m4 changes.
4444
4445Mon Sep 15 15:39:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
4446
4447 * sim-utils.c (sim_analyze_program): Set STATE_ARCHITECTURE from
4448 BFD if known.
4449
4450Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
4451
4452 * callback.c (os_write): divert stdout and stderr to their
4453 respective hooks.
4454
4455Thu Sep 11 10:08:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
4456
4457 * sim-profile.c (profile_print_speed): Call
4458 sim_events_elapsed_time instead of PROFILE_EXEC_TIME for moment.
4459
4460 * sim-events.c (sim_events_elapsed_time): New function return nr
4461 host MS consumed by the simulator.
4462 (sim_watch_valid): Use.
4463
4464 * sim-module.c (modules): Install sim_events very very early.
4465
4466 * sim-profile.c (profile_print): Call profile_print_pc.
4467 (print_bar):
4468 (profile_pc_init): New function, set up processor for PC
4469 profiling.
4470 (profile_print_pc): New function, print a PC profile.
4471 (profile_pc_event): New function, sample PC.
4472
4473 * sim-profile.h (PROFILE_PC_COUNT, PROFILE_PC_START,
4474 PROFILE_PC_END, PROFILE_PC_SHIFT, PROFILE_PC_SAMPLE_SIZE): Add to
4475 profile struct.
4476
4477 * sim-options.c (sim_print_help): Pacify GCC.
4478
4479 * sim-n-core.h (sim_core_read_aligned_N,
4480 sim_core_write_aligned_N): Add un-conditional profile call.
4481 (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Add
4482 profile call when aligned read/write isn't used.
4483
4484 * sim-base.h: Include sim-profile, sim-model after sim-core &
4485 sim-events allow sim-core to define useful values.
4486
4487 * sim-profile.c (OPTION_PROFILE_CORE): Define.
4488 (profile_option_handler, profile_options): Add support for
4489 --profile-core option.
4490 (print_bar): Include when core profiling.
4491 (profile_print_core): New function, print core profile.
4492
4493 * sim-config.c (print_sim_config): Print profile status.
4494
4495 * sim-profile.h (PROFILE_NEXT_IDX, PROFILE_core,
4496 WITH_PROFILE_PC_P): Define.
4497 (PROFILE_CORE_COUNT): Count each core-map/size separatly.
4498 (PROFILE_COUNT_CORE): Define.
4499
4500Thu Sep 11 08:44:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
4501
4502 * sim-watch.c (handle_watchpoint): Pass a char** index into the
4503 interrupt_names array as the data.
4504 (sim-watch.h): Document.
4505
4506Wed Sep 10 16:15:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
4507
4508 * sim-options.c (sim_print_help): When the doc string is to long
4509 word wrap it.
4510
4511 * sim-watch.c (sim_watchpoint_install): Use option.doc_name so
4512 that only the first few the watch options are listed. Generate
4513 meanginful usage messages.
4514
4515 * sim-options.h (struct OPTION): Clarify use of doc_name field
4516
4517Wed Sep 10 13:23:24 1997 Andrew Cagney <cagney@b1.cygnus.com>
4518
4519 * sim-options.c (OPTION_ARCHITECTURE_INFO): New option.
4520 (standard_option_handler): Handle --architecture-info.
4521
4522Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
4523
4524 * sim-core.h (sim_cpu_core): [WITH_XOR_ENDIAN + 1], to avoid
4525 illegal zero-sized array.
4526 * sim-core.c (sim_core_xor_read_buffer): same.
4527
4528Tue Sep 9 11:20:35 1997 Doug Evans <dje@canuck.cygnus.com>
4529
4530 * nltvals.def: Regenerate.
4531
4532Tue Sep 9 02:10:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
4533
4534 * sim-fpu.c (DP_FRACHIGH2): Define LL using SIGNED64.
4535
4536Mon Sep 8 12:22:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
4537
4538 * sim-bits.c (MASKED): Delete.
4539 (EXTRACTED): Delete.
4540 (LSEXTRACTED, MSEXTRACTED): New functions.
4541
4542 * sim-n-bits.h (MASKEDn): Delete, define as MSMASKED or LSMASKED.
4543 (MSMASKEDn, LSMASKEDn): Add last argument.
4544 (MSMASK*): Ditto.
4545
4546 * sim-bits.h (EXTEND8, EXTEND16): Define.
4547 (EXTRACTED64): Define as 64 bit extract, not 32 bit.
4548
4549 * sim-run.c (sim_engine_run): Use CPU_CIA macro.
4550
4551 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use CPU_CIA to get at
4552 current instruction address.
4553
4554 * sim-inline.h (*_ENGINE): Define.
4555
4556Fri Sep 5 08:39:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
4557
4558 * sim-core.c (sim_core_attach): Fix checks of modulo/mask.
4559
4560 * sim-watch.c (delete_watchpoint): Delete by ident and type.
4561 (watch_option_handler): Call delete_watchpoint with ident or type.
4562 (sim_watchpoint_install): Create interrupt specific watchpoint
4563 commands on the fly.
4564 (do_watchpoint_create): New function, create a watch point using
4565 type/int-nr info encoded in the option nr.
4566 (do_watchpoint_info): New function. List active watchpoints.
4567
4568 * sim-watch.h: Change data structure to a list.
4569
4570 * sim-memopt.c (memory_option_handler): Require explicit "all"
4571 before deleting all memory regions.
4572
4573 * sim-utils.c (sim_do_commandf): New function, printf version of
4574 sim_do_command.
4575
4576 * sim-basics.h (asprintf, vasprintf): Hack, define for CYGWIN32.
4577
4578 * sim-alu.h (ALU64_ADD): Use explicit MSEXTRACTED64, do not assume
4579 bit endianness.
4580 (SIGNED64, UNSIGNED64): Delete.
4581 (ALU64_ADD): Don't rely on bit endianness.
4582 (ALU64_BEGIN): Define.
4583
4584 * sim-n-bits.h (MSEXTRACTEDn, LSEXTRACTED): New functions.
4585 (EXTRACTEDn): Delete, define as either LSEXTRACTED or MSEXTRACTED.
4586
4587 * sim-types.h (SIGNED64, UNSIGNED64): New macros, attach relevant
4588 suffix - u64, LL - to 64 bit constants.
4589
4590Thu Sep 4 09:27:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
4591
4592 * sim-config.c (sim_config): Add assert for SIM_MAGIC_NUMBER.
4593
4594 * sim-utils.h (NZALLOC): Define - zalloc * N.
4595
4596 * sim-hrw.c (sim_read, sim_write): New file. Provide generic
4597 implementation of read/write functions.
4598
4599 * Make-common.in (sim-hrw.o): New target.
4600
4601 * sim-base.h (STATE_MEMOPT_P): Delete, simulators _always_ add
4602 memory.
4603
4604 * sim-memopt.c (memory_option_handler): Implement memory-size
4605 command. Implement memory-alias command. Let memory-delete delete
4606 all memory regions.
4607 (add_memopt): New function. Add a memory region.
4608 (do_memopt_delete): New function. Delete a memory region.
4609
4610 * sim-utils.c (sim_elapsed_time_get): Never return zero.
4611
4612 * sim-core.c (sim_core_detach): New function.
4613 (sim_core_map_detach): New function. Perform the actual detach.
4614 (sim_core_init): Move initialization code from here.
4615 (sim_core_install): To here.
4616 (sim_core_uninstall): And here.
4617
4618 * sim-module.c: Add memopt module.
4619
4620 * sim-base.h (STATE_MEMOPT, STATE_MEMOPT_P): Add memopt to
4621 simulator base type.
4622
4623 * Make-common.in (sim_main_headers): Add sim-memopt.h
4624 (sim-memopt.o): New target.
4625
4626 * sim-core.c (sim_core_install): Add core_options to the option
4627 table.
4628
4629 * sim-watch.c (watch_options): Make --delete-watch a synonym for
4630 --watch-delete.
4631
4632 * sim-config.h (WITH_MODULO_MEMORY): Define as 0. Update
4633 comments.
4634
4635 * sim-core.h (struct _sim_core_mapping): Change nr_bytes to type
4636 address_word, add mask member.
4637
4638 * sim-core.h, sim-core.c (sim_core_attach): Make nr_bytes of type
4639 address_word, allow for 64bit targets in 32bit host. Add modulo
4640 argument.
4641 (sim_core_map_attach): Ditto.
4642 (new_sim_core_mapping): Ditto.
4643 (sim_core_translate): Mask address when modulo memory.
4644
4645Wed Sep 3 17:32:54 1997 Doug Evans <dje@seba.cygnus.com>
4646
4647 * sim-hload.c (sim_load): Add assert for SIM_MAGIC_NUMBER.
4648
4649 * gdbinit.in: New file.
4650 * aclocal.m4 (SIM_AC_OUTPUT): Build .gdbinit.
4651 * Make-common.in (distclean): Delete .gdbinit.
4652 (.gdbinit): Add rule for.
4653 * configure: Regenerated to track ../common/aclocal.m4 changes.
4654
4655 * Make-common.in (cgen-run.o): Add rule for.
4656
4657Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
4658
4659 * sim-resume.c (sim_resume): Suspend/resume the simulator.
4660
4661 * sim-events.c (sim_watch_valid): Compute total elapsed time from
4662 both resumed and previous elapsed time.
4663 (sim_events_init): Set initial_wallclock and current_wallclock to
4664 zero.
4665 (sim_events_install): Install sim_events_suspend and
4666 sim_events_resume.
4667 (sim_events_watch_clock): Allow for suspended simulator when
4668 computing the time of the clock event.
4669
4670 * sim-events.h (struct _sim_event): Add resume_wallclock, rename
4671 initial_wallclock to elapsed_wallclock, set both to zero.
4672 (sim_events_init, sim_events_uninstall): Delete prototypes.
4673
4674 * sim-module.h (MODULE_SUSPEND_FN, MODULE_RESUME_FN): Define types.
4675
4676 * sim-module.c(sim_module_resume, sim_module_suspend): New
4677 functions.
4678
4679Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
4680
4681 * sim-core.c (sim_core_map_attach): Clarify memory overlap error
4682 message.
4683
4684Tue Sep 2 14:57:06 1997 Doug Evans <dje@canuck.cygnus.com>
4685
4686 * Makefile.in (TAGS): Add support for "/* TAGS: foo */" marker.
4687 * Make-common.in (TAGS): Likewise.
4688 * sim-n-bits.h: Add TAGS comments for all functions.
4689 * sim-n-core.h: Likewise.
4690 * sim-n-endian.h: Likewise.
4691
4692Mon Sep 1 10:50:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
4693
4694 * sim-utils.c (sim_state_alloc): Set CPU backlinks, callback and
4695 kind.
4696
4697 * sim-base.h (sim_state_alloc): Add callback and kind arguments.
4698
4699 * sim-base.h (INVALID_INSTRUCTION_ADDRESS): Add default
4700 definition.
4701
4702Sat Aug 30 09:47:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
4703
4704 * sim-fpu.c (DP_GARDMSB, ...): Make unsigned.
4705 (DP_FRACHIGH, DP_FRACHIGH2, ..): Use MSMASK to avoid LL.
4706
4707Fri Aug 29 13:37:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
4708
4709 * sim-core.c (sim_core_map_attach): Cast attach enum to int.
4710 (sim_core_xor_read_buffer, sim_core_xor_write_buffer): Make
4711 nr_transfered and nr_this_transfer unsigned.
4712
4713 * sim-events.c (sim_events_tickn): N is signed, as limited to
4714 MAXINT.
4715
4716 * sim-n-endian.h (offset_N): Change size to unsigned.
4717
4718 * callback.c (os_poll_quit): Add prototypes for kbhit and getkey.
4719
4720Fri Aug 29 10:10:53 1997 Andrew Cagney <cagney@b1.cygnus.com>
4721
4722 * sim-utils.c (sim_copy_argv): Delete, replaced by dupargv.
4723
4724 * sim-options.c (sim_parse_args): Use dupargv.
4725
4726Thu Aug 28 10:36:34 1997 Doug Evans <dje@canuck.cygnus.com>
4727
4728 * sim-options.c (standard_option_handler): Use xstrdup, not strdup.
4729
4730Thu Aug 28 12:09:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
4731
4732 * sim-base.h (STATE_ARCHITECTURE, STATE_TARGET): Add to simulator
4733 base type.
4734
4735 * sim-options.c (standard_options): Add --architecture=MACHINE and
4736 --target=TARGET options.
4737 (OPTION_ARCHITECTURE, OPTION_TARGET): Define.
4738 (standard_option_handler): Handle architecture and target options.
4739 (bfd.h): Include.
4740
4741 * sim-utils.c (sim_analyze_program): Pass STATE_TARGET to
4742 bfd_openr.
4743 (sim_analyze_program): Set prog_bfd architecture from
4744 STATE_ARCHITECTURE if known.
4745
4746Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
4747
4748 * configure: Regenerated to track ../common/aclocal.m4 changes.
4749 * config.in: Ditto.
4750
4751Wed Aug 27 18:11:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
4752
4753 * aclocal.m4 (enable-sim-warnings): Remove comment stating
4754 that option does not apply to certain files.
4755
4756Wed Aug 27 15:13:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
4757
4758 * sim-bits.h (LSBIT8, LSBIT16, LSBIT32, LSBIT64, LSBIT, MSBIT8,
4759 MSBIT16, MSBIT32, MSBIT64, MSBIT): New macros - single bit as
4760 offset from MSB/LSB.
4761
4762 * sim-endian.h (A1_8, A2_8, A4_8, A1_4, A2_4, A1_2): New macro,
4763 access address of sub word quantity of a hosts 16, 32, 64 bit word
4764 type.
4765 (V1_2, V1_4, V2_4, V1_8, V2_8, V4_8): Ditto for values.
4766 (U8_1, U8_2, U8_4, U4_1, U4_2, U2_1): Ditto for set of values.
4767 (V2_H1, V2_L1, V4_H2, V4_L2, V8_L4, V8_H4): Given N byte argument,
4768 return N*2 byte value with argument in Hi/Lo word. Renamed from
4769 V1_H2, V1_L2, V2_H4, V2_L4, V4_H8, V4_L8.
4770
4771 * sim-alu.h (ALU32_HAD_OVERFLOW): Use 64 bit mask not 32bit.
4772 (ALU16_HAD_CARRY, ALU32_HAD_CARRY, ALU16_HAD_OVERFLOW): Use MSBIT
4773 so that bit offset is explicit.
4774
4775Wed Aug 27 11:55:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
4776
4777 * sim-utils.c (sim_analyze_program): Add prog_name argument.
4778 Update STATE_PROG_BFD when needed with a dup'd copy of the
4779 program.
4780
4781 * sim-config.c (sim_config): Delete ABFD argument, use
4782 STATE_PROG_BFD directly.
4783
4784Tue Aug 26 12:55:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
4785
4786 * run.c (main): Pass the open ABFD to sim_create_inferior.
4787
4788 * nrun.c (main): Determine prog_bfd. Pass to sim_create_inferior
4789 and sim_load.
4790 (bfd.h): Include.
4791
4792 * sim-hload.c (sim_load): New file. Implement generic sim_load for
4793 hardware only simulator targets.
4794
4795 * Make-common.in (sim-hload.o): Add rule.
4796
4797Wed Aug 27 09:51:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
4798
4799 * sim-utils.c (sim_copy_argv): Rewrite to match malloc strategy
4800 used by copyargv and freeargv.
4801
4802 * sim-options.c (sim_parse_args): Save a copy of PROG-ARGS in
4803 STATE_PROG_ARGV, not just a pointer.
4804
4805Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
4806
4807 * configure: Regenerated to track ../common/aclocal.m4 changes.
4808 * config.in: Ditto.
4809
4810Mon Aug 25 12:11:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
4811
4812 * aclocal.m4 (sim-endian): Add second argument to
4813 SIM_AC_OPTION_ENDIAN. First is hardwired endian, second is
4814 default endian when not hardwired.
4815
4816 * sim-config.h (WITH_DEFAULT_TARGET_BYTE_ORDER): New macro, if all
4817 else failes value for target byte order.
4818
4819 * sim-config.c (sim_config): Add abfd arguments. Set
4820 STATE_PROG_BFD accordingly. Determine prefered_target_byte_order
4821 from same.
4822 (sim_config): Return SIM_RC, don't abort.
4823 (bfd.h): Include.
4824
4825 * run.c (main): Update call to sim_open - add ABFD argument.
4826 * nrun.c (main): Add NULL ABFD argument.
4827
4828Thu Aug 14 12:48:57 1997 Doug Evans <dje@canuck.cygnus.com>
4829
4830 * callback.c (os_poll_quit): Make static.
4831 Call sim_cb_eprintf, not p->eprintf.
4832 (sim_cb_printf, sim_cb_eprintf): New functions.
4833 * sim-utils.h (sim_cb_printf, sim_cb_eprintf): Declare.
4834
4835 * sim-basics.h (zalloc,zfree,sim_add_commas,SIM_ELAPSED_TIME,
4836 sim_elapsed_time_get,sim_elapsed_time_since): Move decls to
4837 sim-utils.h. #include sim-utils.h.
4838 * sim-utils.h: Above decls moved here.
4839 (sim_analyze_program,sim_load_file): Use `struct _bfd', not `bfd'.
4840
4841 * sim-watch.c (action_watchpoint): Fix thinkos.
4842
4843Thu Jul 24 08:48:05 1997 Stu Grossman (grossman@critters.cygnus.com)
4844
4845 * sim-types.h: Fix defs of 64 bit data types for MSVC.
4846
4847Tue Jul 22 10:35:37 1997 Doug Evans <dje@canuck.cygnus.com>
4848
4849 * sim-n-core.h (sim_core_write_unaligned_N): Add missing break
4850 to FORCED_ALIGNMENT case.
4851
4852Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
4853
4854 * callback.c (target_to_host_open): Handle hosts with O_BINARY.
4855
4856Thu Jun 5 08:47:10 1997 Jeffrey A Law (law@cygnus.com)
4857
4858 * Make-common.in (libsim.a): Fix typo.
4859
4860Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
4861
4862 * nrun.c (main): Verify the structure returned before using it.
4863
4864Wed Jun 4 11:44:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
4865
4866 * sim-config.h (WITH_ENGINE): Enable the sim-engine module by
4867 default.
4868
4869 * sim-engine.c (sim_engine_install): New function. Install the
4870 engine init functions.
4871 (sim_engine_init): [Re]initialize the simulator engine.
4872
4873 * sim-module.c: Add sim_engine to list of modules that always
4874 install.
4875
4876Tue Jun 3 04:52:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
4877
4878 * sim-watch.c (schedule_watchpoint): Use sim_unschedule_watchpoint
4879 to remove the old watchpoint, not delete_watchpoint.
4880 (watch_option_handler): Action the correct watchpoint, not just
4881 cycles.
4882
4883Wed May 28 14:47:41 1997 Andrew Cagney <cagney@b1.cygnus.com>
4884
4885 * sim-n-core.h (sim_core_write_aligned_N): For 8byte reads, output
4886 both low and high word.
4887 (sim_core_write_aligned_N): Ditto.
4888
4889 * sim-trace.c (set_trace_options): Delete code explicitly setting
4890 core->trace.
4891
4892 * sim-options.c (sim_print_help): Call the list commands if not a
4893 standalone simulator.
4894 (sim_print_help): Advise that some options may not be applicable.
4895
4896 * sim-trace.c (set_trace_options): Assume core present.
4897
4898 * sim-events.c (sim_events_schedule_after_signal): Overflow signal
4899 buffer when full not almost full.
4900
4901Tue May 27 14:32:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
4902
4903 * sim-events.c (sim_events_process): Don't blat the event queue
4904 when processing watchpoints.
4905
4906 * sim-watch.h: Make arg unsigned long - stop sign extension.
4907
4908 * sim-events.c (sim_watch_valid): rewrite so debugable.
4909
4910 * sim-config.h (WITH_XOR_ENDIAN): Default to zero.
4911
4912 * sim-watch.c (schedule_watchpoint): Add is_within option so that
4913 inequality test is possible.
4914 (handle_watchpoint): Re-pass is_within arg.
4915 (watch_option_handler): When `!' prefix to pc-watchpoint arg pass
4916 0 to schedule_watchpoint's is_within arg.
4917 (sim_watchpoint_init): Re-pass is_within arg.
4918
4919 * sim-options.c (sim_print_help): Add is_command argument. Don't
4920 include -- prefix when called from the command line interpreter.
4921
4922 * sim-watch.c (schedule_watchpoint): Pass true is_within argument.
4923
4924 * sim-events.c (sim_events_watch_sim): Add is_within argument,
4925 zero indicates that the test should be reversed.
4926 (sim_events_watch_core): Ditto.
4927 (WATCH_CORE): Compare range against is_within.
4928 (WATCH_SIM): Ditto.
4929
4930Tue May 27 12:48:03 1997 Andrew Cagney <cagney@b2.cygnus.com>
4931
4932 * sim-events.c (WATCH_CORE): Pass NULL cpu argument to
4933 sim_core_read_buffer. Check nr-bytes transfered.
4934
4935 * sim-core.h (sim_core_common): Define a new struct that contains
4936 the common data. to sd and cpu structures.
4937 * sim-core.c (sim_core_attach): Update.
4938 (sim_core_init): Update. Remember to copy initialized data to each
4939 cpu.
4940 (sim_core_find_mapping): Ditto.
4941
4942 * sim-core.c (sim_core_read_buffer): Add cpu argument.
4943 (sim_core_write_buffer): Ditto.
4944
4945 * sim-n-core.h (sim_core_read_unaligned_N): When mis-aligned
4946 transfer use xor version of read buffer.
4947 (sim_core_write_unaligned_N): Ditto for write.
4948
4949 * sim-core.c (sim_core_xor_read_buffer): New function implement
4950 xor-endian data read breaking transfer up into xor-endian sized
4951 blocks.
4952 (sim_core_xor_write_buffer): Ditto for write.
4953 (reverse_n): Reverse order of arbitrary number of bytes in buffer
4954 - needed for xor-endian transfers.
4955
4956Fri May 23 14:24:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
4957
4958 * sim-inline.h: Review description.
4959
4960 * sim-core.h, sim-core.c: Reduce number of functions being inlined
4961 to just those involved in data transfers and configuration.
4962
4963 * sim-xcat.h (XSTRING): New macro, map macro definition onto
4964 string.
4965 * sim-n-core.h (sim_core_read_aligned_N): Use.
4966 (sim_core_read_unaligned_N): Ditto.
4967 (sim_core_read_unaligned_N): Ditto..
4968 (sim_core_write_unaligned_N): Ditto.
4969
4970 * sim-core.h: Add xor endian bitmap to main structure. *
4971
4972 sim-n-core.h (sim_core_write_aligned_N): Add suport for xor
4973 endian.
4974 (sim_core_read_aligned_N): Ditto.
4975
4976 * sim-core.c (sim_core_set_xor_endian): New function.
4977 (sim_core_attach): Don't overwrite the per-cpu xor map when
4978 cloning the global core.
4979
4980Fri May 23 10:53:13 1997 Andrew Cagney <cagney@b1.cygnus.com>
4981
4982 * sim-engine.h: Update below so that it is using an enumerated
4983 type.
4984
4985Thu May 22 09:12:16 1997 Gavin Koch <gavin@cygnus.com>
4986
4987 * sim-engine.c (sim_engine_restart):
4988 * sim-resume.c (sim_resume): Change longjmp param/setjmp
4989 return value used for simulator restart from 0 to 2.
4990
4991Wed May 21 08:47:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
4992
4993 * cgen-scache.c (scache_option_handler): Add is_command arg.
4994
4995 * sim-model.c (model_option_handler): Add is_command argument.
4996
4997 * sim-profile.c (profile_option_handler): Add is_command arg.
4998
4999 * sim-events.c (sim_watch_valid): Use ub64, lb64 when 64bit value
5000 involved.
5001
5002 * sim-module.c (sim_module_add_init_fn): Call init fn in the same
5003 order that they are registered.
5004
5005 * sim-options.h (OPTION_HANDLER): Add argument to differentiate
5006 between option and command line processing.
5007
5008 * sim-options.c: Include stdlib.h, ctype.h.
5009
5010 * Make-common.in (sim-watch.o): Add rule.
5011 (sim_main_headers): Assume sim-assert.h included.
5012 (sim-*.o): Simplify make rule.
5013
5014 * sim-module.c: Add sim_watch_install to module list.
5015
5016Tue May 20 14:15:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
5017
5018 * sim-base.h (STATE_LOADED_P): New predicate. Set once everything
5019 has been loaded.
5020
5021 * sim-trace.c (trace_install): Check magic. Include sim-assert.h.
5022 * sim-events.c (sim_events_install): Ditto.
5023 * sim-core.c (sim_core_install): Ditto.
5024 * sim-model.c (model_install): Ditto.
5025 * sim-options.c (standard_install): Ditto.
5026 * sim-profile.c (profile_install): Ditto.
5027 * sim-reason.c (sim_stop_reason): Ditto.
5028 * sim-run.c (sim_engine_run): Ditto.
5029 * sim-utils.c (sim_analyze_program): Ditto.
5030
5031 * sim-module.c (modules): Make profile_install and trace_install
5032 optional.
5033
5034 * sim-base.h (STATE_MEM_BASE): Define for flat memory systems.
5035
5036 * sim-options.c (standard_option_handler): Set the byte order.
5037
5038 * sim-events.c (sim_events_process): Allow multi tick processing.
5039 (sim_events_tickn): New function - multi cycle tick.
5040
5041 * sim-events.h (sim_events_tickn, sim_events_timewarp): Add
5042 prototypes. Under development.
5043 (sim_events): Replace processing with nr_ticks_to_process.
5044
5045Tue May 20 09:39:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
5046
5047 * nrun.c (main): Pass callbacks to sim_open instead of using
5048 sim_set_callbacks.
5049
5050 * run.c (main): Ditto.
5051
5052Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
5053
5054 * sim-events.c (sim_events_zalloc): Signal save memory allocator -
5055 stop tk interrupting malloc calls.
5056 (sim_events_zalloc): Converse.
5057
5058 * Make-common.in (sim_main_headers): Add sim-events.h.
5059
5060 * sim-events.c (sim_events_schedule_after_signal): Change return
5061 type to void - signal events are strictly internal.
5062 (sim_events_init): Allocate a finite buffer for signal events.
5063 (sim_events_schedule_after_signal): Enter signal events into the
5064 signal buffer.
5065
5066 * sim-engine.c (sim_engine_halt): Check SIM_DESC magic.
5067 (sim_engine_restart): Ditto.
5068 (sim_engine_abort): Ditto.
5069 * sim-stop.c (sim_stop): Ditto.
5070 (control_c_simulation): Ditto.
5071 * sim-resume.c (sim_resume): Ditto.
5072 (has_stepped): Ditto.
5073 * sim-abort.c (sim_engine_abort): Ditto.
5074
5075 * sim-basics.h (transfer_type): New type.
5076
5077 * sim-core.c (sim_core_signal): New function. Print core signal
5078 information.
5079 (sim_core_find_mapping): Add transfer argument.
5080
5081 * sim-n-core.h (sim_core_{write,write}_unaligned_N): Call
5082 SIM_CORE_SIGNAL if a recoverable abort.
5083 * sim-core.c (sim_core_find_mapping): Ditto.
5084
5085Fri May 16 15:13:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
5086
5087 * sim-core.c (sim_core_find_mapping): Replace calls to
5088 sim_io_error to more resiliant sim_engine_abort.
5089
5090 * sim-n-core.h (sim_core_read_unaligned_N): Ditto.
5091 (sim_core_write_unaligned_N): Ditto.
5092
5093Tue May 13 13:50:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
5094
5095 * sim-module.c: Add sim_events_install to list.
5096
5097 * sim-events.c (sim_events_install, sim_events_uninstall): Clonse
5098 from sim_core_*.
5099 (sim_events_init): Now returns SIG_RC.
5100
5101 * sim-run.c: New file. Generic sim_engine_run.
5102 * sim-reason.c: New file. Generic sim_stop_reason.
5103 * sim-stop.c: New file. Generic sim_stop.
5104 * sim-resume.c: New file. Generic sim_resume.
5105
5106 * Make-common.in (sim-engine.o): Add rule.
5107 (sim-run.o, sim-reason.o, sim-stop.o, sim-resume.o): Ditto.
5108
5109 * sim-engine.h, sim-engine.c: New file. Provide generic
5110 implementation of sim_engine_halt, sim_engine_error. et.al.
5111
5112 * sim-base.h (sim_state_base): Add member halt.
5113 (sim-engine.h): Include.
5114
5115 * sim-events.h (sim_event_handler): Always pass SIM_DESC to event
5116 handlers.
5117 * sim-events.c (sim_events_poll): Update event handler.
5118
5119Tue May 13 09:57:49 1997 Andrew Cagney <cagney@b2.cygnus.com>
5120
5121 * sim-events.h, sim-events.c (sim_events_watch_clock): New
5122 function.
5123 (sim_events_watch_sim): New function.
5124 (sim_events_watch_core): New function.
5125 (sim_watch_valid): New function.
5126 (sim_events_preprocess): New function.
5127 (sim_events_process): Process the watchpoints as well as the timer
5128 queue.
5129 (sim_events_tick): Check WORK_PENDING instead of the hold queue.
5130 (sim_events_deschedule): Check all the queues when removing an
5131 event.
5132 (sim_events_init): Ditto for cleaning.
5133
5134Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
5135
5136 * sim-fpu.c (is_ufpu_number): Comment out - currently unused.
5137
5138Mon May 19 11:23:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
5139
5140 * callback.c (os_open): Type of arg flags is int.
5141
5142Fri May 16 22:26:43 1997 Michael Meissner <meissner@cygnus.com>
5143
5144 * sim-fpu.c (sim_fpu_is_{eq,ne,lt,le,gt,ge}): Compare Infinities
5145 just like normal numbers as per IEEE rules.
5146
5147Wed May 14 21:20:38 1997 Bob Manson <manson@charmed.cygnus.com>
5148
5149 * callback.c (os_close): Mark the descriptor as being
5150 available if the close succeeded.
5151 (os_open): Pass 0644 as the mode of the file being created.
5152
5153Thu May 15 10:58:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
5154
5155 * sim-fpu.c (pack_fpu, unpack_fpu): New functions - decode a
5156 float.
5157
5158 * sim-inline.c (SIM_INLINE_C): Rename from _SIM_INLINE_C_.
5159 * sim-lnline.h: Update.
5160
5161 * sim-fpu.h, sim-fpu.c (sim_fpu_[iu]{32,64}to): New int2fp
5162 conversion functions.
5163 (sim_fpu_to{32,64}[iu]): New fp2int functions.
5164
5165 * sim-fpu.h, sim-fpu.c (sim_fpu_is_{lt,le,eq,ne,ge,gt}): New fp
5166 compare functions. Replacing.
5167 (sim_fpu_cmp): This. Delete.
5168
5169Mon May 12 14:49:05 1997 Andrew Cagney <cagney@b1.cygnus.com>
5170
5171 * sim-core.c (sim_core_find_mapping): Call engine_error not
5172 sim_io_error when possible.
5173
5174Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b2.cygnus.com>
5175
5176 * sim-endian.h (V1_H2): Add macro's to insert a word into a
5177 high/low double word.
5178
5179 * sim-trace.h: Remove definition of attribute - defined in
5180 sim_basics.h.
5181
5182Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
5183
5184 * sim-options.h (struct OPTION): Add doc_opt as the documenting
5185 name of the option - or family of options.
5186
5187 * sim-options.c (sim_args_command): Match command `a-b c' with
5188 option `--a-b-c' from option table.
5189
5190Thu May 8 12:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
5191
5192 * sim-options.c (sim_print_help): For optional arguments, wrap
5193 them in [].
5194
5195 * sim-trace.c (set_trace_options): New function, handle optional
5196 argument and multiple assignment.
5197 (trace_option_handler): Update.
5198
5199 * sim-trace.c (trace_option_handler): Trace branch and not fpu
5200 when branch tracing selected.
5201
5202Wed May 7 15:19:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
5203
5204 * sim-trace.c (trace_one_insn): Make a va-args function.
5205
5206 * sim-trace.c (trace_vprintf): New function, va-arg version of
5207 trace_printf.
5208
5209Tue May 6 16:38:16 1997 Doug Evans <dje@canuck.cygnus.com>
5210
5211 * sim-trace.c (trace_uninstall): Don't close a file twice.
5212 * sim-profile.c (profile_uninstall): Likewise.
5213
5214Tue May 6 06:14:01 1997 Mike Meissner <meissner@cygnus.com>
5215
5216 * sim-trace.c (toplevel): Include bfd.h.
5217 (trace_options): Note that --trace-linenum also turns on
5218 --trace-insn. Add --trace-{branch,semantics}.
5219 (trace_option_handler): If --trace-linenum, also turn on
5220 --trace-insn. Add --trace-branch support. If --trace-semantics,
5221 turn on ALU, FPU, branch, and memory tracing.
5222 (trace_one_insn): New function to trace an instruction. Support
5223 --trace-linenum.
5224 (OPTION_TRACE_*): Use an enum, rather than lots of defines.
5225
5226 * sim-trace.h (TRACE_{SEMANTICS,BRANCH}_IDX): Add new macros.
5227 (MAX_TRACE_VALUES): Use 32, not 12 by default.
5228 (TRACE_branch): Add new mask.
5229 (TRACE_*_P): Define all possible trace_p macros.
5230 (trace_one_insn): Declare function.
5231
5232Mon May 5 14:08:34 1997 Mike Meissner <meissner@cygnus.com>
5233
5234 * sim-trace.h (__attribute__): Define as nothing if not GNU C or
5235 GNU C doesn't support __attributes__.
5236 ({trace,debug}_printf): Add attribute's so -Wformat can check the
5237 format strings.
5238
5239Mon May 5 11:16:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
5240
5241 * sim-config.h (FORCED_ALIGNMENT): New alignment option -
5242 addresses are masked forcing them to be correctly aligned.
5243 (WITH_ALIGNMENT): Make NONSTRICT_ALIGNMENT the default.
5244 * sim-config.c (config_alignment_to_a): Update.
5245
5246 * sim-core.h (sim_cpu_core): New data type contains cpu specific
5247 core data.
5248 * sim-base.h (CPU_CORE): Add cpu specific core data to cpu base
5249 type.
5250 * sim-core.c (sim_core_attach): Add CPU argument. Ready for
5251 processor specific core maps.
5252 (sim_core_map_attach): Copy the core map data to each of the
5253 processor specific core data structures.
5254 * sim-core.c (sim_core_find_mapping): Update.
5255
5256 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Rename.
5257 (sim_core_write_aligned_N, sim_core_write_aligned_N): New names.
5258 (sim_core_write_unaligned_N, sim_core_write_unaligned_N): New
5259 alternatives that handle unaligned addresses.
5260 (sim_core_{read,write}_{,un}aligned_N): Drop SIM_DESC arg, replace
5261 with just CPU arg.
5262 * cgen-utils.c (sim_disassemble_insn): Update.
5263
5264Mon May 5 13:19:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
5265
5266 * sim-trace.h (TRACE_FPU_IDX): Add Floating-point specific
5267 tracing.
5268
5269 * sim-fpu.h, sim-fpu.c: New files - prototype for generic target
5270 fpu support.
5271
5272 * sim-inline.h, sim-inline.c: Add support for SIM_FPU.
5273
5274Fri May 2 17:59:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
5275
5276 * sim-core.c (sim_core_map_to_str): New function ascii equivalent
5277 to map type.
5278
5279 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Use in trace
5280 statement.
5281
5282Fri May 2 17:28:02 1997 Andrew Cagney <cagney@b2.cygnus.com>
5283
5284 * cgen-trace.c: Prepend additional trace_printf argument.
5285
5286 * cgen-utils.c (sim_disassemble_insn): Add additional core
5287 arguments.
5288
5289Fri May 2 11:40:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
5290
5291 * nrun.c (main): Catch/report errorenous simulator states.
5292
5293 * sim-module.c: #include "libiberty.h" so that xmalloc is defined.
5294 * sim-trace.c: #include string.h/strings.h so that memset is
5295 defined.
5296 * sim-utils.c: Ditto.
5297 * sim-profile.c: Ditto. And stdlib.h.
5298 (print_bar): Only define when used by instruction or memory profiler.
5299
5300 * sim-options.c (standard_option_handler): Make ul more local.
5301
5302 * sim-load.c (sim_load_file): Make the name constant.
5303 (sim_load_file): Passify gcc.
5304
5305 * sim-utils.h: New file, pre-declare utilites in corresponding .c
5306 file.
5307 * sim-utils.c, sim-load.c: Include sim-utils.h.
5308
5309 * sim-base.h (sim_cpu): Pre define here so available to all.
5310
5311 * sim-core.h (DECLARE_SIM_CORE_WRITE_N, DECLARE_SIM_CORE_READ_N):
5312 Restore the sim_cpu and instruction_address arguments so that full
5313 information is available to the abort function.
5314 * sim-core.c (sim_core_find_mapping, sim_core_write_buffer): Ditto.
5315 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
5316
5317 * sim-trace.h, sim-trace.c (trace_option_handler): Add interim
5318 tracing support for sim-events and sim-core.
5319 (trace_option_handler): Convert #if to if where possible so always
5320 compiled/checked by C compiler.
5321 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
5322
5323 * sim-base.h: Adjust comment documenting how to define the cpu
5324 structure.
5325 (sim_state_base): Add sim_core and sim_events to simulator base
5326 object.
5327
5328 * sim-trace.h, sim-trace.c (trace_printf): Add SIM_DESC argument.
5329 * sim-core.c (sim_core_init, sim_core_attach,
5330 sim_core_find_mapping): Update.
5331 * sim-events.c (ETRACE, sim_events_init, sim_events_time,
5332 update_time_from_event, insert_sim_event,
5333 sim_events_schedule_after_signal, sim_events_deschedule,
5334 sim_events_tick): Ditto.
5335
5336 * sim-basics.h (sim-module.h, sim-trace.h, sim-profile.h,
5337 sim-model.h): Move #includes from here.
5338 * sim-base.h: To here.
5339 (sim-core.h, sim-events.h, sim-io.h): Include also
5340
5341Wed Apr 30 15:37:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
5342
5343 * callback.c (default_callback): Missing initialisers.
5344
5345Thu May 1 10:40:47 1997 Doug Evans <dje@canuck.cygnus.com>
5346
5347 * sim-utils.c (sim_add_commas): New function.
5348 * sim-basics.h (sim_add_commas): Add prototype.
5349 * cgen-scache.c (scache_print_profile): Print commas in numbers.
5350 * sim-profile.c (COMMAS): New macro.
5351 (print_*): Use it to print commas in numbers.
5352
5353 * configure: Regenerated.
5354
5355 * cgen-sim.h (sim_signal_type): Add SIM_SIGINT.
5356 (cgen_state): New member run_fast_p.
5357 (cgen_init): Add prototype.
5358 (sim_disassemble_insn): New arg `cpu'.
5359 * cgen-trace.c (trace_insn): Update call to sim_disassemble_insn.
5360 * cgen-utils.c (cgen_init): New function.
5361 (sim_disassemble_insn): New arg `cpu'. Rewrite fetching of insn.
5362 * genmloop.sh: Call engine_halt if loop exits.
5363
5364 * Makefile.in (sim-options_h): Define.
5365 (sim-{module,options,trace,profile,utils}.o): Clean up dependencies.
5366 (sim-model.o): Add new rule.
5367 (cgen-{scache,trace,utils}.o): Add new rules.
5368 * aclocal.m4 (SIM_AC_OPTION_{SCACHE,DEFAULT_MODEL}): Add.
5369 * cgen-scache.c (scache_print_profile): Change `sd' arg to `cpu'.
5370 Indent output by 2 spaces.
5371 * cgen-scache.h (scache_print_profile): Update.
5372 * cgen-trace.c (trace_insn_fini): Indent output by 2 spaces.
5373 Use trace_printf, not fprintf.
5374 (trace_extract): Use trace_printf, not cgen_trace_printf.
5375 * genmloop.sh (!FAST case): Increment `insn_count'.
5376 * sim-base.h (sim_state_base): Only include scache_size if WITH_SCACHE.
5377 (sim_cpu_base): Rename member `sd' to `state' to be consistent with
5378 access macro's name.
5379 * sim-core.c (sim_core_init): Use EXTERN_SIM_CORE to define it.
5380 Change return type to SIM_RC.
5381 (sim_core_{install,uninstall}): New functions.
5382 * sim-core.h (sim_core_{install,uninstall}): Declare.
5383 (sim_core_init): Use EXTERN_SIM_CORE to define it.
5384 Change return type to SIM_RC.
5385 * sim-model.h (models,machs,model_install): Declare.
5386 * sim-module.c (modules): Add scache_install, model_install.
5387 (sim_post_argv_init): Set cpu->state backlinks.
5388 * sim-options.c (standard_options): Delete --simcache-size,--max-insns.
5389 (standard_option_handler): Likewise.
5390 * sim-profile.c (PROFILE_{HISTOGRAM,LABEL}_WIDTH): Move to
5391 sim-profile.h.
5392 (*): Assume ANSI C.
5393 (profile_options): Delete --profile-simcache.
5394 (profile_option_handler): Likewise.
5395 (profile_print_insn): Change `sd' arg to `cpu'. Indent output 2
5396 spaces.
5397 (profile_print_{memory,model}): Likewise.
5398 (profile_print_simcache): Delete.
5399 (profile_print_speed): New function.
5400 (profile_print): Rewrite.
5401 * sim-profile.h (PROFILE_scache): Renamed from PROFILE_simcache.
5402 (WITH_PROFILE_SCACHE_P): Renamed from WITH_PROFILE_SIMCACHE_P.
5403 (PROFILE_DATA): Delete members simcache_{hits,misses}.
5404 (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): Delete.
5405 (PROFILE_{CALLBACK,CPU_CALLBACK}): New types.
5406 (profile_print): Update prototype.
5407
5408Wed Apr 30 11:34:14 1997 Doug Evans <dje@canuck.cygnus.com>
5409
5410 * cgen-scache.[ch], cgen-sim.h: New files.
5411 * cgen-trace.[ch], cgen-types.h, cgen-utils.c, genmloop.sh: New files.
5412 * sim-model.c: New file.
5413
5414 * Make-common.in (clean targets): Undo patch of Apr. 22.
5415
5416Fri Apr 25 15:28:32 1997 Mike Meissner <meissner@cygnus.com>
5417
5418 * sim-n-bits.h (signed): If we have a standard compiler, undef
5419 signed, so that signedN is defined correctly.
5420
5421Thu Apr 24 00:00:07 1997 Doug Evans <dje@canuck.cygnus.com>
5422
5423 * sim-module.h, sim-model.h, sim-profile.h: New files.
5424 * sim-module.c, sim-profile.c: New files.
5425 * Make-common.in (SIM_PROFILE): Define
5426 (CONFIG_CFLAGS): Add $(SIM_PROFILE).
5427 (sim_main_headers): Add sim-module.h, sim-model.h, sim-profile.h.
5428 (sim_module.o,sim-profile.o): Add rules for.
5429 * aclocal.m4 (--enable-sim-trace): Allow symbolic arguments.
5430 (--enable-sim-profile): Add.
5431 * configure: Regenerated.
5432 * sim-base.h (sim_state_base): New members init_list, uninstall_list,
5433 model. Move trace and profile support to sim-{trace,profile}.h.
5434 New members trace_data, profile_data.
5435 * sim-basics.h: #include sim-module.h, sim-model.h, sim-profile.h.
5436 * sim-config.h: Provide default definition of WITH_PROFILE.
5437 (WITH_TRACE): Change default to -1.
5438 (MAX_NR_PROCESSORS): Always define.
5439 * sim-options.c: Move trace and profile support to
5440 sim-{trace,profile}.h.
5441 (sim_pre_argv_init): Moved to sim-model.c.
5442 (standard_install): New function.
5443 * sim-options.h (sim_pre_argv_init): Move decl to sim-model.c.
5444 (standard_install): Declare.
5445 * sim-trace.c: Tracing option handling moved here from sim-options.c.
5446 (trace_install, trace_uninstall): New functions.
5447 (trace_printf): Update reference to TRACE_FILE.
5448 * sim-trace.h (TRACE_FOO_IDX): Moved here from sim-base.h.
5449 (TRACE_foo): Bit masks for symbolic arguments to --enable-sim-trace.
5450 (WITH_TRACE_FOO_P): Define.
5451 (trace_install): Declare.
5452 (TRACE_DATA): New struct.
5453
5454Wed Apr 23 17:23:15 1997 Doug Evans <dje@canuck.cygnus.com>
5455
5456 * run.c: Undo last exec_bfd patch.
5457 (main): Only pass -E ifdef SIM_HAVE_BIENDIAN.
5458
5459Wed Apr 23 17:54:27 1997 Mike Meissner <meissner@cygnus.com>
5460
5461 * run.c (exec_bfd): Add back in.
5462 (main): Set exec_bfd.
5463
5464Tue Apr 22 14:43:46 1997 Doug Evans <dje@canuck.cygnus.com>
5465
5466 * sim-load.c (sim_load_file): #include <stdio.h> for NULL.
5467
5468Wed Apr 23 02:55:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
5469
5470 * sim-events.c (insert_sim_event): Call sim_io_error instead of
5471 less well defined engine_error.
5472 * sim-core.c: Ditto.
5473
5474Tue Apr 22 08:48:16 1997 Stu Grossman (grossman@critters.cygnus.com)
5475
5476 * Make-common.in: Change clean targets to use :: so that other
5477 Makefiles can have their own clean targets.
5478 * sim-load.c (xprintf eprintf): Use ANSI_PROTOTYPES instead of
5479 __STDC__ to control use of stdarg vs. varargs syntax. Some
5480 systems can't use __STDC__, but require stdarg.
5481
5482Fri Apr 18 11:14:43 1997 Doug Evans <dje@canuck.cygnus.com>
5483
5484 * sim-options.c (standard_options): Add --endian.
5485 (standard_option_handler): Likewise.
5486
5487 * nrun.c: #include <signal.h>.
5488 (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
5489 handler that calls sim_stop ().
5490
5491Fri Apr 18 13:11:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
5492
5493 * run.c (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
5494 handler that calls sim_stop (). Simulators may still be
5495 establishing their own handler.
5496
5497 * sim-events.c (sim_events_poll): Rename from
5498 sim_events_at_large_int. Poll IO.
5499
5500 * sim-io.c (sim_io_poll_quit): New function - pass on a polling
5501 request.
5502
5503 * callback.c (os_poll_quit): New function poll for quit signal
5504 where needed.
5505 (default_callback): Include magic number.
5506
5507Thu Apr 17 02:25:11 1997 Doug Evans <dje@canuck.cygnus.com>
5508
5509 * aclocal.m4: Check for headers time.h, sys/time.h, sys/resource.h.
5510 Check for functions getrusage, time.
5511 * sim-basics.h (SIM_ELAPSED_TIME): New typedef.
5512 (sim_elapsed_time_get, sim_elapsed_time_since): Add prototypes.
5513 * sim-utils.c: #include time.h, sys/time.h, sys/resource.h if able.
5514 (sim_elapsed_time_get, sim_elapsed_time_since): New functions.
5515
5516 * sim-utils.c (sim_copy_argv, sim_analyze_program): New functions.
5517
5518 * sim-options.c, sim-options.h: New files.
5519 * sim-config.h (WITH_DEBUG): Provide default value of zero.
5520 * Make-common.in (nrun.o): Add rules for.
5521 * nrun.c: New file.
5522
5523 * run.c (main): Check return value of sim_open.
5524
5525 * Make-common.in (sim-options.o, sim-load.o, sim-trace.o): Add rules.
5526 (sim_main_headers): Add sim-trace.h.
5527 * run.c (exec_bfd, target_byte_order): Delete.
5528 (main): Pass -E <endian> to sim_open. Delete code to load sections,
5529 call sim_load instead. Check return code of sim_create_inferior.
5530 * sim-base.h (CURRENT_STATE): Define.
5531 (sim_state_base): Make typedef. New members options, prog_argv,
5532 prog_bfd, text_{section,start,end}, start_addr, simcache_size,
5533 mem_size, memory [+ corresponding access macros].
5534 (sim_cpu_base): New typedef.
5535 * sim-trace.h: New file.
5536 * sim-trace.c: New file.
5537 * sim-basics.h: #include it.
5538 * sim-load.c: New file.
5539
5540Tue Apr 15 15:10:13 1997 Ian Lance Taylor <ian@cygnus.com>
5541
5542 * Make-common.in (INSTALL): Set to @INSTALL@.
5543 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
5544 (install-common): Depend upon installdirs. Use
5545 $(program_transform_name) directly, rather than using
5546 $(INSTALL_XFORM).
5547 (installdirs): New target.
5548 * Makefile.in (INSTALL): Set to @INSTALL@.
5549 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
5550 (install-man): Depend upon installdirs. Use
5551 $(program_transform_name) directly, rather than using
5552 $(INSTALL_XFORM).
5553 (installdirs): New target.
5554
5555Tue Apr 15 15:08:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
5556
5557 * sim-assert.h (SIM_ASSERT, ASSERT): Allow these macros to
5558 be overriden.
5559
5560Wed Apr 9 16:06:44 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5561
5562 * sim-basics.h: Only bring in config.h and tconfig.h if
5563 HAVE_CONFIG_H.
5564
5565Mon Apr 7 11:39:45 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5566
5567 * sim-config.h (WITH_TARGET_WORD_MSB): New Macro. Define the bit
5568 numbering convention of the target.
5569 * sim-config.c (print_sim_config): Print WITH_TARGET_WORD_BITSIZE
5570 and WITH_TARGET_WORD_MSB.
5571 (sim_config): When possible, check for consistency with bitsize
5572 and msb.
5573
5574 * sim-bits.h: Allow MSB to be other than zero.
5575 * sim-bits.c: Ditto.
5576 * sim-n-bits.h: Ditto.
5577
5578 * sim-bits.h (MSMASK*): New macros - converce to LSMASK*.
5579 * sim-n-bits.h (MSMASKEDn): Ditto.
5580
5581Mon Apr 14 16:29:21 1997 Ian Lance Taylor <ian@cygnus.com>
5582
5583 * Makefile.in (INSTALL): Change install.sh to install-sh.
5584
5585Mon Apr 7 10:46:38 1997 Doug Evans <dje@canuck.cygnus.com>
5586
5587 * sim-base.h (sim_state_base): Move `magic' to end of struct.
5588
5589Mon Apr 7 15:53:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5590
5591 * run.c (main): Check that a program to run was specified.
5592
5593Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5594
5595 * aclocal.m4 (AC_TYPE_SIGNAL): Add check.
5596
5597 * configure: Regenerated to track ../common/aclocal.m4 changes.
5598 * config.in: Ditto.
5599
5600Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
5601
5602 * sim-endian.h: Move host {LITTLE,BIG}_ENDIAN support from here,
5603 * sim-config.h: To here.
5604
5605 * Make-common.in (SIM_EXTRA_DEPS): New config var.
5606 (sim_main_headers): Define.
5607 (sim-*.o): Depend on $(SIM_EXTRA_DEPS).
5608 (BUILT_SRC_FROM_COMMON): Move here from ../d30v/Makefile.in.
5609 (clean): Use it.
5610 (sim-utils.o): Add rule for.
5611 * sim-utils.o: New file.
5612 * sim-basics.h: #include sim-base.h.
5613 (zalloc): Make argument unsigned long.
5614 * sim-base.h: New file.
5615 * sim-inline.h (SIM_IO support): Delete.
5616 * sim-io.h: Delete inline support.
5617 * sim-io.c: Likewise. sim-state.h renamed to sim-main.h.
5618 * sim-config.c: sim-state.h renamed to sim-main.h.
5619 * sim-core.c: Likewise.
5620 * sim-events.c: Likewise.
5621
5622 * run.c (main): Pass SIM_OPEN_STANDALONE to sim_open.
5623
5624 * aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h.
5625 (sim-debug): Allow arguments. Define WITH_DEBUG in addition to
5626 -DDEBUG.
5627 * configure: Regenerated to track ../common/aclocal.m4 changes.
5628
5629Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5630
5631 * configure: Regenerated to track ../common/aclocal.m4 changes.
5632
5633Wed Apr 2 11:08:11 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5634
5635 * sim-config.h (WITH_ALIGNMENT, WITH_FLOATING_POINT,
5636 WITH_XOR_ENDIAN, WITH_SMP, WITH_RESERVED_BITS): Assume that these
5637 are defined by the configure.
5638
5639 * aclocal.m4 (sim-stdio): Add option stdio from ../ppc configure.
5640
5641 * aclocal.m4 (floating-point, xor-endian, alignment, smp,
5642 reserved-bits): Always define.
5643
5644 * sim-config.h, sim-config.c (sim_config): New function - and new
5645 file - co-ordinate the setting/checking of the common simulator
5646 configuration options.
5647
5648 * Make-common.in (sim-config.o): Add rule.
5649
5650Fri Mar 28 15:32:00 1997 Mike Meissner <meissner@cygnus.com>
5651
5652 * callback.c (os_{,e}vprintf_filtered): Change stdarg type to
5653 va_list from void *, since va_list might not be a pointer type.
5654
5655Mon Mar 24 15:27:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5656
5657 * sim-n-endian.h (offset_N): Correct assertion - word and sub word
5658 in wrong order.
5659 (offset_N): Correct computation of LE offset.
5660
5661 * sim-io.c (sim_io_error): Include a new line when reporting
5662 errors.
5663
5664 * sim-assert.h (SIM_FILTER_PATH): Out by one when locating last
5665 `/'.
5666
5667Thu Mar 20 22:31:06 1997 Jeffrey A Law (law@cygnus.com)
5668
5669 * run.c: Include alloca-conf.h.
5670
5671 * callback.c (os_evprintf_filtered): Fix typo.
5672
5673Fri Mar 21 13:36:20 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5674
5675 * run.c (string.h, strings.h, stdlib.h): Include.
5676
5677 * sim-events.c (sim_events_tick): Recent cleanup failed to return
5678 0 when nothing pending.
5679
5680 * run.c (sim_size, sim_trace): Plicate GCC - these two functions
5681 will soon be going away.
5682 (getopt): Plicate GCC.
5683
5684 * sim-endian.c (sim-io.h): Plicate GCC.
5685 * sim-bits.c (sim-io.h): Ditto.
5686 * sim-n-bits.h (ROTn): Ditto.
5687
5688 * sim-io.c (sim_io_error): Correct check for NULL.
5689
5690 * sim-assert.h (SIM_FILTER_PATH): Separate out the code filtering
5691 the __FILE__.
5692 * sim-events.c: Use SIM_FILTER_PATH to filter out the filename
5693 path.
5694
5695Wed Mar 19 01:12:06 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5696
5697 * aclocal.m4 (SIM_AC_OPTION_*: Move so that they are outside of
5698 SIM_AC_COMMON - SIM_AC_COMMON was gobling arguments.
5699
5700Tue Mar 18 20:48:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5701
5702 * sim-alu.h: Include sim-xcat.h.
5703
5704Tue Mar 18 13:58:18 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5705
5706 * Make-common.in (sim-bits.c, sim-core.c, sim-endian.c,
5707 sim-events.c, sim-inline.c, sim-io.c): Define rules for building
5708 these.
5709
5710 * sim-events.c (sim_events_at_large_int): New function. Just
5711 schedules an event every large-int ticks.
5712 (sim_events_init): Call.
5713 (sim_events_tick, sim_events_process): Move async handing to
5714 sim_events_process. Move timer decrement so that it occures after
5715 events have been processed.
5716
5717 * sim-basics.h (struct _engine): Remove declaration.
5718
5719 * sim-events.h, sim-events.c: Rename type to sim_events. Prefix
5720 everything with same. Rename global struct to SIM_DESC.
5721 * sim-core.h, sim-core.c, sim-n-core.c: Ditto for sim_core.
5722 * sim-io.h, sim-io.c: Ditto.
5723
5724 * sim-assert.h: New file. Optional assertion checking macros.
5725 * sim-io.c (sim_io_error): Make just this function tolerant to
5726 null pointers.
5727
5728 * sim-xcat.h: New file. Define concatenate macros.
5729 * sim-basics.h (XCONCAT*): Move to sim-xcat.h.
5730 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Explicitly include
5731 concat macros.
5732
5733
5734Tue Mar 18 12:44:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5735
5736 * sim-bits.h (LSMASK): New macro. Create mask of LS bits.
5737
5738Mon Mar 17 18:10:05 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5739
5740 * sim-inline.h: Add definitions for sim-types.
5741 (ALL_BY_MODULE): New macro, encapsulate full inlining by the
5742 module.
5743
5744Mon Mar 17 15:38:27 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5745
5746 * sim-events.h: Remove defunct reference to callback struct.
5747
5748Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5749
5750 * configure: Re-generate.
5751
5752Mon Mar 17 15:04:47 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5753
5754 * Make-common.in (CSEARCH): Do not include the gdb directory in
5755 the search path.
5756
5757Mon Mar 17 13:16:26 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5758
5759 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
5760 SIM_WARNING): Drop, requiring the simulator specific Makefile.in
5761 to explicitly incorporate these.
5762
5763 * aclocal.m4 (--enable-sim-alignment); New option. Strongly
5764 specify the alignment restrictions of the target architecture -
5765 without this option all alignment restrictions are accomodated.
5766 (--enable-sim-assert): New option. Conditionally compile in
5767 assertion statements.
5768 (--enable-sim-float): New option. Strongly specify the target's
5769 floating point support.
5770 (--enable-sim-hardware): New option. Specify the hardware devices
5771 included in the simulation.
5772 (--enable-sim-packages): New option. Specify the hardware
5773 packages included in the simulation.
5774 (--enable-sim-regparm): New option. Specify that parameters be
5775 passed in registers instead of on the stack.
5776 (--enable-sim-reserved-bits): New option. Specify that reserved
5777 bits within an instruction are are correctly set.
5778 (--enable-sim-smp): New option. Specify the level of SMP support
5779 to be included in the simulator.
5780 (--enable-sim-stdcall): New option. Specify an alternative
5781 function call convention.
5782 (--enable-sim-xor-endian): New option. Configure xor-endian
5783 support used by some targets to implement bi-endian support.
5784
5785Fri Mar 14 19:51:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5786
5787 * aclocal.m4 (--enable-sim-hostendian): New option. Allow the
5788 host endianness to be overridden.
5789 (--enable-sim-endian): Allow the target platform's byte order
5790 to be overridden.
5791 (--enable-sim-inline): Control the inlining of common components.
5792 (--enable-sim-bswap): For compatibility, also define WITH_BSWAP.
5793 (--enable-sim-warnings): Enable additional GCC compiler checks.
5794 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
5795 SIM_WARNINGS): Add.
5796
5797 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Rename from
5798 sim-*-n.h so that the names are uniq on dos machines
5799 * sim-core.c, sim-bits.c, sim-endian.c: Update.
5800
5801Thu Mar 13 12:32:42 1997 Doug Evans <dje@canuck.cygnus.com>
5802
5803 * run.c: #include "libiberty.h".
5804 (main): New locals sd,no_args,sim_argv.
5805 Run buildargv on -a option. Pass argv to sim_open, argv[0]
5806 is program name. Update call to sim_set_callbacks.
5807 Record result of sim_open, pass to other sim_foo routines.
5808
5809Thu Mar 13 10:24:05 1997 Michael Meissner <meissner@cygnus.com>
5810
5811 * callback.c (os_printf_filtered): Do not call exit(1) or print a
5812 final newline.
5813
5814Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5815
5816 * callback.c: Add os_flush_stdout and vprintf_filtered callbacks.
5817 Route stdout through buffered IO.
5818
5819 * callback.c: Add os_flush_stderr, os_write_stderr,
5820 os_evprintf_filtered functions to route error output through
5821 stderr.
5822
5823 * sim-io.h, sim-io.c (sim_io_flush_stderr, sim_io_flush_stdout):
5824 Correct return type - should be void.
5825
5826Fri Mar 7 20:14:37 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5827
5828 * sim-basics.h: Clean up. Many macro's moved to sim-inline.h.
5829
5830 * sim-config.h: Ditto. For some options - eg WITH_DEVICES - do
5831 not provide a default value as undefined indicates disable code.
5832
5833Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5834
5835 * sim-core.h, sim-core-n.h, sim-core.c: Borrow code from ppc
5836 directory.
5837 * sim-events.h, sim-events.c: Ditto.
5838 * sim-io.h, sim-io.c: Ditto.
5839
5840Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5841
5842 * sim-alu.h (ALU_SUB_CA, ALU*_SUB_CA): New alu operation.
5843
5844 * sim-bits.h, sim-bits-n.h, sim-bits.c (LSMASKED*): New macro's
5845 extract the tail or least signifiant bits from an integer of the
5846 specified size.
5847
5848 * sim-bits.h, sim-bits.c: Clean up conditionally compiled #if
5849 WITH_TARGET_BITSIZE so that the compilation will fail when an
5850 unsupported bitsize value is defined.
5851
5852 (INSERTED*): Convert to functions.
5853 (EXTRACTED*): Ditto.
5854
5855 (SIGN_EXTEND, SEXT): Change to more terse name.
5856
5857Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5858
5859 * sim-inline.h: Allow explicit control over which .c files will be
5860 included by their header.
5861
5862 * sim-inline.h: Allow explicit control over which .c files use the
5863 alternative - REGPARM - parameter passing mechanism.
5864
5865 * sim-inline.h, sim-inline.c: Don't attempt to include any of
5866 icache.c, idecode.c, semantics.c or support.c. Those names are
5867 not generally applicable.
5868
5869Thu Feb 27 10:17:23 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5870
5871 * sim-bits.c, sim-bits-n.h (new): Split sim-bits.c into two parts
5872 in a fashion similar to sim-endian-n.
5873
5874 * sim-endian.h: (H_word, L_word, AL_*, VL_*): Extend to include
5875 both value and address macro's.
5876
5877Tue Feb 25 18:51:57 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
5878
5879 * sim-alu.h (ALU16_BEGIN, ALU16_SET, ...): Fill in.
5880
5881 * sim-endian.h (L_word, H_word): Replace MS2W_4, LS2W_4 with more
5882 generic L_word, H_word macro's.
5883
5884Thu Feb 20 18:36:55 1997 Andrew Cagney <cagney@critters.cygnus.com>
5885
5886 * sim-basics.h: Borrow code from ppc directory.
5887 * sim-bits.c: Ditto.
5888 * sim-bits.h: Ditto.
5889 * sim-config.h: Ditto.
5890 * sim-endian-n.h: Ditto.
5891 * sim-endian.c: Ditto.
5892 * sim-endian.h: Ditto.
5893 * sim-inline.c: Ditto.
5894 * sim-inline.h: Ditto.
5895 * sim-types.h: Ditto.
5896
5897Wed Feb 19 12:40:50 1997 Andrew Cagney <cagney@critters.cygnus.com>
5898
5899 * sim-alu.h (ALU_SET16, ALU_SET32, ALU_SET64, etc): Make available
5900 all the ALU size alternatives and then auto-configure a default.
5901
5902 * sim-alu.h: Copy ppc/idecode_expression.h.
5903
5904Mon Feb 17 10:44:18 1997 Andrew Cagney <cagney@critters.cygnus.com>
5905
5906 * bits.h, bits.c (SIGN_EXTEND32, SIGN_EXTEND64): New functions,
5907 sign extend a bit within a value.
5908
5909 * sim-endian.h, sim-endian-n.h (offset_N): New functions - return
5910 a pointer into the middle of a host word.
5911 * sim-endian.h (MS2W_4, LS2W_4): Use this function.
5912
5913Tue Feb 11 13:46:49 1997 Michael Meissner <meissner@tiktok.cygnus.com>
5914
5915 * callback.c: If HAVE_CONFIG_H is defined, include config.h from
5916 autoconf. If HAVE_UNISTD_H is defined, include unistd.h to get
5917 appropriate definitions of read, write, etc. Add prototype for
5918 system.
5919
5920Tue Feb 4 13:24:44 1997 Doug Evans <dje@canuck.cygnus.com>
5921
5922 * Makefile.in (libcommon.a): Delete.
5923 (callback.o,targ-map.o): Delete, moved to Make-common.in.
5924 (gentmap,targ-vals.h,targ-map.c): Likewise.
5925 (run-autoconf): Delete.
5926 * aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile.
5927 (common makefile fragment): Moved back into ...
5928 * Make-common.in: Resurrect.
5929 * configure.in (AC_LINK_FILES): Delete, unnecessary now.
5930 * configure: Regenerated.
5931
5932Fri Jan 31 07:16:49 1997 Doug Evans <dje@canuck.cygnus.com>
5933
5934 * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
5935 (SIM_AC_OUTPUT): To here.
5936
5937Fri Jan 24 10:37:17 1997 Stu Grossman (grossman@critters.cygnus.com)
5938
5939 * aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s in
5940 comments and single quotes. Fixes a problem found on hpux.
5941
5942Thu Jan 23 13:35:03 1997 Stu Grossman (grossman@critters.cygnus.com)
5943
5944 * aclocal.m4: Remove Make-common.in from dependencies.
5945 * (distclean): Remove targ-vals.def.
5946
5947 * aclocal.m4 (SIM_AC_COMMON): Move contents of Make-common.in
5948 into here. Makes insertion into makefiles easier. Also, change
5949 the way that callback.o, gentmap, targ-vals.h, targ-map.c,
5950 targ-map.o, and run are built. They are now built in the
5951 individual simulator directories, taking sources from ../common as
5952 necessary. This replaces the merging of libcommon.a into
5953 linsim.a, which was problematic for the WinGDB build process.
5954 * run.c: Include config.h from . instead of ../common.
5955 * Make-common.in: Remove. It's no longer necessary.
5956
5957Mon Dec 16 15:02:33 1996 Ian Lance Taylor <ian@cygnus.com>
5958
5959 * Make-common.in (ALL_CLAGS): Put CFLAGS at the end.
5960 (.c.o): Put $(ALL_CFLAGS) before the file being compiled.
5961
5962Wed Dec 11 11:30:58 1996 Jim Wilson <wilson@cygnus.com>
5963
5964 * run.c (main): Set target_byte_order before call to sim_open.
5965
5966Sun Dec 8 18:22:06 1996 Doug Evans <dje@canuck.cygnus.com>
5967
5968 * callback.c: #include <stdlib.h>
5969 (os_error): New function.
5970 (default_callback): Add os_error.
5971
5972Mon Nov 25 19:44:35 1996 Doug Evans <dje@canuck.cygnus.com>
5973
5974 * Make-common.in (Makefile): Set CONFIG_HEADERS="".
5975 * aclocal.m4: Mark the fact that --enable-sim-bswap isn't host
5976 specific.
5977 (SIM_AC_OUTPUT): Don't build Makefile if CONFIG_FILES="".
5978
5979Wed Nov 20 01:11:04 1996 Doug Evans <dje@canuck.cygnus.com>
5980
5981 * run.c: #include ../common/config.h, tconfig.h.
5982 (myname): New static global.
5983 (main): Recognize new options -a, -c. Also recognize -h if h8/300.
5984 Only process -c ifdef SIM_HAVE_SIMCACHE.
5985 Only process -p/-s ifdef SIM_HAVE_PROFILE.
5986 Parse program name from argv[0] and use in error messages.
5987 Pass sim_args to sim_open. Pass prog_args to sim_create_inferior.
5988 Add support for incomplete h8/300 termination indicators.
5989 (usage): Make more verbose.
5990 * aclocal.m4,config.in,tconfig.in,configure.in,configure: New files.
5991 * Makefile.in,Make-common.in,callback.c: New files.
5992 * nltvals.def,gentmap.c,gentvals.sh: New files.
5993
5994Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
5995
5996 * run.c: Include stdarg.h if __STDC__.
5997
5998Tue Oct 15 11:16:31 1996 Jeffrey A Law (law@cygnus.com)
5999
6000 * run.c (main): Don't print out anything if the signal
6001 number is zero (ie no signal).
6002
6003Tue Oct 15 11:20:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6004
6005 * run.c (main): Print out if the program raised a signal.
6006
6007Wed Sep 18 09:52:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6008
6009 * run.c (exec_bfd): Rename from sim_bfd, to use the gdb name.
6010 (main): Ditto.
6011
6012Tue Sep 17 11:04:50 1996 James G. Smith <jsmith@cygnus.co.uk>
6013
6014 * run.c (main): Explicitly cast malloc() parameter.
6015
6016Thu Sep 12 11:27:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6017
6018 * run.c (sim_bfd): New global to hold the bfd pointer for the
6019 executable.
6020 (main): Initialize sim_bfd.
6021
6022Fri Dec 15 16:27:49 1995 Ian Lance Taylor <ian@cygnus.com>
6023
6024 * run.c (main): Use new bfd_big_endian macro.
6025
6026Wed Nov 8 15:49:49 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
6027
6028 * run.c (main): Removed SH specific comments, so source is
6029 generic. Also updated to only load relevant sections. Moved
6030 sim_open() to after callback attach (to match GDB).
6031
6032 * run.1: Removed SH specific comments.
6033
6034Sat Oct 21 12:31:01 1995 Jim Wilson <wilson@chestnut.cygnus.com>
6035
6036 * run.c (main): Always return sigrc at end.
6037
6038Tue Oct 10 12:03:13 1995 J.T. Conklin <jtc@rtl.cygnus.com>
6039
6040 * run.c (main): Print error diagnostic and exit if bfd_openr() or
6041 bfd_check_format() fails.
6042
6043Thu Sep 28 15:40:36 1995 steve chamberlain <sac@slash.cygnus.com>
6044
6045 * run.c, run.1: From sh directory.