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