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