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