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