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