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