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