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