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