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