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