1 2021-02-28 Mike Frysinger <vapier@gentoo.org>
3 * Make-common.in (SIM_EXTRA_LIBDEPS): Delete.
4 (LIBDEPS): Delete $(SIM_EXTRA_LIBDEPS).
6 2021-02-27 Mike Frysinger <vapier@gentoo.org>
8 * Make-common.in (SIM_EXTRA_ALL): Delete.
9 (all): Delete $(SIM_EXTRA_ALL).
11 2021-02-21 Mike Frysinger <vapier@gentoo.org>
13 * acinclude.m4: Removed.
15 2021-02-13 Mike Frysinger <vapier@gentoo.org>
17 * acinclude.m4: Delete all sinclude & m4_include calls.
19 2021-02-13 Mike Frysinger <vapier@gentoo.org>
23 2021-02-06 Mike Frysinger <vapier@gentoo.org>
25 * sim-events.c: Include sim-cpu.h.
26 (sim_event_watchpoints): Define watch_pc.
27 (sim_events_watch_pc): New function.
28 (WATCH_SIM): Handle watch_pc.
29 * sim-events.h (sim_events_watch_pc): New prototype.
30 * sim-watch.c (schedule_watchpoint): Replace sim_events_watch_sim with
32 * sim-watch.h (sim_watchpoints): Delete pc.
34 2021-02-06 Mike Frysinger <vapier@gentoo.org>
36 * acinclude.m4 (SIM_AC_COMMON): Replace AC_CONFIG_HEADER with
39 2021-02-06 Mike Frysinger <vapier@gentoo.org>
41 * Make-common.in (HDEFINES, TDEFINES): Delete.
42 (CONFIG_CFLAGS): Delete $(HDEFINES) $(TDEFINES).
43 * acinclude.m4 (SIM_AC_COMMON): Delete AC_SUBST(HDEFINES) and
44 bfd/configure.host sourcing.
46 2021-02-04 Mike Frysinger <vapier@gentoo.org>
48 * gennltvals.py (TARGETS): Add riscv.
49 (TARGET_DIRS): Likewise.
50 * nltvals.def: Regenerate from the latest libgloss sources.
52 2021-01-31 Mike Frysinger <vapier@gentoo.org>
54 * cgen-trace.c (cgen_trace_insn): Add "%s" argument.
56 2021-01-31 Stafford Horne <shorne@gmail.com>
58 * cgen-accfp.c (fixsfsi): Change res from unsigned32 to signed32.
59 (fixdfsi): Change res from unsigned32 to signed32.
60 (fixdfdi): Change res from unsigned64 to signed64.
62 2021-01-30 Mike Frysinger <vapier@gentoo.org>
64 * gennltvals.sh: Replace shell script with ...
65 * gennltvals.py: ... this Python script.
66 * nltvals.def: Regenerate.
68 2021-01-30 Mike Frysinger <vapier@gentoo.org>
70 * sim-watch.c (schedule_watchpoint): Change sizeof_pc to sizeof
72 * sim-watch.h (struct _sim_watchpoints): Delete sizeof_pc.
74 2021-01-30 Mike Frysinger <vapier@gentoo.org>
76 * sim-profile.c (profile_pc_init): Change 1 in shifts to 1ULL.
78 2021-01-30 Mike Frysinger <vapier@gentoo.org>
80 * sim-hw.c (merge_device_file): Replace fgets with getline.
82 2021-01-30 Mike Frysinger <vapier@gentoo.org>
84 * gennltvals.sh (gen_arches): Sort calls by first arg.
85 * nltvals.def: Regenerate.
87 2021-01-18 Mike Frysinger <vapier@gentoo.org>
89 * Make-common.in (version.c): Simplifiy args and call move-if-change.
90 * create-version.sh: Delete host & target alias logic. Write to the
93 2021-01-18 Mike Frysinger <vapier@gentoo.org>
95 * configure, configure.ac, Makefile.in: Delete.
97 2021-01-13 Mike Frysinger <vapier@gentoo.org>
99 * sim-watch.c (default_interrupt_handler): Define.
100 (sim_watchpoint_install): Set default interrupt_handler to new
101 default_interrupt_handler.
103 2021-01-13 Mike Frysinger <vapier@gentoo.org>
105 * sim-watch.c (do_watchpoint_create): Parse arg+1 and assign to arg1.
107 2021-01-13 Mike Frysinger <vapier@gentoo.org>
109 * sim-events.c (sim_events_watch_sim): Change byte_order type to
111 (sim_events_watch_core): Likewise.
112 * sim-events.h (sim_events_watch_sim, sim_events_watch_core): Likewise.
113 * sim-watch.c (schedule_watchpoint): Change 0 to HOST_BYTE_ORDER in
114 call to sim_events_watch_sim.
116 2021-01-12 Mike Frysinger <vapier@gentoo.org>
118 * sim-profile.h [!WITH_PROFILE]: Rewrite to use #error.
120 2021-01-11 Mike Frysinger <vapier@gentoo.org>
122 * acinclude.m4 (SIM_AC_OUTPUT): Require SIM_AC_OPTION_WARNINGS.
124 2021-01-11 Mike Frysinger <vapier@gentoo.org>
126 * sim-core.c (sim_memory_map): Change %#x to PRIxTW.
128 2021-01-11 Mike Frysinger <vapier@gentoo.org>
130 * acinclude.m4 (SIM_AC_COMMON): Delete checks for stdlib.h, string.h,
131 strings.h, time.h, and errno.h.
132 * callback.c, cgen-scache.c, dv-glue.c, dv-pal.c, dv-sockser.c,
133 hw-alloc.c, hw-base.c, hw-device.c, hw-events.c, hw-handles.c,
134 hw-ports.c, hw-properties.c, hw-tree.c, nrun.c, sim-arange.c,
135 sim-events.c, sim-fpu.c, sim-hw.c, sim-load.c, sim-memopt.c,
136 sim-options.c, sim-profile.c, sim-trace.c, sim-utils.c,
137 sim-watch.c, syscall.c: Delete HAVE_ERRNO_H, HAVE_STDLIB_H,
138 HAVE_STRING_H, HAVE_STRINGS_H, HAVE_LIMITS_H, HAVE_TIME_H,
139 and strings.h include.
141 2021-01-09 Mike Frysinger <vapier@gentoo.org>
143 * sim-basics.h [__CYGWIN32__] (vasprintf, asprintf): Delete.
144 * sim-core.c, sim-watch.c: Include libiberty.h.
146 2021-01-09 Mike Frysinger <vapier@gentoo.org>
148 * acinclude.m4: Replace duplicate text with pointer to README-HACKING.
150 2021-01-09 Mike Frysinger <vapier@gentoo.org>
152 * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Document 1st argument.
153 Set WERROR_CFLAGS when first arg is not set or is "yes".
155 2021-01-09 Mike Frysinger <vapier@gentoo.org>
157 * hw-base.c (full_name_of_hw): Delete full_name. Replace
158 hw_strdup call with hw_malloc.
160 2021-01-09 Mike Frysinger <vapier@gentoo.org>
162 * cgen-par.c: Include stdlib.h.
163 * cgen-trace.c, hw-events.c, sim-abort.c: Likewise.
165 2021-01-08 Mike Frysinger <vapier@gentoo.org>
167 * Make-common.in (C_DIALECT): Define.
168 (COMPILE.pre): Append $(C_DIALECT).
169 * acinclude.m4 (SIM_AC_COMMON): Probe C11 to define C_DIALECT.
171 2021-01-07 Mike Frysinger <vapier@gentoo.org>
173 * sim-core.c (sim_memory_map): Define.
175 2021-01-04 Mike Frysinger <vapier@gentoo.org>
177 * acinclude.m4 (ACX_BUGURL): Change http:// to https://.
178 * configure: Regenerate.
180 2021-01-04 Mike Frysinger <vapier@gentoo.org>
182 * sim-options.c (sim_print_version): Print out more details when
183 is_command is non-zero.
185 2021-01-04 Mike Frysinger <vapier@gentoo.org>
187 * sim-options.c (standard_option_handler): Call sim_print_version.
188 (sim_print_version): New function.
189 * sim-options.h (sim_print_version): New prototype.
191 2021-01-04 Mike Frysinger <vapier@gentoo.org>
193 * sim-config.c (print_sim_config): Rename to ...
194 (sim_config_print): ... this.
195 * sim-config.h: Likewise.
197 2021-01-02 Mike Frysinger <vapier@gentoo.org>
199 * sim-bits.h (_ALIGNa, _FLOORa, ALIGN_8, ALIGN_16, ALIGN_PAGE,
200 FLOOR_PAGE): Delete unused macros.
201 (align_up, align_down): Define.
203 2020-08-10 Tom de Vries <tdevries@suse.de>
205 * sim-cpu.c: Include stdlib.h for free.
207 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
209 * nrun.c: Include stdlib.h.
210 * sim-core.c: Likewise.
211 * sim-engine.c: Likewise.
212 * sim-io.c: Likewise.
213 * sim-module.c: Likewise.
214 * sim-reason.c: Likewise.
216 2019-12-19 Tom Tromey <tromey@adacore.com>
219 * Makefile.in (install-strip): New target.
221 2019-12-01 Pavel I. Kryukov <kryukov@frtk.ru>
223 * sim-utils.c: Prevent buffer overflow.
225 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
227 * gennltvals.sh: Add PRU libgloss target.
228 * nltvals.def: Regenerate from the latest libgloss sources.
230 2019-06-13 Stafford Horne <shorne@gmail.com>
232 * cgen-accfp.c (unorderedsf, unordereddf): New functions.
233 (cgen_init_accurate_fpu): Wire up unorderedsf and unordereddf.
234 * cgen-fpu.h (cgen_fp_ops): Define fields unorderedsf and unordereddf.
236 2019-06-13 Stafford Horne <shorne@gmail.com>
238 * cgen-accfp.c (floatdidf, fixdfdi): New functions.
239 (cgen_init_accurate_fpu): Add floatdidf and fixdfdi.
241 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
243 * cgen-ops.h (SUBWORDXFSI): Compare HOST_BYTE_ORDER not
244 CURRENT_TARGET_BYTE_ORDER.
245 (SUBWORDTFSI): Likewise.
246 (JOINSIDF): Likewise.
247 (JOINSIXF): Likewise.
248 (JOINSITF): Likewise.
250 2019-03-28 Andrew Burgess <andrew.burgess@embecosm.com>
252 * sim-base.h: Add 'sim-assert.h' include.
253 * sim-basics.h: Add 'libiberty.h' include.
255 2019-03-28 Stafford Horne <shorne@gmail.com>
257 * sim-options.c: Include "config.h".
259 * sim-watch.c: Include "config.h".
261 * hw-device.c: Include <string.h>.
262 * hw-events.c: Include <string.h>.
263 * hw-handles.c: Include <stdlib.h>.
264 * sim-fpu.c: Include <stdlib.h>.
266 2019-03-28 Stafford Horne <shorne@gmail.com>
268 * Make-common.in (sim-arange_h): Remove sim-arange.c
269 * sim-arange.c: Remove SIM_ARANGE_C.
270 Add ifdef for _SIM_ARANGE_C_.
271 Include "sim-arange.h".
272 Remove include for unused "sim-assert.h".
273 Remove DEFINE_INLINE_P. Remove DEFINE_NON_INLINE_P.
274 (sim_addr_range_add): Declare as INLINE_SIM_ARANGE.
275 (sim_addr_range_delete): Declare as INLINE_SIM_ARANGE.
276 (sim_addr_range_hit_p): Change from SIM_ARANGE_INLINE to
278 * sim-arange.h (sim_addr_range_add): Declare as
280 (sim_addr_range_delete): Declare as INLINE_SIM_ARANGE.
281 (sim_addr_range_hit_p) Declare as INLINE_SIM_ARANGE.
282 Remove definition of SIM_ARANGE_INLINE.
283 Remove [HAVE_INLINE].
284 Wrap include "sim-arange.c" in H_REVEALS_MODULE_P.
285 * sim-base.h: Include "sim-arange.h"
286 * sim-basics.h: Remove include of "sim-arange.h"
287 * sim-inline.c: Include "sim-arange.c"
288 * sim-inline.h: Define INLINE_SIM_ARANGE.
289 Define SIM_ARANGE_INLINE. Define EXTERN_SIM_ARANGE_P.
290 Define STATIC_INLINE_SIM_ARANGE. Define STATIC_SIM_ARANGE.
292 2019-01-26 Tom Tromey <tom@tromey.com>
294 * Make-common.in (version.c): Use sim's create-version.sh.
295 * create-version.sh: New file.
297 2019-01-16 Pavel I. Kryukov <kryukov@frtk.ru>
299 * sim-arange.c (DEFINE_INLINE_P, DEFINE_NON_INLINE_P): Remove.
301 2019-01-15 Simon Marchi <simon.marchi@ericsson.com>
303 * sim-arange.h (SIM_ARANGE_INLINE): Change EXTERN to extern.
305 2018-12-18 Andrew Burgess <andrew.burgess@embecosm.com>
307 * sim-syscall.c (sim_syscall_multi): Don't update sc->errcode at
308 this point, it should have already been set in cb_syscall.
310 2018-10-05 Stafford Horne <shorne@gmail.com>
312 * cgen-ops.h (ADDCFDI): New function, add carry flag DI variant.
313 (ADDOFDI): New function, add overflow flag DI variant.
314 (SUBCFDI): New function, subtract carry flag DI variant.
315 (SUBOFDI): New function, subtract overflow flag DI variant.
317 2018-09-28 Компан, Вячеслав Олегович <kompan.vo@phystech.edu>
319 * sim-core.h (sim_cpu_core): Rename cpu_core.xor to
321 * sim-core.c (sim_core_set_xor): Likewise.
322 (sim_core_xor_read_buffer): Likewise.
323 (sim_core_xor_write_buffer): Likewise.
325 2017-12-12 Peter Gavin <pgavin@gmail.com>
326 Stafford Horne <shorne@gmail.com>
328 * cgen-ops.h (MUL2OFSI): New function, 2's complement overflow
330 (MUL1OFSI): New function, 1's complement overflow flag.
332 2017-12-12 Peter Gavin <pgavin@gmail.com>
333 Stafford Horne <shorne@gmail.com>
335 * cgen-accfp.c (remsf, remdf): New function.
336 (cgen_init_accurate_fpu): Add remsf and remdf.
337 * cgen-fpu.h (cgen_fp_ops): Add remsf, remdf, remxf and remtf.
338 * sim-fpu.c (sim_fpu_rem): New function.
339 * sim-fpu.h (sim_fpu_status_invalid_irx): New enum.
340 (sim_fpu_rem): New function.
341 (sim_fpu_print_status): Add case for sim_fpu_status_invalid_irx.
343 2017-09-06 John Baldwin <jhb@FreeBSD.org>
345 * acinclude.m4 (SIM_AC_COMMON): Honor existing CC_FOR_BUILD in
348 2017-05-24 Yao Qi <yao.qi@linaro.org>
350 * sim-trace.c (trace_disasm): Caller update.
352 2016-08-15 Mike Frysinger <vapier@gentoo.org>
354 * sim-base.h (sim_state_base): Add prog_syms_count.
355 (STATE_PROG_SYMS_COUNT): Define.
356 * sim-trace.c (trace_uninstall): Free STATE_PROG_SYMS memory.
357 (trace_load_symbols): New function.
358 (trace_sym_value): Likewise.
359 (trace_prefix): Change STATE_CPU(cpu) to sd. Replace symbol
360 loading logic with a call to trace_load_symbols.
361 * sim-trace.h (trace_load_symbols, trace_sym_value): New
364 2016-08-13 Mike Frysinger <vapier@gentoo.org>
366 * cgen-types.h (mode_names): Mark const.
367 * cgen-utils.c (mode_names): Likewise.
369 2016-08-13 Mike Frysinger <vapier@gentoo.org>
371 * cgen-defs.h (struct cgen_state): Delete argv and envp.
372 (STATE_ARGV, STATE_ENVP): Delete.
374 2016-02-04 Nick Clifton <nickc@redhat.com>
376 * cgen-scache.c (scache_option_handler): Prevent possible
377 undefined behaviour computing the size of the scache by using
378 unsigned integers instead of signed integers.
380 2016-01-17 Joel Brobecker <brobecker@adacore.com>
382 * sim-fpu.c: Minor comment fixes throughout.
384 2016-01-17 Joel Brobecker <brobecker@adacore.com>
386 * sim-fpu.c (print_bits): Minor reformatting (no code change).
387 (sim_fpu_map): Likewise.
389 2016-01-11 Mike Frysinger <vapier@gentoo.org>
391 * sim-config.c (print_sim_config): Drop extra whitespace before =
392 in output for byte order, stdio, and msb settings.
394 2016-01-10 Mike Frysinger <vapier@gentoo.org>
396 * acinclude.m4 (SIM_AC_COMMON): Call AC_MSG_CHECKING,
397 AC_DEFINE_UNQUOTED, and AC_MSG_RESULT for sim-debug. Likewise for
398 sim-stdio, sim-trace, and sim-profile.
399 (SIM_AC_OPTION_ENVIRONMENT): Likewise.
400 (SIM_AC_OPTION_ASSERT): Likewise.
401 (SIM_AC_OPTION_SMP): Likewise.
402 (SIM_AC_OPTION_XOR_ENDIAN): Likewise.
403 * configure: Regenerate.
404 * Make-common.in (SIM_DEBUG, SIM_TRACE, SIM_PROFILE, SIM_ASSERT,
405 SIM_ENVIRONMENT, SIM_SMP, SIM_XOR_ENDIAN): Delete.
406 (CONFIG_CFLAGS): Delete $(SIM_DEBUG), $(SIM_TRACE), $(SIM_PROFILE),
407 $(SIM_ASSERT), $(SIM_ENVIRONMENT), $(SIM_SMP), and $(SIM_XOR_ENDIAN).
408 * sim-config.c (sim_config): Change DEFAULT_ENVIRONMENT to
409 WITH_ENVIRONMENT & USER_ENVIRONMENT.
410 * sim-config.h (SIM_HAVE_ENVIRONMENT, WITH_ENVIRONMENT,
411 DEFAULT_ENVIRONMENT, WITH_DEBUG, WITH_TRACE, WITH_PROFILE,
412 WITH_ASSERT, WITH_STDIO): Delete.
413 * sim-options.c (standard_options): Delete SIM_HAVE_ENVIRONMENT
416 2016-01-10 Mike Frysinger <vapier@gentoo.org>
418 * acinclude.m4 (SIM_AC_OPTION_PACKAGES): Delete.
419 * configure: Regenerate.
420 * Make-common.in (SIM_PACKAGES): Delete.
421 (CONFIG_CFLAGS): Delete $(SIM_PACKAGES).
423 2016-01-10 Mike Frysinger <vapier@gentoo.org>
425 * acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_ENVIRONMENT.
427 2016-01-10 Mike Frysinger <vapier@gentoo.org>
429 * acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_ASSERT.
431 2016-01-10 Mike Frysinger <vapier@gentoo.org>
433 * acinclude.m4 (SIM_AC_COMMON): Delete sim_link_files and
435 (SIM_AC_OUTPUT): Delete AC_LINK_FILES call.
436 * gentmap.c: Change targ-vals.def include to nltvals.def.
437 * Make-common.in (gentmap): Change targ-vals.def to
438 $(srccom)/nltvals.def.
439 (distclean): Delete rm -f targ-vals.def.
440 * Makefile.in: Update comment.
442 2016-01-10 Mike Frysinger <vapier@gentoo.org>
444 * acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_INLINE.
445 (SIM_AC_OPTION_INLINE): Rename default_sim_inline to sim_inline
446 and always set -DDEFAULT_INLINE. Delete AC_ARG_ENABLE 4th arg.
448 2016-01-10 Mike Frysinger <vapier@gentoo.org>
450 * acinclude.m4: Delete --enable-sim-regparm and sim_regparm,
451 and --enable-sim-stdcall and sim_stdcall.
452 * configure: Regenerate.
453 * Make-common.in (SIM_REGPARM, SIM_STDCALL): Delete.
454 (CONFIG_CFLAGS): Delete $(SIM_REGPARM) and $(SIM_STDCALL).
455 * sim-config.h (WITH_REGPARM, WITH_STDCALL): Delete.
456 * sim-inline.h (REGPARM_MODULE, REGPARM): Delete.
457 (REGPARM_*): Delete all regparm defines and their use.
459 2016-01-10 Mike Frysinger <vapier@gentoo.org>
461 * acinclude.m4: Delete --enable-sim-cflags and sim_cflags.
462 * Make-common.in (SIM_CFLAGS): Delete.
463 (CONFIG_CFLAGS): Delete $(SIM_CFLAGS).
464 * Makefile.in: Likewise.
466 2016-01-09 Mike Frysinger <vapier@gentoo.org>
468 * configure.ac: Change SIM_AC_COMMON to AC_PROG_CC. Drop 2nd arg
469 to AC_OUTPUT. Move AC_CHECK_HEADERS, AC_CHECK_FUNCS,
470 AC_CHECK_MEMBERS, and -AC_CHECK_TYPES ...
471 * acinclude.m4 (SIM_AC_COMMON): ... here.
472 * aclocal.m4, configure: Regenerate.
473 * config.in: Delete file.
474 * callback.c: Change cconfig.h include to config.h.
475 * dv-cfi.c, nrun.c, sim-basics.h, sim-load.c, sim-memopt.c,
477 * Make-common.in (sim-basics_h): Delete ../common/cconfig.h.
478 * Makefile.in (distclean): Delete rm -f cconfig.h config.h stamp-h.
480 2016-01-06 Mike Frysinger <vapier@gentoo.org>
482 * sim-config.c (print_sim_config): Delete sim_io_printf of version,
483 date, and time information.
485 2016-01-06 Mike Frysinger <vapier@gentoo.org>
487 * sim-options.c (sim_parse_args): Mark argv array const.
488 * sim-options.h (sim_parse_args): Likewise.
490 2016-01-05 Mike Frysinger <vapier@gentoo.org>
492 * sim-trace.c: Include dis-asm.h.
493 (OPTION_TRACE_DISASM): New enum.
494 (trace_options): Add trace-disasm flag.
495 (trace_option_handler): Handle OPTION_TRACE_DISASM.
496 (trace_idx_to_str): Handle TRACE_DISASM_IDX.
497 (dis_read, dis_printf, trace_disasm): New functions.
498 * sim-trace.h: Include dis-asm.h.
499 (TRACE_INSN_IDX): Clarify comment.
500 (TRACE_DISASM_IDX): New enum.
501 (TRACE_disasm): New define.
502 (WITH_TRACE_DISASM_P): New define.
503 (struct _trace_data): Add dis_bfd, disassembler, and dis_info.
504 (STRACE_DISASM_P): New define.
505 (TRACE_DISASM_P): Likewise.
506 (TRACE_DISASM_P): Likewise.
507 (TRACE_DISASM): Likewise.
508 (trace_disasm): New function.
510 2016-01-04 Mike Frysinger <vapier@gentoo.org>
512 * sim-utils.c (sim_state_free): Change to STATE_MAGIC.
514 2016-01-04 Mike Frysinger <vapier@gentoo.org>
516 * cgen-scache.c (MAX): Delete.
517 (scache_init): Change MAX to max.
518 * cgen-trace.c (min): Delete.
519 * cgen-utils.c (min): Delete.
520 * sim-basics.h [!min] (min): Define.
521 [!max] (max): Define.
523 2016-01-04 Mike Frysinger <vapier@gentoo.org>
525 * sim-options.c (sim_parse_args): Tweak getopt error message.
527 2016-01-04 Mike Frysinger <vapier@gentoo.org>
529 * acinclude.m4 (sim-bswap): Delete.
530 * configure: Regenerate.
531 * Make-common.in (SIM_BSWAP): Delete.
532 (CONFIG_CFLAGS): Delete $(SIM_BSWAP).
533 * sim-config.h (htonl, ntohl): Delete.
534 (WITH_BSWAP): Delete.
536 2016-01-03 Mike Frysinger <vapier@gentoo.org>
538 * sim-options.c (sim_parse_args): Declare local save_opterr. Save
539 opterr state to it before calling getopt_long and restore afterwards.
540 Set opterr to 0. When optc is '?', call sim_io_eprintf.
542 2016-01-03 Mike Frysinger <vapier@gentoo.org>
544 * hw-device.h (device): Delete commented typedef.
545 * sim-basics.h (device): Delete typedef.
547 2016-01-03 Mike Frysinger <vapier@gentoo.org>
549 * sim-options.c (sim_parse_args): Replace for loop with a call
552 2016-01-03 Mike Frysinger <vapier@gentoo.org>
554 * nrun.c (myname): Mark const.
555 (main): Mark name const. Replace myname parsing loop with a
558 2016-01-03 Mike Frysinger <vapier@gentoo.org>
560 (CONFIG_CFLAGS): Delte $(SIM_HOSTENDIAN).
561 * acinclude.m4 (SIM_AC_COMMON): Call AC_C_BIGENDIAN.
562 (SIM_AC_OPTION_HOSTENDIAN): Delete.
563 * config.in, configure: Regenerate.
564 * Make-common.in (SIM_HOSTENDIAN): Delete.
565 * sim-config.c (current_host_byte_order): Delete.
566 (sim_config): Delete current_host_byte_order assignments and
567 CURRENT_HOST_BYTE_ORDER checks.
568 (print_sim_config): Change WITH_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
569 * sim-config.h (WITH_HOST_BYTE_ORDER): Change to ...
570 (HOST_BYTE_ORDER): ... this. Define based on WORDS_BIGENDIAN.
571 (current_host_byte_order): Delete.
572 (CURRENT_HOST_BYTE_ORDER): Likewise.
573 * sim-endian.c (WITH_HOST_BYTE_ORDER): Rename to ...
574 (HOST_BYTE_ORDER): ... this.
575 (sim_endian_split_16): Change WITH_HOST_BYTE_ORDER to
577 (sim_endian_join_16): Likewise.
578 * sim-n-core.h (sim_core_read_misaligned_N): Change
579 CURRENT_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
580 (sim_core_write_misaligned_N): Likewise.
581 * sim-n-endian.h (endian_t2h_N): Likewise.
582 (endian_h2t_N, endian_h2be_N, endian_be2h_N, endian_h2le_N,
583 endian_le2h_N): Likewise.
584 (offset_N): Change WITH_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
586 2016-01-02 Mike Frysinger <vapier@gentoo.org>
588 * acinclude.m4 (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to
589 BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
591 (SIM_AC_OPTION_HOSTENDIAN): Likewise.
592 * cgen-ops.h (SUBWORDXFSI): Change BIG_ENDIAN to BFD_ENDIAN_BIG.
593 (SUBWORDTFSI, JOINSIDF, JOINSIXF, JOINSITF): Likewise.
594 * nrun.c (main): Likewise.
595 * sim-config.c (current_host_byte_order): Change type to enum
596 bfd_endian. Initialize to BFD_ENDIAN_UNKNOWN.
597 (current_target_byte_order): Likewise.
598 (config_byte_order_to_a): Likewise. Change BIG_ENDIAN to
599 BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
601 (sim_config): Change prefered_target_byte_order type to enum
602 bfd_endian. Change BIG_ENDIAN to BFD_ENDIAN_BIG, LITTLE_ENDIAN
603 to BFD_ENDIAN_LITTLE, and 0 to BFD_ENDIAN_UNKNOWN.
604 * sim-config.h: Change BIG_ENDIAN to BFD_ENDIAN_BIG, LITTLE_ENDIAN
605 to BFD_ENDIAN_LITTLE, and 0 to BFD_ENDIAN_UNKNOWN.
606 Delete all the various arch/OS endian includes & defines.
607 (current_host_byte_order): Change type to enum bfd_endian.
608 (current_target_byte_order): Likewise.
609 (CURRENT_HOST_BYTE_ORDER): Compare to BFD_ENDIAN_UNKNOWN, not 0.
610 (CURRENT_TARGET_BYTE_ORDER): Likewise.
611 * sim-endian.c: Change LITTLE_ENDIAN to BFD_ENDIAN_LITTLE.
612 * sim-events.c (sim_events_watch_sim): Change BIG_ENDIAN to
613 BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
615 (sim_events_watch_core): Likewise.
616 * sim-events.h: Likewise.
617 * sim-n-core.h (sim_core_read_misaligned_N): Change BIG_ENDIAN to
619 (sim_core_write_misaligned_N): Likewise.
620 * sim-n-endian.h (endian_h2be_N): Likewise.
621 (endian_be2h_N): Likewise.
622 (endian_h2le_N): Change LITTLE_ENDIAN to BFD_ENDIAN_LITTLE.
623 (offset_N): Likewise.
624 * sim-options.c (standard_option_handler): Change LITTLE_ENDIAN to
625 BFD_ENDIAN_LITTLE and BIG_ENDIAN to BFD_ENDIAN_BIG.
627 2016-01-02 Mike Frysinger <vapier@gentoo.org>
629 * cgen-defs.h (current_state): Delete.
630 * sim-base.h (CURRENT_STATE_REG, CURRENT_STATE): Delete.
631 * sim-utils.c (current_state): Delete.
633 2015-12-30 Mike Frysinger <vapier@gentoo.org>
635 * sim-module.c (sim_pre_argv_init): Change STATE_MY_NAME assignment
638 2015-12-27 Mike Frysinger <vapier@gentoo.org>
640 * Makefile.in (SIM_NEW_COMMON_OBJS): Add sim-hload.o.
642 2015-12-26 Mike Frysinger <vapier@gentoo.org>
644 * acinclude.m4 (AH_BOTTOM): Delete tconfig.h appending.
645 * config.in, configure: Regenerate.
646 * Make-common.in (sim-basics_h): Delete tconfig.h.
647 (distclean): Likewise.
648 * sim-core.c (device_io_read_buffer, device_io_write_buffer): Delete.
649 (new_sim_core_mapping): Delete WITH_HW and device *device.
650 (sim_core_map_attach, sim_core_attach): Likewise.
651 (sim_core_read_buffer): Delete WITH_DEVICES logic.
652 (sim_core_write_buffer): Likewise.
653 * sim-core.h (struct _sim_core_mapping): Delete WITH_HW and device
655 (sim_core_attach): Likewise.
656 (device_io_read_buffer, device_io_write_buffer): Delete.
657 * sim-n-core.h (sim_core_read_aligned_N): Delete WITH_DEVICES logic.
658 (sim_core_write_aligned_N): Likewise.
659 * tconfig.h: Delete file.
661 2015-12-26 Mike Frysinger <vapier@gentoo.org>
663 * sim-core.c (sim_core_read_buffer): Move cia decl to top of func.
664 Call sim_cpu_hw_io_read_buffer if cpu is valid.
665 (sim_core_write_buffer): Move cia decl to top of func. Call
666 sim_cpu_hw_io_write_buffer if cpu is valid.
668 2015-12-25 Mike Frysinger <vapier@gentoo.org>
670 * hw-properties.c (hw_find_ihandle_runtime_property): Delete
672 (hw_find_integer_property): Likewise.
673 (hw_find_integer_array_property): Likewise.
674 (hw_add_duplicate_property): Likewise.
676 2015-12-25 Mike Frysinger <vapier@gentoo.org>
678 * sim-config.h (WITH_ENGINE): Delete.
679 * sim-module.c (modules): Always include sim_engine_install.
681 2015-12-25 Mike Frysinger <vapier@gentoo.org>
683 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-model.o.
684 * cgen-types.h (SIM_HAVE_MODEL): Delete.
685 * sim-base.h: Always include sim-model.h.
686 * sim-config.h (WITH_DEFAULT_MODEL): Delete.
687 * sim-cpu.h (sim_cpu_base): Always declare mach/model members.
688 * sim-model.c (sim_model_init): Return when !WITH_MODEL_P.
689 [!WITH_MODEL_P] (sim_machs): Define.
690 * sim-model.h: Add some developer docs.
691 [!WITH_DEFAULT_MODEL] (mach_attr, WITH_DEFAULT_MODEL): Define.
692 (WITH_MODEL_P): Define.
693 * sim-module.c (modules): Always include sim_model_install.
694 * sim-profile.h (WITH_PROFILE_MODEL_P): Delete.
696 2015-12-25 Mike Frysinger <vapier@gentoo.org>
698 * sim-cpu.h: Rename MACH to SIM_MACH and MODEL to SIM_MODEL.
699 * sim-model.c: Likewise.
700 * sim-model.h: Likewise. Rename MACH_IMP_PROPERTIES to
701 SIM_MACH_IMP_PROPERTIES
703 2015-12-25 Mike Frysinger <vapier@gentoo.org>
705 * sim-core.c (device_error): Delete.
706 (sim_core_map_attach): Delete calls to device_error.
707 (sim_core_attach): Likewise.
708 * sim-core.h (device_error): Delete.
709 * sim-n-core.h (sim_core_read_aligned_N): Change device_error call
711 (sim_core_write_aligned_N): Likewise.
713 2015-12-25 Mike Frysinger <vapier@gentoo.org>
715 * sim-config.h (WITH_CALLBACK_MEMORY): Delete.
716 * sim-core.c (sim_core_write_buffer): Likewise.
717 * sim-n-core.h (sim_core_read_aligned_N): Likewise.
718 (sim_core_write_aligned_N): Likewise.
720 2015-12-25 Mike Frysinger <vapier@gentoo.org>
722 * dv-pal.c: Include config.h and sim-main.h.
723 (hw_pal_io_read_buffer): Always call CPU_INDEX.
725 2015-12-24 Mike Frysinger <vapier@gentoo.org>
727 * sim-options.c (standard_options): Always enable load-lma and
729 (standard_install): Always set STATE_LOAD_AT_LMA_P(sd) to 1.
731 2015-12-24 Mike Frysinger <vapier@gentoo.org>
733 * sim-module.c (MODULE_LIST): Delete.
735 2015-12-24 Mike Frysinger <vapier@gentoo.org>
737 * sim-options.c (OPTION_H8300H, OPTION_H8300S, OPTION_H8300SX):
738 Move to h8300/compile.c.
739 [SIM_H8300] (standard_options): Likewise.
740 (standard_option_handler): Likewise.
742 2015-12-24 Mike Frysinger <vapier@gentoo.org>
744 * sim-module.c [WITH_WATCHPOINTS] (modules): Always call
745 sim_watchpoint_install.
747 2015-12-24 Mike Frysinger <vapier@gentoo.org>
749 * sim-base.h [SIM_HAVE_FLATMEM] (sim_state_base): Delete flatmem code.
750 * sim-module.c [SIM_HAVE_FLATMEM] (modules): Always call
752 * sim-options.c (OPTION_MEM_SIZE): Delete.
753 [SIM_HAVE_FLATMEM] (standard_options): Delete flatmem code.
754 (standard_option_handler): Likewise.
756 2015-12-24 Mike Frysinger <vapier@gentoo.org>
758 * tconfig.h (SIM_HAVE_SIMCACHE): Delete.
760 2015-11-21 Mike Frysinger <vapier@gentoo.org>
763 * Makefile.in (CPPFLAGS, CXXFLAGS, LDFLAGS): Define.
765 2015-11-21 Mike Frysinger <vapier@gentoo.org>
768 * sim-utils.c (sim_do_commandf): Declare ret. Call va_start,
769 vasprintf, and va_end together. Check ret after va_end call.
771 2015-11-21 Mike Frysinger <vapier@gentoo.org>
773 * sim-types.h (SIM_PRI_TB): Define.
774 (PRI_TW, PRIiTW, PRIxTW): New PRI target word defines.
775 (PRI_TA, PRIiTA, PRIxTA): New PRI target address defines.
776 (PRI_TC, PRIiTC, PRIxTC): New PRI target cell defines.
777 (PRI_TF, PRIiTF, PRIxTF): New PRI target floating point defines.
779 2015-11-17 Mike Frysinger <vapier@gentoo.org>
781 * sim-main.h (WITH_MODULO_MEMORY): Delete.
782 * sim-core.c (new_sim_core_mapping): Always assign mask to modulo-1.
783 (sim_core_attach): Delete WITH_MODULO_MEMORY == 0 logic.
784 (sim_core_translate): Likewise.
785 * sim-core.h: Delete mention of WITH_MODULO_MEMORY.
787 2015-11-16 Mike Frysinger <vapier@gentoo.org>
789 * sim-close.c (__cgen_cpu_close, _cgen_cpu_close): Delete.
790 (cgen_cpu_close): Change to XCONCAT2.
792 2015-11-15 Mike Frysinger <vapier@gentoo.org>
794 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-reason.o, sim-reg.o,
797 2015-11-14 Mike Frysinger <vapier@gentoo.org>
799 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-close.o
800 * sim-close.c: New file.
802 2015-09-25 Andrew Bennett <andrew.bennett@imgtec.com>
803 Ali Lown <ali.lown@imgtec.com>
805 * sim-bits.h (EXTEND6): New macro.
806 (EXTEND12): New macro.
807 (EXTEND25): New macro.
809 2015-06-24 Mike Frysinger <vapier@gentoo.org>
811 * sim-trace.c (trace_one_insn): Delete.
812 * sim-trace.h (trace_one_insn): Delete.
814 2015-06-24 Mike Frysinger <vapier@gentoo.org>
816 * sim-trace.c (debug_printf): Rename to ...
817 (sim_debug_printf): ... this.
818 * sim-trace.h (debug_printf): Delete define.
819 (debug_printf): Rename to ...
820 (sim_debug_printf): ... this.
822 2015-06-24 Mike Frysinger <vapier@gentoo.org>
824 * sim-trace.c (OPTION_TRACE_REGISTER): New enum.
825 (trace_options): Add trace-register option.
826 (trace_option_handler): Handle OPTION_TRACE_REGISTER case.
827 (trace_idx_to_str): Handle TRACE_REGISTER_IDX case and re-indent.
828 * sim-trace.h (TRACE_REGISTER_IDX): New enum.
829 (TRACE_register, WITH_TRACE_REGISTER_P, STRACE_REGISTER_P,
830 TRACE_REGISTER_P, TRACE_REGISTER): Define.
832 2015-06-24 Mike Frysinger <vapier@gentoo.org>
834 * sim-trace.h (STRACE, STRACE_INSN, STRACE_DECODE, STRACE_EXTRACT,
835 STRACE_LINENUM, STRACE_MEMORY, STRACE_MODEL, STRACE_ALU, STRACE_CORE,
836 STRACE_EVENTS, STRACE_FPU, STRACE_VPU, STRACE_BRANCH, STRACE_SYSCALL,
837 STRACE_DEBUG): Define.
839 2015-06-24 Mike Frysinger <vapier@gentoo.org>
841 * sim-trace.c (trace_options): Update help text for trace-alu,
842 trace-fpu, trace-vpu, and trace-semantics.
843 * sim-trace.h (TRACE_ALU_IDX): Update comment text.
844 (TRACE_FPU_IDX, TRACE_VPU_IDX): Likewise.
846 2015-06-24 Mike Frysinger <vapier@gentoo.org>
848 * sim-assert.h (SIM_FILTER_PATH): Delete.
849 [!SIM_ASSERT, WITH_ASSERT]: Include libiberty.h.
850 (SIM_ASSERT): Replace SIM_FILTER_PATH with lbasename.
851 [!ASSERT, WITH_ASSERT]: Include libiberty.h.
852 (ASSERT): Replace SIM_FILTER_PATH with lbasename.
853 * sim-events.c: Include libiberty.h.
854 (ETRACE): Replace SIM_FILTER_PATH with lbasename.
856 2015-06-23 Mike Frysinger <vapier@gentoo.org>
858 * acinclude.m4 (AC_ARG_ENABLE(sim-bswap)): Call AS_HELP_STRING.
859 (AC_ARG_ENABLE(sim-cflags)): Likewise.
860 (AC_ARG_ENABLE(sim-debug)): Likewise.
861 (AC_ARG_ENABLE(sim-stdio)): Likewise.
862 (AC_ARG_ENABLE(sim-trace)): Likewise.
863 (AC_ARG_ENABLE(sim-profile)): Likewise.
864 (AC_ARG_ENABLE(sim-environment)): Likewise.
865 (AC_ARG_ENABLE(sim-alignment)): Likewise.
866 (AC_ARG_ENABLE(sim-assert)): Likewise.
867 (AC_ARG_ENABLE(sim-bitsize)): Likewise.
868 (AC_ARG_ENABLE(sim-endian)): Likewise.
869 (AC_ARG_ENABLE(sim-hostendian)): Likewise.
870 (AC_ARG_ENABLE(sim-float)): Likewise.
871 (AC_ARG_ENABLE(sim-scache)): Likewise.
872 (AC_ARG_ENABLE(sim-default-model)): Likewise.
873 (AC_ARG_ENABLE(sim-inline)): Likewise.
874 (AC_ARG_ENABLE(sim-packages)): Likewise.
875 (AC_ARG_ENABLE(sim-regparm)): Likewise.
876 (AC_ARG_ENABLE(sim-reserved-bits)): Likewise.
877 (AC_ARG_ENABLE(sim-smp)): Likewise.
878 (AC_ARG_ENABLE(sim-stdcall)): Likewise.
879 (AC_ARG_ENABLE(sim-xor-endian)): Likewise.
880 (AC_ARG_ENABLE(cgen-maint)): Likewise.
881 * configure: Regenerate.
883 2015-06-23 Mike Frysinger <vapier@gentoo.org>
885 * sim-config.h (WITH_TRACE): Define to ~TRACE_debug.
887 2015-06-23 Mike Frysinger <vapier@gentoo.org>
889 * cgen-trace.c [!__STDC__]: Delete.
890 * sim-trace.h [!__STDC__]: Likewise.
892 2015-06-21 Mike Frysinger <vapier@gentoo.org>
894 * sim-model.c (sim_model_init): Assert model is not NULL.
896 2015-06-21 Mike Frysinger <vapier@gentoo.org>
898 * sim-types.h: Move SIM_TYPES_H define to top of file. Include
899 stdint.h. Replace all signed/unsigned typedefs with int#_t and
902 2015-06-21 Mike Frysinger <vapier@gentoo.org>
904 * sim-alu.h (_SIM_ALU_H_): Rename to ...
905 (SIM_ALU_H): ... this.
906 * sim-assert.h (_SIM_ASSERT_H_): Rename to ...
907 (SIM_ASSERT_H): ... this.
908 * sim-basics.h (_SIM_BASICS_H_): Rename to ...
909 (SIM_BASICS_H): ... this.
910 * sim-bits.h (_SIM_BITS_H_): Rename to ...
911 (SIM_BITS_H): ... this.
912 * sim-endian.h (_SIM_ENDIAN_H_): Rename to ...
913 (SIM_ENDIAN_H): ... this.
915 2015-06-18 Mike Frysinger <vapier@gentoo.org>
917 * sim-syscall.c (sim_syscall_multi): Change unknown_syscall to a
920 2015-06-18 Mike Frysinger <vapier@gentoo.org>
922 * callback.c (cb_target_map_entry, cb_host_map_entry): Change map to
923 m for sentinel testing.
925 2015-06-17 Mike Frysinger <vapier@gentoo.org>
927 * sim-syscall.c: Include errno.h and targ-vals.h.
928 (sim_syscall_multi, sim_syscall): Define.
929 * sim-syscall.h (sim_syscall_multi, sim_syscall): Declare.
930 * syscall.c (cb_syscall): Extend comment.
932 2015-06-17 Mike Frysinger <vapier@gentoo.org>
934 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-syscall.o.
935 * sim-syscall.c: New file.
936 * sim-syscall.h: New file.
938 2015-06-17 Mike Frysinger <vapier@gentoo.org>
940 * callback.c (cb_target_map_entry, cb_host_map_entry): Define.
941 (cb_target_to_host_syscall): Rewrite to use cb_target_map_entry.
942 (cb_host_to_target_errno): Rewrite to use cb_host_map_entry.
943 (cb_host_str_syscall, cb_host_str_errno, cb_host_str_signal,
944 cb_target_str_syscall, cb_target_str_errno, cb_target_str_signal):
946 * gentmap.c (gen_targ_map_c): Output name field.
948 2015-06-12 Mike Frysinger <vapier@gentoo.org>
950 * acinclude.m4: Change configure.in to configure.ac.
951 * sim-config.h: Likewise.
953 2015-06-12 Mike Frysinger <vapier@gentoo.org>
955 * acinclude.m4 (sim-trace): Delete -DTRACE flags.
956 * configure: Regenerate.
958 2015-06-12 Mike Frysinger <vapier@gentoo.org>
960 * sim-trace.h (TRACE, TRACE_INSN, TRACE_DECODE, TRACE_EXTRACT,
961 TRACE_LINENUM, TRACE_MEMORY, TRACE_MODEL, TRACE_ALU, TRACE_CORE,
962 TRACE_EVENTS, TRACE_FPU, TRACE_VPU, TRACE_BRANCH, TRACE_SYSCALL,
963 TRACE_DEBUG): Define.
965 2015-06-12 Mike Frysinger <vapier@gentoo.org>
967 * sim-module.c (modules): Change WITH_TRACE to WITH_TRACE_ANY_P.
968 * sim-trace.c (trace_option_handler): Likewise.
969 * sim-trace.h (WITH_TRACE_ANY_P): Define.
970 (STRACE_ANY_P): Use WITH_TRACE_ANY_P.
971 (TRACE_ANY_P): Likewise.
973 2015-06-12 Mike Frysinger <vapier@gentoo.org>
975 * cgen-run.c (sim_resume): Rename TRACE_INSN_FINI to
976 CGEN_TRACE_INSN_FINI.
977 * cgen-trace.c: Rename trace_insn to cgen_trace_insn,
978 trace_result to cgen_trace_result, trace_insn_fini to
979 cgen_trace_insn_fini, trace_insn_init to cgen_trace_insn_init,
980 and trace_extract to cgen_trace_extract.
981 * cgen-trace.h (trace_insn_init): Rename to ...
982 (cgen_trace_insn_init): ... this.
983 (trace_insn_fini): Rename to ...
984 (cgen_trace_insn_fini): ... this.
985 (trace_insn): Rename to ...
986 (cgen_trace_insn): ... this.
987 (trace_extract): Rename to ...
988 (cgen_trace_extract): ... this.
989 (trace_result): Rename to ...
990 (cgen_trace_result): ... this.
991 (TRACE_RESULT_P): Rename to ...
992 (CGEN_TRACE_RESULT_P): ... this.
993 (TRACE_INSN_INIT): Rename to ...
994 (CGEN_TRACE_INSN_INIT): ... this. Change trace_insn_init to
995 cgen_trace_insn_init.
996 (TRACE_INSN_FINI): Rename to ...
997 (CGEN_TRACE_INSN_FINI): ... this. Change trace_insn_fini to
998 cgen_trace_insn_fini.
999 (TRACE_PRINTF): Rename to ...
1000 (CGEN_TRACE_PRINTF): ... this.
1001 (TRACE_INSN): Rename to ...
1002 (CGEN_TRACE_INSN): ... this. Change trace_insn to cgen_trace_insn.
1003 (TRACE_EXTRACT): Rename to ...
1004 (CGEN_TRACE_EXTRACT): ... this. Change trace_extract to
1006 (TRACE_RESULT): Rename to ...
1007 (CGEN_TRACE_RESULT): ... this. Change TRACE_RESULT_P to
1008 CGEN_TRACE_RESULT_P and trace_result to cgen_trace_result.
1009 * genmloop.sh (@prefix@_pbb_before): Change TRACE_INSN_FINI to
1010 CGEN_TRACE_INSN_FINI, TRACE_INSN_INIT to CGEN_TRACE_INSN_INIT, and
1011 TRACE_INSN to CGEN_TRACE_INSN.
1012 (@prefix@_pbb_after): Change TRACE_INSN_FINI to CGEN_TRACE_INSN_FINI.
1014 2015-06-11 Mike Frysinger <vapier@gentoo.org>
1016 * sim-events.c (ETRACE_P): Delete.
1017 (ETRACE): Change ETRACE_P to STRACE_EVENTS_P(sd).
1018 (update_time_from_event, sim_events_schedule_vtracef): Likewise.
1019 * sim-events.h (struct _sim_events): Delete trace member.
1020 * sim-trace.c (set_trace_option_mask): Delete trace_nr check and
1021 always set STATE_TRACE_FLAGS(sd)[trace_nr] element.
1023 2015-06-11 Mike Frysinger <vapier@gentoo.org>
1025 * sim-trace.h (STRACE_ANY_P, STRACE_INSN_P, STRACE_DECODE_P,
1026 STRACE_EXTRACT_P, STRACE_LINENUM_P, STRACE_MEMORY_P, STRACE_MODEL_P,
1027 STRACE_ALU_P, STRACE_CORE_P, STRACE_EVENTS_P, STRACE_FPU_P,
1028 STRACE_VPU_P, STRACE_BRANCH_P, STRACE_SYSCALL_P): Define.
1030 2015-06-11 Mike Frysinger <vapier@gentoo.org>
1032 * sim-trace.h (TRACE_USEFUL_MASK): Change to TRACE_xxx defines.
1034 2015-06-11 Mike Frysinger <vapier@gentoo.org>
1036 * sim-trace.h (WITH_TRACE_P): New define.
1037 (WITH_TRACE_INSN_P, WITH_TRACE_DECODE_P, WITH_TRACE_EXTRACT_P,
1038 WITH_TRACE_LINENUM_P, WITH_TRACE_MEMORY_P, WITH_TRACE_MODEL_P,
1039 WITH_TRACE_ALU_P, WITH_TRACE_CORE_P, WITH_TRACE_EVENTS_P,
1040 WITH_TRACE_FPU_P, WITH_TRACE_VPU_P, WITH_TRACE_BRANCH_P,
1041 WITH_TRACE_SYSCALL_P, WITH_TRACE_DEBUG_P, STRACE_P, TRACE_P):
1042 Redefine to use WITH_TRACE_P.
1044 2015-06-09 Mike Stump <mrs@mrs.kithrup.com>
1046 * sim-events.c (sim_events_schedule_after_signal): Fix spelling
1047 mistake in call to sim_engine_abort.
1049 2015-04-29 Nick Clifton <nickc@redhat.com>
1052 * sim-fpu.c (INLINE_SIM_FPU): Fix static analysis warning by
1053 increasing parenthesis around casts to signed values.
1055 2015-04-21 Mike Frysinger <vapier@gentoo.org>
1057 * gennltvals.sh: Add mcore support.
1058 * nltvals.def: Regenerate.
1060 2015-04-21 Mike Frysinger <vapier@gentoo.org>
1062 * cgen.sh: Add +x permissions.
1063 * genmloop.sh: Likewise.
1064 * gentvals.sh: Likewise.
1065 * gennltvals.sh (newlibroot): New variable to hold the path to newlib.
1066 Change all uses of srcroot for newlib to newlibroot.
1068 2015-04-18 Mike Frysinger <vapier@gentoo.org>
1070 * sim-base.h (SIM_CPU): New typedef.
1072 2015-04-18 Mike Frysinger <vapier@gentoo.org>
1074 * cgen-engine.h (CIA_ADDR): Delete.
1075 * sim-base.h: Update sim_cia example.
1076 [!CIA_ADDR] (sim_cia): New typedef.
1078 2015-04-17 Mike Frysinger <vapier@gentoo.org>
1080 * cgen-utils.c (cgen_rtx_error): Change CIA_GET to CPU_PC_GET.
1081 * sim-core.c (sim_core_read_buffer, sim_core_write_buffer): Likewise.
1082 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Change CIA_SET to CPU_PC_SET.
1083 * sim-run.c (sim_engine_run): Change CIA_GET to CPU_PC_GET and
1084 CIA_SET to CPU_PC_SET.
1086 2015-04-15 Mike Frysinger <vapier@gentoo.org>
1088 * Makefile.in (SIM_NEW_COMMON_OBJS): Add sim-cpu.o.
1089 * sim-main.h (STATE_CPU): Remove from comment and define.
1091 2015-04-13 Mike Frysinger <vapier@gentoo.org>
1093 * acinclude.m4 (ACX_PKGVERSION): Change GDB to SIM.
1094 * configure: Regenerate.
1096 2015-04-13 Mike Frysinger <vapier@gentoo.org>
1098 * sim-options.c: Include version.h.
1099 (OPTIONS_VERSION): New enum.
1100 (standard_options): Add "version".
1101 (standard_option_handler): Handle OPTIONS_VERSION.
1103 2015-04-13 Mike Frysinger <vapier@gentoo.org>
1105 * Makefile.in (version.o): Change to using create-version.sh from gdb.
1106 (create-version.sh): Delete.
1108 2015-04-06 Mike Frysinger <vapier@gentoo.org>
1110 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-engine.o and sim-hrw.o.
1112 2015-04-01 Mike Frysinger <vapier@gentoo.org>
1114 * run-sim.h, run.c: Delete.
1115 * tconfig.h (SIM_HAVE_PROFILE, SIM_HAVE_BIENDIAN): Delete.
1117 2015-03-31 Mike Frysinger <vapier@gentoo.org>
1119 * config.in, configure: Regenerate.
1120 * Make-common.in (CSEARCH): Add $(ZLIBINC).
1121 (ZLIB, ZLIBINC): Define.
1122 (BFD_LIB): Add $(ZLIB).
1124 2015-03-31 Mike Frysinger <vapier@gentoo.org>
1126 * cgen-mem.h (MEMOPS_INLINE): Change to EXTERN_INLINE.
1127 * cgen-ops.h (SEMOPS_INLINE): Likewise.
1129 2015-03-29 Mike Frysinger <vapier@gentoo.org>
1131 * sim-arange.h (SIM_ARANGE_INLINE): Move above sim_addr_range_hit_p.
1132 (sim_addr_range_hit_p): Change INLINE to SIM_ARANGE_INLINE.
1133 * sim-inline.h (INLINE2): Define to gnu_inline when available.
1135 2015-03-24 Mike Frysinger <vapier@gentoo.org>
1137 * sim-profile.c (profile_pc_event): Get pc via sim_pc_get. Delete
1138 usage of STATE_WATCHPOINTS.
1139 (profile_pc_init): Delete STATE_WATCHPOINTS (sd)->pc check. Change
1140 STATE_WATCHPOINTS (sd)->sizeof_pc to sizeof (sim_cia).
1142 2015-03-24 Mike Frysinger <vapier@gentoo.org>
1144 * tconfig.h: Note SIM_HAVE_PROFILE is deprecated.
1146 2015-03-24 Mike Frysinger <vapier@gentoo.org>
1148 * tconfig.h: Note SIM_HAVE_BIENDIAN is deprecated.
1150 2015-03-24 Mike Frysinger <vapier@gentoo.org>
1152 * acinclude.m4 (SIM_AC_OPTION_HARDWARE): Move default option setting
1153 of enable_sim_hardware to AC_ARG_ENABLE.
1155 2015-03-23 Mike Frysinger <vapier@gentoo.org>
1157 * acinclude.m4 (SIM_AC_OPTION_HARDWARE): Delete SIM_DV_SOCKSER_O.
1158 Add dv-sockser.o to sim_hw_objs.
1160 2015-03-23 Mike Frysinger <vapier@gentoo.org>
1162 * dv-sockser.c: Include config.h.
1163 * dv-sockser.h: Include sim-inline.h.
1164 [HAVE_DV_SOCKSER]: Move all prototypes here.
1165 [!HAVE_DV_SOCKSER] (dv_sockser_status, dv_sockser_write,
1166 dv_sockser_write_buffer, dv_sockser_read): New stub functions.
1168 2015-03-16 Mike Frysinger <vapier@gentoo.org>
1170 * gentmap.c, run.c: Convert old style prototypes.
1172 2015-03-16 Mike Frysinger <vapier@gentoo.org>
1174 * acinclude.m4 (SIM_AC_COMMON): Call AH_BOTTOM. Delete logic for
1175 symlinking tconfig.h to tconfig.in.
1176 * config.in, configure: Regenerate.
1177 * nrun.c, run.c, sim-basics.h: Delete tconfig.h include.
1178 * tconfig.in: Rename file ...
1179 * tconfig.h: ... here.
1181 2015-03-15 Mike Frysinger <vapier@gentoo.org>
1183 * dv-socker.h (dv_sockser_install): Declare.
1184 * sim-module.c: Include config.h.
1185 [HAVE_DV_SOCKSER]: Include dv-sockser.h.
1186 (modules) [HAVE_DV_SOCKSER]: Add dv_sockser_install.
1187 * sim-module.h: Include gdb/remote-sim.h.
1189 2015-03-14 Mike Frysinger <vapier@gentoo.org>
1191 * Make-common.in (BUILT_SRC_FROM_COMMON): Delete.
1192 (sim-inline.c): Delete rule.
1194 2015-03-14 Mike Frysinger <vapier@gentoo.org>
1196 * Make-common.in (SIM_RUN_OBJS): Change to nrun.o.
1197 * run.c [SIM_USE_DEPRECATED_RUN_FRONTEND]: Issue a warning.
1198 [!SIM_USE_DEPRECATED_RUN_FRONTEND]: Throw an error.
1200 2015-03-14 Mike Frysinger <vapier@gentoo.org>
1202 * sim-assert.h [!SIM_ASSERT, WITH_ASSERT]: Include sim-io.h.
1203 [!ASSERT, WITH_ASSERT]: Likewise.
1204 * sim-endian.c: Delete sim-io.h include.
1206 2015-02-19 Mike Frysinger <vapier@gentoo.org>
1208 * run-sim.h (sim_kill): Delete unused prototype.
1210 2015-02-13 Chen Gang <gang.chen.5i5j@gmail.com>
1212 * gentmap.c: Include "string.h".
1214 2015-02-02 Chen Gang <gang.chen.5i5j@gmail.com>
1216 * sim-options.c (sim_args_command): Call freeargv() when failure
1219 2015-01-07 Joel Brobecker <brobecker@adacore.com>
1221 * aclocal.m4, configure: Regenerate using automake 1.11.1.
1223 2014-12-03 Joel Brobecker <brobecker@adacore.com>
1225 * sim-io.c (sim_io_stat, sim_io_fstat): Adjust calls to "stat"
1226 and "fstat" callbacks by calls to "to_stat" and "to_fstat" (resp)
1227 callbacks following renaming in callback.h.
1228 * syscall.c (cb_syscall): Likewise. Adjust calls to "lstat"
1229 callback by call to "to_lstat" callback
1231 2014-08-28 Gary Benson <gbenson@redhat.com>
1233 * sim-trace.h (debug_printf): New define.
1235 2014-08-19 Alan Modra <amodra@gmail.com>
1237 * configure: Regenerate.
1239 2014-08-15 Roland McGrath <mcgrathr@google.com>
1241 * configure: Regenerate.
1242 * config.in: Regenerate.
1244 2014-03-10 Mike Frysinger <vapier@gentoo.org>
1246 * sim-command.c (sim_do_command): Add const to cmd.
1247 * sim-options.c (sim_args_command): Add const to cmd.
1248 * sim-options.h (sim_args_command): Add const to cmd.
1250 2014-03-05 Mike Frysinger <vapier@gentoo.org>
1252 * sim-hload.c (sim_load): Add const to prog.
1253 * sim-load.c (sim_load_file): Likewise.
1254 * sim-utils.c (sim_analyze_program): Likewise.
1255 * sim-utils.h (sim_analyze_program): Likewise.
1256 (sim_load_file): Likewise.
1258 2014-03-04 Mike Frysinger <vapier@gentoo.org>
1260 * acinclude.m4 (build_warnings): Copy from gdb/configure.ac.
1261 * callback.c (system): Delete unused prototype.
1262 (os_init): Likewise.
1263 (os_shutdown): Likewise.
1264 (os_unlink): Likewise.
1265 (os_time): Likewise.
1266 (os_system): Likewise.
1267 (os_rename): Likewise.
1268 (os_write_stdout): Likewise.
1269 (os_flush_stdout): Likewise.
1270 (os_write_stderr): Likewise.
1271 (os_flush_stderr): Likewise.
1272 (os_write): Likewise.
1273 (os_read_stdin): Likewise.
1274 (os_read): Likewise.
1275 (os_open): Likewise.
1276 (os_lseek): Likewise.
1277 (os_isatty): Likewise.
1278 (os_get_errno): Likewise.
1279 (os_close): Likewise.
1280 (os_vprintf_filtered): Likewise.
1281 (os_evprintf_filtered): Likewise.
1282 (os_error): Likewise.
1286 (wrap): Change to new style prototype.
1289 (os_close): Likewise.
1290 (os_poll_quit): Likewise.
1291 (os_get_errno): Likewise.
1292 (os_isatty): Likewise.
1293 (os_lseek): Likewise.
1294 (os_open): Likewise.
1295 (os_read): Likewise.
1296 (os_read_stdin): Likewise.
1297 (os_write): Likewise.
1298 (os_write_stdout): Likewise.
1299 (os_flush_stdout): Likewise.
1300 (os_write_stderr): Likewise.
1301 (os_flush_stderr): Likewise.
1302 (os_rename): Likewise.
1303 (os_system): Likewise.
1304 (os_time): Likewise.
1305 (os_unlink): Likewise.
1306 (os_stat): Likewise.
1307 (os_fstat): Likewise.
1308 (os_lstat): Likewise.
1309 (os_ftruncate): Likewise.
1310 (os_truncate): Likewise.
1311 (os_pipe): Likewise.
1312 (os_pipe_empty): Likewise.
1313 (os_pipe_nonempty): Likewise.
1314 (os_shutdown): Likewise.
1315 (os_init): Likewise.
1316 (cb_read_target_syscall_maps): Likewise.
1317 (cb_target_to_host_syscall): Likewise.
1318 (cb_host_to_target_errno): Likewise.
1319 (cb_target_to_host_open): Likewise.
1320 (cb_store_target_endian): Likewise.
1321 (cb_host_to_target_stat): Likewise.
1322 * sim-hload.c (sim_load): Change to new style prototype.
1323 * sim-load.c (sim_load_file): Change to new style prototype.
1324 (report_transfer_performance): Likewise.
1325 (xprintf_bfd_vma): Likewise.
1326 * syscall.c (cb_get_string): Change to new style prototype.
1327 (get_path): Likewise.
1328 (cb_syscall): Likewise.
1330 2013-10-15 Hans-Peter Nilsson <hp@axis.com>
1332 * create-version.sh: Align parameters to match those of
1333 ../../gdb/common/create-version.sh.
1334 * Make-common.in (srcsim): New variable.
1335 (version.c): Adjust call to create-version.sh as per above.
1337 2013-09-23 Alan Modra <amodra@gmail.com>
1339 * configure: Regenerate.
1341 2013-09-03 Mike Stump <mikestump@comcast.net>
1343 * sim-options.c (complete_option_list): Mark text and word const.
1345 2013-06-28 Tom Tromey <tromey@redhat.com>
1347 * Make-common.in (version.c): Use version.in, not
1349 * create-version.sh: Likewise.
1351 2013-06-24 Joel Brobecker <brobecker@adacore.com>
1353 * create-version.sh: New script. Adapted from
1354 gdb/commong/create-version.sh.
1355 * Make-common.in (version.c): Update rule dependencies,
1356 and re-implement using create-version.sh.
1358 2013-06-21 Nick Clifton <nickc@redhat.com>
1360 * gennltvals.sh: Add msp430 support.
1361 * nltvals.def: Regenerate.
1363 2013-06-03 Mike Frysinger <vapier@gentoo.org>
1365 * acinclude.m4: Replace maintainer-mode code with AM_MAINTAINER_MODE.
1366 * aclocal.m4, configure: Regenerate.
1368 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
1371 * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Do not use
1372 -Wformat-nonliteral with -Wno-format.
1374 2013-03-26 Mike Frysinger <vapier@gentoo.org>
1376 * acinclude.m4: Regenerate.
1378 2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
1380 * acinclude.m4: Add SIM_DV_SOCKSER_O which is empty on hosts
1381 which do not support dv-sockser.o. Add always as option to
1382 first argument to SIM_AC_OPTION_HARDWARE. Fail if hardware
1383 is always required to be enabled by simulator.
1385 2012-08-28 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1387 * gennltvals.sh: Use libgloss/syscall.h for cr16.
1388 * nltvals.def: Regenerate.
1390 2012-06-16 Joel Brobecker <brobecker@adacore.com>
1392 * acinclude.m4 (SIM_AC_COMMON): Define PACKAGE.
1393 * config.in, configure: Regenerate.
1395 2012-05-24 Pedro Alves <palves@redhat.com>
1397 * sim-signal.h (sim_signal_to_target): Rename to ...
1398 (sim_signal_to_gdb_signal): ... this.
1399 * sim-signal.c (sim_signal_to_target): Rename to ...
1400 (sim_signal_to_gdb_signal): ... this.
1401 * sim-reason.c (sim_stop_reason): Adjust to rename.
1403 2012-05-24 Pedro Alves <palves@redhat.com>
1407 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
1409 2012-05-24 Pedro Alves <palves@redhat.com>
1413 Replace target_signal with gdb_signal throughout.
1415 2012-05-18 Nick Clifton <nickc@redhat.com>
1418 * callback.c: Include config.h before system header files.
1419 * cgen-trace.c: Likewise.
1420 * cgen-utils.c: Likewise.
1421 * gentmap.c: Likewise.
1423 2012-04-02 Mike Frysinger <vapier@gentoo.org>
1425 * hw-ports.c (hw_port_decode): Change "Unreconized" to "Unrecognized".
1427 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
1429 * sim-trace.c: Update the function prototype of save_data_size.
1430 Move the enum data_fmt from here...
1431 * sim-trace.h: ...to here.
1432 Add function prototype of save_data.
1434 2012-03-25 Mike Frysinger <vapier@gentoo.org>
1436 * sim-core.h (sim_core_trans_addr): Add prototype.
1438 2012-03-24 Hans-Peter Nilsson <hp@axis.com>
1440 * nrun.c: Add #ifdef HAVE_CONFIG_H and associated includes stanza
1441 missing in last change.
1443 2012-03-24 Mike Frysinger <vapier@gentoo.org>
1445 * acinclude.m4 (SIM_AC_COMMON): Call AC_USE_SYSTEM_EXTENSIONS.
1446 * nrun.c: Include string.h/strings.h.
1447 * aclocal.m4, config.in, configure: Regenerate.
1449 2012-03-22 Mike Frysinger <vapier@gentoo.org>
1451 * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Copy AC_ARG_ENABLE(werror),
1452 WERROR_CFLAGS, and build_warnings from gdb/configure.ac. Comment
1453 out -Werror initialization.
1455 2012-03-19 Mike Frysinger <vapier@gentoo.org>
1457 * Make-common.in (TAGS): Change a-z to [:lower:].
1458 * acinclude.m4 (sim-trace): Likewise.
1459 * gennltvals.sh: Change A-Z0-9 to [:upper:][:digit:].
1460 Change A-Za-z0-9 to [:alnum:].
1462 2012-03-18 Mike Frysinger <vapier@gentoo.org>
1464 * nrun.c (main): Display strsignal of sigrc.
1466 2012-01-06 Mike Frysinger <vapier@gentoo.org>
1468 * Makefile.in (abs_srcdir): Declare.
1469 (srcroot): Define in terms of abs_srcdir.
1470 (headers): Change srcdir to abs_srcdir.
1472 2012-01-02 Joel Brobecker <brobecker@adacore.com>
1474 * dv-sockser.h, sim-assert.h, sim-fpu.c: Reformat the copyright
1477 2011-12-19 Joel Brobecker <brobecker@adacore.com>
1479 * Make-common.in (hw-config.h): Work around bug in Solaris 2.8
1480 system bourne shell.
1482 2011-12-03 Mike Frysinger <vapier@gentoo.org>
1484 * syscall.c (cb_get_string): Rename from "get_string".
1485 (get_path): Rename get_string call to cb_get_string.
1487 2011-12-03 Mike Frysinger <vapier@gentoo.org>
1489 * Make-common.in (VPATH): Add $(srccom).
1491 (DEPMODE, DEPDIR, depcomp, COMPILE.pre, COMPILE.post, COMPILE,
1492 POSTCOMPILE): New variables.
1493 (.c.o): Replace recipe with call to $(COMPILE) and $(POSTCOMPILE).
1494 Include dependency files, when using GNU Make. Delete all
1495 dependency-only rules.
1496 * aclocal.m4: Include ../../config/depstand.m4. Call
1497 ZW_CREATE_DEPDIR and ZW_PROG_COMPILER_DEPENDENCIES.
1498 (MAKE, GMAKE): New substs.
1500 2011-11-07 Mike Frysinger <vapier@gentoo.org>
1503 * configure.ac (AC_CHECK_FUNCS): Add posix_fallocate.
1504 * configure, config.in: Regenerate.
1505 * dv-cfi.c (attach_cfi_regs): Check for HAVE_POSIX_FALLOCATE.
1507 2011-10-19 Mike Frysinger <vapier@gentoo.org>
1509 * acinclude.m4: Call AC_CHECK_LIB when $hardware contains cfi.
1511 2011-10-18 John Wehle <john@feith.com> (tiny patch)
1513 * sim-profile.c (profile_info): Only print the title once.
1515 2011-10-17 Mike Frysinger <vapier@gentoo.org>
1517 * acinclude.m4: Rename from aclocal.m4.
1518 * aclocal.m4: Regenerate.
1520 2011-10-17 Mike Frysinger <vapier@gentoo.org>
1522 * aclocal.m4: Change AC_PREREQ comment to 2.64.
1523 * common.m4: Delete.
1524 * configure.ac: Change AC_PREREQ to 2.64. Replace AC_CONFIG_HEADER
1525 call and common.m4 include with SIM_AC_COMMON(cconfig.h).
1526 * configure: Regenerate.
1528 2011-10-14 Alexey Makhalov <makhaloff@gmail.com>
1530 * sim-alu.h (ALU32_AND): Clear carry flag.
1531 (ALU32_AND): Clear carry flag.
1533 2011-10-09 Mike Frysinger <vapier@gentoo.org>
1535 * dv-cfi.c: Include stdbool.h.
1537 2011-10-09 Mike Frysinger <vapier@gentoo.org>
1539 * dv-cfi.c: Replace devices.h include with hw-base.h and hw-main.h.
1541 2011-10-04 Mike Frysinger <vapier@gentoo.org>
1543 * aclocal.m4 (SIM_AC_COMMON): Call AM_ZLIB, ACX_PKGVERSION, and
1544 ACX_BUGURL. Define PKGVERSION and REPORT_BUGS_TO.
1546 2011-07-12 Mike Frysinger <vapier@gentoo.org>
1548 * sim-command.c: Include sim-options.h.
1550 2011-07-12 Mike Frysinger <vapier@gentoo.org>
1552 * aclocal.m4: Move sinclude comment after AC_INIT comment.
1554 2011-07-12 Mike Frysinger <vapier@gentoo.org>
1556 * aclocal.m4 (SIM_AC_COMMON): Call AC_REQUIRE on AC_PROG_CC.
1557 Delete direct call to AC_PROG_CC.
1559 2011-07-05 Mike Frysinger <vapier@gentoo.org>
1561 * sim-command.c: New file.
1562 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-command.o.
1563 (sim-command.o): New rule.
1565 2011-05-27 Mike Frysinger <vapier@gentoo.org>
1567 * sim-options.c (standard_option_handler): Remove arg[0] check
1568 when freeing simulator_sysroot. Only strdup arg when arg[0] is
1569 not an empty string, otherwise assign "" back to it.
1571 2011-05-26 Mike Frysinger <vapier@gentoo.org>
1573 * nltvals.def: Regenerate to include Blackfin syscalls again.
1575 2011-05-25 Mike Frysinger <vapier@gentoo.org>
1577 * sim-trace.c (OPTION_TRACE_SYSCALL): New enum.
1578 (trace_options): Handle "trace-syscall" with OPTION_TRACE_SYSCALL.
1579 (trace_option_handler): Handle OPTION_TRACE_SYSCALL.
1580 (trace_idx_to_str): Likewise.
1581 * sim-trace.h (TRACE_SYSCALL_IDX): New enum.
1582 (TRACE_syscall): Define.
1583 (WITH_TRACE_SYSCALL_P): Likewise.
1584 (TRACE_SYSCALL_P): Likewise.
1586 2011-05-23 Mike Frysinger <vapier@gentoo.org>
1588 * dv-glue.c (hw_glue_finish): Move "name" to function scope and
1589 remove now-unnecessary sub-scope for glue->type setting.
1590 Check to see if the "reg" property exists before we use it, and
1591 if it doesn't exist, error out for "glue" devices.
1593 2011-05-23 Mike Frysinger <vapier@gentoo.org>
1595 * dv-glue.c (hw_glue_finish): Set type to glue_or when name is
1596 glue-or, and set type to glue_xor when name is glue-xor.
1597 (hw_glue_port_event): Return immediately when type is glue_io
1598 or unmatched. Handle glue_or and glue_xor types. Move HW_TRACE
1599 and hw_port_event calls from glue_and to end of function.
1601 2011-05-11 Mike Frysinger <vapier@gentoo.org>
1603 * callback.c, dv-pal.c, dv-sockser.c, hw-base.c, hw-device.c,
1604 hw-instances.c, hw-ports.c, hw-properties.c, hw-tree.c, sim-abort.c,
1605 sim-arange.c, sim-config.c, sim-core.c, sim-engine.c, sim-events.c,
1606 sim-hw.c, sim-io.c, sim-memopt.c, sim-options.c, sim-profile.c,
1607 sim-resume.c, sim-stop.c, syscall.c: Add space before parenthesis
1608 around function arguments.
1610 2011-04-14 Mike Frysinger <vapier@gentoo.org>
1612 * sim-options.c (complete_option_list, sim_complete_command):
1615 2011-04-02 Mike Frysinger <vapier@gentoo.org>
1617 * dv-glue.c: Fix up style.
1619 2011-04-02 Mike Frysinger <vapier@gentoo.org>
1621 * hw-alloc.c (hw_alloc_data): Adjust brace.
1622 * hw-base.c (hw_base_data): Likewise.
1623 (generic_hw_unit_decode): Fix indentation.
1624 * hw-device.h (_hw_unit, enum, hw): Adjust braces.
1625 * hw-events.c (hw_event, hw_event_data): Likewise.
1626 * hw-handles.c (hw_handle_mapping, hw_handle_data): Likewise.
1627 * hw-instances.c (hw_instance_data): Likewise.
1628 * hw-instances.h (hw_instance): Likewise.
1629 * hw-main.h (hw_descriptor, enum): Likewise.
1630 * hw-ports.c (hw_port_edge, hw_port_data, empty_hw_ports): Likewise.
1631 * hw-ports.h (hw_port_descriptor): Likewise.
1632 * hw-properties.c (hw_property_data): Likewise.
1633 * hw-properties.h (enum, hw_property, _ihandle_runtime_property_spec,
1634 _range_property_spec, _reg_property_spec): Likewise.
1635 * hw-tree.c (_name_specifier, printer): Likewise.
1636 (split_device_specifier, parse_string_property, hw_tree_traverse,
1637 print_size, print_reg_property, print_string, print_properties):
1640 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1642 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Add cfi to default list.
1643 * Make-common.in (dv-cfi.o): New rule.
1644 * dv-cfi.c, dv-cfi.h: New files.
1646 2011-03-21 Kevin Buettner <kevinb@redhat.com>
1648 * gennltvals.sh: Search sys/_default_fcntl.h, in addition to
1649 fcntl.h and sys/fcntl.h, for constants.
1650 * nltvals.def: Regenerate.
1651 * sim-io.c (sim_io_stat, sim_io_fstat): New functions.
1652 * sim-io.h (sys/types.h, sys/stat.h): Include.
1653 (sim_io_stat, sim_io_fstat): Declare.
1655 2011-03-14 Mike Frysinger <vapier@gentoo.org>
1657 * callback.c, cgen-engine.h, dv-core.c, dv-glue.c, dv-pal.c,
1658 hw-base.c, hw-device.c, hw-device.h, hw-handles.c, hw-instances.c,
1659 hw-ports.c, hw-ports.h, hw-properties.c, hw-tree.c, nrun.c,
1660 run-sim.h, run.c, sim-alu.h, sim-assert.h, sim-base.h, sim-basics.h,
1661 sim-config.c, sim-core.c, sim-core.h, sim-engine.h, sim-events.c,
1662 sim-events.h, sim-fpu.c, sim-hw.c, sim-inline.h, sim-load.c,
1663 sim-memopt.c, sim-n-core.h, sim-options.c, sim-profile.c,
1664 sim-signal.c, sim-trace.c, sim-trace.h, sim-utils.c, sim-watch.c,
1665 syscall.c: Trim trailing whitespace.
1667 2011-03-05 Mike Frysinger <vapier@gentoo.org>
1669 * gennltvals.sh: Handle bfin targets.
1670 * nltvals.def: Regenerate.
1672 2011-02-25 Kevin Buettner <kevinb@redhat.com>
1674 * callback.c (fdbad): Return EBADF rather than EINVAL for bad
1677 2011-02-14 Mike Frysinger <vapier@gentoo.org>
1679 * hw-alloc.c (hw_alloc_data): Delete zalloc_p.
1680 (hw_zalloc, hw_malloc): Delete zalloc_p reference.
1681 (hw_free): Drop zfree logic and always call free.
1682 * hw-base.c (hw_delete): Change zfree to free.
1683 * hw-handles.c (hw_handle_remove_ihandle): Likewise.
1684 (hw_handle_remove_phandle): Likewise.
1685 * hw-instances.c (hw_instance_delete): Likewise.
1686 * hw-tree.c (parse_reg_property): Likewise.
1687 (parse_ranges_property): Likewise.
1688 (parse_string_property): Likewise.
1689 * sim-core.c (sim_core_uninstall): Likewise.
1690 * sim-cpu.c (sim_cpu_free_all): Likewise.
1691 * sim-hw.c (sim_hw_uninstall): Likewise.
1692 * sim-memopt.c (do_memopt_delete): Likewise.
1693 (sim_memory_uninstall): Likewise.
1694 * sim-module.c (sim_module_uninstall): Likewise.
1695 * sim-options.c (sim_parse_args): Likewise.
1696 * sim-profile.c (profile_pc_cleanup): Likewise.
1697 (profile_uninstall): Likewise.
1698 * sim-watch.c (do_watchpoint_delete): Likewise.
1699 * sim-utils.c (zfree): Delete.
1700 (sim_state_free): Change zfree to free.
1701 * sim-utils.h (zfree): Delete.
1703 2011-02-13 Mike Frysinger <vapier@gentoo.org>
1705 * sim-events.h (_sim_events.time_from_event): Change type to signed64.
1707 2011-01-12 Mike Frysinger <vapier@gentoo.org>
1709 * sim-hw.c (sim_hw_uninstall): Uncomment hw_tree_delete.
1711 2011-01-12 Mike Frysinger <vapier@gentoo.org>
1713 * sim-module.c (sim_pre_argv_init): Return SIM_RC_FAIL when asprintf
1715 * sim-options.c (sim_parse_args): Issue an error and return SIM_RC_FAIL
1716 when asprintf fails.
1717 * sim-utils.c (sim_do_commandf): Issue an error and return when
1719 * sim-watch.c (sim_watchpoint_install): Return SIM_RC_FAIL when
1722 2011-01-11 Mike Frysinger <vapier@gentoo.org>
1724 * sim-memopt.c (do_memopt_add): Set nr_bytes to s.st_size before
1725 bytes has been calculated and when mmap_next_fd is valid and
1727 (memory_option_handler): Allow missing size when mmap_next_fd is
1730 2011-01-10 Mike Frysinger <vapier@gentoo.org>
1732 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Set $hardware to $2 when $2 is
1733 not empty, and always append $3 to $hardware.
1735 2011-01-10 Mike Frysinger <vapier@gentoo.org>
1737 * hw-device.h (hw_abort, hw_vabort, hw_halt): Add noreturn attribute.
1738 * sim-hw.h (sim_hw_abort): Likewise.
1740 2011-01-05 Mike Frysinger <vapier@gentoo.org>
1742 * sim-load.c (sim_load_file): Change buffer type to unsigned char *.
1744 2011-01-05 Joel Brobecker <brobecker@adacore.com>
1746 * run.1: Copyright year update.
1748 2010-12-28 Mike Frysinger <vapier@gentoo.org>
1750 * hw-alloc.h (HW_NALLOC): Define.
1752 010-12-28 Mike Frysinger <vapier@gentoo.org>
1754 * hw-alloc.h (HW_NZALLOC): Change ME,TYPE,N to me,type,n.
1756 2010-12-15 Mike Frysinger <vapier@gentoo.org>
1758 * sim-memopt.c (OPTION_MAP_INFO): Define.
1759 (memory_options): Handle --map-info.
1760 (memory_option_handler): Handle OPTION_MAP_INFO.
1762 2010-11-22 Mike Frysinger <vapier@gentoo.org>
1764 * sim-profile.c (PROFILE_PC_FREQ, PROFILE_PC_NR_BUCKETS,
1765 PROFILE_PC_SHIFT, PROFILE_PC_START, PROFILE_PC_END,
1766 PROFILE_INSN_COUNT): Add stubs when profile is disabled.
1768 2010-11-22 Mike Frysinger <vapier@gentoo.org>
1770 * sim-core.c (WITH_HW): Add device casts to device_error,
1771 device_io_read_buffer, and device_io_write_buffer.
1773 2010-11-16 Mike Frysinger <vapier@gentoo.org>
1775 * dv-sockser.c (dv_sockser_write_buffer): New function.
1776 (dv_sockser_write): Rewrite to use dv_sockser_write_buffer.
1777 * dv-sockser.h (dv_sockser_write_buffer): New prototype.
1779 2010-10-07 Hans-Peter Nilsson <hp@axis.com>
1781 * callback.c (os_lseek): Call wrap on lseek result.
1783 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
1785 * dv-sockser.c (dv_sockser_init): Check error return from socket()
1786 call by its equality to -1 not by it being negative.
1787 (connected_p): Likewise for accept() call.
1789 2010-04-23 Mike Frysinger <vapier@gentoo.org>
1791 * sim-fpu.c (sim_fpu_zero, sim_fpu_qnan): Add 0 initializers.
1793 2010-04-21 Mike Frysinger <vapier@gentoo.org>
1795 * profile.c (sim_profile_print_bar): Add cpu argument.
1797 2010-04-21 Mike Frysinger <vapier@gentoo.org>
1799 * sim-profile.h (sim_profile_print_bar): Use sim_cpu, not SIM_CPU.
1801 2010-04-21 Mike Frysinger <vapier@gentoo.org>
1803 * sim-profile.c (profile_vprintf, profile_printf): New functions.
1804 (profile_print_pc): Convert sim_io_printf to profile_printf.
1805 (profile_print_insn): Likewise.
1806 (profile_print_memory): Likewise.
1807 (profile_print_core): Likewise.
1808 (profile_print_model): Likewise.
1809 (sim_profile_print_bar): Likewise.
1810 (profile_print_speed): Likewise.
1811 (profile_print_addr_ranges): Likewise.
1812 (profile_info): Likewise.
1813 * sim-profile.h (sim_profile_print_bar): Add cpu argument.
1815 2010-04-19 Mike Frysinger <vapier@gentoo.org>
1817 * sim-model.c (OPTION_MODEL): Convert to enum.
1818 (OPTION_MODEL_INFO): New enum.
1819 (model_options): Add model-info/info-model entries.
1820 (model_option_handler): Handle OPTION_MODEL_INFO.
1822 2010-04-13 Mike Frysinger <vapier@gentoo.org>
1824 * dv-sockser.h (DV_SOCKSER_DISCONNECTED): Define.
1825 * dv-sockser.c (dv_sockser_status): Set DV_SOCKSER_DISCONNECTED
1828 2010-04-13 Mike Frysinger <vapier@gentoo.org>
1830 * sim-hrw.c (sim_write): Add const to buf arg.
1831 * sim-utils.h (sim_write_fn): Likewise.
1833 2010-04-12 Mike Frysinger <vapier@gentoo.org>
1835 * sim-profile.h (PROFILE_BRANCH_TAKEN, PROFILE_BRANCH_UNTAKEN): New
1838 2010-04-12 Mike Frysinger <vapier@gentoo.org>
1840 * dv-core.c (dv_core_descriptor): Add NULL initializer.
1841 * dv-glue.c (hw_glue_ports, dv_glue_descriptor): Likewise.
1842 * dv-pal.c (hw_pal_ports, dv_pal_descriptor): Likewise.
1843 * dv-sockser.c (sockser_options): Likewise.
1844 * hw-ports.c (empty_hw_ports): Likewise.
1845 * sim-hw.c (hw_options): Likewise.
1846 * sim-model.c (model_options): Likewise.
1847 * sim-options.c (standard_options): Likewise.
1848 * sim-profile.c (profile_options): Likewise.
1849 * sim-trace.c (trace_options): Likewise.
1850 * sim-watch.c (watchpoint_options): Likewise.
1852 2010-04-12 Mike Frysinger <vapier@gentoo.org>
1854 * sim-options.c (dup_arg_p): Add "const" to the "arg" argument,
1855 the local "arg_table" variable, and the xmalloc cast.
1857 2010-04-10 Mike Frysinger <vapier@gentoo.org>
1859 * sim-fpu.c (sim_fpu_print_status): Add const markings to local
1861 (sim_fpu_print_func): Add const markings to format buffer.
1863 2010-04-10 Mike Frysinger <vapier@gentoo.org>
1865 * sim-fpu.c (sim_fpu_print_status): Remove duplicate break statements.
1867 2010-04-10 Mike Frysinger <vapier@gentoo.org>
1869 * sim-trace.c (save_data): Add const markings to "buf" argument.
1871 2010-04-10 Mike Frysinger <vapier@gentoo.org>
1873 * sim-options.c (standard_option_handler): Add const markings to
1876 2010-04-02 Mike Frysinger <vapier@gentoo.org>
1878 * hw-ports.h: Fix spelling typos.
1880 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1882 * configure.ac: Check for socklen_t.
1883 * configure, config.in: Regenerated.
1884 * dv-sockser.c (connected_p): Change addrlen type to socklen_t.
1886 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1888 * sim-utils.c (sim_io_eprintf_cpu): Use %s with printf string.
1889 * sim-hw.c (hw_option_handler): Likewise.
1891 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1893 * sim-watch.c (watchpoint_type_to_str): Add const to return.
1894 (interrupt_nr_to_str): Likewise.
1895 (default_interrupt_names): Add const to pointer type.
1896 (sim_watchpoint_install): Add const to prefix.
1897 * sim-watch.h (struct _sim_watchpoints): Add const to interrupt_names.
1899 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1901 * sim-core.c (sim_core_read_buffer): Change raddr to address_word.
1902 (sim_core_write_buffer): Likewise.
1904 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1906 * sim-trace.c (trace_option_handler): Move cpu_nr decl behind
1907 the SIM_HAVE_ADDR_RANGE define.
1909 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1911 * sim-core.h (device_error): Add const to message, and add printf
1914 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1916 * sim-profile.c (profile_print_addr_ranges): Wrap with the
1917 SIM_HAVE_ADDR_RANGE define.
1919 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1921 * dv-glue.c (hw_glue_ports): Swap static and const.
1923 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1925 * nrun.c (usage): Use void in definition.
1926 * sim-options.c (dup_arg_p): Convert old-style function definition.
1927 (sim_parse_args): Likewise.
1928 (sim_print_help): Likewise.
1929 * sim-trace.c (set_trace_option_mask): Likewise.
1930 (set_trace_option): Likewise.
1931 * sim-utils.c (sim_analyze_program): Likewise.
1932 (sim_elapsed_time_get): Likewise.
1933 (sim_elapsed_time_since): Likewise.
1935 2010-03-22 Mike Frysinger <vapier@gentoo.org>
1937 * sim/common/sim-options.c (enum): Remove SIM_HAVE_BIENDIAN ifdef.
1938 (standard_options): Likewise.
1939 (standard_option_handler): Likewise.
1941 2010-03-16 Mike Frysinger <vapier@gentoo.org>
1943 * hw-ports.c (TRACE): Delete.
1944 * hw-properties.c (TRACE): Delete.
1945 (hw_find_ihandle_runtime_property): Change TRACE to HW_TRACE.
1946 (hw_find_integer_property): Likewise.
1947 (hw_find_integer_array_property): Likewise.
1948 (hw_add_duplicate_property): Likewise.
1950 2010-03-15 Mike Frysinger <vapier@gentoo.org>
1952 * hw-properties.h (hw_add_boolean_property): Rename "bool" to
1955 2010-02-04 Mike Frysinger <vapier@gentoo.org>
1957 * sim-model.c: Include sim-model.h
1959 2010-02-04 Mike Frysinger <vapier@gentoo.org>
1961 * sim-base.h: Declare sim_state.cpu as a pointer in the comment. Drop
1962 & from the STATE_CPU() examples.
1964 2010-01-24 Doug Evans <dje@sebabeach.org>
1966 * cgen-accfp.c (fextsfdf): New arg how. All callers updated.
1967 (ftruncdfsf, floatsisf, flostsidf, ufloatsisf, fixsfsi, fixdfsi,
1969 * cgen-fpu.h (CGEN_FPCONV_KIND): New enum.
1970 (struct cgen_fp_ops): Update signatures of floating point conversion
1973 * Make-common.in (CGEN_SIM_DEPS): Define.
1974 (CGEN_INCLUDE_DEPS): Use it.
1975 (CGEN_MAIN_CPU_DEPS): Simplify.
1977 2010-01-22 Doug Evans <dje@sebabeach.org>
1979 * cgen-ops.h (SUBWORDXFSI): Fix word ordering.
1980 (SUBWORDTFSI, JOINSIDI): Ditto.
1982 2010-01-05 Doug Evans <dje@sebabeach.org>
1984 * cgen-types.h (SETDI): Delete, unused.
1986 2009-12-02 Doug Evans <dje@sebabeach.org>
1988 * cgen-engine.h: Remove duplicated comment.
1990 2009-11-23 Doug Evans <dje@sebabeach.org>
1992 * cgen-engine.h (EXTRACT_MSB0_SINT): Renamed from EXTRACT_MSB0_INT.
1993 (EXTRACT_LSB0_SINT): Renamed from EXTRACT_LSB0_INT.
1995 2009-11-22 Doug Evans <dje@sebabeach.org>
1997 * cgen-engine.h (EXTRACT_MSB0_LGSINT, EXTRACT_MSB0_LGUINT): Define.
1998 (EXTRACT_LSB0_LGSINT, EXTRACT_LSB0_LGUINT): Define.
1999 (EXTRACT_FN, SEMANTIC_FN): Use CGEN_INSN_WORD in prototype
2000 instead of CGEN_INSN_INT.
2002 * cgen-trace.h (trace_extract): Add cast to fix warning.
2004 2009-11-05 Doug Evans <dje@sebabeach.org>
2006 * cgen-mem.h (DECLARE_GETT): Don't inline.
2007 (DECLARE_SETT): Ditto.
2009 2009-10-15 Joel Sherrill <joel.sherrill@oarcorp.com>
2011 * sim-inline.h: Fix spelling error.
2013 2009-10-02 Ralf Corsepius <ralf.corsepius@rtems.org>
2015 * Make-common.in: Add datarootdir.
2017 2009-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2019 * aclocal.m4 (SIM_CHECK_MEMBER, SIM_CHECK_MEMBERS)
2020 (SIM_CHECK_MEMBERS_1): Remove.
2021 * configure.ac: Replace SIM_CHECK_MEMBERS call with equivalent
2022 AC_CHECK_MEMBERS one.
2023 * configure: Regenerate.
2025 * aclocal.m4 (SIM_CHECK_MEMBER): Use AU_ALIAS to define, not defn.
2026 * configure: Regenerate.
2028 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2030 * config.in: Regenerate.
2031 * configure: Likewise.
2033 * aclocal.m4 (SIM_CHECK_MEMBER): Replace definition with
2034 definition of AC_CHECK_MEMBER.
2036 * aclocal.m4: m4_include toplevel config/override.m4.
2037 * configure: Regenerate.
2039 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2041 * Makefile.in (datarootdir): New variable.
2043 2009-07-07 Doug Evans <dje@sebabeach.org>
2045 * Make-common.in (CPU_DIR): Define.
2047 2009-07-06 Doug Evans <dje@sebabeach.org>
2049 * Make-common.in (CGEN_CPU_EXTR,CGEN_CPU_READ): Pass canonical
2050 identifiers for file types rather than encoding internal
2051 implementation details of cgen.sh.
2052 (CGEN_CPU_WRITE,CGEN_CPU_SEM,CGEN_CPU_SEMSW): Ditto.
2053 * cgen.sh: Add support for parallel makes.
2054 Rewrite cpu/decode handling to avoid generating "extrafiles" twice.
2056 2009-05-18 Jon Beniston <jon@beniston.com>
2058 * gennltvals.sh: Add lm32 target.
2059 * nltvals.def: Add lm32 syscall definitions.
2061 2009-03-19 J"orn Rennecke <joern.rennecke@arc.com> (tiny change)
2063 Speed up simulator startup:
2064 * sim-utils.c (zalloc): Use xcalloc.
2066 2009-01-07 Hans-Peter Nilsson <hp@axis.com>
2068 * cgen-ops.h (ADDQI, SUBQI, MULQI, NEGQI, ABSQI, ADDHI, SUBHI)
2069 (MULHI, NEGHI, ABSHI, ADDSI, SUBSI, MULSI, NEGSI, ABSSI, ADDDI)
2070 (SUBDI, MULDI, NEGDI, ABSDI): Cast arguments to the unsigned type
2071 variant; UQI, UHI, USI, UDI, and cast the result to the signed
2072 type, QI, HI, SI, DI.
2074 * callback.c (os_error): Mark as being a noreturn function.
2075 * sim-io.h (sim_io_error): Similar for sim_io_error.
2077 2008-11-12 Joel Sherrill <joel.sherrill@oarcorp.com>
2079 * aclocal.m4: Fix underquoting of function names.
2081 2008-10-21 Julian Brown <julian@codesourcery.com>
2083 * Make-common.in (run$(EXEEXT)): Add LDFLAGS.
2085 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
2087 * common.m4: Add test for libz and zlib.h.
2088 * configure: Regenerate to track ../common/common.m4 changes.
2091 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
2092 Daniel Jacobowitz <dan@codesourcery.com>
2093 Joseph Myers <joseph@codesourcery.com>
2095 * aclocal.m4: Include ../../config/acx.m4.
2096 * common.m4: Use ACX_PKGVERSION and ACX_BUGURL.
2097 * configure, config.in: Regenerate.
2098 * Make-common.in (LIB_OBJS): Add version.o.
2099 (version.c, version.o): New rules.
2100 * run.c: Include version.h.
2101 (usage): Add help parameter. Print output either to stdout or
2102 stderr depending on that parameter.
2103 (print_version): New.
2104 (main): Check for --help and --version.
2105 * run-sim.h (sim_target_display_usage): Add help parameter.
2108 2008-04-14 Hans Kester <kester.hans@gmail.com>
2110 * sim-signal.c: Define missing signals for _WIN32.
2112 2008-02-12 M Ranga Swami Reddy <MR.Swami.Reddy@nsc.com>
2114 * gennltvals.sh: Add cr16.
2115 * nltvals.def: Rebuild.
2117 2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com>
2119 * callback.c (cb_is_stdin, cb_is_stdout, cb_is_stderr): Add functions.
2120 * syscall.c (cb_syscall): Test for stdin/out/err, not just fd 0/1/2.
2122 2007-08-10 Nick Clifton <nickc@redhat.com>
2124 * sim-memopt.c (memory_options): Mention that the
2125 --memory-size switch accepts suffixes.
2126 (parse_size): Handle a suffix on the size value.
2127 * sim-options.c (standard_options): Mention that the mem-size
2128 switch accepts suffixes.
2129 (standard_option_handler): Handle a suffix on the size value.
2131 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
2133 * acconfig.h: Remove.
2134 * config.in: Regenerate.
2136 2006-11-07 Thiemo Seufer <ths@mips.com>
2138 * gentmap.c: Fix compile time warning.
2140 2006-11-07 Thiemo Seufer <ths@mips.com>
2142 * sim-base.h (text_start, text_end, start_addr): Use bfd_vma type
2143 for bfd text addresses.
2145 2006-08-29 Thiemo Seufer <ths@mips.com>
2146 Nigel Stephens <nigel@mips.com>
2148 * sim-fpu.c (pack_fpu): Handle QUIET_NAN correctly for
2149 SIM_QUIET_NAN_NEGATED.
2151 2006-08-29 Nigel Stephens <nigel@mips.com>
2153 * sim-profile.c (profile_pc_init): Initialise default profiling
2154 frequency to a prime number.
2155 (profile_print_pc): Convert gmon.out sample data into target
2158 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
2160 * aclocal.m4: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR.
2161 * common.m4: Likewise.
2162 * configure: Regenerated.
2164 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
2166 * aclocal.m4: Use ZW_GNU_GETTEXT_SISTER_DIR.
2167 * configure: Regenerated.
2169 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
2171 * Make-common.in: Replace INTLLIBS and INTLDEPS with LIBINTL
2172 and LIBINTL_DEP everywhere.
2173 (CSEARCH): Use INCINTL.
2174 * aclocal.m4: Use ZW_GNU_GETTEXT_SISTER_DIR. Include new
2176 * configure: Regenerated.
2178 2006-03-29 Hans-Peter Nilsson <hp@axis.com>
2180 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Correct duplicate-
2181 option-contents test.
2183 2005-11-28 Mark Mitchell <mark@codesourcery.com>
2185 * sim-signal.c (sim_signal_to_target): Fix typos.
2187 * sim-reason.c (sim_stop_reason): Use
2188 sim_signal_to_target, not sim_signal_to_host.
2189 * sim-signal.c (sim_signal_to_host): Fix typo.
2190 (sim_signal_to_target): New function.
2192 2005-07-10 Hans-Peter Nilsson <hp@bitrange.com>
2194 * sim-load.c (xprintf, eprintf): Remove fallout from ANSI_PROTOTYPES
2197 2005-07-08 Ian Lance Taylor <ian@airs.com>
2199 * sim-fpu.c (sim_fpu_abs): Always clear the sign bit.
2201 * sim-fpu.c (pack_fpu): If SIM_QUIET_NAN_NEGATED is defined, use a
2202 different fraction for a quiet NaN.
2203 (unpack_fpu): Likewise.
2205 2005-07-08 Ben Elliston <bje@au.ibm.com>
2207 * callback.c: Remove ANSI_PROTOTYPES conditional code.
2208 * sim-load.c: Likewise.
2209 * syscall.c: Likewise.
2211 2005-05-24 Corinna Vinschen <vinschen@redhat.com>
2213 * Make-common.in (LIBDEPS): Correctly use INTLDEPS for dependency
2216 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
2218 * Make-common.in (install-common, installdirs): Honor $DESTDIR.
2220 2005-04-20 Manoj Iyer <manjo@austin.ibm.com>
2222 * sim-types.h: Changed unsigned32 and unsigned64 to signed32
2223 and signed64 for __ALPHA__.
2225 2005-03-23 Mark Kettenis <kettenis@gnu.org>
2227 * aclocal.m4 Include ../../gettext.m4.
2228 (CY_WITH_NLS, CY_GNU_GETTEXT, AM_PATH_PROG_WITH_TEST)
2229 (AM_LC_MESSAGES): Remove.
2230 * configure: Regenerate.
2232 2005-02-28 Jim Blandy <jimb@redhat.com>
2234 * aclocal.m4 (SIM_AC_OPTION_WARNINGS): Don't include
2235 -Wuninitialized in the default list of build warnings if CFLAGS is
2236 set, and doesn't include -O. (Using -Wuninitialized without
2237 optimization produces a warning, which interferes with compilation
2240 2005-02-21 Jim Blandy <jimb@redhat.com>
2242 * callback.c (os_fstat): Don't declare 't' unless it's used.
2244 2005-02-09 Jim Blandy <jimb@redhat.com>
2246 * Make-common.in (CGEN): Load guile.scm, and include a trailing
2248 (CGEN_FLAGS_TO_PASS): Include single quotes around the reference
2249 to $(CGEN), to ensure that the command substitution happens where
2250 the variable is referenced in the submake, not when the submake's
2251 arguments are expanded.
2252 (cgen.sh): Be prepared for the 'cgen' argument to contain spaces.
2253 (arch, cpu, decode, cpu-decode, defs, desc): Place the name of the
2254 application Scheme script directly after ${cgen}; don't precede it
2257 2005-01-28 Hans-Peter Nilsson <hp@axis.com>
2259 * syscall.c (cb_syscall) <case CB_SYS_pipe>: New case.
2260 * callback.c [HAVE_LIMITS_H]: Include limits.h.
2261 Include libiberty.h.
2262 (os_close, os_read, os_write, os_fstat, os_ftruncate): Support fd
2263 being either end of a pipe.
2264 (os_pipe, os_pipe_empty, os_pipe_nonempty): New functions.
2265 (os_shutdown): Clear pipe state.
2266 (default_callback): Initialize new members.
2268 * callback.c (default_callback): Initialize target_endian.
2269 (cb_store_target_endian): Renamed from store, new first parameter
2270 host_callback *cb, drop last parameter big_p. Take endianness
2272 (cb_host_to_target_stat): Change to use cb_store_target_endian.
2273 Remove variable big_p.
2274 * nrun.c (main): Initialize default_callback.target_endian.
2276 2005-01-14 Andrew Cagney <cagney@gnu.org>
2278 * configure.ac: Replace SIM_AC_COMMON with sinclude of common.m4.
2279 Add explicit call to AC_CONFIG_HEADER.
2280 * common.m4: Delete call to AC_CONFIG_HEADER, update usage.
2281 * configure: Re-generate.
2283 2005-01-12 Andrew Cagney <cagney@gnu.org>
2285 * common.m4: New file, based on of aclocal.m4.
2287 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
2289 * aclocal.m4 (SIM_AC_OUTPUT): Rewrite to use 2.59 macros.
2290 * configure: Regenerated to track ../common/aclocal.m4 changes.
2292 2005-01-07 Andrew Cagney <cagney@gnu.org>
2294 * configure.ac: Rename configure.in, require autoconf 2.59.
2295 * aclocal.m4 (SIM_AC_COMMON): Delete call to AC_CONFIG_AUX_DIR.
2296 * configure: Re-generate.
2298 2004-12-15 Hans-Peter Nilsson <hp@axis.com>
2300 * syscall.c (cb_syscall) <case CB_SYS_truncate>
2301 <case CB_SYS_ftruncate>: New cases.
2303 2004-12-13 Hans-Peter Nilsson <hp@axis.com>
2305 * syscall.c (cb_syscall) <case CB_SYS_lstat>: New case.
2306 (cb_syscall) <case CB_SYS_rename>: New case.
2307 * callback.c (os_lstat): New function.
2309 2004-12-08 Hans-Peter Nilsson <hp@axis.com>
2311 * run.1: Document --sysroot=filepath.
2312 * sim-options.c (STANDARD_OPTIONS): New member OPTION_SYSROOT.
2313 (standard_options): Support --sysroot=<path>.
2314 (standard_option_handler): Handle OPTION_SYSROOT.
2315 * syscall.c (simulator_sysroot): Define, initialized empty.
2316 (get_path): Prepend simulator_sysroot to absolute file path.
2317 [HAVE_STRING_H]: Include string.h.
2318 [!HAVE_STRING_H && HAVE_STRINGS_H]: Include strings.h.
2319 * nrun.c [HAVE_UNISTD_H]: Include unistd.h.
2320 (main): If simulator_sysroot is not empty, chdir there.
2321 * sim-config.h (simulator_sysroot): Declare.
2323 * aclocal.m4 (SIM_AC_OUTPUT): Substitute @cgen_breaks@ for "break
2324 cgen_rtx_error" in a CGEN-generated simulator.
2325 * gdbinit.in: Break on sim_core_signal too. Have autoconf
2326 replacement for CGEN-related breakpoints.
2328 2004-12-07 Hans-Peter Nilsson <hp@axis.com>
2330 * Make-common.in (sim-basics_h): Add $(callback_h).
2332 2004-12-03 Hans-Peter Nilsson <hp@axis.com>
2334 * configure.in (SIM_CHECK_MEMBERS): Call for struct stat members
2335 st_dev, st_ino, st_mode, st_nlink, st_uid, st_gid, st_rdev,
2336 st_size, st_blksize, st_blocks, st_atime, st_mtime and st_ctime.
2337 * aclocal.m4 (SIM_CHECK_MEMBER, SIM_CHECK_MEMBERS_1)
2338 (SIM_CHECK_MEMBERS): New macros.
2339 * callback.c (cb_host_to_target_stat): Use temporary macro ST_x
2340 for struct stat member test and write. Add ST_x calls for each
2341 struct stat member tested in configure.in. Wrap each ST_x call in
2342 #ifdef of configure macro for that member.
2343 * configure, config.in: Regenerate.
2345 2004-12-01 Hans-Peter Nilsson <hp@axis.com>
2347 * cgen.sh: New thirteenth parameter opcfile, defaulting to
2349 <case desc>: Pass -OPC opcfile.
2350 * Make-common.in (cgen-desc): Pass $(opcfile) as thirteenth
2351 parameter to cgen.sh.
2353 2004-11-30 Richard Earnshaw <rearnsha@arm.com>
2355 * Make-common.in (sim-basics_h): Correct dependencies on
2356 cconfig.h and tconfig.h
2357 (sim-load.o): Correct typo in sim-basics_h dependency.
2359 2004-11-18 Richard Earnshaw <rearnsha@arm.com>
2361 * Make-common.in (sim-*_h): Add macros for all sim headers listing
2362 sub-dependencies for other sim files that they include.
2363 (sim_main_headers): Use sim-*_h macros.
2364 (sim-load.o): Depend on sim-basics_h, not sim_main_headers.
2366 2004-11-16 Hans-Peter Nilsson <hp@axis.com>
2368 * sim-config.c (sim_config): Recognize when a bfd has unspecified
2371 * Make-common.in (sim-load.o): Depend on $(sim_main_headers) and
2372 $(remote_sim_h) too.
2373 (sim_main_headers): Add sim-utils.h.
2375 2004-10-07 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2377 * cgen-defs.h (ENDSWITCH): Changed to compile with gcc-3.4.2.
2379 2004-07-26 Andrew Cagney <cagney@gnu.org>
2381 Problem from Olaf Hering <olh@suse.de>.
2382 * Makefile.in (install-man, installdirs): Add DESTDIR prefix.
2384 2004-07-10 Ben Elliston <bje@au.ibm.com>
2386 * hw-tree.c (parse_integer_property): Typo fix in comments.
2387 * sim-options.c (sim_args_command): Likewise.
2389 2004-06-28 Andrew Cagney <cagney@gnu.org>
2391 * run.c: Rename ui_loop_hook to deprecated_ui_loop_hook.
2393 2004-06-27 J"orn Rennecke <joern.rennecke@superh.com>
2395 * callback.c (os_shutdown): Fix bug in last change: actually
2396 mark file descriptors as available on startup.
2398 2004-06-25 J"orn Rennecke <joern.rennecke@superh.com>
2400 [ include/gdb: * callback.h (host_callback_struct): Replace
2401 members fdopen and alwaysopen with fd_buddy. ]
2402 * callback.c: Changed all users.
2404 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2406 * sim-load.c (sim_load_file): Use bfd_get_section_size
2407 instead of bfd_get_section_size_before_reloc.
2409 2004-05-18 Daniel Jacobowitz <dan@debian.org>
2411 * dv-glue.c (hw_glue_finish): Cast result of sizeof to long before
2412 passing it to printf.
2414 2004-05-10 Daniel Jacobowitz <dan@debian.org>
2416 * callback.c: Update copyright dates.
2418 * sim-basics.h: Likewise.
2419 * sim-load.c: Likewise.
2420 * syscall.c: Likewise.
2422 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2424 * callback.c: Include cconfig.h instead of config.h.
2426 * sim-basics.h: Likewise.
2427 * sim-load.c: Likewise.
2428 * syscall.c: Likewise.
2430 2004-01-16 Ben Elliston <bje@wasabisystems.com>
2432 * Makefile.in (clean): Remove rm -f $(ALL), as $(ALL) is empty.
2434 2003-12-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2436 * sim-core.c (sim_core_trans_addr): Added for m32r-linux-run.
2438 2003-11-22 Kazu Hirata <kazu@cs.umass.edu>
2440 * sim-options.c (standard_options): Fix the names of H8
2443 2003-10-30 Andrew Cagney <cagney@redhat.com>
2445 * sim-trace.c, sim-base.h: Replace "struct symbol_cache_entry"
2446 with "struct bfd_symbol".
2448 2003-10-21 Andrew Cagney <cagney@redhat.com>
2450 * callback.c (os_truncate): Call "truncate", and not "stat".
2452 2003-10-20 Andrew Cagney <cagney@redhat.com>
2454 * sim-base.h: Replace "struct sec" with "struct bfd_section".
2456 2003-10-15 J"orn Rennecke <joern.rennecke@superh.com>
2458 * callback.c (os_ftruncate, os_truncate): New functions.
2459 (default_callback): Initialize ftruncate and truncate members.
2461 2003-09-08 Dave Brolley <brolley@redhat.com>
2463 On behalf of Doug Evans <dje@sebabeach.org>
2464 * cgen.sh: New arg archfile.
2465 * Make-common.in (cgen-arch,cgen-cpu,cgen-defs,cgen-decode,
2466 cgen-cpu-decode,cgen-desc): Update call to cgen.sh.
2468 2003-08-28 Andrew Cagney <cagney@redhat.com>
2470 * dv-glue.c (hw_glue_finish): Change %d to %ld to match sizeof.
2471 * sim-options.c (print_help): Cast the format with specifier to
2474 2003-08-20 Michael Snyder <msnyder@redhat.com>
2475 Dave Brolley <brolley@redhat.com>
2477 * cgen-par.h (flags, word1): New target-specific
2478 fields of CGEN_WRITE_QUEUE_ELEMENT.
2479 (CGEN_WRITE_QUEUE_ELEMENT_FLAGS): New accessor macro.
2480 (CGEN_WRITE_QUEUE_ELEMENT_WORD1): New accessor macro.
2481 * gennltvals.sh: Add frv target.
2482 * nltvals.def: Add frv target.
2484 2003-06-23 Michael Snyder <msnyder@redhat.com>
2486 * nrun.c (main): Delete h8/300 ifdef (sim now handles signals).
2487 * sim-reg.c: Fix cut-and-paste bug in comment.
2489 2003-06-22 Andrew Cagney <cagney@redhat.com>
2491 From matthew green <mrg@redhat.com>:
2492 * sim-fpu.h: Update copyright.
2493 (sim_fpu_fraction, sim_fpu_guard): New prototypes.
2494 * sim-fpu.c: Update copyright.
2495 (sim_fpu_fraction, sim_fpu_guard): New inline functions.
2497 2003-06-17 Frank Ch. Eigler <fche@redhat.com>
2499 From Doug Evans <dje@sebabeach.org>:
2500 * cgen-trace.h (sim_disasm_read_memory): Update args to be compatible
2501 with disassemble_info:read_memory_func.
2502 * cgen-trace.c (sim_disasm_read_memory): Ditto.
2504 2003-06-04 Michael Snyder <msnyder@redhat.com>
2506 * common/run.c (main): Remove SIM_H8300 ifdef.
2508 * common/sim-options.c (STANDARD_OPTIONS): Add SIM_H8300SX.
2509 (standard_options): Add '-x' for h8/300sx.
2510 (standard_option_handler): Add case for SIM_H8300SX.
2512 2003-04-13 Michael Snyder <msnyder@redhat.com>
2514 * Make-common.in (sim-events.o, sim-config.o): Depend on sim-main.h.
2516 2003-03-01 Andrew Cagney <cagney@redhat.com>
2518 * sim-engine.c (sim_engine_halt): If jmpbuf is invalid, abort.
2519 (sim_engine_vabort): Ditto.
2521 2003-02-27 Andrew Cagney <cagney@redhat.com>
2523 * sim-utils.h (sim_analyze_program, sim_load_file): Rename _bfd to bfd.
2524 * sim-hload.c (sim_load), sim-base.h (sim_state_base): Ditto.
2525 * nrun.c (main): Ditto.
2527 2003-02-26 Andrew Cagney <cagney@redhat.com>
2529 * sim-engine.h (sim_engine_abort): Add noreturn attribute.
2530 (sim_engine_vabort): Ditto.
2531 (sim_engine_halt, sim_engine_restart): Ditto.
2533 2003-02-20 Andrew Cagney <ac131313@redhat.com>
2535 * Make-common.in (SIM_NEW_COMMON_OBJS): Remove sim-break.o
2536 (sim-break_h): Delete macro.
2537 (sim-break.o): Delete rule.
2538 * sim-break.c: Delete file.
2539 * sim-break.h: Delete file.
2540 * sim-base.h [SIM_HAVE_BREAKPOINTS]: Don't include "sim-break.h".
2541 (STATE_BREAKPOINTS): Delete macro.
2542 (sim_state_base): Delete field breakpoints.
2543 * sim-module.c (modules) [SIM_HAVE_BREAKPOINTS]: Don't add
2544 sim_break_install to array.
2546 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
2548 * run.c (usage): Fix typos.
2550 2002-11-27 Richard Sandiford <rsandifo@redhat.com>
2552 * sim-fpu.c (sim_fpu_inv): Use sim_fpu_div.
2554 2002-11-22 Andrew Cagney <ac131313@redhat.com>
2556 * dv-core.c: Update copyright. sim/common contributed to the FSF.
2557 * dv-glue.c, dv-pal.c, hw-base.c, hw-base.h, hw-device.c: Ditto.
2558 * hw-device.h, hw-handles.c, hw-handles.h: Ditto.
2559 * hw-instances.c, hw-instances.h, hw-properties.c: Ditto.
2560 * hw-properties.h, hw-tree.c, hw-tree.h, sim-alu.h: Ditto.
2561 * sim-basics.h, sim-bits.c, sim-bits.h, sim-config.c: Ditto.
2562 * sim-config.h, sim-core.c, sim-core.h, sim-endian.c: Ditto.
2563 * sim-endian.h, sim-events.c, sim-events.h, sim-inline.c: Ditto.
2564 * sim-inline.h, sim-io.c, sim-io.h, sim-n-bits.h: Ditto.
2565 * sim-n-core.h, sim-n-endian.h, sim-types.h: Ditto.
2567 2002-11-13 Andrew Cagney <cagney@redhat.com>
2569 * run.c (main): Remove SIM_HAVE_ENVIRONMENT from #endif.
2571 2002-11-06 Richard Sandiford <rsandifo@redhat.com>
2573 * Make-common.in (SIM_EXTRA_DISTCLEAN): New macro.
2574 (distclean): Depend on it.
2576 2002-10-14 Alan Modra <amodra@bigpond.net.au>
2578 * cgen-trace.h: Test __BFD_H_SEEN__ rather than BFD_VERSION.
2580 2002-08-29 Dave Brolley <brolley@redhat.com>
2582 * Make-common.in (CGEN_READ_SCM): Remove ../../cgen/stamp-cgen.
2584 2002-07-17 Andrew Cagney <cagney@redhat.com>
2586 * run-sim.h: Add #ifdef RUN_SIM_H wrapper.
2587 (sim_set_callbacks, sim_size, sim_trace)
2588 (sim_set_trace, sim_set_profile_size, sim_kill): Declare. Moved
2589 to here from "gdb/remote-sim.h".
2591 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2593 * sim-resume.c (sim_resume): Add local variable sig_to_deliver to
2594 avoid possible longjmp problems with automatic variable siggnal.
2596 2002-07-14 Andrew Cagney <ac131313@redhat.com>
2598 From 2002-07-11 Momchil Velikov <velco@fadata.bg>:
2599 * Make-common.in (installdirs): Make $(libdir) too, needed when
2600 installing libsim.a.
2602 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2604 * gennltvals.sh (dir): Mark d30v as obsolete.
2605 * nltvals.def: Remove d30v.
2607 2002-06-17 Andrew Cagney <cagney@redhat.com>
2609 * hw-events.c (hw_event_queue_schedule): Initialize `dummy'.
2611 * sim-memopt.c: Include <unistd.h>.
2612 (do_memopt_add): Fix printf format.
2613 * sim-events.c (sim_events_schedule): Initialize ``dummy''.
2615 2002-06-16 Andrew Cagney <ac131313@redhat.com>
2617 * aclocal.m4 (SIM_AC_OPTION_WARNINGS): Update to match GDB's
2618 --enable-gdb-build-warnings.
2619 * configure: Regenerated to track ../common/aclocal.m4 changes.
2621 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
2623 * sim-fpu.c (unpack_fpu): Initialize exponent for
2626 (sim_fpu_sqrt): Same.
2628 2002-06-08 Andrew Cagney <cagney@redhat.com>
2630 * gentmap.c (gen_targ_map_c): Generate "gdb/callback.h".
2631 * sim-basics.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
2633 * sim-load.c: Ditto.
2634 * callback.c: Ditto.
2636 * Make-common.in (callback_h): Define.
2637 (remote_sim_h): Define.
2639 (callback.o): Update.
2640 (syscall.o): Update.
2643 (sim-hload.o): Update.
2645 (sim-reason.o): Update.
2646 (sim-reg.o): Update.
2647 (sim-resume.o): Update.
2649 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
2651 * run.c: Fix formatting.
2653 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
2655 * run-sim.h: New header. Provide prototypes for functions used
2656 between run() and libsim.a which are not used by GDB.
2657 * run.c: Include run-sim.h.
2658 (main): If SIM_TARGET_SWITCHES is defined call
2659 sim_target_parse_command_line.
2660 (usage): If SIM_TARGET_SWITCHES is defined call
2661 sim_target_display_usage.
2663 2002-05-17 Andrey Volkov <avolkov@transas.com>
2665 * run.c: Made h8300s as new target, not h8300h alias.
2666 Added new option -S (h8300s target)
2667 * sim-options.c: Ditto.
2669 2002-05-01 Chris Demetriou <cgd@broadcom.com>
2671 * callback.c: Use 'deprecated' rather than 'depreciated.'
2673 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2675 From wiz at danbala:
2676 * sim-fpu.h: Fix grammar and typos.
2679 2002-02-10 Chris Demetriou <cgd@broadcom.com>
2681 * callback.c: Fix some spelling errors.
2682 * hw-device.h: Likewise.
2683 * hw-tree.c: Likewise.
2684 * sim-abort.c: Likewise.
2685 * sim-alu.h: Likewise.
2686 * sim-core.h: Likewise.
2687 * sim-events.c: Likewise.
2688 * sim-events.h: Likewise.
2689 * sim-fpu.h: Likewise.
2690 * sim-profile.h: Likewise.
2691 * sim-utils.c: Likewise.
2693 2002-01-31 Hans-Peter Nilsson <hp@axis.com>
2695 * cgen-ops.h (ADDCQI, ADDCFQI, ADDOFQI, SUBCQI, SUBCFQI, SUBOFQI):
2698 2002-01-20 Ben Elliston <bje@redhat.com>
2700 * sim-fpu.h (SIM_FPU_IS_QNAN): Replace "Quite" with "Quiet" in
2701 the comment for this enumerator.
2703 2002-01-14 Ben Elliston <bje@redhat.com>
2705 * sim-fpu.h: Fix comment about sim_fpu_* constants.
2707 2001-12-20 Kazu Hirata <kazu@hxi.com>
2709 * run.c (usage): Fix a typo.
2711 2001-07-05 Ben Elliston <bje@redhat.com>
2713 * Make-common.in (srccgen): Remove.
2714 (CGEN_CPU_DIR): Define.
2715 (CGEN_READ_SCM): Redefine without $(srccgen).
2716 (CGEN_ARCH_SCM): Ditto.
2717 (CGEN_CPU_SCM): Ditto.
2718 (CGEN_DECODE_SCM): Ditto.
2719 (CGEN_DESC_SCM): Ditto.
2721 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
2723 * sim-load.c (sim_load_file): Put it back: external now.
2724 * sim-utils.c (sim_analyze_program): Ditto. Nyuk nyuk nyuk.
2726 2001-04-21 Andrew Cagney <ac131313@redhat.com>
2728 * sim-load.c (sim_load_file): Delete call bfd_cache_close. BFD
2730 * sim-utils.c (sim_analyze_program): Ditto.
2732 2001-04-19 Frank Ch. Eigler <fche@redhat.com>
2734 * sim-utils.c (sim_analyze_program): Call bfd_cache_close after
2735 we're finished with its immediate use.
2736 * sim-load.c (sim_load_file): Ditto.
2738 2001-03-16 Frank Ch. Eigler <fche@redhat.com>
2740 Add support for mmap-based memory regions.
2741 * sim-memopt.c (mmap_next_fd): New global.
2742 (sim_memory_init): Reinitialize it.
2743 (OPTION_MEMORY_MAPFILE, memory_option_handler): Support new
2744 "--memory-mapfile FILE" option. Check for some errors.
2745 (do_memopt_add): Conditionally do mmap instead of malloc for
2746 backing store of simulated memory. Check for more errors.
2747 (do_simopt_delete, sim_memory_uninstall): Corresponding cleanup.
2748 * sim-memopt.h (munmap_length): New member of _sim_memopt.
2749 * configure.in: Look for mmap/fstat related functions and headers.
2750 * config.in, configure: Regenerated.
2752 2001-03-15 Frank Ch. Eigler <fche@redhat.com>
2754 * sim-core.c (sim_core_map_attach): Correct overlap-related
2757 2001-03-07 Michael Meissner <meissner@redhat.com>
2759 * run.c (alloca-conf.h): Delete, no longer provided.
2761 2001-02-22 Ben Elliston <bje@redhat.com>
2763 * sim-trace.h (TRACE_VPU_IDX): Add.
2764 (TRACE_vpu): Define.
2765 (WITH_TRACE_VPU_P): Likewise.
2766 (TRACE_VPU_P): Likewise.
2767 * sim-trace.c (OPTION_TRACE_VPU): Define.
2768 (trace_options): Add --trace-vpu.
2769 (trace_option_handler): Handle OPTION_TRACE_VPU.
2770 (trace_option_handler): Include VPU tracing in --trace-semantics.
2771 (trace_idx_to_str): Handle TRACE_VPU_IDX.
2773 2001-02-21 Ben Elliston <bje@redhat.com>
2775 * sim-trace.h (TRACE_BRANCH_INPUT1): New macro.
2776 (TRACE_BRANCH_INPUT2): Likewise.
2778 2001-02-09 Ben Elliston <bje@redhat.com>
2780 * (profile_print_pc): Write header out in target byte order.
2782 2001-02-09 Ben Elliston <bje@redhat.com>
2784 * sim-profile.c (profile_pc_init): Correct bug in loop logic when
2785 adjusting the pc shift value.
2787 2001-01-12 Chris Demetriou <cgd@sibyte.com>
2789 * aclocal.m4 (SIM_AC_OPTION_SCACHE): Properly handle the case
2790 where a numeric value is supplied.
2792 2001-01-06 Ben Elliston <bje@redhat.com>
2794 * cgen.sh: Allow extrafiles to include the semantics files when
2795 generating an ISA-specific decoder.
2797 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
2799 * Make-common.in (sim-io.o): Depend on targ-vals.h.
2801 2000-12-23 Ben Elliston <bje@redhat.com>
2803 * cgen-trace.c (trace_result): Handle 'f' type operands; output
2804 them to the trace stream using sim_fpu_printn_fpu. Include
2807 2000-12-15 Ben Elliston <bje@redhat.com>
2809 * sim-fpu.h (sim_fpu_printn_fpu): Declare.
2810 * sim-fpu.c (print_bits): Add digits parameter. Print only as many
2811 trailing digits as specified (-1 to print all digits).
2812 (sim_fpu_print_fpu): New wrapper around sim_fpu_printn_fpu.
2813 (sim_fpu_printn_fpu): Rename from sim_fpu_print_fpu; update calls
2816 2000-12-13 Ben Elliston <bje@redhat.com>
2818 * cgen.sh: Set prefix/PREFIX (append ISA if applicable). Factor
2819 sed expressions into $sedscript, substituting @prefix@/@PREFIX@.
2822 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2824 * sim-endian.h: Don't have parameters on macro definitions which
2825 are simply renaming functions, to permit use of XCONCAT2 in both
2826 the macro name and the arguments in a use of such a definition.
2828 2000-12-11 Ben Elliston <bje@redhat.com>
2830 * cgen-ops.h (SUBWORDDFDI): New function.
2832 2000-12-05 Ben Elliston <bje@redhat.com>
2834 * Make-common.in (cgen-defs): New target.
2835 (cgen-decode): Pass $(EXTRAFILES).
2837 * genmloop.sh: Use @prefix@, not @cpu@ throughout. Add -prefix and
2838 -outfile-suffix options.
2840 2000-12-04 Ben Elliston <bje@redhat.com>
2842 * cgen-ops.h (SUBWORDSIQI): Mask off top bits.
2843 (SUBWORDSIUQI): Likewise.
2844 (SUBWORDDIHI): Likewise.
2845 (SUBWORDDIQI): New function.
2847 * cgen-trace.c (disassemble_insn): Remove unused declaration.
2848 * cgen-scache.c (scache_option_handler): Remove unused local var.
2850 2000-12-03 Ben Elliston <bje@redhat.com>
2852 * sim-profile.c (profile_option_handler): Remove unused prof_nr.
2854 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2856 * hw-events.c (delete_hw_event_data): Remove the scheduled events.
2858 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2860 * dv-core.c (dv_core_attach_address_callback): Don't abort if
2863 2000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2865 * hw-base.c (hw_delete): Don't free base_of_hw since it's freed.
2866 (set_hw_delete): Moved the macro as a function.
2867 * hw-base.h (set_hw_delete): Declare as external function.
2868 * hw-alloc.c (delete_hw_alloc_data): Allow to free the memory
2869 allocated using hw_malloc.
2871 2000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2873 * sim-options.c (sim_parse_args): Free the memory used for
2874 long_options, short_options, handlers, opt_cpu, orig_val.
2876 2000-11-20 Ben Elliston <bje@redhat.com>
2878 * cgen-ops.h (SUBBI): New macro.
2879 (SUBWORDSIQI, SUBWORDSIHI, SUBWORDSIUQI): New functions.
2880 (SUBWORDDIHI, SUBWORDDIUQI, SUBWORDDIDF): Likewise.
2882 2000-11-16 Ben Elliston <bje@redhat.com>
2884 * cgen-types.h (VOID): New type.
2886 2000-11-09 Ben Elliston <bje@redhat.com>
2888 * sim-fpu.c (sim_fpu_one): Set exponent to 0.
2889 (sim_fpu_two): Set exponent to 1.
2891 2000-10-26 Ben Elliston <bje@redhat.com>
2893 * cgen.sh: Handle an isa argument between cpu and mach. Default to
2894 `all'. Pass `-i' options to cgen applications.
2895 * Make-common.in (cgen-arch, cgen-cpu, cgen-decode, cgen-cpu-decode,
2896 cgen-desc): Pass $(isa) to cgen.sh.
2898 2000-10-08 Ben Elliston <bje@redhat.com>
2900 * cgen-utils.c (cgen_rtx_error): New function.
2902 2000-10-07 Ben Elliston <bje@redhat.com>
2904 * cgen-trace.c (sim_cgen_disassemble_insn): Handle failure
2905 conditions for sim_core_read_buffer().
2907 2000-09-26 Dave Brolley <brolley@redhat.com>
2909 * cgen-utils.c (RORQI): New function.
2910 (ROLQI): New function.
2911 (RORHI): New function.
2912 (ROLHI): New function.
2914 2000-08-28 Dave Brolley <brolley@redhat.com>
2916 * cgen-trace.c (sim_cgen_disassemble_insn): Make sure entire insn is
2917 in insn_value if it will fit.
2919 2000-08-21 Frank Ch. Eigler <fche@redhat.com>
2921 * Make-common.in, cgen.sh: Contribute CGEN-related build targets/rules.
2923 2000-08-15 Dave Brolley <brolley@redhat.com>
2925 * sim-profile.c (profile_print_speed): Print cpu frequency if not zero.
2927 2000-08-15 Dave Brolley <brolley@redhat.com>
2929 * sim-profile.h (PROFILE_DATA): Add cpu_freq.
2930 (PROFILE_CPU_FREQ): New macro.
2931 * sim-profile.c (OPTION_PROFILE_CPU_FREQUENCY): New enumerator.
2932 (profile-options): Add profile-cpu-frequency.
2933 (parse_frequency): New function.
2934 (profile_option_handler): Handle OPTION_PROFILE_CPU_FREQUENCY.
2935 (profile_print_speed): Print cpu frequency and simulated execution time.
2936 Re-indent other items to match.
2938 2000-08-09 Andrew Cagney <cagney@lulu.cygnus.com>
2940 * dv-sockser.c (dv_sockser_init): Eliminate MIN macro.
2942 2000-07-27 Frank Ch. Eigler <fche@redhat.com>
2944 From Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2945 * Makefile.in (install): Install run.1 man page.
2947 Thu Jul 27 21:56:08 2000 Andrew Cagney <cagney@b1.cygnus.com>
2949 From 2000-06-23 Doug Evans <dje@casey.transmeta.com>:
2950 * Makefile.in (headers,nltvals.def): Merge.
2952 Thu Jul 27 20:37:47 2000 Andrew Cagney <cagney@b1.cygnus.com>
2954 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
2955 * nrun.c (main): Print the simulator statistics only in
2957 * hw-properties.h (hw_find_integer_array_property): Fix
2958 prototype (use signed_cell).
2960 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
2961 * sim-events.c (sim_events_remain_time): New function returning
2962 the time that remains before the event is raised.
2963 * hw-events.c (hw_event_remain_time): Likewise.
2964 * sim-events.h (sim_events_remain_time): Declare.
2965 * hw-events.h (hw_event_remain_time): Declare.
2967 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
2968 * sim-hw.c: Use <errno.h> instead of <sys/errno.h>
2969 (OPTION_HW_LIST): New option --hw-list to list the devices.
2970 (hw_option_handler): List the device tree with 'sim_hw_print'.
2972 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
2973 * sim-bits.h (_MSB_16, _LSB_16): Define for 16-bit targets.
2974 (MASK, LSBIT, MSBIT): Likewise and use _MSB_16 and _LSB_16.
2975 (EXTENDED): Define for 16-bit word size.
2976 * sim-bits.c (LSEXTRACTED, MSEXTRACTED, LSINSERTED,
2977 MSINSERTED, LSSEXT, MSSEXT): Implement for 16-bit word size.
2978 * sim-types.h: Added support for 16-bit targets.
2980 2000-06-23 Frank Ch. Eigler <fche@redhat.com>
2982 * cgen-trace.h (TRACE_USEFUL_MASK): Remove TRACE_EVENTS_IDX.
2984 2000-06-24 Frank Ch. Eigler <fche@redhat.com>
2986 From Maciej W. Rozycki <macro@ds2.pg.gda.pl>:
2987 * Makefile.in (distclean): Clean cconfig.h also.
2989 Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
2991 * configure: Regenerated to track ../common/aclocal.m4 changes.
2993 Tue May 23 21:35:53 2000 Andrew Cagney <cagney@b1.cygnus.com>
2995 * aclocal.m4 (sim-profile): Enable the profiler by default.
2997 Tue May 23 20:30:12 2000 Andrew Cagney <cagney@amy.cygnus.com>
2999 * run.c (main): Initialize sigrc.
3001 Wed Apr 26 16:18:44 2000 Andrew Cagney <cagney@b1.cygnus.com>
3003 * sim-events.c (update_time_from_event): Add more detailed event
3006 2000-03-30 Dave Brolley <brolley@redhat.com>
3008 * aclocal.m4 (cgen): Use guile to run cgen.
3010 2000-03-23 Dave Brolley <brolley@redhat.com>
3012 * cgen-fpu.h: Rename extsfdf to fextsfdf. Rename truncdfsf to
3014 * cgen-accfp.c (fextsfdf): New function.
3015 (ftruncdfsf): New function.
3016 (cgen_init_accurate_fpu): Initialize fextsfdf and ftruncdfsf.
3018 2000-03-13 Jeff Johnston <jjohnstn@cygnus.com>
3020 * cgen-ops.h: Added TRUNCSISI.
3022 2000-03-08 Dave Brolley <brolley@redhat.com>
3024 * cgen-par.h (cgen_write_queue_kind): Add CGEN_FN_SF_WRITE.
3025 (CGEN_WRITE_QUEUE_ELEMENT): Add fn_sf_write.
3026 (sim_queue_fn_si_write): Last argument is has type USI.
3027 (sim_queue_fn_sf_write): New function.
3028 * cgen-par.c (sim_queue_fn_si_write): Declare 'value' as USI.
3029 (sim_queue_fn_sf_write): New function.
3030 (cgen_write_queue_element_execute): Handle CGEN_FN_SF_WRITE.
3032 Tue Feb 22 16:45:09 2000 Andrew Cagney <cagney@b1.cygnus.com>
3034 * run.c (main): When SIM_HAVE_ENVIRONMENT enable tracing with
3035 sim_set_trace and run simulator using sim_resume.
3036 (main): Add option ``-o'' - operating environment. Only continue
3037 after a signal when operating environment.
3038 (main): Always set REASON and SIGRC using sim_stop_reason.
3039 (sim_trace): Delete extern declaration.
3041 2000-02-08 Nick Clifton <nickc@cygnus.com>
3043 * callback.c: Fix compile time warning messages.
3044 * run.c: Fix compile time warning messages.
3046 1999-12-17 Dave Brolley <brolley@cygnus.com>
3048 * sim-profile.h: (set_profile_option_mask): Add prototype.
3049 * sim-profile.c (set_profile_option_mask): No longer static.
3051 Wed Dec 8 21:47:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
3053 * sim-arange.c: Include <string.h>
3055 1999-12-07 Dave Brolley <brolley@cygnus.com>
3057 * sim-options.c (print_help): '=' required before optional argument.
3058 * cgen-par.h (CGEN_FN_MEM_QI_WRITE): New enumerator.
3059 (CGEN_FN_MEM_HI_WRITE): New enumerator.
3060 (CGEN_FN_MEM_SI_WRITE): New enumerator.
3061 (CGEN_FN_MEM_DI_WRITE): New enumerator.
3062 (CGEN_FN_MEM_DF_WRITE): New enumerator.
3063 (CGEN_FN_MEM_XI_WRITE): New enumerator.
3064 (fn_mem_qi_write): New union members.
3065 (fn_mem_hi_write): New union members.
3066 (fn_mem_si_write): New union members.
3067 (fn_mem_di_write): New union members.
3068 (fn_mem_df_write): New union members.
3069 (fn_mem_xi_write): New union members.
3070 (sim_queue_fn_mem_qi_write): New function.
3071 (sim_queue_fn_mem_hi_write): New function.
3072 (sim_queue_fn_mem_si_write): New function.
3073 (sim_queue_fn_mem_di_write): New function.
3074 (sim_queue_fn_mem_df_write): New function.
3075 (sim_queue_fn_mem_xi_write): New function.
3076 * cgen-par.c (sim_queue_fn_mem_qi_write): New function.
3077 (sim_queue_fn_mem_hi_write): New function.
3078 (sim_queue_fn_mem_si_write): New function.
3079 (sim_queue_fn_mem_di_write): New function.
3080 (sim_queue_fn_mem_df_write): New function.
3081 (sim_queue_fn_mem_xi_write): New function.
3082 (cgen_write_queue_element_execute): Handle CGEN_FN_MEM_QI_WRITE,
3083 CGEN_FN_MEM_HI_WRITE, CGEN_FN_MEM_SI_WRITE, CGEN_FN_MEM_DI_WRITE,
3084 CGEN_FN_MEM_DF_WRITE, CGEN_FN_MEM_XI_WRITE.
3086 1999-12-01 Dave Brolley <brolley@cygnus.com>
3088 * cgen-accfp.c (subsf): Check status code.
3106 1999-11-26 Dave Brolley <brolley@cygnus.com>
3108 * cgen-par.h (fn_df_write): Mode of data is DF.
3109 (sim_queue_fn_df_write): Mode of data is DF.
3110 * cgen-par.c (sim_queue_fn_df_write): Mode of data is DF.
3112 1999-11-22 Dave Brolley <brolley@cygnus.com>
3114 * cgen-trace.c (SIZE_TRACE_BUF): Inxrease size of trace buffer.
3115 * cgen-par.h (CGEN_WRITE_QUEUE_SIZE): Increase size of queue.
3117 1999-11-04 Dave Brolley <brolley@cygnus.com>
3119 * cgen-par.h (cgen_write_queue_kind): Add CGEN_FN_XI_WRITE and
3120 CGEN_MEM_XI_WRITE members.
3121 (CGEN_WRITE_QUEUE_ELEMENT): Add fn_xi_write and mem_xi_write members.
3122 (sim_queue_fn_xi_write): New function.
3123 (sim_queue_mem_xi_write): New function.
3125 * cgen-par.c (sim_queue_fn_xi_write): New function.
3126 (sim_queue_mem_xi_write): New function.
3127 (cgen_write_queue_element_execute): Handle CGEN_FN_XI_WRITE and
3130 1999-10-22 Dave Brolley <brolley@cygnus.com>
3132 * cgen-par.h (insn_address): New field in CGEN_WRITE_QUEUE_ELEMENT.
3133 (CGEN_WRITE_QUEUE_ELEMENT_IADDR): New macro.
3134 * cgen-par.c: Set insn_address for each queued write. Get pc from
3135 cpu when executing queued writes.
3137 1999-10-19 Dave Brolley <brolley@cygnus.com>
3139 * cgen-par.h (sim_queue_fn_pc_write): New function.
3140 (CGEN_FN_PC_WRITE): New enumerator.
3141 (fn_pc_write): New union member.
3142 * cgen-par.c (sim_queue_fn_pc_write): New function.
3143 (cgen_write_queue_element_execute): Handle CGEN_FN_PC_WRITE.
3145 1999-10-18 Dave Brolley <brolley@cygnus.com>
3147 * cgen-par.h (CGEN_MEM_DI_WRITE): New enumerator.
3148 (CGEN_MEM_DF_WRITE): New enumerator.
3149 (mem_di_write): New union member.
3150 (mem_df_write): New union member.
3151 * cgen-par.c (sim_queue_mem_di_write): New function.
3152 (sim_queue_mem_df_write): New function.
3153 (cgen_write_queue_element_execute): Handle CGEN_MEM_DI_WRITE and
3155 * cgen-accfp.c (divsf): Check for division errors.
3157 1999-10-14 Doug Evans <devans@casey.cygnus.com>
3159 * cgen-engine.h (EXTRACT_INT,EXTRACT_UINT): Delete.
3161 1999-10-07 Dave Brolley <brolley@cygnus.com>
3163 * cgen-par.h (CGEN_FN_HI_WRITE): New enumerator.
3164 (fn_hi_write): New union member.
3165 (sim_queue_fn_hi_write): New function.
3166 * cgen-par.c (sim_queue_fn_hi_write): New function.
3167 (cgen_write_queue_element_execute): Handle CGEN_FN_HI_WRITE.
3169 1999-09-29 Doug Evans <devans@casey.cygnus.com>
3171 * cgen-defs.h (sim_engine_invalid_insn): New arg `vpc'.
3172 Change type of result to SEM_PC.
3174 Wed Sep 29 14:43:57 1999 Dave Brolley <brolley@cygnus.com>
3176 * cgen-defs.h (sim_engine_invalid_insn): Now returns PC.
3178 1999-09-25 Doug Evans <devans@casey.cygnus.com>
3180 * cgen-ops.h (SUBWORD*): Delete cpu arg.
3181 (JOIN*): Delete cpu arg.
3183 Tue Sep 21 17:14:16 1999 Dave Brolley <brolley@cygnus.com>
3185 * genmloop.sh (@cpu@_scache_lookup): No longer takes last_insn_p
3187 (SET_LAST_INSN_P): Set last_insn_p flag in the scache element.
3189 Mon Sep 20 21:44:06 1999 Geoffrey Keating <geoffk@cygnus.com>
3191 * sim-fpu.c (i2fpu): Keep the guard bits sticky when converting
3194 Tue Feb 8 16:33:48 2000 Andrew Cagney <cagney@b1.cygnus.com>
3196 * run.c (main): Check the sim_stop_reason and only halt simulation
3197 when a valid stop condition is identified.
3199 Wed Sep 15 14:12:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
3201 * hw-tree.c, hw-properties.c, hw-instances.c: Include "sim-io.h".
3203 Tue Sep 14 14:15:47 1999 Dave Brolley <brolley@cygnus.com>
3205 * cgen-par.h (CGEN_BI_WRITE): New enumerator.
3206 (bi_write): New union element.
3207 (sim_queue_bi_write): New function.
3208 * cgen-par.c (sim_queue_bi_write): New function.
3209 (cgen_write_queue_element_execute): Handle CGEN_BI_WRITE.
3211 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
3213 * configure: Regenerated to track ../common/aclocal.m4 changes.
3215 * aclocal.m4 (WERROR_CFLAGS, WARN_CFLAGS): Merge from
3216 ../gdb/configure.in.
3217 * Make-common.in (WERROR_CFLAGS, WARN_CFLAGS): Define.
3218 (SIM_WERROR_CFLAGS, SIM_WARN_CFLAGS): Define.
3219 (SIM_WARNINGS): Delete
3220 (CONFIG_CFLAGS): Update.
3222 Tue Aug 31 16:01:42 1999 Dave Brolley <brolley@cygnus.com>
3224 * cgen-par.c: New file.
3225 * cgen-par.h: New file.
3226 * cgen-sim.h (cgen-par.h): #include it.
3227 * cgen-cpu.h (write_queue): New field.
3228 (CPU_WRITE_QUEUE): New access macro.
3229 * Make-common.in (CGEN_MAIN_CPU_DEPS): Add cgen-par.h.
3230 (cgen-par.o): New target.
3232 1999-08-28 Doug Evans <devans@casey.cygnus.com>
3234 * cgen-types.h (mode_type,MODE_VOID): Renamed from MODE_VM.
3235 * cgen-utils.c (mode_names): Update.
3237 1999-08-20 Doug Evans <devans@casey.cygnus.com>
3239 * genmloop.sh: New args -parallel-generic-write, -parallel-only.
3240 * cgen-engine.h (SEMANTIC_FN): Don't use version with PAREXEC
3241 buffer arg if WITH_PARALLEL_GENWRITE.
3242 (struct insn_sem): Handle WITH_PARALLEL_GENWRITE.
3243 (struct idesc): Ditto.
3245 Wed Aug 18 18:17:28 1999 Doug Evans <devans@canuck.cygnus.com>
3247 * sim-model.c (model_option_handler): Add \n to error message.
3249 1999-08-08 Doug Evans <devans@casey.cygnus.com>
3251 * cgen-engine.h (SEM_FN_NAME,SEMF_FN_NAME): Delete.
3252 (insn_sem): Rewrite.
3253 (sem_fn_desc): New struct.
3255 * genmloop.sh (scache case,@cpu@_scache_lookup): Profile scache hit,
3257 (scache case): Split into non-parallel/parallel versions.
3258 (@cpu@_engine_run_{full,fast}): Call @cpu@_{sem,semf}_init_idesc_table
3259 if not use semantic switch version.
3261 1999-08-04 Doug Evans <devans@casey.cygnus.com>
3263 * cgen-defs.h (SEM_BRANCH_TYPE): New enum.
3264 * cgen-engine.h (SEM_BRANCH_UNTAKEN,SEM_BRANCH_UNCACHEABLE): Delete.
3265 (SEM_BRANCH_INIT_EXTRACT): Delete.
3266 (SEM_BRANCH_INIT): Replace npc_ptr with br_type.
3267 (SEM_BRANCH_FINI): Ditto.
3268 (SEM_BRANCH_VIA_ADDR): Ditto.
3269 (SEM_BRANCH_VIA_CACHE): Ditto. Delete cachvarptr arg.
3270 (SEM_BRANCH_ADDR_CACHE): Delete.
3271 (SEM_SKIP_COMPILE,SEM_SKIP_INSN): New macros.
3272 * cgen-scache.h (cpu_scache): Replace member pbb_pr_npc_ptr with
3274 * genmloop.sh (eng.hin): Update prototype of ${cpu}_pbb_cti_chain.
3275 (@cpu@_pbb_begin): Initialize branch_target.
3276 (@cpu@_pbb_cti_chain): Replace arg new_vpc_ptr with br_type.
3277 (@cpu@_engine_run_full): Replace local pbb_br_npc_ptr with
3279 (@cpu@_engine_run_fast): Ditto.
3281 Fri Jul 16 14:47:53 1999 Dave Brolley <brolley@cygnus.com>
3283 * cgen-utils.c (RORSI): New function.
3284 (ROLSI): New function.
3286 1999-07-14 Doug Evans <devans@casey.cygnus.com>
3288 * Makefile.in (TAGS): Tweak TAGS regex.
3289 * cgen-mem.h (*): Add TAGS markers.
3291 Sun Jul 11 23:47:20 1999 Andrew Cagney <cagney@b1.cygnus.com>
3293 * sim-resume.c (sim_resume): Ensure that the siggnal [sic] is only
3294 passed in when sim_resume is first entered - don't re-pass it
3297 Sun Jul 11 23:34:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
3299 * sim-options.c (standard_option_handler): Add OPTION_LOAD_VMA and
3300 OPTION_LOAD_LMA but only when is defined.
3301 (standard_options): When SIM_HANDLES_LMA is defined include
3302 options --load-lma and --load-vma.
3303 (standard_install): Initialize STATE_LOAD_AT_LMA_P.
3305 * sim-base.h (STATE_LOAD_AT_LMA_P): Define.
3306 (struct sim_state_base): Add load_at_lma_p.
3307 * sim-hload.c (sim_load): Replace SIM_HANDLES_LMA with
3308 STATE_LOAD_AT_LMA_P.
3310 Sun Jul 11 12:03:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
3312 * nrun.c (main): Re-format loop gnu style.
3314 Wed Jul 7 19:56:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
3316 * dv-sockser.c (connected_p): Initialize addrlen.
3318 1999-07-06 Dave Brolley <brolley@cygnus.com>
3320 * cgen-accfp.c (floatsidf): New function.
3321 (fixdfsi): New function.
3323 1999-07-06 Doug Evans <devans@casey.cygnus.com>
3325 * sim-model.c (sim_model_init): Issue error if machine is unsupported.
3327 1999-07-05 Doug Evans <devans@casey.cygnus.com>
3329 * Make-common.in (CGEN_MAIN_CPU_DEPS): Add cgen-fpu.h.
3330 (cgen-fpu.o,cgen-accfp.o): Add rules for.
3331 * cgen-fpu.c: New file.
3332 * cgen-fpu.h: New file.
3333 * cgen-accfp.c: New file.
3334 * cgen-cpu.h (CGEN_CPU): New member fpu.
3335 * cgen-mem.h: Redo fp support.
3336 * cgen-ops.h: Delete k&r support. Redo fp support.
3337 * cgen-sim.h: Include cgen-fpu.h.
3338 * cgen-types.h (SF,DF,XF,TF): Moved to cgen-fpu.h.
3340 1999-06-23 Doug Evans <devans@casey.cygnus.com>
3342 * cgen-engine.h (TARGET_SEM_BRANCH_FINI): Remove cruft at end of
3344 * genmloop.sh (@cpu@_scache_lookup): Delete unused local var.
3345 (@cpu@_pbb_cti_chain): Minor clean up.
3347 1999-05-08 Felix Lee <flee@cygnus.com>
3349 * aclocal.m4: Use AC_EXEEXT instead of AM_EXEEXT. Delete defn of
3350 AM_CYGWIN32 and AM_EXEEXT.
3351 * configure: Regenerate.
3353 Fri Apr 16 16:43:22 1999 Doug Evans <devans@charmed.cygnus.com>
3355 * sim-core.c (device_error,device_io_read_buffer,
3356 device_io_write_buffer): Delete decls.
3357 * sim-core.h: Put them here.
3359 * sim-core.c (sim_core_read_buffer): Pass sd to device_io_read_buffer.
3360 (sim_core_write_buffer): Pass sd to device_io_write_buffer.
3361 * sim-n-core.h (sim_core_read_aligned_N): Ditto.
3362 (sim_core_write_aligned_N): Ditto.
3364 1999-04-14 Stephane Carrez <stcarrez@worldnet.fr>
3366 * sim-memopt.c (sim_memory_uninstall): Don't look into
3369 1999-04-14 Doug Evans <devans@casey.cygnus.com>
3371 * cgen-utils.scm (virtual_insn_entries): Update attribute definition.
3373 1999-04-13 Doug Evans <devans@casey.cygnus.com>
3375 * sim-core.c (sim_core_read_buffer): Handle NULL cpu when WITH_DEVICES.
3376 (sim_core_write_buffer): Ditto.
3378 1999-04-02 Keith Seitz <keiths@cygnus.com>
3380 * sim-io.c (sim_io_poll_quit): Only call the poll_quit callback
3381 after the interval counter has expired.
3382 (POLL_QUIT_INTERVAL): Define. Used to tweak the frequency of
3383 poll_quit callbacks. May be overridden by Makefile.
3384 (poll_quit_counter): New global.
3385 * sim-events.c: Remove all mentions of ui_loop_hook. The
3386 host callback "poll_quit" will serve the purpose.
3387 * run.c: Add definition of ui_loop_hook when NEED_UI_LOOP_HOOK
3389 * nrun.c: Remove declaration of ui_loop_hook.
3391 Wed Mar 31 18:55:41 1999 Doug Evans <devans@canuck.cygnus.com>
3393 * cgen-run.c (sim_resume): Don't tell main loop to run "forever"
3394 if being used by gdb.
3396 1999-03-22 Doug Evans <devans@casey.cygnus.com>
3398 * cgen-types.h (XF,TF): Tweak.
3399 * cgen-ops.h: Redo inline support. Delete DI_FN_SUPPORT,
3401 (SUBWORD*,JOIN*): Define.
3402 * cgen-trace.c (sim_cgen_disassemble_insn): Update, base_insn_bitsize
3403 moved into cpu descriptor.
3404 * sim-model.h (MACH): New member `num'.
3406 1999-02-09 Doug Evans <devans@casey.cygnus.com>
3408 * cgen-cpu.h (CGEN_DISASSEMBLER): New type.
3409 (CGEN_CPU): Member opcode renamed to cpu_desc.
3410 New members get_idata,disassembler.
3411 * cgen-defs.h (CGEN_INSN_VIRTUAL_P): CGEN_INSN_ATTR renamed to
3412 CGEN_INSN_ATTR_VALUE.
3413 (CGEN_STATE): Delete member opcode_table.
3414 (sim_disassemble_insn): Delete decl.
3415 * cgen-engine.h (struct insn_sem): Moved to here from <cpu>-decode.c.
3416 (struct idesc): Moved to here from <cpu>-decode.h.
3417 * cgen-run.c (prime_cpu): Call prepare_run callback.
3418 * cgen-trace.h (SFILE): New type.
3419 (sim_disasm_sprintf): Declare.
3420 (sim_disasm_read_memory,sim_disasm_perror_memory): Declare.
3421 (sim_cgen_disassemble_insn): Declare.
3422 * cgen-trace.c: Include errno.h,dis-asm.h. Don't include cpu-opc.h.
3423 (insn_fields): Delete.
3424 (trace_insn_fini): STATE_OPCODE_TABLE (sd) replaced with
3426 (trace_insn): Call CPU_DISASSEMBLER hook.
3427 (sim_disasm_sprintf): New function.
3428 (sim_disasm_read_memory): New function.
3429 (sim_disasm_perror_memory): New function.
3430 (sim_cgen_disassemble_insn): New function.
3431 * cgen-utils.c: Don't include cpu-opc.h.
3432 (virtual_insn_entries): New static local.
3433 (cgen_virtual_insn_table): Renamed from cgen_virtual_opcode_table.
3434 (cgen_insn_name): Rewrite.
3435 (disasm_sprintf,sim_disassemble_insn): Moved to cgen-trace.c.
3436 * cgen.sh (desc): New file generator handler.
3437 * genmloop.sh: -parallel changed to -parallel-read/-parallel-write.
3438 Define WITH_PARALLEL_READ/WITH_PARALLEL_WRITE appropriately.
3439 Don't include cpu-opc.h,cpu-sim.h.
3440 * sim-model.c (model_set): Delete SIM_DESC arg.
3441 (sim_model_set): Update.
3442 * sim-model.h (MACH): New member prepare_run.
3444 1999-01-28 Frank Ch. Eigler <fche@cygnus.com>
3446 * sim-memopt.c (memory_option_handler): Avoid memset() calls
3447 if redundant with allocator functions.
3449 Wed Jan 27 17:19:09 1999 Doug Evans <devans@canuck.cygnus.com>
3451 * cgen-engine.h (EXTRACT_LSB0_{INT,UINT}): Fix.
3453 * sim-profile.h: Make like sim-trace.h.
3454 (PROFILE_USEFUL_MASK): New macro.
3455 * sim-profile.c (profile_options): Make like trace_options, allow
3456 optional on|off arg where applicable.
3457 (set_profile_option_mask): New function.
3458 (sim_profile_set_option): New function.
3459 (profile_option_handler): Simplify.
3460 Have -p only enable selected things, not everything.
3461 Add missing break to OPTION_PROFILE_PC_RANGE.
3462 * cgen-scache.c (scache_options): Allow optional on|off arg to
3464 (scache_option_handler): Use sim_profile_set_option.
3466 1999-01-26 Frank Ch. Eigler <fche@cygnus.com>
3468 * sim-memopt.c (memory_options): Add MEMORY_FILL option.
3469 (memory_option_handler): Implement MEMORY_FILL option. Make
3470 MEMORY_CLEAR an alias for MEMORY_FILL=0.
3471 (parse_ulong_value): New function.
3472 (do_memopt_add): Allocate all buffers. Optionally fill them.
3474 1999-01-15 Richard Henderson <rth@cygnus.com>
3476 * hw-events.c (hw_event_queue_schedule): _vtracef takes a
3477 va_list, not an integer.
3478 * sim-events.c (sim_events_schedule): Likewise.
3480 * sim-types.h (UNSIGNED32, UNSIGNED64): Properly cast to
3481 the appropriate type.
3483 1999-01-14 Doug Evans <devans@casey.cygnus.com>
3485 * cgen-defs.h (PCADDR,CIA): Define in terms of IADDR.
3486 (sim_disassemble_insn): Update prototype.
3487 (sim_engine_invalid_insn): Ditto.
3488 * cgen-engine.h (SEMANTIC_FN): Add !WITH_SCACHE version.
3489 (SEM_BRANCH_INIT): PCADDR->IADDR.
3490 (SEM_NBRANCH_FINI): New macro for !WITH_SCACHE case.
3491 * cgen-scache.c (scache_lookup,scache_lookup_or_alloc): PCADDR->IADDR.
3492 * cgen-scache.h (*): Ditto.
3493 * cgen-trace.c (*): Ditto.
3494 * cgen-trace.h (*): Ditto.
3495 * cgen-utils.c (*): Ditto.
3496 * cgen-types.h (integer modes): Use signedNN/unsignedNN types.
3498 * genmloop.sh (@cpu@_fill_argbuf): Add !WITH_SCACHE support.
3499 (simple engine framework): Rewrite.
3500 * sim-module.c (modules): Install model module sooner (and in
3501 particular before the profile module).
3503 1999-01-12 Doug Evans <devans@casey.cygnus.com>
3505 * sim-model.h (sim_mach_lookup_bfd_name): Add prototype.
3506 * sim-model.c (sim_mach_lookup_bfd_name): New function.
3507 (sim_model_init): Call it.
3509 * cgen-trace.c (trace_insn): Pass pc to trace_prefix for virtual insns.
3511 1999-01-05 Doug Evans <devans@casey.cygnus.com>
3513 * Make-common.in (CGEN_INCLUDE_DEPS): Add cgen-defs.h, cgen-engine.h.
3514 * cgen-engine.h (SEM_BRANCH_FINI): New arg pcvar, all uses updated.
3515 (SEM_BRANCH_INIT_EXTRACT): New macro.
3516 (SEM_BRANCH_INIT): Add taken_p.
3517 (TARGET_SEM_BRANCH_FINI): Provide default definition.
3518 (SEM_BRANCH_FINI): Use it.
3520 * cgen-run.c (sim_resume): Handle tracing of last insn.
3521 * cgen-scache.h (WITH_SCACHE): Define as 0 if not defined.
3522 * cgen-trace.c (current_abuf): New static global.
3523 (trace_insn_init): Initialize it.
3524 (trace_insn_fini): Use it.
3525 (trace_insn): Set it.
3526 * cgen.sh (arch case): Pass -m ${mach} to cgen.
3527 * genmloop.sh (@cpu@_emit_before): Only define if WITH_SCACHE_PBB.
3528 (@cpu@_emit_after): Ditto.
3529 (simple @cpu@_engine_run_full): New local `pc'. Initialize semantic
3530 labels if WITH_SEM_SWITCH_FULL.
3531 * sim-model.c: Include bfd.h.
3532 (sim_model_init): New function.
3533 (sim_model_install): Record init fn.
3534 * sim-model.h (MACH): New member bfd_name.
3535 * sim-module.c (modules): Initialize model before scache.
3537 1998-12-24 Frank Ch. Eigler <fche@cygnus.com>
3539 * dv-sockser.c (DEFAULT_TIMEOUT): Increase to 1 ms.
3541 * nrun.c (main): Remain in simulation loop for traps and
3542 exceptions when in operating environment mode.
3543 (ui_loop_hook): New stub hook for standalone use.
3544 * sim-events.c (sim_events_process): Call ui_loop_hook
3545 periodically on CYGWIN host.
3547 * sim-reason.c (sim_stop_reason): Return host signal numbers
3548 to gdb on sim_stopped and sim_signalled cases.
3549 * sim-engine.c (sim_engine_halt): Call SIM_CPU_EXCEPTION_SUSPEND
3550 hook just before longjmp.
3551 * sim-resume.c (sim_resume): Call SIM_CPU_EXCEPTION_RESUME
3552 hook just before sim_engine_run.
3554 * sim-n-core.h (sim_core_trace_M): Allay const warning.
3555 * sim-trace.h (trace_generic): Ditto.
3556 * sim-trace.c (trace_generic): Ditto.
3558 1998-12-14 Doug Evans <devans@casey.cygnus.com>
3560 * Make-common.in (SIM_MAIN_DEPS): New var.
3561 (CGEN_MAIN_CPU_DEPS): New var.
3562 * aclocal.m4: Add --enable-cgen-maint option.
3563 * cgen-mem.h (GETMEM*): New arg `pc'. Pass to sim_core routine.
3565 (GETIMEM*): Pass pc value to sim_core routine.
3567 Fri Dec 11 16:58:36 1998 Andrew Cagney <cagney@b1.cygnus.com>
3569 * hw-handles.c (hw_handle_add_ihandle, hw_handle_add_phandle):
3570 Compare with ZERO not NULL.
3572 Thu Dec 10 14:14:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
3574 * hw-properties.c, hw-instances.c, hw-tree.c: Include
3577 1998-12-09 Doug Evans <devans@casey.cygnus.com>
3579 * sim-arange.c: Include libiberty.h, and stdlib.h if present.
3580 * sim-trace.c: Include stdlib.h if present.
3581 * dv-sockser.c: Include unistd.h if present.
3582 (dv_sockser_init): Add missing arg to call to sim_io_eprintf.
3583 * cgen-scache.c (scache_flush): Delete unused locals i,sc.
3585 1998-12-08 James E Wilson <wilson@wilson-pc.cygnus.com>
3587 * gennltvals.sh: Add i960.
3588 * nltvals.def: Rebuild.
3590 1998-12-04 Doug Evans <devans@casey.cygnus.com>
3592 * cgen-defs.h: New file, old cgen-sim.h.
3593 * cgen-sim.h: Simple header that includes others.
3594 * sim-arange.c: New file.
3595 * sim-arange.h: New file.
3596 * sim-basics.h: Include it.
3597 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-arange.o.
3598 (sim-arange.o): Add rule for.
3599 * sim-cpu.h (sim_cpu_msg_prefix): Add prototype.
3600 (sim_io_eprintf_cpu): Add prototype.
3601 * sim-inline.h (HAVE_INLINE): Define if GNUC.
3602 (INLINE2): New macro.
3603 (EXTERN_INLINE): New macro.
3604 * sim-module.c (sim_post_argv_init): Initialize cpu backlink
3605 before calling module init fns.
3606 * sim-profile.c (OPTION_PROFILE_*): Move into enum.
3607 (profile_init): New function.
3608 (profile_options): New option --profile-range.
3609 (profile_option_handler): Handle --profile-range.
3610 (profile_print_insn): Qualify address range specific section titles.
3611 (profile_print_addr_ranges): New function.
3612 (profile_info): Print address ranges if specified.
3613 (profile_install): Set profile_init init fn.
3614 * sim-profile.h (PROFILE_DATA): New member `range'.
3615 * sim-trace.c (trace_init): New function.
3616 (trace_options): New option --trace-range.
3617 (trace_option_handler): Handle --trace-range.
3618 (trace_install): Set trace_init init fn.
3619 * sim-trace.h (TRACE_DATA): New member `range'.
3620 * sim-utils.c (sim_cpu_msg_prefix): New function.
3621 (sim_io_eprintf_cpu): New function.
3622 * cgen-engine.h (PC_IN_TRACE_RANGE_P): New macro.
3623 (PC_IN_PROFILE_RANGE_P): New macro.
3624 * cgen-trace.c (trace_insn_init): Set current_insn to NULL.
3625 (trace_insn_fini): New arg abuf. All callers updated.
3626 Exit early if trace_insn not called. Check ARGBUF_PROFILE_P before
3627 printing cycle counts.
3628 * cgen-trace.h (trace_insn_fini): Update prototype.
3629 (TRACE_RESULT_P): New macro.
3630 (TRACE_INSN_INIT,TRACE_INSN_FINI): New arg abuf. All callers updated.
3631 (TRACE_INSN): Check ARGBUF_TRACE_P.
3632 (TRACE_EXTRACT,TRACE_RESULT): New arg abuf. All callers updated.
3633 * cgen-types.h (SIM_INLINE): Delete.
3634 (SIM_HAVE_MODEL,SIM_HAVE_ADDR_RANGE): Define.
3635 * cgen-utils.c: Don't include cgen-engine.h
3636 * genmloop.sh (@cpu@_fill_argbuf): New function.
3637 (@cpu@_fill_argbuf_tp): New function.
3638 (@cpu@_emit_before,@cpu@_emit_after): New functions.
3639 (@cpu@_pbb_begin): Prefix cti_sc,insn_count with '_'.
3640 (SET_CTI_VPC,SET_INSN_COUNT): Update.
3641 (@cpu@_pbb_before): Check ARGBUF_PROFILE_P before calling
3642 doing profiling. Update call to TRACE_INSN_INIT,TRACE_INSN_FINI.
3643 (@cpu@_pbb_after): Check ARGBUF_PROFILE_P before calling
3644 doing profiling. Update call to TRACE_INSN_FINI.
3646 * sim-memopt.c (sim_memory_uninstall): Result type is `void'.
3648 1998-12-03 Frank Ch. Eigler <fche@cygnus.com>
3650 * sim-memopt.c (sim_memory_uninstall): Deallocate all memory
3653 1998-12-01 Doug Evans <devans@casey.cygnus.com>
3655 * sim-inline.c (SIM_INLINE_P): Fix typo.
3657 1998-11-30 Doug Evans <devans@casey.cygnus.com>
3659 * cgen-utils.c (cgen_virtual_opcode_table): Update.
3661 Tue Nov 24 18:40:03 1998 Andrew Cagney <cagney@b1.cygnus.com>
3663 * gennltvals.sh: Add v850 and d10v. Sort alphabetically.
3664 * nltvals.def: Re-generate.
3666 Mon Nov 23 13:28:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
3668 * sim-core.c (reverse_n, sim_core_uninstall, sim_core_init,
3669 sim_core_map_attach, sim_core_map_detach, next_event_queue,
3670 new_sim_core_mapping): Only define when EXTERN_SIM_CORE_P, pacify
3672 * sim-events.c (sim_events_uninstall, sim_events_suspend,
3673 sim_events_resume, sim_events_zalloc, insert_sim_event): Ditto.
3675 1998-11-22 Doug Evans <devans@tobor.to.cygnus.com>
3677 * genmloop.sh (${cpu}_pbb_chain): Watch for Ctrl-C's.
3678 (${cpu}_pbb_cti_chain): Ditto.
3680 1998-11-18 Doug Evans <devans@casey.cygnus.com>
3682 * Make-common.in (cgen-utils.o): Depend on cgen-engine.h.
3683 * cgen-engine.h (EXTRACT_[ML]SB0_{INT,UINT}): New macros.
3684 (EXTRACT_INT,EXTRACT_UINT): New macros.
3685 (SEM_SEM_ARG): New macro.
3686 (SEM_NEXT_VPC): New arg `pc'.
3687 * cgen-sim.h (EXTRACT_SIGNED,EXTRACT_UNSIGNED): Delete.
3688 (sim_disassemble_insn): Update prototype.
3689 * cgen-trace.c (current_insn,insn_fields): New static locals.
3690 (trace_insn): Set them.
3691 * cgen-utils.c: #include cgen-engine.h.
3692 (sim_disassemble_insn): New arg insn_fields.
3693 Handle variable length insns.
3694 * genmloop.sh: Only emit pbb decls if -pbb.
3695 (${cpu}_scache_lookup): New arg `vpc'.
3696 (scache support): Fetch pc before entering loop.
3698 * gennltvals.sh: Add fr30 support.
3699 * nltvals.def: Rebuild.
3701 Wed Nov 18 10:22:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
3703 * sim-types.h: Re-do type system so that GCC's attribute and mode
3704 are used to specify types. Handle case of ALPHA.
3706 1998-11-13 Frank Ch. Eigler <fche@elastic.org>
3708 * aclocal.m4: Add tests for dlopen family.
3709 * config.in: Regenerated.
3711 Wed Nov 11 14:02:25 1998 Doug Evans <devans@canuck.cygnus.com>
3713 * sim-hload.c (sim_load): Pass `prog_name' to sim_load_file, not NULL.
3715 Wed Nov 4 23:51:19 1998 Doug Evans <devans@seba.cygnus.com>
3717 * genmloop.sh (eng.hin): Rename HAVE_PARALLEL_EXEC to
3718 HAVE_PARALLEL_INSNS, define as 0 or 1. Emit decls of fns in mloop.cin.
3719 * cgen-engine.h: Typedefs of IADDR,CIA,SEM_ARG,SEM_PC moved ...
3720 * cgen-sim.h: ... to here.
3722 Wed Oct 28 12:00:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
3724 * aclocal.m4 (enable-build-warnings): Replace
3725 enable-sim-warnings. Extend =LIST syntax so that prepend and
3726 append of options is possible. Drop -Werror, add
3727 -Wstrict-prototypes for GDB compatibility.
3728 * Make-common.in (SIM_WARNINGS): Update.
3730 Mon Oct 19 13:56:32 1998 Doug Evans <devans@seba.cygnus.com>
3732 * Make-common.in (CGEN_INCLUDE_DEPS): Define.
3733 (sim-core.o): Delete duplicate dependence on $(SIM_EXTRA_DEPS).
3734 (sim-cpu.o,sim-endian.o,sim-hw.o): Ditto.
3735 (cgen-run.o,cgen-scache.o,cgen-trace.o,cgen-utils.o): Delete
3736 explicit cgen header dependencies, require SIM_EXTRA_DEPS to include
3738 * cgen-cpu.h: New file.
3739 * cgen-engine.h: New file.
3740 * cgen-scache.h: New file.
3741 * cgen-sim.h: Delete portions moved to new files.
3742 * genmloop.sh: Generate two files eng.hin,mloop.cin explicitly,
3743 rather than sending result to stdout.
3745 Fri Oct 9 14:20:22 1998 Doug Evans <devans@seba.cygnus.com>
3747 * Make-common.in (sim-reg.o): New rule.
3748 (cgen-run.o): New rule.
3749 * cgen-ops.h: Delete many BI macros. Change all UBI -> BI.
3750 * cgen-run.c (prime_cpu): New function.
3751 * cgen-scache.c: Add pseudo-basic-block (pbb) scaching support.
3752 (scache_option_handler, case OPTION_PROFILE_SCACHE): Handle explicitly
3754 (scache_flush_cpu,scache_lookup,scache_lookup_or_alloc): New fns.
3755 * cgen-sim.h (CGEN_INSN_VIRTUAL_TYPE): New enum.
3756 (CGEN_INSN_VIRTUAL_P): New macro.
3757 (SEM_PC): New typedef.
3758 (SEMANTIC_FN): Change type of result to SEM_PC.
3759 (SEM_SET_FULL_CODE,SEM_SET_FAST_CODE,SEM_SET_CODE): New macros.
3760 (IDESC_CTI_P,IDESC_SKIP_P): New macros.
3761 (SCACHE_MAP): New typedef.
3762 (CPU_SCACHE): Add pbb support.
3763 (scace_lookup,scache_lookup_or_alloc,scache_flush_cpu): Declare.
3764 (SEM_BRANCH_INIT_EXTRACT,SEM_BRANCH_INIT,SEM_BRANCH_FINI): New macros.
3765 (CGEN_CPU): New members running_p,insn_count,{fast,full}_engine_fn,
3767 (INSN_NAME): Delete.
3768 (cgen_insn_name): Declare.
3769 (sim_engine_invalid_insn): Renamed from sim_engine_illegal_insn.
3770 * cgen-trace.c (trace_buf): Shrink from 1024 to 256 bytes.
3771 (first_insn_p): Make static.
3772 (trace_insn): Handle virtual insns specially.
3773 (cgen_trace_printf): Ensure we haven't overflowed the buffer.
3774 * cgen-types.h (UBI): Delete.
3775 (MODE_TYPE): New enum.
3776 (HOSTINT,HOSTUINT,HOSTPTR): Delete.
3777 * cgen-utils.c (mode_names): Delete UBI. Add INT,UINT,PTR.
3778 (cgen_virtual_opcode_table): New global.
3779 (cgen_insn_name): New function.
3780 (sim_disassemble_insn): Ignore virtual insns.
3781 * genmloop.sh: Delete top level loop generation. Add pbb support.
3782 * sim-cpu.h (CPU_INSN_NAME_FN): New typedef.
3783 (sim_cpu_base): New members max_insns,insn_name,model_data.
3784 (CPU_PC_GET,CPU_PC_SET): New macros.
3785 (sim_pc_get,sim_pc_set): Declare.
3786 * sim-model.c (model_set): Call model init fn.
3787 * sim-model.h (MODEL_FN): New typedef.
3788 (INSN_TIMING): New member model_fn.
3789 (MODEL): New members num,init.
3790 * sim-profile.c (sim_profile_print_bar): Renamed from print_bar.
3791 All callers updated.
3792 (profile_insn_init): New fn.
3793 (profile_print_insn): Update, INSN_NAME -> CPU_INSN_NAME.
3794 Exit early if insn profiling not supported.
3795 (profile_print_memory): Update, MAX_MODES -> MODE_TARGET_MAX.
3796 (profile_install): Record profile_insn_init as init fn.
3797 (profile_uninstall): Free PROFILE_INSN_COUNT if non-null.
3798 * sim-profile.h: Update, MAX_MODES -> MODE_TARGET_MAX.
3799 (PROFILE_DATA): Delete member exec_time.
3800 Change insn_count to pointer to array, rather than the array.
3801 (sim_profile_print_bar): Declare.
3803 Wed Oct 7 16:56:42 1998 Doug Evans <devans@seba.cygnus.com>
3805 * cgen-run.c: New file.
3806 * sim-reg.c: New file.
3808 Mon Sep 14 10:58:19 1998 Frank Ch. Eigler <fche@cygnus.com>
3810 * aclocal.m4: Add checks for -lsocket and -lnsl.
3812 * dv-sockser.c (dv_sockser_init): Use SO_REUSEADDR to
3813 allow local port reuse on listening socket.
3815 Tue Sep 1 15:36:52 1998 Frank Ch. Eigler <fche@cygnus.com>
3817 * sim-config.h: Remove reference to linux kernel header.
3819 Tue Aug 25 12:45:27 1998 Frank Ch. Eigler <fche@cygnus.com>
3821 * dv-sockser.c (sockser_addr): Make variable non-static.
3823 Mon Aug 24 11:47:37 1998 Joyce Janczyn <janczyn@cygnus.com>
3825 * sim-hw.{c,h} (sim_hw_parse): Return struct hw pointer.
3827 Tue Aug 11 18:12:19 1998 Doug Evans <devans@canuck.cygnus.com>
3829 * sim-events.c (sim_events_elapsed_time): Fix calculation.
3831 Tue Aug 4 20:36:46 1998 Jeff Holcomb <jeffh@cygnus.com>
3833 * Make-common.in (install-common): Add $(EXEEXT) when installing
3836 Mon Aug 3 11:46:01 1998 Doug Evans <devans@seba.cygnus.com>
3838 * cgen-sim.h (cgen_state): New member opcode_table.
3839 * cgen-utils.c (sim_disassemble_insn): Use it.
3841 Fri Jul 24 10:14:18 1998 Doug Evans <devans@canuck.cygnus.com>
3843 * cgen-mem.h (DECLARE_SETT): Fix return type.
3844 * cgen-sim.h (sim_engine_illegal_insn): Declare.
3845 * cgen-scache.c: Include stdlib.h.
3846 * cgen-trace.c (trace_extract): Use %lx for PCADDR.
3847 * sim-model.c (model_option_handler): Remove unused variable `n'.
3849 Tue Jul 21 16:27:43 1998 Doug Evans <devans@seba.cygnus.com>
3851 * cgen-utils.c: Include bfd.h.
3852 (sim_disassemble_insn): Update call to CGEN_EXTRACT_FN.
3854 Wed Jul 8 18:24:10 1998 Jeffrey A Law (law@cygnus.com)
3856 * sim-bits.h (EXTEND24): Fix typo.
3858 Wed Jul 8 17:41:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
3860 * sim-events.c (ETRACE_P): New macro.
3861 (struct _sim_event): Add member trace.
3862 (sim_events_free): Reclaim trace message.
3864 * sim-events.c, sim-events.h (sim_events_schedule_vtracef,
3865 sim_events_schedule_tracef): New functions, include printf trace
3866 information in argument list. If tracing, store asprintf'd trace
3867 message in sim_event.
3869 * hw-events.c, hw-events.h (hw_event_queue_schedule_tracef,
3870 hw_event_queue_schedule_vtracef): New functions, mimic
3873 Mon Jul 6 15:51:14 1998 Jeffrey A Law (law@cygnus.com)
3875 * sim-bits.h (EXTEND24): Define.
3877 Thu Jul 2 17:13:25 1998 Doug Evans <devans@seba.cygnus.com>
3879 * cgen-sim.h (CPU_SCACHE): Make size unsigned.
3880 (CPU_SCACHE_HASH_MASK): New macro.
3881 (SCACHE_HASH_PC): Rewrite.
3882 * genmloop.sh (engine_resume_{full,fast}): Move some of hash
3883 computation out of main loop.
3885 Wed Jul 1 16:44:12 1998 Doug Evans <devans@seba.cygnus.com>
3887 * cgen-sim.h (RECORD_IADDR): Delete.
3888 * cgen-types.h (HOSTINT,HOSTUINT,HOSTPTR): New types.
3889 * genmloop.sh (engine_resume_{full,fast}): Delete icount.
3891 Wed Jun 17 12:25:08 1998 Mark Alexander <marka@cygnus.com>
3893 * gennltvals.def (mn10200): Add entry.
3894 * nltvals.def: Regenerate with MN10200 additions.
3896 Wed Jun 17 13:18:28 1998 Andrew Cagney <cagney@b1.cygnus.com>
3898 * sim-inline.h (EXTERN_*): Replace with EXTERN_*_P. Correct
3899 documentation on how it works.
3901 * sim-core.h, sim-core.c (sim_core_install, sim_core_attach,
3902 sim_core_detach, sim_core_read_buffer, sim_core_write_buffer,
3903 sim_core_set_xor, sim_core_xor_read_buffer,
3904 sim_core_xor_write_buffer): Update.
3906 * sim-events.h, sim-events.c (sim_events_install,
3907 sim_events_watch_clock, sim_events_schedule_after_signal,
3908 sim_events_schedule, sim_events_watch_sim, sim_events_watch_core,
3909 sim_events_deschedule): Update.
3911 * sim-fpu.h, sim-fpu.c (sim_fpu_zero, sim_fpu_one, sim_fpu_two,
3912 sim_fpu_max32, sim_fpu_max64): Update.
3914 Sat Jun 13 07:45:38 1998 Doug Evans <devans@fallis.cygnus.com>
3916 * cgen-trace.c (trace_insn_fini): Redo cycle handling.
3917 * sim-profile.h (PROFILE_DATA): Rename cycle handling members.
3918 * sim-profile.c (profile_print_model): Update.
3920 Fri Jun 12 18:35:07 1998 Doug Evans <devans@seba.cygnus.com>
3922 * gennltvals.def (m32r): Use common syscall.h now.
3923 (mn10300): Add entry.
3924 * nltvals.def: Regenerate.
3926 * sim-engine.c (sim_engine_get_run_state): New function.
3927 * sim-engine.h (sim_engine_get_run_state): Declare it.
3929 Thu Jun 11 00:50:03 1998 Doug Evans <devans@seba.cygnus.com>
3931 * sim-core.h (SIM_CORE_SIGNAL_FN): New typedef.
3932 * sim-core.c (sim_core_signal): Make extern, always define.
3934 Wed Jun 10 16:02:29 1998 Doug Evans <devans@seba.cygnus.com>
3936 * Make-common.in (CGEN_FLAGS_TO_PASS): New variable.
3937 * cgen-ops.h (ANDIF): New macro.
3938 (ANDIF[BQHSD]I): Delete.
3940 Thu Jun 4 13:53:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
3942 * hw-events.c (create_hw_event, delete_hw_event): Delete.
3943 (hw_event_queue_schedule, hw_event_queue_deschedule,
3944 bounce_hw_event): Fix hw-event memory corruptions found by Joyce
3947 * hw-alloc.h (HW_NZALLOC): Define.
3949 * Make-common.in (test-hw-events): Add target for testing the
3952 Mon May 25 21:11:26 1998 Andrew Cagney <cagney@b1.cygnus.com>
3954 * Make-common.in (SIM_COMMON_HW_OBJS): Add hw-handles.o and
3956 hw-handles.c, hw-instances.c, hw-handles.h, hw-instances.h: New
3958 * hw-main.h: Include hw-handles.h, hw-instances.h.
3959 * hw-base.h ({create,delete}_hw_{handles,instances}_data): Declare
3960 * hw-base.c (hw_create, hw_delete): Call same.
3962 Mon May 25 18:55:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
3964 * dv-core.c: Include hw-main.h and sim-main.h.
3965 * dv-pal.c: Include hw-main.h and sim-io.h.
3966 * dv-glue.c: Include hw-main.h.
3968 * hw-main.h: New file. Move list of includes to here.
3969 * hw-base.h: From here.
3970 * Make-common.in (hw_base_headers): Rename to hw_main_headers.
3971 (hw-*.o, dv-*.o): Update.
3972 * hw-tree.c, hw-base.c, hw-properties.c, hw-ports.c, hw-device.c,
3973 hw-events.c, hw-alloc.c, sim-hw.c: Include hw-main.h instead of
3976 * hw-base.h (do_hw_attach_regs, do_hw_poll_read_method,
3977 do_hw_poll_read): Move declarations from here.
3978 * hw-main.h: To here.
3980 * hw-base.h (struct hw_device_descriptor, hw_finish_callback):
3982 * hw-main.h (struct hw_descriptor, hw_finish_method): To here,
3984 * Make-common.in (hw-config.h): Update
3985 * hw-base.c, dv-pal.c, dv-glue.c: Update
3987 * dv-glue.c, hw-device.h, hw-base.h, hw-ports.c: Rename
3988 `*_callback' to `*_method.
3990 Mon May 25 18:41:18 1998 Andrew Cagney <cagney@b1.cygnus.com>
3992 * hw-base.h (set_*): Move set method macros from here.
3993 * hw-device.h: To here.
3995 Mon May 25 18:21:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
3997 * hw-base.h (create_hw_property_data, delete_hw_property_data):
4000 * hw-base.c (hw_create, hw_delete): Call
4001 * hw-properties.c (create_hw_property_data,
4002 delete_hw_property_data): Define.
4004 Mon May 25 17:40:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
4006 * hw-device.c, hw-properties.c: Include hw-base.h
4008 * hw-alloc.h, hw-alloc.c: New files. Move alloc code to here.
4009 * hw-device.c: From here.
4010 * hw-base.h: Include "hw-events.h".
4012 * hw-base.h (create_hw_alloc_data, delete_hw_alloc_data): Declare.
4013 * hw-base.c (hw_create, hw_delete): Call.
4014 * hw-alloc.c (create_hw_alloc_data, delete_hw_alloc_data): Define.
4016 * Make-common.in (SIM_NEW_COMMON_OBJS): Add hw-alloc.o.
4017 (hw-alloc.o): New target.
4019 Mon May 25 17:14:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
4021 * hw-events.h, hw-events.c: New files. Move event code to here.
4022 * sim-hw.c: From here.
4023 * hw-base.h: Include "hw-events.h".
4024 * Make-common.in (SIM_NEW_COMMON_OBJS): Add hw-events.o.
4025 (hw-events.o): New target.
4027 * hw-device.h (struct hw): Add struct hw_event_data events_of_hw.
4028 * hw-events.h (struct hw_event): Replace typedef hw_event.
4030 * hw-base.h (create_hw_event_data, delete_hw_event_data): Declare.
4031 * hw-base.c (hw_create, hw_delete): Call.
4032 * hw-events.c (create_hw_event_data, delete_hw_event_data): Define.
4036 Mon May 25 16:55:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
4038 * hw-base.c (panic_hw_port_event, empty_hw_ports): Move from here.
4039 * hw-ports.c: To here.
4041 * hw-base.h, hw-ports.c (create_hw_port_data,
4042 delete_hw_port_data): New functions.
4043 * hw-base.c (hw_delete, hw_create): Call same.
4045 * hw-base.h (set_hw_ports, set_hw_port_event): Move set functions
4047 * hw-ports.h: To here.
4049 Mon May 25 16:42:48 1998 Andrew Cagney <cagney@b1.cygnus.com>
4051 * hw-device.c (hw_ioctl), hw-device.h (hw_ioctl_callback): Drop
4052 PROCESSOR and CIA arguments.
4054 Fri May 22 12:16:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
4056 * aclocal.m4 (SIM_AC_OPTION_HW): Add enable / disable argument.
4057 Move common object files from here.
4058 * Make-common.in (SIM_COMMON_HW_OBJS): To here.
4060 Thu May 21 17:57:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
4062 * sim-hw.c: Include ctype.h.
4063 (do_hw_poll_read): Do not assume EAGAIN.
4065 Wed May 20 04:37:57 1998 Doug Evans <devans@seba.cygnus.com>
4067 * cgen-trace.c (first_insn_p): New static local.
4068 (trace_insn_init): Set it.
4069 (trace_insn_fini): Use TRACE_PREFIX.
4070 (trace_insn): Rewrite to use trace_prefix.
4071 * sim-trace.c (trace_prefix): Don't print filename arg if NULL.
4072 Adjust width accordingly.
4074 * sim-profile.h (PROFILE_DATA): New member profile_any_p.
4075 (PROFILE_ANY_P,PROFILE_INSN_P,PROFILE_MEMORY): New macros.
4076 (PROFILE_SCACHE_P,PROFILE_PC_P,PROFILE_CORE_P): New macros.
4077 (PROFILE_COUNT_INSN,PROFILE_COUNT_READ,PROFILE_COUNT_WRITE): Simplify.
4078 (PROFILE_COUNT_CORE): Simplify.
4079 * sim-profile.c (profile_option_handler): Compute profile_any_p.
4081 Tue May 19 23:55:30 1998 Doug Evans <devans@seba.cygnus.com>
4083 * cgen-ops.h (ADDCFSI): Fix typo.
4085 Sat May 16 12:44:52 1998 Doug Evans <devans@seba.cygnus.com>
4087 * cgen-sim.h (CGEN_CPU): New members idesc_{read,sem}_init_p.
4088 * genmloop.sh: Use them rather than static locals.
4090 * sim-engine.c (sim_engine_set_run_state): New function.
4091 * sim-engine.h (sim_engine_set_run_state): Declare.
4092 * genmloop.sh (pending_reason,pending_sigrc): New static locals.
4093 (@cpu@_engine_stop): New args reason,sigrc. All callers updated.
4094 (engine_resume): Reorganize. Allow synchronous exit from main loop.
4096 Fri May 15 16:06:05 1998 Doug Evans <devans@seba.cygnus.com>
4098 * cgen-trace.c (trace_insn_init): New arg first_p.
4099 All callers updated.
4100 (trace_insn_fini): New arg last_p. All callers updated.
4101 * cgen-trace.h (trace_insn_init,trace_insn_fini): Update.
4102 (TRACE_INSN_INIT,TRACE_INSN_FINI): Update.
4103 * genmloop.sh (engine_resume): Update.
4105 Fri May 15 15:59:00 1998 Joyce Janczyn <janczyn@cygnus.com>
4107 * Make-common.in (install-common): Run ranlib on installed copy of
4110 Fri May 15 15:03:00 1998 Joyce Janczyn <janczyn@cygnus.com>
4112 * Make-common.in (install-common): Rename and install libsim.a.
4114 Tue May 12 15:23:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
4116 * sim-io.c (unistd.h): Include.
4118 Wed May 6 16:04:18 1998 Doug Evans <devans@seba.cygnus.com>
4120 * Make-common (sim_main_headers): Sort.
4121 (cgen-*.o): Add cgen-sim.h dependency.
4123 * cgen-scache.c (scache_init): Only allocate space if scache element
4125 (scache_flush,scache_print_profile): Check if scache in use first.
4127 * cgen-sim.h (IDESC): Provide forward declaration.
4129 (CGEN_CPU): Always define scache member. New members idesc,opcode.
4130 (cgen_cpu_max_extra_bytes): Declare.
4131 * cgen-utils.c (cgen_cpu_max_extra_bytes): New function.
4133 * sim-cpu.h: New file. sim_cpu_base moved here.
4134 Move sim_cpu_lookup decl here.
4135 * sim-base.h: #include "sim-cpu.h".
4136 * sim-cpu.c: New file.
4137 * Make-common (sim_main_headers): Add sim-cpu.h.
4138 (sim-cpu.o): Add rule for.
4140 * sim-model.c (set_model): Delete.
4141 (sim_model_set,model_set): New functions.
4142 (sim_model_install): Renamed from model_install.
4143 Don't set default model here.
4144 (model_option_handler): Rewrite --model processing.
4145 (sim_model_lookup,sim_mach_lookup): New functions.
4146 * sim-model.h (MAX_MODELS,MAX_INSNS): Delete.
4147 (insn_timing): Delete.
4148 (INSN_TIMING): New member `num'.
4149 (IMP_PROPERTIES): Always define scache_elm_size member.
4150 (MACH): New member init_cpu.
4151 (sim_machs): Renamed from machs.
4152 (sim_model_install): Renamed from model_install.
4153 (sim_model_set,sim_model_lookup,sim_mach_lookup): Declare.
4154 * sim-module.c (modules): Update.
4156 * sim-profile.c (profile_print_insn): Add cpu arg to INSN_NAME macro.
4158 * sim-io.c: #include <errno.h>.
4160 Wed May 6 12:39:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
4162 * dv-pal.c (struct hw_pal_device): Add reader.
4163 (hw_pal_finish): Initialize reader.
4164 (scan_hw_pal): Use reader.
4166 * hw-base.h, sim-hw.c (do_hw_poll_read): New function.
4167 (HW_IO_EOF, HW_IO_NOT_READY): Define.
4170 * sim-io.h, sim-io.c (sim_io_poll_read): New function. Copy from
4171 ../ppc/main.c sim_io_read_stdin.
4173 Fri May 1 12:11:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
4175 * hw-tree.h (hw_tree_print): Paramaterize with print and file
4177 * hw-tree.c: Update.
4179 * hw-base.h (hw_port_event_callback): Delete CPU/CIA args.
4180 * hw-device.h (hw_io_read_buffer, hw_io_write_buffer): Delete
4182 * hw-ports.h (hw_port_event): Ditto.
4183 * hw-ports.c (hw_port_event): Update.
4184 * hw-base.c (panic_hw_io_read_buffer, panic_hw_io_write_buffer):
4186 * dv-pal.c (hw_pal_io_read_buffer, hw_pal_io_write_buffer):
4188 (hw_pal_io_write_buffer): Call hw_halt not sim_engine_halt.
4189 (do_counter_event): Update.
4190 * dv-glue.c (hw_glue_io_read_buffer): Update.
4191 (hw_glue_port_event): Update.
4193 * hw-device.h (SIM_DESC): Replace with struct sim_state.
4194 * hw-base.h (hw_create): Ditto.
4195 * hw-base.c (hw_create): Ditto.
4197 * hw-device.c (hw_abort, hw_trace, hw_hw_event_queue_schedule,
4198 hw_event_queue_deschedule, hw_event_queue_time): Delete, moved
4201 * hw-device.h (hw_system_cpu): Declare.
4202 * sim-hw.c (hw_system_cpu): New function.
4204 * sim-core.c (sim_core_map_attach, sim_core_attach): Call
4205 sim_hw_abort not hw_abort.
4206 (sim-hw.h): Include.
4207 (sim_core_read_buffer, sim_core_write_buffer): Call
4208 sim_hw_io_read_buffer and sim_hw_io_write_buffer. Do not pass CPU
4210 (sim_core_set_xor): Do not pass CPU when aborting.
4212 * sim-n-core.h (sim_core_read_aligned_N,
4213 sim_core_write_aligned_N): Call sim_hw_abort not hw_abort.
4214 (sim_core_read_aligned_N, sim_core_write_aligned_N): Call
4215 sim_cpu_hw_io_read_buffer and sim_cpu_hw_io_write_buffer. Does not
4218 * sim-hw.h: Declare sim_hw_io_{read,write}_buffer. Declare
4220 * sim-hw.c (sim_hw_io_read_buffer, sim_hw_io_write_buffer,
4221 sim_cpu_hw_io_read_buffer, sim_cpu_hw_io_write_buffer): New
4223 (sim_hw_print): New function.
4225 * sim-engine.h (sim_engine_vabort): Declare.
4226 * sim-engine.c (sim_engine_vabort): New function.
4228 Wed Apr 29 23:58:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
4230 * sim-trace.c (print_data): For floating-point numbers trace raw
4232 (trace_result_fp2): New function.
4233 * sim-trace.h (trace_result_fp2): New declaration.
4234 (TRACE_FP_RESULT2): New macro.
4236 Tue Apr 28 18:28:58 1998 Geoffrey Noer <noer@cygnus.com>
4238 * common/aclocal.m4: call AM_EXEEXT in SIM_AC_COMMON, define
4239 AM_CYGWIN32 and AM_EXEEXT.
4240 * common/Make-common.in: set EXEEXT, add missing EXEEXTs
4241 to run and install-common rules.
4242 * common/configure: regenerate
4244 Sat Apr 25 17:45:01 1998 Andrew Cagney <cagney@b1.cygnus.com>
4246 * sim-types.h (cell_word): New type.
4247 (natural_cell): Delete type.
4249 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
4251 * configure: Regenerated to track ../common/aclocal.m4 changes.
4254 Sun Apr 26 15:25:07 1998 Tom Tromey <tromey@cygnus.com>
4256 * acconfig.h (NEED_DECLARATION_PRINTF): Removed.
4258 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
4260 * configure: Regenerated to track ../common/aclocal.m4 changes.
4263 Fri Apr 24 11:38:08 1998 Tom Tromey <tromey@cygnus.com>
4265 * acconfig.h: New file.
4266 * Make-common.in (top_builddir): New macro.
4267 (INTL_LIB): Removed.
4268 (INTLLIBS): New macro.
4269 (INTLDEPS): Likewise.
4270 (LIBDEPS): Use INTLDEPS.
4271 (EXTRA_LIBS): Use INTLLIBS.
4272 * aclocal.m4 (SIM_AC_COMMON): Call CY_GNU_GETTEXT.
4273 (CY_WITH_NLS, CY_GNU_GETTEXT, AM_PATH_PROG_WITH_TEST,
4274 AM_LC_MESSAGES): New macros from GNU gettext.
4276 Fri Apr 24 19:57:59 1998 Andrew Cagney <cagney@b1.cygnus.com>
4278 * sim-config.h: Discard leading _ from macros.
4279 * sim-types.h: Ditto.
4281 Wed Apr 22 14:14:19 1998 Michael Meissner <meissner@cygnus.com>
4283 * Make-common.in (CSEARCH): Add -I to intl directories.
4284 (INTL_LIB): Point to libintl.a.
4285 (LIBDEPS): Add $(INTL_LIB).
4286 (EXTRA_LIBS): Ditto.
4288 Tue Apr 21 12:44:27 1998 Doug Evans <devans@canuck.cygnus.com>
4290 * cgen-types.h (GETHIDI,MAKEDI): Tweak.
4292 * cgen-ops.h (ADDCFSI): Fix.
4295 Tue Apr 21 13:18:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
4297 * sim-types.h (signed_address, unsigned_address): Define.
4299 Mon Apr 20 21:47:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
4301 * sim-fpu.c (sim_fpu_2d): Don't return an SNaN, convert it into a
4304 Thu Apr 16 10:30:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
4306 * sim-fpu.c, sim-fpu.h (sim_fpu_fractionto, sim_fpu_tofraction):
4307 New functions, pack / unpack sim_fpu struct using raw values.
4308 (sim_fpu_is): Differentiate between negative and positive
4311 Tue Apr 14 18:49:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
4313 * sim-bits.h (EXTEND4): Define.
4314 (EXTEND4, EXTEND15, EXTEND11): Ditto.
4316 Tue Apr 14 16:31:35 1998 John Metzler <jmetzler@cygnus.com>
4318 * sim-memopt.c (parse_addr): Sunos 4.5 does not have strtol
4319 declared so we need this cast to prevent long long addresses
4320 from being misconfigures. Results in access to unmapped memory.
4322 Tue Apr 14 13:19:14 1998 Doug Evans <devans@canuck.cygnus.com>
4324 * Make-common.in (RUNTESTFLAGS): Define.
4325 (check): Pass RUNTESTFLAGS to recursive make.
4327 Tue Apr 14 15:09:19 1998 Andrew Cagney <cagney@b1.cygnus.com>
4329 * sim-info.c (sim_info): Be verbose when either VERBOSE or
4332 Sat Apr 4 23:24:17 1998 Andrew Cagney <cagney@b1.cygnus.com>
4334 * aclocal.m4 (sim-inline): By default, disable sim-inline when
4337 Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
4339 * aclocal.m4 (sim-cflags): Add -fomit-frame-pointer to defaults.
4340 (sim-inline): Update to match sim-inline.[hc]
4341 * configure: Regenerated to track ../common/aclocal.m4 changes.
4343 * Make-common.in (sim_main_headers): Add sim-inline.h
4345 * sim-bits.h (sim-bits.c): Include when H_REVEALS_MODULE_P.
4347 * sim-endian.h (sim-endian.c): Ditto.
4349 * sim-events.h (_SIM_EVENTS_H_): Replace with SIM_EVENTS_H.
4350 (sim_events_set_trace): Delete unused prototype.
4352 * sim-core.h (_SIM_CORE_H_): Replace with SIM_CORE_H.
4353 * sim-core.c (_SIM_CORE_C_): Ditto for SIM_CORE_C.
4355 * sim-fpu.h (sim-fpu.c): Include when H_REVEALS_MODULE_P.
4356 (sim_fpu_to232i, sim_fpu_to232u, sim_fpu_i232to, sim_fpu_u232to):
4357 Comment out, not yet implemented in sim-fpu.c.
4358 (sim_fpu_zero, sim_fpu_one, sim_fpu_two, sim_fpu_qnan,
4359 sim_fpu_max32, sim_fpu_max64): Mark as EXTERN_SIM_FPU.
4361 * sim-inline.h: Rewrite description.
4362 (H_REVEALS_MODULE_P, C_REVEALS_MODULE_P): Define.
4363 (SIM_MAIN_INLINE): Add inline option.
4365 * sim-inline.c (semantics.c, idecode.c, engine.c, ...): Do not
4366 include generated files. Handled by generator directly.
4368 Sat Apr 4 01:07:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
4370 * sim-trace.c (set_trace_option_mask): Keep TRACE_ANY_P
4373 * sim-trace.h (TRACE_ANY_P): Define.
4374 (struct _trace_data): Add trace_any_p.
4376 Mon Mar 30 17:11:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
4378 * run.c (main): Handle all alternatives of enum sim_stop.
4379 (main): Delete unused `asection *s'.
4381 Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
4383 * hw-tree.h, hw-tree.c (hw_tree_vparse): New function
4385 * configure: Regenerated to track ../common/aclocal.m4 changes.
4387 * sim-hw.c: New file.
4388 * sim-hw.h (sim_hw_parse): Declare function.
4389 (hw-tree.h): Do not include.
4391 * sim-base.h (STATE_HW): Define.
4392 (struct sim_state_base): Add member struct *hw.
4394 * sim-module.c (sim-hw.h): Include.
4395 (modules): Add sim_hw_install.
4397 * aclocal.m4 (sim_hw_obj): Add sim-hw.o
4399 Fri Mar 27 14:55:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
4401 * sim-base.h (CPU_INDEX): Define.
4403 * sim-utils.c (sim_state_alloc): Initialize.
4404 * sim-module.c (sim_post_argv_init): Ditto.
4406 Thu Mar 26 10:07:57 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
4408 * aclocal.m4 (sim_hw_obj): Fix sed expression to generate
4409 properly formatted lists.
4411 Thu Mar 26 10:37:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
4413 * dv-pal.c (enum hw_pal_address_mask): From Stu Grossman, was
4414 0x2f needs to be 0x3f.
4416 Thu Mar 26 09:10:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
4418 * hw-tree.c (hw_tree_find_property): Return NULL when device is
4420 (hw_tree_find_*_property): Clean up error message when property is
4423 * dv-pal.c (hw_pal_io_read_buffer): Check the smp property is
4424 present before looking for it.
4426 Wed Mar 25 16:17:38 1998 Ian Carmichael <iancarm@cygnus.com>
4428 * aclocal.m4 (AC_CHECK_HEADERS): Add check for fpu_control.h.
4429 (AC_CHECK_FUNCS): Add check for __setfpucw.
4430 * configure: Regenerated.
4432 Wed Mar 25 09:18:34 1998 Andrew Cagney <cagney@b1.cygnus.com>
4434 * dv-pal.c (hw_pal_countdown, hw_pal_countdown_value,
4435 hw_pal_timer, hw_pal_timer_value): Define.
4436 (hw_pal_io_read_buffer, hw_pal_io_write_buffer): Add timer support
4437 (do_counter_event, do_counter_read, do_counter_value,
4438 do_counter_write): new functions.
4440 Tue Mar 24 12:24:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
4442 * hw-tree.c (hw_printf): Send tree dump to stderr, same as other
4445 * hw-base.c (hw_create): Stop searching for a device when one is
4448 Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
4450 * configure: Regenerated to track ../common/aclocal.m4 changes.
4452 Mon Mar 23 10:25:08 1998 Andrew Cagney <cagney@b1.cygnus.com>
4454 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Add second argument,
4455 appends extra devices.
4456 (SIM_AC_OPTION_HARDWARE): Substute sim_hw, a non-duplicate list of
4459 * Make-common.in (hw-config.h): New target, create hw-config.h
4461 (SIM_HW): Definition from @sim_hw@.
4462 (hw-base.o): Depend on hw-config.h
4464 Tue Mar 24 17:41:35 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
4466 * Make-common.in: Get SHELL from configure.
4467 * (stamp-tvals sim-inline.c): Use $(SHELL) when invoking
4468 move-if-change. Fixes NT native build problem.
4469 * Makefile.in (nltvals.def): Use $(SHELL) when invoking
4470 move-if-change. Fixes NT native build problem.
4471 * configure: Regenerate with autoconf 2.12.1 to fix shell issues for
4474 Sun Mar 22 16:54:40 1998 Andrew Cagney <cagney@b1.cygnus.com>
4476 * hw-device.h, hw-device.c (hw_strdup): New function.
4478 * hw-base.c (hw_create): Use hw_strdup when saving a copy of the
4479 strings name, family and args.
4480 (full_name_of_hw): Use hw_strdup when returning the full path.
4482 * hw-properties.c: Clean up property not found / wrong type error
4485 * hw-tree.c (hw_tree_parse): Finish a devices initialization
4486 before attaching any ports.
4488 * hw-base.c (hw-config.): Include. Replace hardwired table.
4490 * dv-glue.c: Copy over ../ppc/hw_glue.c. Update to new framework.
4492 * Make-common.in: Add rule for dv-glue.o.
4494 Sun Mar 22 16:45:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
4496 * hw-base.c (hw_finish): Move setting of trace level to here.
4497 (hw_create): From here.
4499 * hw-base.h, hw-base.c (do_hw_attach_regs): Copy function from
4500 ../ppc/device_table.c.
4502 * dv-pal.c (hw_pal_finish): Attach PAL device to parent bus.
4504 * hw-tree.c (print_properties): Supress path when printing
4505 properties of root node.
4507 Sun Mar 22 16:21:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
4509 * hw-device.h (HW_TRACE): Define.
4510 (hw_trace): Declare.
4511 * hw-device.c (hw_trace): Implement function.
4513 * hw-base.c (hw_create): Set hw trace level from "trace?"
4516 * dv-core.c (dv_core_attach_address_callback): Add trace.
4518 * dv-pal.c: Replace DTRACE with HW_TRACE.
4520 Sun Mar 22 15:23:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
4522 * hw-device.h (HW_ZALLOC, HW_MALLOC): New macros.
4523 (hw_alloc_data): Delcare.
4524 (struct hw): Add member alloc_of_hw.
4526 * hw-device.c (hw_zalloc, hw_malloc, hw_free, hw_free_all): New
4527 functions. Assocate memory with a device.
4528 (stdlib.h): Include.
4530 * hw-base.h (set_hw_delete): Define.
4531 (hw_delete_callback): Declare.
4532 (hw_delete): Declare.
4534 * hw-base.c (hw_delete): Implement function.
4535 (struct hw_base_data): Add member to_delete.
4536 (ignore_hw_delete): New function, does nothing.
4537 (hw_create): Set the hw_delete method.
4538 (hw_create): Allocate the base type using HW_ZALLOC before setting
4541 * hw-tree.h, hw-tree.c (hw_tree_delete): New function.
4543 * hw-properties.c: Replace zalloc/zfree with hw_zalloc/hw_free.
4545 * hw-ports.c: Replace zalloc/zfree with hw_zalloc/hw_free.
4546 (attach_hw_port_edge): Add struct hw argument
4548 * dv-pal.c (hw_pal_finish): Replace zalloc/zfree with
4551 Sun Mar 22 15:09:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
4553 * hw-device.h (hw_attach_address_callback,
4554 hw_detach_address_callback): Attach to a single space not a space
4555 mask. Clarify interpretation of SPACE:ADDR parameters.
4557 * hw-base.c (passthrough_hw_attach_address,
4558 passthrough_hw_detach_address): Update.
4559 * dv-core.c (dv_core_attach_address_callback): Ditto.
4560 * dv-pal.c (hw_pal_attach_address): Ditto.
4562 Thu Mar 19 00:41:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
4564 * sim-options.h: Document additional CPU arg to OPTION_HANDLER.
4566 Wed Mar 18 14:13:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
4568 * Make-common.in (SIM_HW_OBJS, SIM_HW_SRC, SIM_DV_OBJS): Define.
4569 (hw-base_h, hw-device_h, hw-handles_h, hw-instances_h, hw_ports_h,
4570 hw-properties_h, hw-tree_h): Define, point at corresponding
4572 (hw_base_headers): Define list of headers included by hw-base.h
4573 (hw-base.o, hw-device.o, hw-instances.o, hw-handles.o, hw-ports.o,
4574 hw-properties.o, hw-tree.o): Specify dependencies.
4575 (dv-core.o, dv-pal.o): Ditto.
4577 * sim-hw.h: New file.
4579 * hw-device.h, hw-device.c, hw-properties.h, hw-properties.c,
4580 hw-ports.h, hw-ports.c: New files. Copied from ../ppc/device.[ch].
4582 * hw-tree.h, hw-tree.c: New files. Copied from ../ppc/tree.[hc].
4584 * hw-base.h, hw-base.c: new files. Copied from
4585 ../ppc/device_table.[hc].
4587 * dv-core.c, dv-pal.c: New files. Copied from
4588 ../ppc/hw_{core,pal}.c
4590 * sim-basics.h (struct hw): Declare.
4591 (enum port_direction, enum object_disposition): Declare.
4593 Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
4595 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Set sim_hw_obj, sim_dv_obj,
4596 sim_dv_src in Makefile. Take list of devices as parameter to m4
4599 * configure: Regenerated to track ../common/aclocal.m4 changes.
4601 Mon Mar 16 12:37:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
4603 * sim-trace.h, sim-trace.c (trace_prefix): Pass in sim_cia so that
4604 trace_prefix can abort cleanly.
4606 Sat Mar 14 18:36:12 1998 Doug Evans <devans@seba.cygnus.com>
4608 * dv-sockser.c, dv-sockser.h: New files.
4609 * Make-common.in (dv-sockser.o): Add rule for.
4610 * aclocal.m4: Check for fcntl.h.
4611 * config.h: Add HAVE_FCNTL_H.
4613 * sim-break.c (remove_breakpoint): Fix thinko.
4615 * sim-hload.c (sim_load): Provide default value of SIM_HANDLES_LMA.
4616 Use SIM_HANDLES_LMA for lma_p arg to sim_load_file.
4618 1998-03-13 Fred Fish <fnf@cygnus.com>
4620 * sim-base.h (struct sim_state_base): Add prog_syms and
4621 define macro STATE_PROG_SYMS.
4622 * sim-trace.c (trace_prefix): Add variables abfd, symsize,
4623 symbol_count, and asymbols. Call bfd_get_symtab_upper_bound
4624 and bfd_canonicalize_symtab, to get symbol table on first use
4625 and preserve it via STATE_PROG_SYMS for future calls to
4626 bfd_find_nearest_line.
4628 Wed Mar 11 14:02:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
4630 * sim-core.h, sim-core.c (sim_core_map_to_str): Delete.
4632 * sim-core.c (sim_core_attach): Handle a generic number of maps -
4633 up to nr_maps, not just access_* maps.
4635 * sim-profile.h (struct PROFILE_DATA): Track nr_maps different
4638 * sim-profile.c (profile_print_core): Make map unsigned. Iterate
4639 over nr_maps not sim_core_nr_maps.
4641 * sim-events.h, sim-events.c (sim_events_watch_core): Change
4642 core_map argument to unsigned.
4643 (struct _sim_core): Ditto for struct member core_map.
4645 * sim-core.h (nr_sim_core_maps, sim_core_*_map): Delete
4647 * sim-basics.h (access_io, access_*_io): Define.
4648 (map_read, map_write, map_exec, map_io): Define.
4650 * sim-core.c, sim-core.h (sim_core_attach): Replace argument
4651 attach with more generic mapmask.
4652 (sim_core_{read,write}_*): Change map argument to unsigned.
4654 * sim-core.c (sim_core_uninstall, sim_core_attach,
4655 sim_core_detach): Iterate over nr_maps instead of
4658 * sim-break.c (insert_breakpoint): Write breakpoints to exec_map
4659 instead of the write_map.
4660 (remove_breakpoint): Ditto.
4662 * genmloop.sh (engine_resume_full): Replace sim_core_*_map
4663 with read_map, write_map, exec_map resp.
4665 * cgen-mem.h (DECLARE_GETMEM, DECLARE_SETMEM, DECLARE_GETIMEM):
4668 * cgen-utils.c (sim_disassemble_insn): Ditto.
4670 * sim-hrw.c (sim_write, sim_write): Ditto.
4672 * sim-utils.h, sim-utils.c (access_to_str, map_to_str,
4673 transfer_to_str): New functions.
4675 Mon Mar 9 12:50:59 1998 Doug Evans <devans@seba.cygnus.com>
4677 * sim-base.h (sim_state_base): New member environment.
4678 (STATE_ENVIRONMENT): New macro.
4679 * sim-config.c (current_environment): Delete.
4680 (sim_config_default): New function.
4681 (sim_config): Set STATE_ENVIRONMENT, not current_environment.
4682 * sim-config.h (current_environment,CURRENT_ENVIRONMENT): Delete.
4683 (sim_config_default): Add prototype.
4684 * sim-module.c (sim_pre_argv_init): Call sim_config_default.
4685 * sim-options.c (standard_option_handler, case OPTION_ENVIRONMENT):
4686 Set STATE_ENVIRONMENT, not current_environment.
4688 Mon Mar 9 11:59:03 1998 Jim Wilson <wilson@cygnus.com>
4690 * sim-fpu.c (NR_GUARDS64): Change NR_PAD32 to NR_PAD64.
4692 Tue Mar 3 10:53:05 1998 Andrew Cagney <cagney@b1.cygnus.com>
4694 * sim-types.h (SIGNED32, SIGNED64): Pacify GCC.
4696 * sim-alu.h (ALU64_BEGIN): Make alu64_r unsigned.
4698 Mon Mar 2 10:20:06 1998 Doug Evans <devans@seba.cygnus.com>
4700 * Make-common.in (TAGS): Make smarter.
4701 * Makefile.in (TAGS): Ditto.
4703 Fri Feb 27 19:09:57 1998 Doug Evans <devans@canuck.cygnus.com>
4705 * sim-module.c (*): Fix typos in assertion tests.
4707 Sat Feb 28 13:54:10 1998 Andrew Cagney <cagney@b1.cygnus.com>
4709 * sim-module.c (sim_pre_argv_init): String passed to asprintf
4712 * sim-options.c (sim_parse_args): Ditto.
4713 (sim_args_command): Return OK, instead of nothing, for an empty
4716 Fri Feb 27 13:29:13 1998 Andrew Cagney <cagney@b1.cygnus.com>
4718 * sim-profile.c (profile_info): Rename from profile_print. Drop
4719 misc and misc_cpu callback arguments. Use
4720 PROFILE_INFO_CPU_CALLBACK and STATE_PROFILE_INFO_CALLBACK instead.
4721 (profile_install): Install profile_info function.
4723 * sim-profile.h (PROFILE_INFO_CPU_CALLBACK,
4724 STATE_PROFILE_INFO_CALLBACK): Define.
4725 (struct PROFILE_DATA): Add field info_cpu_callback.
4726 (profile_print): Delete function.
4728 * sim-base.h (STATE_MODULES): Define. Replace individual
4729 STATE_*_LIST with single struct module_list.
4731 * sim-module.h (MODULE_INFO_FN, MODULE_INFO_LIST): Declare.
4732 (struct module_list): Declare.
4734 * sim-module.h, sim-module.c (sim_module_add_info_fn,
4735 sim_module_info): New functions.
4736 (sim_module_install): Clean up module data structures.
4738 * sim-info.c (sim_info): New file. New function. Call
4741 * Make-common.in (sim-info.o): Define rule.
4742 (SIM_NEW_COMMON_OBJS): Add sim-info.o.
4745 Fri Feb 27 18:26:16 1998 Doug Evans <devans@canuck.cygnus.com>
4747 * sim-base.h (sim_cpu_base): New members name, options.
4748 (sim_cpu_lookup): Add prototype.
4749 * sim-module.c (sim_pre_argv_init): Provide default names for cpus.
4750 * sim-options.h (DECLARE_OPTION_HANDLER): New argument `cpu'.
4751 (sim_add_option_table): Update prototype.
4752 * sim-options.c (sim_add_option_table): New argument `cpu'.
4753 (standard_option_handler,standard_install): Update.
4754 (sim_parse_args): Handle cpu specific options.
4755 (print_help): New static function.
4756 (sim_print_help): Call it. Print cpu specific options.
4757 (find_match): New static function.
4758 (sim_args_command): Call it. Handle cpu specific options.
4759 * sim-utils.c (sim_cpu_lookup): New function.
4760 * sim-memopt.c (memory_option_handler): Update.
4761 (sim_memopt_install): Update.
4762 * sim-model.c (model_option_handler): Update.
4763 (model_install): Update.
4764 * sim-profile.c (profile_option_handler): Update.
4765 (profile_install): Update.
4766 * sim-trace.c (trace_option_handler): Update.
4767 (trace_install): Update.
4768 * sim-watch.c (watchpoint_option_handler): Update.
4769 (sim_watchpoint_install): Update.
4770 * cgen-scache.c (scache_option_handler): Update.
4771 (scache_install): Update.
4773 Wed Feb 25 11:00:26 1998 Doug Evans <devans@canuck.cygnus.com>
4775 * Make-common.in (check): Run `make check' in testsuite dir.
4777 Wed Feb 25 14:40:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
4779 * sim-trace.c (trace_result0): New function.
4781 * sim-trace.h (TRACE_FP_*, TRACE_FPU_*): Rename TRACE_FPU_*
4782 macro's to TRACE_FP_*. TRACE_FPU_* should be defined and used when
4783 tracing sim_fpu variables.
4784 (TRACE_ALU_RESULT0): Define.
4785 (TRACE_FP_RESULT_WORD): Define.
4786 (TRACE_FP_INPUT_WORD1): Define.
4788 * sim-fpu.c, sim-fpu.h (sim_fpu_max32, sim_fpu_max64, sim_fpu_one,
4789 sim_fpu_two): New constants.
4790 (sim_fpu_op1, sim_fpu_op2): New types.
4791 (struct _sim_fpu): Delete member result. Re-order other members.
4792 (sim_fpu_sign, sim_fpu_exp): New functions.
4793 (sim_fpu_max, sim_fpu_min): new functions.
4794 (EXPMAX32, EXPMAX64, NR_PAD32, NR_PAD64, NR_GUARDS32, NR_GUARDS64,
4795 NORMAL_EXPMAX32, NORMAL_EXPMAX64): Define.
4797 Tue Feb 24 22:45:39 1998 Doug Evans <devans@seba.cygnus.com>
4799 * sim-profile.c (profile_print): Delete duplicate test of
4801 (profile_print_pc): Exit early if data collection not set up.
4802 (profile_print_core): Simplify by calling sim_core_map_to_str.
4803 * sim-core.h (sim_core_map_to_str): Declare.
4804 * sim-core.c (sim_core_map_to_str): Make non-static.
4806 * genmloop.sh (engine_resume): Update insn_count before exiting.
4807 (engine_resume_full): Keep accurate core profile data.
4809 * cgen-utils.c (sim_disassemble_insn): Don't use
4810 sim_core_read_aligned_N, it messes up profiling results.
4812 Mon Feb 23 20:45:57 1998 Mark Alexander <marka@cygnus.com>
4814 * nltvals.def: Regenerate with MN10300 additions.
4816 Tue Feb 24 13:18:42 1998 Andrew Cagney <cagney@b1.cygnus.com>
4818 * sim-trace.h (TRACE_ALU_RESULT2): Define.
4820 * sim-trace.h, sim-trace.c (trace_result_word2,
4821 trace_input_word4, trace_result_word4): New function.
4823 Mon Feb 23 13:08:35 1998 Doug Evans <devans@canuck.cygnus.com>
4825 * cgen-sim.h (SEM_NEXT_PC): New arg `len'.
4827 * sim-xcat.h: Delete.
4828 * cgen-mem.h: Delete inclusion of sim-xcat.h.
4829 * cgen-sim.h: Ditto.
4830 * sim-alu.h: Replace sim-xcat.h with symcat.h.
4831 * sim-n-bits.h: Ditto.
4832 * sim-n-core.h: Ditto.
4833 * sim-n-endian.h: Ditto.
4835 Mon Feb 23 13:19:58 1998 Michael Meissner <meissner@cygnus.com>
4837 * syscall.c (cb_syscall): Handle short reads, and EOF.
4839 Tue Feb 24 00:29:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
4841 * sim-trace.c (print_data): case trace_fmt_fp missing break. Use
4842 sim_fpu to safely print fp_word values.
4843 (print_data): Add trace_fmt_bool and trace_fmt_addr.
4844 (trace_result_bool1, trace_result_addr1): New functions.
4845 (trace_input_bool1, trace_input_addr1): New functions.
4847 * sim-trace.h (TRACE_FPU_*): Define.
4849 Mon Feb 23 13:24:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
4851 * sim-fpu.h (enum sim_fpu_class): Add sim_fpu_class_denorm.
4852 (sim_fpu_fpto, sim_fpu_tofp): Define.
4854 Fri Feb 20 18:08:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
4856 * sim-fpu.c (sim_fpu_cmp): New function.
4858 Wed Feb 18 16:29:21 1998 Doug Evans <devans@canuck.cygnus.com>
4860 * cgen-utils.h (sim_disassemble_insn): Use CGEN_INSN_BITSIZE
4861 instead of abuf->length.
4862 * sim-trace.c (trace_options): Have -t only trace a few useful things.
4863 (set_trace_option_mask): Renamed from set_trace_options.
4864 (set_trace_option): New function.
4865 (trace_option_handler): Update calls to set_trace_option{,_mask}.
4866 * sim-trace.h (TRACE_USEFUL_MASK): New macro.
4868 Wed Feb 18 12:42:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
4870 * sim-basics.h: Declare struct _sim_fpu.
4872 Tue Feb 17 16:27:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
4874 * sim-trace.h (TRACE_ALU_INPUT*, TRACE_ALU_RESULT): Define.
4875 (trace_prefix, trace_input*, trace_result*): Declare.
4876 (trace_one_insn): Change declaration, assume trace_prefix called.
4877 (trace_generic): Like trace_one_insn.
4878 (TRACE_ALU_IDX, TRACE_*_IDX): Change #define's to enum.
4879 (TRACE_alu, TRACE_[a-z]*): Update.
4881 * sim-trace.c (trace_prefix, trace_input*, trace_result*,
4882 trace_insn, save_data, trace_idx_to_str, print_data): New
4884 (trace_one_insn): Rewrite.
4885 (trace_generic): New function.
4887 Tue Feb 17 17:27:30 1998 Doug Evans <devans@seba.cygnus.com>
4889 * aclocal.m4 (USE_MAINTAINER_MODE): New variable.
4891 * cgen-sim.h (SEMANTIC_CACHE_FN): Delete.
4892 (SEMANTIC_FN): Rewrite declaration.
4893 (DECODE): Update type of semantic_fast member.
4894 ({EX,SEM}_FN_NAME): Have only one version.
4895 * sim-base.h (sim_state_base): Delete conditionals surrounding
4898 Tue Feb 10 18:31:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
4900 * sim-load.c (sim_load_file): Print LMA/VMA according to value
4903 Tue Feb 10 14:56:23 1998 Ian Carmichael <iancarm@cygnus.com>
4905 * sim-core.c: Add missing prototypes for WITH_DEVICES.
4906 Add missing parameters to device_io calls.
4907 * sim-core.h: Add missing parameters to device_io calls.
4909 Mon Feb 9 14:48:37 1998 Doug Evans <devans@canuck.cygnus.com>
4911 * cgen-sim.h (DECODE): Always use switch for `read' for now.
4912 (PAREXEC): Renamed from PARALLEL_EXEC. All uses updated.
4913 (SEMANTIC{,_CACHE}_FN): Fix return type.
4914 * genmloop.sh (@cpu@_engine_run): Delete `current_state'.
4915 (engine_resume): Likewise. Make `engine' volatile. Save copy
4916 of cpu pointer in volatile object. Initialize read switch if
4919 Thu Feb 5 13:27:04 1998 Doug Evans <devans@seba.cygnus.com>
4921 * cgen-sim.h (EX_FN_NAME): _exc_ -> _ex_.
4922 (SEM_INSN): New macro.
4924 Tue Feb 3 16:31:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
4926 * sim-run.c (sim_engine_run): Assume IMEM is 32 bit.
4928 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
4930 * configure: Regenerated to track ../common/aclocal.m4 changes.
4932 Sun Feb 1 16:16:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
4934 * sim-types.h (fp_word): New type, define according to
4935 WITH_TARGET_FLOATING_POINT_BITSIZE.
4937 * aclocal.m4 (default_sim_floating_point_bitsize): Add
4938 configuration of size of floating point registers.
4940 Sun Feb 1 14:02:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
4942 * sim-profile.c (profile_print): Only print CPU <N> if other
4943 output is going to appear.
4945 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
4947 * configure: Regenerated to track ../common/aclocal.m4 changes.
4949 Sat Jan 31 18:03:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
4951 * sim-types.h (address_word): Typedef according to
4952 WITH_TARGET_ADDRESS_BITSIZE.
4953 (signed_cell, unsigned_cell, natural_cell): Ditto using
4954 WITH_TARGET_CELL_BITSIZE.
4956 * sim-config.h (WITH_TARGET_ADDRESS_BITSIZE): Define.
4957 (WITH_TARGET_CELL_BITSIZE): Define.
4958 (WITH_HOST_WORD_BITSIZE): Delete.
4960 * sim-config.c (print_sim_config): Update.
4962 * aclocal.m4 (SIM_AC_OPTION_BITSIZE): Add support for
4963 configuration of address and OpenFirmware cell sizes.
4965 Fri Jan 30 09:36:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
4967 * sim-engine.h (sim_engine_run): Add argument nr_cpus.
4968 * sim-run.c (sim_engine_run): Update.
4970 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use SET_CPU_CIA instead of
4972 * sim-run.c (sim_engine_run): Ditto.
4974 * sim-resume.c (sim_resume): Obtain nr_cpus from sim_engine.
4975 (sim_resume): Pass nr_cpus to sim_engine_run.
4977 * sim-engine.h (struct _sim_engine): Add member nr_cpus.
4979 * sim-engine.c (sim_engine_init): Hardwire nr_cpus to
4981 (sim_engine_nr_cpus) sim-engine.c, sim-engine.h: New function
4983 Fri Jan 23 14:20:54 1998 Doug Evans <devans@seba.cygnus.com>
4985 * Make-common.in (stamp-tvals): New rule.
4986 (targ-vals.h,targ-map.c): Depend on it.
4987 (clean): Remove stamp-tvals.
4989 Tue Jan 20 21:35:13 1998 Michael Meissner <meissner@cygnus.com>
4991 * sim-utils.c (sim_state_alloc): #if 0 variable that is only used
4992 in code also #if 0'ed.
4994 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
4996 * configure: Regenerated to track ../common/aclocal.m4 changes.
4997 * aclocal.m4: Recognize --enable-maintainer-mode.
4999 Mon Jan 19 12:45:45 1998 Doug Evans <devans@seba.cygnus.com>
5001 * cgen-scache.h: Deleted.
5002 * Make-common.in (cgen-run.o,cgen-scache.o): Delete cgen-scache.h dep.
5003 * cgen-scache.c: Only compile contents if WITH_SCACHE.
5004 (scache_init): Use runtime computed size of SCACHE.
5005 (scache_flush): Likewise.
5006 * cgen-mem.h (GETIMEMU[QHSD]I): Declare.
5007 ([GS]ETT{QI,UQI,HI,UHI,SI,USI,DI,UDI}): Declare.
5008 * cgen-sim.h: Scache support moved here.
5009 (PC): Redo definition.
5010 (ARGBUF,SCACHE,PARALLEL_EXEC): Provide forward decls.
5011 (DECODE): Add parallel execution support.
5012 Only include semantic label members if using switch.
5013 (SWITCH,CASE,BREAK,DEFAULT,ENDSWITCH): Portable computed goto support.
5014 (CGEN_CPU): Delete members exec_state, halt_sigrc, halt_jmp_buf.
5015 (IADDR,CIA,SEM_ARG,EX_FN_NAME,SEM_FN_NAME,RECORD_IADDR,SEM_ARGBUF,
5016 SEM_NEXT_PC,SEM_BRANCH_VIA_{CACHE,ADDR},SEM_NEW_PC_ADDR): Moved here
5018 (engine_{stop,run,resume,halt,signal}): Delete decls.
5019 * cgen-types.h (CGEN_{XCAT3,CAT3}): Delete.
5020 (argbuf,scache): Delete forward decls.
5021 (STATE): Delete decl.
5022 * cgen-utils.c: Don't include decode.h, mem-ops.h, sem-ops.h.
5023 Include cgen-mem.h, cgen-ops.h.
5024 (engine_halt,engine_signal): Delete.
5025 ({ex,exc,sem,semc}_illegal): Delete.
5026 (sim_disassemble_insn): Result of extract fn is in bits.
5027 * genmloop.sh: Rewrite.
5029 * cgen-trace.c (trace_insn): Set printed_result_p=0 if not tracing
5032 * sim-base.h (sim_state_base): Delete member `model'.
5033 (sim_cpu_base): Add member `model'.
5034 * sim-model.h (IMP_PROPERTIES): New type.
5035 (MACH): New members imp_props, models.
5036 (models): Delete decl.
5037 * sim-model.c (set_model): Update.
5038 * sim-profile.c (profile_print_model): Update.
5040 * sim-utils.c (sim_state_alloc): Delete setting of cpu backlink here.
5042 Fri Jan 16 12:33:09 1998 Nick Clifton <nickc@cygnus.com>
5044 * cgen-trace.c (trace_insn): Call CGEN_INSN_MNEMONIC() rather than
5047 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
5049 * configure: Regenerated to track ../common/aclocal.m4 changes.
5052 Mon Dec 15 23:16:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
5054 * aclocal.m4 (AR): Check for sigaction.
5056 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
5058 * Make-common.in (sim-core.o): Depend on $(sim_main_headers).
5060 * sim-config.h (WITH_TREE_PROPERTIES): Define as 0.
5061 * sim-config.c (sim_config): Replace WITH_DEVICES with
5062 WITH_TREE_PROPERTIES.
5064 * configure: Regenerated to track ../common/aclocal.m4 changes.
5066 Wed Dec 3 17:56:02 1997 Doug Evans <devans@canuck.cygnus.com>
5068 * Make-common.in (SIM_ENVIRONMENT): New variable.
5069 (CONFIG_CFLAGS): Add it.
5070 * aclocal.m4 (SIM_AC_OPTION_ENVIRONMENT): Handle
5071 --enable-sim-environment option.
5072 * configure: Regenerated.
5073 * sim-config.h (environment support): Rewrite.
5074 * sim-config.c (current_environment): Define as enum, unconditionally.
5075 (current_alignment): Define unconditionally.
5076 (config_environment_to_a): Update.
5077 (config_alignment_to_a): Fix type of argument. Define unconditionally.
5078 (sim_config): Handle environment and alignment determination
5079 unconditionally. Delete sanity checks of current_environment,
5081 (print_sim_config): Update.
5082 * sim-options.c (STANDARD_OPTIONS enum): Add OPTION_ENVIRONMENT.
5083 (standard_options): Add --environment.
5084 (standard_option_handler): Likewise.
5086 Fri Nov 28 12:21:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
5088 * sim-alu.h: Add notes on carry vs borrow for subtraction.
5089 (ALU{,8,16,32,64}ADD): Redefine ADD macro as add overflowing.
5090 (ALU{,8,16,32,64}ADDC): Define - add carrying.
5091 (ALU{,8,16,32,64}SUB): Redefine SUB macro as subtract overflowing.
5092 (ALU{,8,16,32,64}SUBB): Define - subtract borrowing.
5093 (ALU{,8,16,32,64}SUBC): Define - tract carrying.
5094 (ALU{,8,16,32,64}ADD_CA, ALU{,8,16,32,64}ADDC_C): Replace single
5095 argument ADD_CA macro with two argument ADDC_C - add carrying with
5097 (ALU{,8,16,32,64}SUB_CA, ALU{,8,16,32,64}SUBC_X): Replace single
5098 argument SUB_CA macro with two argument SUBC_X - subtract
5100 (ALU{,8,16,32,64}SUBB_B): Define - subtract borrowing with
5102 (ALU{,8,16,32,64}NEGC, ALU{,8,16,32,64}NEGB): Define.
5104 Sun Nov 30 17:40:57 1997 Michael Meissner <meissner@cygnus.com>
5106 * sim-io.c (sim_io_{syscalls,getstring}): Delete. No longer used.
5107 * sim-io.h (sim_io_syscalls): Delete.
5109 Fri Nov 28 20:10:09 1997 Michael Meissner <meissner@cygnus.com>
5111 * syscall.c (cb_syscall): Add missing else, so write to stdout
5114 * sim-alu.h (ALU{,8,16,32,64}_SET_CARRY): Provide macros to import
5115 the carry bit from the CPU's psw.
5117 Fri Nov 28 11:15:05 1997 Doug Evans <devans@canuck.cygnus.com>
5119 * gennltvals.sh: Redo syscall support.
5120 * nltvals.def: Regenerated.
5122 Wed Nov 26 16:49:38 1997 Michael Meissner <meissner@cygnus.com>
5124 * syscall.c (cb_syscall): If writing to stdout or stderr, flush
5125 the stream immediately.
5127 Wed Nov 26 12:32:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
5129 * sim-io.c (sim_io_getstring): Delete unused len2.
5130 (sim_io_syscalls): Ditto for sys_errno.
5132 Wed Nov 26 11:18:40 1997 Doug Evans <devans@canuck.cygnus.com>
5134 * syscall.c (cb_syscall): Test CB_SYSCALL struct magic number.
5136 * Make-common.in (run.o): Depend on remote-sim.h.
5137 (nrun.o,sim-hload.o,sim-hrw.o): Likewise.
5138 (sim-io.o,sim-reason.o,sim-resume.o): Likewise.
5140 Tue Nov 25 20:12:46 1997 Michael Meissner <meissner@cygnus.com>
5142 * sim-io.c (sim_io_syscalls): Disable lseek.
5144 Tue Nov 25 00:12:38 1997 Doug Evans <devans@seba.cygnus.com>
5146 * gennltvals.sh: Generate syscall values for d30v.
5148 * gennltvals.sh: Use libgloss/syscall.h for sparc.
5149 * nltvals.def: Regenerate.
5151 * callback.c (os_stat): Make 3rd arg a host struct stat ptr.
5152 (os_fstat): Likewise. Validate fd argument.
5153 (cb_host_to_target_stat): Delete big_p arg. If HS arg is NULL,
5154 just compute target stat struct length.
5155 * syscall.c: #include "libiberty.h", <sys/types.h>, <sys/stat.h>.
5156 (ENOSYS,ENAMETOOLONG): Provide definitions if missing.
5157 (get_string): Return host errno values so they can be properly
5159 (cb_syscall): Likewise.
5160 (cb_syscall, cases open,unlink): Use get_path instead of get_string.
5161 (cb_syscall, case read): Use read_stdin for file descriptor 0.
5162 (cb_syscall, case write): Use write_stderr for file descriptor 2.
5163 (cb_syscall): Add cases for lseek, unlink, stat, fstat, time.
5164 (get_path): New function.
5166 Mon Nov 24 18:56:07 1997 Michael Meissner <meissner@cygnus.com>
5168 * sim-io.c (sim_io_syscalls): New function to provide system call
5169 emulation. Provide exit, open, close, read, write, lseek, and
5171 (sim_io_getstring): New function to return a string from a
5172 simulated memory location.
5174 * sim-io.h (sim_io_syscalls): Add declaration.
5176 Mon Nov 24 12:09:59 1997 Doug Evans <devans@seba.cygnus.com>
5178 * sim-core.c (sim_core_signal): Fix spelling error in message.
5180 * sim-hrw.c (sim_read): Use read map, not write map.
5182 * Make-common.in (all): Add .gdbinit.
5183 * gdbinit.in: Add dump command.
5185 * sim-model.c (model_options): Use '\0' for `shortopt'.
5187 * sim-trace.c (trace_option_handler): Set state trace file
5188 for --trace-file in addition to cpu's values.
5189 (trace_vprintf): If cpu == NULL, try state's trace file.
5190 (trace_options): Reorganize table, reword some descriptions.
5192 Sun Nov 23 10:57:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
5194 * sim-fpu.c (sim_fpu_abs, sim_fpu_neg, sim_fpu_inv), sim-fpu.h:
5197 Sat Nov 22 19:16:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
5199 * sim-reason.c (sim_stop_reason): For sim_signalled, return the
5200 signal untranslated, document problem with this.
5202 * nrun.c (main): Check for a prog name of `*step'. If present,
5203 step the simulator instead of allowing it to run free.
5205 * sim-signal.c (SIGQUIT): Define on _MSC_VER hosts.
5207 * Make-common.in (sim_main_headers): Add sim-signal.h.
5209 Fri Nov 21 09:32:32 1997 Andrew Cagney <cagney@b1.cygnus.com>
5211 * sim-signal.c (sim_signal_to_host): Return 0 for SIM_SIGNONE.
5213 Thu Nov 20 20:35:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
5215 * sim-signal.h: Start simulator signals at 64 so that host signal
5216 numbers can be detected and reported.
5218 * sim-signal.h (SIM_SIGFPE), sim-signal.h: Add signal.
5220 Wed Nov 19 12:02:41 1997 Doug Evans <devans@seba.cygnus.com>
5222 * callback.c (cb_host_to_target_stat): Fix return values.
5224 * cgen-sim.h (enum_signal_type): Delete.
5225 (engine_signal): Update prototype.
5226 * cgen-utils.c: Don't include <signal.h>.
5227 (sim_signal_to_host): Delete, lives in sim-signal.c now.
5228 (engine_signal): Update.
5230 * sim-utils.c (sim_state_alloc): Call SIM_STATE_ALLOC if defined.
5231 (sim_state_free): Call SIM_STATE_FREE if defined.
5233 * sim-module.c (sim_module_install): Don't leave any modules
5234 installed if one fails to install.
5236 Wed Nov 19 13:25:48 1997 Michael Meissner <meissner@cygnus.com>
5238 * sim-options.c: Don't include ../libiberty/alloca-conf.h any
5239 more, since alloca is not used in this file.
5241 * sim-alu.h (ALU{32,64}_*): Rewrite 32 and 64 bit ALU support to
5242 correctly set the carry and overflow bits for those types.
5243 (ALU{8,16,32,64}_{ADD,SUB}_CA): Take VAL argument to add along
5244 with carry, so carry is correct after doing both adds.
5245 (ALU*): Space out '\' to make it easier to read.
5247 Tue Nov 18 15:53:45 1997 Doug Evans <devans@canuck.cygnus.com>
5249 * sim-core.c (sim_core_signal): Use sim_stopped instead of
5252 * sim-signal.c, sim-signal.h: New files.
5253 * Make-common.in (sim-signal.o): Add rule for.
5254 (SIM_NEW_COMMON_OBJS): Add sim-signal.o.
5255 * sim-abort.c: Don't include <signal.h>.
5256 * sim-basics.h: #include "sim-signal.h".
5257 * sim-break.c: Don't include <signal.h>.
5258 (sim_handle_breakpoint): Replace SIGTRAP with SIM_SIGTRAP.
5259 * sim-core.c: Don't include <signal.h>.
5260 (SIGBUS): Delete definition.
5261 (sim_core_signal): Replace SIGSEGV,SIGBUS with SIM_SIGSEGV,SIM_SIGBUS.
5262 * sim-engine.c: Don't include <signal.h>.
5263 (sim_engine_abort): Replace SIGABRT with SIM_SIGABRT.
5264 * sim-reason.c (sim_stop_reason): Call sim_signal_to_host.
5265 * sim-resume.c: Don't include <signal.h>.
5266 (SIGTRAP): Delete definition.
5267 (has_stepped): Replace SIGTRAP with SIM_SIGTRAP.
5268 * sim-stop.c: Don't include <signal.h>.
5269 (control_c_simulation): Replace SIGINT with SIM_SIGINT.
5270 * sim-watch.c: Don't include <signal.h>.
5271 (handle_watchpoint): Replace SIGINT with SIM_SIGINT.
5273 * Make-common.in (SIM_NEW_COMMON_OBJS): New variable.
5275 * sim-base.h (CIA_ADDR): Provide default definition.
5276 * sim-core.c (sim_core_signal): Use CIA_ADDR to fetch value.
5277 * sim-break.c (sim_handle_breakpoint): Likewise.
5279 Mon Nov 17 14:15:31 1997 Doug Evans <devans@seba.cygnus.com>
5281 * Make-common.in (srccom): New variable.
5283 * Make-common.in (DEP, COMMON_DEP_CFLAGS): Define.
5284 (LIB_OBJS): Add syscall.o.
5285 (gentmap): Pass $(NL_TARGET) to $(CC).
5286 (syscall.o): Add rule for.
5287 (sim_main_headers): Add $(SIM_EXTRA_DEPS).
5288 (sim-bits.o): Depend on $(sim-n-bits_h).
5289 (sim-load.o): Depend on callback.h.
5291 * Make-common.in (cgen-*.o): Update dependencies, mem-ops.h renamed to
5292 cgen-mem.h, sem-ops.h renamed to cgen-ops.h.
5293 * cgen-mem.h, cgen-ops.h: New files.
5295 * aclocal.m4 (--enable-sim-scache): Pass -DWITH_SCACHE=0 for "=no".
5297 * Makefile.in (nltvals.def): Depend on gennltvals.sh.
5299 * callback.c: #include string.h or strings.h.
5300 #include sys/types.h and sys/stat.h.
5301 (cb_init_syscall_map,cb_init_errno_map,cb_init_open_map): Declare.
5302 (os_get_errno,os_open): Update.
5303 (os_stat,os_fstat): New functions.
5304 (os_init): Initialize syscall_map, errno_map, open_map.
5305 (default_callback): Add entries for os_stat, os_fstat, syscall_map,
5306 errno_map, open_map, signal_map, stat_map.
5307 (cb_read_target_syscall_maps): New function.
5308 (cb_target_to_host_syscall): New function.
5309 (cb_host_to_target_errno): Renamed from host_to_target_errno.
5310 (cb_target_to_host_open): Renamed from target_to_host_open.
5311 (store): New function.
5312 (cb_host_to_target_stat): New function.
5313 * syscall.c: New file.
5314 * gentmap.c (sys_tdefs): New global.
5315 (gen_targ_vals_h): Output target syscall numbers.
5316 (gen_targ_map_c): Update. Output target syscall translation map.
5317 * gentvals.sh: New first argument `target'. Preface table with
5318 #ifdef NL_TARGET_$target if non-null target passed.
5319 * gennltvals.sh: New file.
5320 * nltvals.def: Regenerated.
5322 Fri Nov 14 11:33:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
5324 * sim-n-core.h (sim_core_read_unaligned_N): Return static
5326 (sim_core_dummy_M): Declare.
5328 Wed Nov 12 18:16:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
5330 * sim-core.c (sim_core_signal): Print the address of the
5333 Thu Nov 13 11:49:41 1997 Doug Evans <devans@seba.cygnus.com>
5335 * sim-base.h (sim_state_base): Move `magic' to end of struct.
5337 * sim-base.h (sim_state_base): Add member trace_data.
5338 (STATE_TRACE_DATA): New macro.
5339 * sim-trace.h (TRACE_DEBUG_IDX,TRACE_debug): New macros.
5340 ({WITH_,}TRACE_DEBUG_P): New macros.
5341 (STATE_TRACE_FLAGS,STRACE_P,STRACE_DEBUG_P): New macros.
5342 (_sim_cpu): Delete forward reference.
5343 (debug_printf): Update.
5344 * sim-trace.c (OPTION_TRACE_DEBUG): Define.
5345 (trace_options): Add --trace-debug.
5346 (set_trace_options): Handle it.
5347 (trace_option_handler): Likewise.
5348 (trace_install): Init state trace_data struct.
5349 (trace_uninstall): Close state trace file.
5350 * sim-events.c (ETRACE): Only print source file and line number if
5352 * sim-n-core.h (sim_core_trace_M): Likewise.
5354 * sim-core.c (sim_core_signal): Add missing "\n" in message.
5356 1997-11-13 Felix Lee <flee@cygnus.com>
5358 * sim-n-core.h (sim_core_read_unaligned_N): illegal empty
5360 * sim-types.h (unsigned128,signed128): fix typo for MSVC.
5362 Wed Nov 12 12:18:08 1997 Doug Evans <devans@canuck.cygnus.com>
5364 * aclocal.m4 (SIM_AC_OPTION_SCACHE): Fix typo.
5366 * Make-common.in (BUILT_SRC_FROM_COMMON): Remove files no longer
5368 (sim-config.o): Remove non-existent $(sim-nconfig_h) dependency.
5369 (clean): Don't delete $(BUILT_SRC_FROM_COMMON) if building in
5372 Tue Nov 11 13:28:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
5374 * sim-events.c (sim_events_process): Re-compute the time -
5375 update_time_from_event - as each event is processed. Reverses
5378 Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
5380 * callback.c (os_poll_quit): Replace _WIN32 with _MSC_VER.
5382 Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
5384 * sim-events.c (sim_events_process): Delete redundant call to
5385 update_time_from_event.
5386 (sim_events_slip): Always decrement time_from_event.
5387 (sim_events_tick, sim_events_deschedule, update_time_from_event):
5388 Delete assertion that time_from_event >=0 when work in queue, no
5391 Thu Nov 6 12:06:46 1997 Andrew Cagney <cagney@b1.cygnus.com>
5393 * sim-options.c (STANDARD_OPTIONS): Change OPTION_* to an enum.
5394 (standard_option_handler): Update.
5396 * sim-options.h: Clarify documentation.
5397 (OPTION_LONG_ONLY_P): Delete definition.
5398 (OPTION_VALID_P): Define.
5400 * sim-options.c (sim_print_help): Allow short only options.
5401 (sim_parse_args): Ditto.
5402 (sim_args_command): Skip short only options.
5403 (sim_parse_args): Allocate space for NUM_OPTS not just 256. Make
5404 separate entries for short and long options in the HANDLERS and
5406 (sim_parse_args): Disable argument permutation.
5408 Wed Nov 5 13:40:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
5410 * sim-core.h (DECLARE_SIM_CORE_WRITE_N. DECLARE_SIM_CORE_READ_N):
5411 Add argument M, size of data type.
5412 (sim_core_read_misaligned_3, sim_core_write_misaligned_3):
5413 Declare, ditto for 5, 6 & 7 byte transfers.
5414 (sim_core_write_unaligned_1, sim_core_write_unaligned_1): Define
5417 * sim-n-core.h (sim_core_trace_M): Rename from
5418 sim_core_trace_N. Add nr_bytes argument. Replace transfer argument
5419 with transfer type. Print transfer direction. Handle 1 and 2 byte
5421 (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Trace
5423 (unsigned_M, T2H_M, H2T_M): Rename from unsigned_N, T2H_N, H2T_N.
5424 Update all functions.
5426 * sim-core.c: Generate functions starting with 16 not 1.
5427 (sim_core_read_unaligned_3): Generate. Ditto for 3 byte write and
5428 all 5, 6 & 7 byte transfers.
5430 * sim-n-core.h (sim_core_read_misaligned_N,
5431 sim_core_write_misaligned_N): Implement.
5433 Mon Nov 3 15:03:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
5435 * sim-endian.h (U16_8): Implement
5437 * sim-endian.c (sim_endian_split_16, sim_endian_join_16): New functions
5439 * sim-endian.h (VL8_16, VH8_16): Implement.
5441 * sim-memopt.c (memory_option_handler): Typecast 64bit value to
5443 (memory_option_handler): Only zalloc modulo bytes when non-zero.
5444 (memory_option_handler): Skip comma in alias address list
5446 Fri Oct 31 13:03:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
5448 * sim-memopt.c (do_memopt_add, do_memopt_delete): Add level and
5450 (parse_size, parse_addr): New functions
5451 (memory_option_handler, memory_options): Parse address & size
5452 using new functions. Pass level, space, modulo to do_memopt_add &
5455 * sim-memopt.h (struct _sim_memopt): Add level & space fields.
5457 * sim-core.h (sim_core_arrach, sim_core_detach): Replace
5458 `attach_type attach' argument with `unsigned level' argument.
5461 * sim-core.c (new_sim_core_mapping, sim_core_map_attach,
5462 sim_core_attach): Replace argument attach with level. Update
5463 verification of arguments.
5464 (sim_core_map_detach, sim_core_detach): Replace argument attach
5467 * sim-basics.h (enum _attach_type): Delete.
5469 Thu Oct 30 13:45:00 1997 Doug Evans <devans@seba.cygnus.com>
5471 * sim-core.h (sim_core_write_8): Define.
5473 Tue Oct 28 12:29:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
5475 * sim-bits.h: Document ROTn macro.
5477 * sim-endian.h (H2T): Handle 16 byte variables.
5479 * sim-n-core.h (sim_core_read_unaligned_N): Return a dummy when an
5482 * sim-core.c: Do not generate sim_core_*_word.
5484 * sim-n-core.h (sim_core_trace_N): Add line_nr argument.
5485 (sim_core_write_aligned_N, sim_core_read_aligned_N): Update.
5487 * sim-core.h (sim_core_read_unaligned_word,
5488 sim_core_read_aligned_word, sim_core_read_word,
5489 sim_core_write_unaligned_word, sim_core_write_aligned_word,
5490 sim_core_write_word): Change to macros that map onto sim_core_*_N.
5492 Mon Oct 27 11:25:10 1997 Doug Evans <devans@canuck.cygnus.com>
5494 * sim-n-endian.h: Add TAGS entrys for 16 byte versions.
5496 * sim-endian.h: Disable 16 byte support.
5498 Mon Oct 27 12:00:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
5500 * sim-endian.c (_SWAP_16): Define. Generate 126 bit swap code.
5502 * sim-n-core.h (sim_core_trace_N): New function.
5503 (sim_core_read_aligned_N, sim_core_write_aligned_N): Use,
5504 (sim_core_read_unaligned_N): Do not retyrn bogus value wden error.
5506 * sim-endian.h: Add 128 bit variant.
5508 * sim-core.h, sim-core.c: Add 128 bit variant.
5510 * sim-types.h: Add signed128 and unsigned128 types using a struct.
5512 Fri Oct 24 11:33:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
5514 * sim-events.c (sim_events_process): Clear events->work_pending.
5515 (sim_events_tickn, sim_events_tick): Accumulate, instead of
5516 setting, nr_ticks_to_process.
5517 (sim_events_preprocess): Allow nr_ticks_to_process to be non-zero
5518 when the event queue isn't next.
5520 * sim-events.h, sim-events.c (sim_events_slip): New function.
5522 Wed Oct 22 14:18:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5524 * sim-hload.c (sim_load): Pass lma_p==0 and do_load=sim_load.
5526 * sim-utils.h, sim-load.c (sim_load_file): Add lma_p and do_load
5529 Tue Oct 21 18:37:57 1997 Doug Evans <devans@canuck.cygnus.com>
5531 * nrun.c (main): Remove useless test of name != NULL.
5532 Exit if bfd_openr fails. Call bfd_check_format after bfd_openr.
5534 Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5536 * sim-fpu.c (EXPMAX): Type is unsigned.
5537 (MIN_INT, MAX_INT): Type is signed64.
5538 (i2fpu): Type of val is signed64.
5540 Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5542 * sim-profile.h (PROFILE_PC_BUCKET_SIZE): Treat a shift of zero as
5543 a bucket size of zero.
5545 * sim-profile.c (OPTION_PROFILE_PC_GRANULARITY,
5546 OPTION_PROFILE_PC): Define.
5547 (profile_option_handler): Add support for --profile-pc and
5548 --profile-pc-granularity options.
5549 (profile_pc_init): When possible, compute nr buckets from bucket
5552 * sim-profile.c (profile_pc_init): Align the profile-pc end
5553 address with the profile-pc bucket size.
5555 * sim-profile.h (PROFILE_PC_NR_BUCKETS): Rename PROFILE_PC_SIZE to
5556 something less ambiguous.
5557 (PROFILE_PC_BUCKET_SIZE): Ditto for PROFILE_PC_SAMPLE_SIZE.
5559 * sim-profile.c (profile_pc_cleanup): New function. Move
5560 profile_pc_uninstall code to here.
5561 (profile_pc_uninstall): Call.
5562 (profile_pc_init): Call.
5564 Mon Oct 20 17:23:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
5566 * sim-profile.c (profile_print_pc): Dump pc profile to dmon.out
5567 file using BSD gprof format.
5569 * sim-bits.h (LSBIT, MSBIT, BIT): Force result to type
5571 (LSBIT8, LSBIT16, LSBIT32, LSBIT64, MSBIT8, MSBIT16, MSBIT32,
5572 MSBIT64): Force result to unsignedN.
5574 Thu Oct 16 11:38:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
5576 * sim-alu.h (ALU16_BEGIN, ALU32_BEGIN, ALU64_BEGIN): Drop opening
5578 (ALU8_BEGIN, ALU8_SET, ALU8_ADD, ALU8_SUB, ALU8_NEGATE): Define.
5579 (ALU16_ADD, ALU16_SUB, ALU16_NEGATE): Simplify arrithmetic.
5580 (ALU32_ADD, ALU32_SUB, ALU32_NEGATE): Simplify arrithmetic.
5581 (ALU64_ADD, ALU64_SUB, ALU64_NEGATE): Simplify arrithmetic.
5583 Wed Oct 15 09:24:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
5585 * sim-core.h (struct _sim_core_mapping): Change free_buffer to
5588 * sim-core.c (sim_core_uninstall, new_sim_core_mapping,
5589 sim_core_map_attach, sim_core_map_detach): Change free_buffer to
5591 (sim_core_attach): Rename buffer_freed to free_buffer, type
5592 void*. Ensure that allocated buffer is alligned according to
5595 Mon Oct 13 11:34:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
5597 * sim-alu.h (ALU64_HAD_OVERFLOW): Define.
5598 (ALU64_SUB): Define.
5600 * Make-common.in (all): Build SIM_EXTRA_ALL first.
5601 (.gdbinit): Remove dependencies, generate once per build.
5603 Tue Oct 14 19:20:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
5605 * sim-n-core.h (sim_core_read_aligned_N,
5606 sim_core_write_aligned_N): Make xaddr param type address_word not
5609 Fri Oct 3 09:49:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
5611 * sim-fpu.h, sim-fpu.c: Rewrite. Change sim_fpu object to an
5612 unpacked floating point struct. Pass sim_fpu object by reference.
5613 Add preliminary support for rounding modes.
5615 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
5617 * configure: Regenerated to track ../common/aclocal.m4 changes.
5619 Thu Oct 2 19:43:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
5621 * aclocal.m4 (sim-bitsize): Fix typo, WITH_TARGET_WORD_BITSIZE not
5622 WITH_TARGET_BITSIZE.
5624 Thu Sep 25 23:20:20 1997 Felix Lee <flee@yin.cygnus.com>
5626 * sim-profile.c (profile_print_core): label needs empty statement.
5628 Thu Sep 25 11:20:47 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
5630 * sim-break.c (sim_set_breakpoint sim_clear_breakpoint): Use ZALLOC
5631 and zfree instead of xmalloc and free. Prevents warnings.
5633 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
5635 * configure: Regenerated to track ../common/aclocal.m4 changes.
5637 Wed Sep 24 17:23:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
5639 * Make-common.in (SIM_BITSIZE): Assign from configured value.
5640 (CONFIG_CFLAGS): Add SIM_BITSIZE.
5642 * aclocal.m4 (--enable-sim-bitsize): Developer option for
5643 controling the bitsize/msb of the target.
5645 Wed Sep 24 17:41:40 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
5647 * Make-common.in: New files sim-break.c, sim-break.h.
5648 * sim-base.h: Add point to breakpoint list to sim_state_base.
5649 * sim-break.c sim-break.h: New modules that implement intrinsic
5651 * sim-module.c: Add breakpoint module.
5653 Tue Sep 23 00:26:39 1997 Felix Lee <flee@yin.cygnus.com>
5655 * sim-events.c (SIM_EVENTS_POLL_RATE): poll more often than once
5657 * sim-n-core.h (WITH_XOR_ENDIAN): MSVC barfs on
5659 * sim-core.c (sim_core_xor_write_buffer): WITH_XOR_ENDIAN + 1.
5660 (SIGBUS) define for Windows.
5661 * sim-trace.c (trace_printf,debug_printf): added ALMOST_STDC.
5662 * sim-resume.c: define SIGTRAP for windows.
5663 * sim-xcat.h: use token pasting if ALMOST_STDC.
5665 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5667 * Make-common.in (SIM_SCACHE, SIM_DEFAULT_MODEL): Assign
5669 (CONFIG_CFLAGS): Add same.
5671 Mon Sep 22 17:20:27 1997 Felix Lee <flee@cygnus.com>
5673 * sim-types.h (SIGNED64): ##i64 when _MSC_VER, not _WIN32.
5674 (SIGNED32): use ##i32.
5676 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5678 * configure: Regenerated to track ../common/aclocal.m4 changes.
5680 Tue Sep 23 10:07:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
5682 * aclocal.m4 (sim-endian): Simplify logic determining [default]
5685 * Make-common.in (SIM_WARNINGS, SIM_ALIGNMENT, SIM_ENDIAN,
5686 SIM_HOSTENDIAN, SIM_RESERVED_BITS, SIM_ASSERT, SIM_FLOAT,
5687 SIM_HARDWARE, SIM_INLINE, SIM_PACKAGES, SIM_REGPARM, SIM_SMP,
5688 SIM_STDCALL, SIM_XOR_ENDIAN): Assign configured values.
5689 (CONFIG_CFLAGS): Add same.
5691 * aclocal.m4: Perform AC_SUBST on optional options.
5693 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
5695 * sim-config.h (WITH_DEFAULT_ALIGNMENT): Don't hardwire any alignment.
5697 * sim-options.c (standard_option_handler): Typo in warning message.
5699 * sim-base.h (STATE_MODEL): Make conditional on SIM_HAVE_MODEL.
5701 * sim-profile.c (profile_print_insn): Check 0 .. MAX_INSN for any
5702 insn count. Make count conditional on there being a valid
5704 (profile_pc_init): Make default PC profile frequency an arbitrary
5707 * sim-base.h: Ditto.
5709 * sim-profile.h (WITH_PROFILE_MODEL_P): Only enable modeling when
5712 * sim-model.h (struct MACH): Depreciate, to be replaced by bfd
5715 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
5717 * configure: Regenerated to track ../common/aclocal.m4 changes.
5719 Mon Sep 22 11:45:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
5721 * aclocal.m4 (sim_alignment): Simplify logic for selecting the
5722 configured alignment.
5724 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
5726 * configure: Regenerated to track ../common/aclocal.m4 changes.
5728 Fri Sep 19 17:26:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
5730 * sim-config.c (sim_config): Check for default alignment.
5732 * sim-options.c (standard_option_handler): Add alignment option.
5734 * aclocal.m4 (sim_alignment): Allow configuration of hardwired and
5735 default alignment requirements on memory accesses.
5737 Fri Sep 19 11:51:35 1997 Jeffrey A Law (law@cygnus.com)
5739 * sim-load.c (sim_load_file): Return failure if the executable
5740 had no loadable sections.
5742 Wed Sep 17 13:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
5744 * sim-events.c (ETRACE): Use trace_printf not sim_io_printf for
5747 * sim-core.c (sim_core_signal): When bad access halt simulator
5748 SIGSEGV / SIGBUS instead of aborting.
5749 (signal.h): Include.
5751 * sim-watch.c (sim_watchpoint_install): Handler for watchpoint
5752 options was missing.
5754 * sim-bits.h (MOVED): Define
5756 Wed Sep 17 10:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
5758 * sim-alu.h (ALU32_HAD_OVERFLOW): Pacify GCC, Use MSBIT instead of
5761 * sim-bits.h (LSBIT, MSBIT): Check for overflow of shift value.
5763 * sim-bits.c: Add 8 bit versions of bit macros.
5765 * sim-bits.h: Ditto.
5767 Tue Sep 16 16:15:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
5769 * sim-bits.c (LSSEXT, MSSEXT): Replace SEXT.
5770 (LSINSERTED, MSINSERTED): Ditto for INSERTED.
5772 * sim-n-bits.h (MSSEXTn, LSSEXTn): Replace SEXTn.
5773 (LSINSERTDn, MSINSERTEDN): Ditto for INSERTEDn.
5775 * sim-bits.h (SEXT*): Define as MSEXT/LSEXT.
5776 (INSERTED*): Ditto for LSINSERTED/MSINSERTED.
5778 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
5780 * aclocal.m4 (SIM_AC_COMMON): Add optional config.h file argument.
5781 configure.in: Output to cconfig.h instead of config.h.
5783 * configure: Regenerated to track ../common/aclocal.m4 changes.
5785 Mon Sep 15 15:39:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
5787 * sim-utils.c (sim_analyze_program): Set STATE_ARCHITECTURE from
5790 Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
5792 * callback.c (os_write): divert stdout and stderr to their
5795 Thu Sep 11 10:08:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
5797 * sim-profile.c (profile_print_speed): Call
5798 sim_events_elapsed_time instead of PROFILE_EXEC_TIME for moment.
5800 * sim-events.c (sim_events_elapsed_time): New function return nr
5801 host MS consumed by the simulator.
5802 (sim_watch_valid): Use.
5804 * sim-module.c (modules): Install sim_events very very early.
5806 * sim-profile.c (profile_print): Call profile_print_pc.
5808 (profile_pc_init): New function, set up processor for PC
5810 (profile_print_pc): New function, print a PC profile.
5811 (profile_pc_event): New function, sample PC.
5813 * sim-profile.h (PROFILE_PC_COUNT, PROFILE_PC_START,
5814 PROFILE_PC_END, PROFILE_PC_SHIFT, PROFILE_PC_SAMPLE_SIZE): Add to
5817 * sim-options.c (sim_print_help): Pacify GCC.
5819 * sim-n-core.h (sim_core_read_aligned_N,
5820 sim_core_write_aligned_N): Add un-conditional profile call.
5821 (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Add
5822 profile call when aligned read/write isn't used.
5824 * sim-base.h: Include sim-profile, sim-model after sim-core &
5825 sim-events allow sim-core to define useful values.
5827 * sim-profile.c (OPTION_PROFILE_CORE): Define.
5828 (profile_option_handler, profile_options): Add support for
5829 --profile-core option.
5830 (print_bar): Include when core profiling.
5831 (profile_print_core): New function, print core profile.
5833 * sim-config.c (print_sim_config): Print profile status.
5835 * sim-profile.h (PROFILE_NEXT_IDX, PROFILE_core,
5836 WITH_PROFILE_PC_P): Define.
5837 (PROFILE_CORE_COUNT): Count each core-map/size separatly.
5838 (PROFILE_COUNT_CORE): Define.
5840 Thu Sep 11 08:44:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
5842 * sim-watch.c (handle_watchpoint): Pass a char** index into the
5843 interrupt_names array as the data.
5844 (sim-watch.h): Document.
5846 Wed Sep 10 16:15:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
5848 * sim-options.c (sim_print_help): When the doc string is to long
5851 * sim-watch.c (sim_watchpoint_install): Use option.doc_name so
5852 that only the first few the watch options are listed. Generate
5853 meanginful usage messages.
5855 * sim-options.h (struct OPTION): Clarify use of doc_name field
5857 Wed Sep 10 13:23:24 1997 Andrew Cagney <cagney@b1.cygnus.com>
5859 * sim-options.c (OPTION_ARCHITECTURE_INFO): New option.
5860 (standard_option_handler): Handle --architecture-info.
5862 Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
5864 * sim-core.h (sim_cpu_core): [WITH_XOR_ENDIAN + 1], to avoid
5865 illegal zero-sized array.
5866 * sim-core.c (sim_core_xor_read_buffer): same.
5868 Tue Sep 9 11:20:35 1997 Doug Evans <dje@canuck.cygnus.com>
5870 * nltvals.def: Regenerate.
5872 Tue Sep 9 02:10:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
5874 * sim-fpu.c (DP_FRACHIGH2): Define LL using SIGNED64.
5876 Mon Sep 8 12:22:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
5878 * sim-bits.c (MASKED): Delete.
5879 (EXTRACTED): Delete.
5880 (LSEXTRACTED, MSEXTRACTED): New functions.
5882 * sim-n-bits.h (MASKEDn): Delete, define as MSMASKED or LSMASKED.
5883 (MSMASKEDn, LSMASKEDn): Add last argument.
5886 * sim-bits.h (EXTEND8, EXTEND16): Define.
5887 (EXTRACTED64): Define as 64 bit extract, not 32 bit.
5889 * sim-run.c (sim_engine_run): Use CPU_CIA macro.
5891 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use CPU_CIA to get at
5892 current instruction address.
5894 * sim-inline.h (*_ENGINE): Define.
5896 Fri Sep 5 08:39:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
5898 * sim-core.c (sim_core_attach): Fix checks of modulo/mask.
5900 * sim-watch.c (delete_watchpoint): Delete by ident and type.
5901 (watch_option_handler): Call delete_watchpoint with ident or type.
5902 (sim_watchpoint_install): Create interrupt specific watchpoint
5903 commands on the fly.
5904 (do_watchpoint_create): New function, create a watch point using
5905 type/int-nr info encoded in the option nr.
5906 (do_watchpoint_info): New function. List active watchpoints.
5908 * sim-watch.h: Change data structure to a list.
5910 * sim-memopt.c (memory_option_handler): Require explicit "all"
5911 before deleting all memory regions.
5913 * sim-utils.c (sim_do_commandf): New function, printf version of
5916 * sim-basics.h (asprintf, vasprintf): Hack, define for CYGWIN32.
5918 * sim-alu.h (ALU64_ADD): Use explicit MSEXTRACTED64, do not assume
5920 (SIGNED64, UNSIGNED64): Delete.
5921 (ALU64_ADD): Don't rely on bit endianness.
5922 (ALU64_BEGIN): Define.
5924 * sim-n-bits.h (MSEXTRACTEDn, LSEXTRACTED): New functions.
5925 (EXTRACTEDn): Delete, define as either LSEXTRACTED or MSEXTRACTED.
5927 * sim-types.h (SIGNED64, UNSIGNED64): New macros, attach relevant
5928 suffix - u64, LL - to 64 bit constants.
5930 Thu Sep 4 09:27:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
5932 * sim-config.c (sim_config): Add assert for SIM_MAGIC_NUMBER.
5934 * sim-utils.h (NZALLOC): Define - zalloc * N.
5936 * sim-hrw.c (sim_read, sim_write): New file. Provide generic
5937 implementation of read/write functions.
5939 * Make-common.in (sim-hrw.o): New target.
5941 * sim-base.h (STATE_MEMOPT_P): Delete, simulators _always_ add
5944 * sim-memopt.c (memory_option_handler): Implement memory-size
5945 command. Implement memory-alias command. Let memory-delete delete
5947 (add_memopt): New function. Add a memory region.
5948 (do_memopt_delete): New function. Delete a memory region.
5950 * sim-utils.c (sim_elapsed_time_get): Never return zero.
5952 * sim-core.c (sim_core_detach): New function.
5953 (sim_core_map_detach): New function. Perform the actual detach.
5954 (sim_core_init): Move initialization code from here.
5955 (sim_core_install): To here.
5956 (sim_core_uninstall): And here.
5958 * sim-module.c: Add memopt module.
5960 * sim-base.h (STATE_MEMOPT, STATE_MEMOPT_P): Add memopt to
5961 simulator base type.
5963 * Make-common.in (sim_main_headers): Add sim-memopt.h
5964 (sim-memopt.o): New target.
5966 * sim-core.c (sim_core_install): Add core_options to the option
5969 * sim-watch.c (watch_options): Make --delete-watch a synonym for
5972 * sim-config.h (WITH_MODULO_MEMORY): Define as 0. Update
5975 * sim-core.h (struct _sim_core_mapping): Change nr_bytes to type
5976 address_word, add mask member.
5978 * sim-core.h, sim-core.c (sim_core_attach): Make nr_bytes of type
5979 address_word, allow for 64bit targets in 32bit host. Add modulo
5981 (sim_core_map_attach): Ditto.
5982 (new_sim_core_mapping): Ditto.
5983 (sim_core_translate): Mask address when modulo memory.
5985 Wed Sep 3 17:32:54 1997 Doug Evans <dje@seba.cygnus.com>
5987 * sim-hload.c (sim_load): Add assert for SIM_MAGIC_NUMBER.
5989 * gdbinit.in: New file.
5990 * aclocal.m4 (SIM_AC_OUTPUT): Build .gdbinit.
5991 * Make-common.in (distclean): Delete .gdbinit.
5992 (.gdbinit): Add rule for.
5993 * configure: Regenerated to track ../common/aclocal.m4 changes.
5995 * Make-common.in (cgen-run.o): Add rule for.
5997 Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
5999 * sim-resume.c (sim_resume): Suspend/resume the simulator.
6001 * sim-events.c (sim_watch_valid): Compute total elapsed time from
6002 both resumed and previous elapsed time.
6003 (sim_events_init): Set initial_wallclock and current_wallclock to
6005 (sim_events_install): Install sim_events_suspend and
6007 (sim_events_watch_clock): Allow for suspended simulator when
6008 computing the time of the clock event.
6010 * sim-events.h (struct _sim_event): Add resume_wallclock, rename
6011 initial_wallclock to elapsed_wallclock, set both to zero.
6012 (sim_events_init, sim_events_uninstall): Delete prototypes.
6014 * sim-module.h (MODULE_SUSPEND_FN, MODULE_RESUME_FN): Define types.
6016 * sim-module.c(sim_module_resume, sim_module_suspend): New
6019 Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
6021 * sim-core.c (sim_core_map_attach): Clarify memory overlap error
6024 Tue Sep 2 14:57:06 1997 Doug Evans <dje@canuck.cygnus.com>
6026 * Makefile.in (TAGS): Add support for "/* TAGS: foo */" marker.
6027 * Make-common.in (TAGS): Likewise.
6028 * sim-n-bits.h: Add TAGS comments for all functions.
6029 * sim-n-core.h: Likewise.
6030 * sim-n-endian.h: Likewise.
6032 Mon Sep 1 10:50:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
6034 * sim-utils.c (sim_state_alloc): Set CPU backlinks, callback and
6037 * sim-base.h (sim_state_alloc): Add callback and kind arguments.
6039 * sim-base.h (INVALID_INSTRUCTION_ADDRESS): Add default
6042 Sat Aug 30 09:47:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
6044 * sim-fpu.c (DP_GARDMSB, ...): Make unsigned.
6045 (DP_FRACHIGH, DP_FRACHIGH2, ..): Use MSMASK to avoid LL.
6047 Fri Aug 29 13:37:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
6049 * sim-core.c (sim_core_map_attach): Cast attach enum to int.
6050 (sim_core_xor_read_buffer, sim_core_xor_write_buffer): Make
6051 nr_transfered and nr_this_transfer unsigned.
6053 * sim-events.c (sim_events_tickn): N is signed, as limited to
6056 * sim-n-endian.h (offset_N): Change size to unsigned.
6058 * callback.c (os_poll_quit): Add prototypes for kbhit and getkey.
6060 Fri Aug 29 10:10:53 1997 Andrew Cagney <cagney@b1.cygnus.com>
6062 * sim-utils.c (sim_copy_argv): Delete, replaced by dupargv.
6064 * sim-options.c (sim_parse_args): Use dupargv.
6066 Thu Aug 28 10:36:34 1997 Doug Evans <dje@canuck.cygnus.com>
6068 * sim-options.c (standard_option_handler): Use xstrdup, not strdup.
6070 Thu Aug 28 12:09:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
6072 * sim-base.h (STATE_ARCHITECTURE, STATE_TARGET): Add to simulator
6075 * sim-options.c (standard_options): Add --architecture=MACHINE and
6076 --target=TARGET options.
6077 (OPTION_ARCHITECTURE, OPTION_TARGET): Define.
6078 (standard_option_handler): Handle architecture and target options.
6081 * sim-utils.c (sim_analyze_program): Pass STATE_TARGET to
6083 (sim_analyze_program): Set prog_bfd architecture from
6084 STATE_ARCHITECTURE if known.
6086 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6088 * configure: Regenerated to track ../common/aclocal.m4 changes.
6091 Wed Aug 27 18:11:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
6093 * aclocal.m4 (enable-sim-warnings): Remove comment stating
6094 that option does not apply to certain files.
6096 Wed Aug 27 15:13:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
6098 * sim-bits.h (LSBIT8, LSBIT16, LSBIT32, LSBIT64, LSBIT, MSBIT8,
6099 MSBIT16, MSBIT32, MSBIT64, MSBIT): New macros - single bit as
6100 offset from MSB/LSB.
6102 * sim-endian.h (A1_8, A2_8, A4_8, A1_4, A2_4, A1_2): New macro,
6103 access address of sub word quantity of a hosts 16, 32, 64 bit word
6105 (V1_2, V1_4, V2_4, V1_8, V2_8, V4_8): Ditto for values.
6106 (U8_1, U8_2, U8_4, U4_1, U4_2, U2_1): Ditto for set of values.
6107 (V2_H1, V2_L1, V4_H2, V4_L2, V8_L4, V8_H4): Given N byte argument,
6108 return N*2 byte value with argument in Hi/Lo word. Renamed from
6109 V1_H2, V1_L2, V2_H4, V2_L4, V4_H8, V4_L8.
6111 * sim-alu.h (ALU32_HAD_OVERFLOW): Use 64 bit mask not 32bit.
6112 (ALU16_HAD_CARRY, ALU32_HAD_CARRY, ALU16_HAD_OVERFLOW): Use MSBIT
6113 so that bit offset is explicit.
6115 Wed Aug 27 11:55:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
6117 * sim-utils.c (sim_analyze_program): Add prog_name argument.
6118 Update STATE_PROG_BFD when needed with a dup'd copy of the
6121 * sim-config.c (sim_config): Delete ABFD argument, use
6122 STATE_PROG_BFD directly.
6124 Tue Aug 26 12:55:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
6126 * run.c (main): Pass the open ABFD to sim_create_inferior.
6128 * nrun.c (main): Determine prog_bfd. Pass to sim_create_inferior
6132 * sim-hload.c (sim_load): New file. Implement generic sim_load for
6133 hardware only simulator targets.
6135 * Make-common.in (sim-hload.o): Add rule.
6137 Wed Aug 27 09:51:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
6139 * sim-utils.c (sim_copy_argv): Rewrite to match malloc strategy
6140 used by copyargv and freeargv.
6142 * sim-options.c (sim_parse_args): Save a copy of PROG-ARGS in
6143 STATE_PROG_ARGV, not just a pointer.
6145 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6147 * configure: Regenerated to track ../common/aclocal.m4 changes.
6150 Mon Aug 25 12:11:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
6152 * aclocal.m4 (sim-endian): Add second argument to
6153 SIM_AC_OPTION_ENDIAN. First is hardwired endian, second is
6154 default endian when not hardwired.
6156 * sim-config.h (WITH_DEFAULT_TARGET_BYTE_ORDER): New macro, if all
6157 else failes value for target byte order.
6159 * sim-config.c (sim_config): Add abfd arguments. Set
6160 STATE_PROG_BFD accordingly. Determine prefered_target_byte_order
6162 (sim_config): Return SIM_RC, don't abort.
6165 * run.c (main): Update call to sim_open - add ABFD argument.
6166 * nrun.c (main): Add NULL ABFD argument.
6168 Thu Aug 14 12:48:57 1997 Doug Evans <dje@canuck.cygnus.com>
6170 * callback.c (os_poll_quit): Make static.
6171 Call sim_cb_eprintf, not p->eprintf.
6172 (sim_cb_printf, sim_cb_eprintf): New functions.
6173 * sim-utils.h (sim_cb_printf, sim_cb_eprintf): Declare.
6175 * sim-basics.h (zalloc,zfree,sim_add_commas,SIM_ELAPSED_TIME,
6176 sim_elapsed_time_get,sim_elapsed_time_since): Move decls to
6177 sim-utils.h. #include sim-utils.h.
6178 * sim-utils.h: Above decls moved here.
6179 (sim_analyze_program,sim_load_file): Use `struct _bfd', not `bfd'.
6181 * sim-watch.c (action_watchpoint): Fix thinkos.
6183 Thu Jul 24 08:48:05 1997 Stu Grossman (grossman@critters.cygnus.com)
6185 * sim-types.h: Fix defs of 64 bit data types for MSVC.
6187 Tue Jul 22 10:35:37 1997 Doug Evans <dje@canuck.cygnus.com>
6189 * sim-n-core.h (sim_core_write_unaligned_N): Add missing break
6190 to FORCED_ALIGNMENT case.
6192 Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
6194 * callback.c (target_to_host_open): Handle hosts with O_BINARY.
6196 Thu Jun 5 08:47:10 1997 Jeffrey A Law (law@cygnus.com)
6198 * Make-common.in (libsim.a): Fix typo.
6200 Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
6202 * nrun.c (main): Verify the structure returned before using it.
6204 Wed Jun 4 11:44:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
6206 * sim-config.h (WITH_ENGINE): Enable the sim-engine module by
6209 * sim-engine.c (sim_engine_install): New function. Install the
6210 engine init functions.
6211 (sim_engine_init): [Re]initialize the simulator engine.
6213 * sim-module.c: Add sim_engine to list of modules that always
6216 Tue Jun 3 04:52:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
6218 * sim-watch.c (schedule_watchpoint): Use sim_unschedule_watchpoint
6219 to remove the old watchpoint, not delete_watchpoint.
6220 (watch_option_handler): Action the correct watchpoint, not just
6223 Wed May 28 14:47:41 1997 Andrew Cagney <cagney@b1.cygnus.com>
6225 * sim-n-core.h (sim_core_write_aligned_N): For 8byte reads, output
6226 both low and high word.
6227 (sim_core_write_aligned_N): Ditto.
6229 * sim-trace.c (set_trace_options): Delete code explicitly setting
6232 * sim-options.c (sim_print_help): Call the list commands if not a
6233 standalone simulator.
6234 (sim_print_help): Advise that some options may not be applicable.
6236 * sim-trace.c (set_trace_options): Assume core present.
6238 * sim-events.c (sim_events_schedule_after_signal): Overflow signal
6239 buffer when full not almost full.
6241 Tue May 27 14:32:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
6243 * sim-events.c (sim_events_process): Don't blat the event queue
6244 when processing watchpoints.
6246 * sim-watch.h: Make arg unsigned long - stop sign extension.
6248 * sim-events.c (sim_watch_valid): rewrite so debugable.
6250 * sim-config.h (WITH_XOR_ENDIAN): Default to zero.
6252 * sim-watch.c (schedule_watchpoint): Add is_within option so that
6253 inequality test is possible.
6254 (handle_watchpoint): Re-pass is_within arg.
6255 (watch_option_handler): When `!' prefix to pc-watchpoint arg pass
6256 0 to schedule_watchpoint's is_within arg.
6257 (sim_watchpoint_init): Re-pass is_within arg.
6259 * sim-options.c (sim_print_help): Add is_command argument. Don't
6260 include -- prefix when called from the command line interpreter.
6262 * sim-watch.c (schedule_watchpoint): Pass true is_within argument.
6264 * sim-events.c (sim_events_watch_sim): Add is_within argument,
6265 zero indicates that the test should be reversed.
6266 (sim_events_watch_core): Ditto.
6267 (WATCH_CORE): Compare range against is_within.
6270 Tue May 27 12:48:03 1997 Andrew Cagney <cagney@b2.cygnus.com>
6272 * sim-events.c (WATCH_CORE): Pass NULL cpu argument to
6273 sim_core_read_buffer. Check nr-bytes transfered.
6275 * sim-core.h (sim_core_common): Define a new struct that contains
6276 the common data. to sd and cpu structures.
6277 * sim-core.c (sim_core_attach): Update.
6278 (sim_core_init): Update. Remember to copy initialized data to each
6280 (sim_core_find_mapping): Ditto.
6282 * sim-core.c (sim_core_read_buffer): Add cpu argument.
6283 (sim_core_write_buffer): Ditto.
6285 * sim-n-core.h (sim_core_read_unaligned_N): When mis-aligned
6286 transfer use xor version of read buffer.
6287 (sim_core_write_unaligned_N): Ditto for write.
6289 * sim-core.c (sim_core_xor_read_buffer): New function implement
6290 xor-endian data read breaking transfer up into xor-endian sized
6292 (sim_core_xor_write_buffer): Ditto for write.
6293 (reverse_n): Reverse order of arbitrary number of bytes in buffer
6294 - needed for xor-endian transfers.
6296 Fri May 23 14:24:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
6298 * sim-inline.h: Review description.
6300 * sim-core.h, sim-core.c: Reduce number of functions being inlined
6301 to just those involved in data transfers and configuration.
6303 * sim-xcat.h (XSTRING): New macro, map macro definition onto
6305 * sim-n-core.h (sim_core_read_aligned_N): Use.
6306 (sim_core_read_unaligned_N): Ditto.
6307 (sim_core_read_unaligned_N): Ditto..
6308 (sim_core_write_unaligned_N): Ditto.
6310 * sim-core.h: Add xor endian bitmap to main structure. *
6312 sim-n-core.h (sim_core_write_aligned_N): Add suport for xor
6314 (sim_core_read_aligned_N): Ditto.
6316 * sim-core.c (sim_core_set_xor_endian): New function.
6317 (sim_core_attach): Don't overwrite the per-cpu xor map when
6318 cloning the global core.
6320 Fri May 23 10:53:13 1997 Andrew Cagney <cagney@b1.cygnus.com>
6322 * sim-engine.h: Update below so that it is using an enumerated
6325 Thu May 22 09:12:16 1997 Gavin Koch <gavin@cygnus.com>
6327 * sim-engine.c (sim_engine_restart):
6328 * sim-resume.c (sim_resume): Change longjmp param/setjmp
6329 return value used for simulator restart from 0 to 2.
6331 Wed May 21 08:47:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
6333 * cgen-scache.c (scache_option_handler): Add is_command arg.
6335 * sim-model.c (model_option_handler): Add is_command argument.
6337 * sim-profile.c (profile_option_handler): Add is_command arg.
6339 * sim-events.c (sim_watch_valid): Use ub64, lb64 when 64bit value
6342 * sim-module.c (sim_module_add_init_fn): Call init fn in the same
6343 order that they are registered.
6345 * sim-options.h (OPTION_HANDLER): Add argument to differentiate
6346 between option and command line processing.
6348 * sim-options.c: Include stdlib.h, ctype.h.
6350 * Make-common.in (sim-watch.o): Add rule.
6351 (sim_main_headers): Assume sim-assert.h included.
6352 (sim-*.o): Simplify make rule.
6354 * sim-module.c: Add sim_watch_install to module list.
6356 Tue May 20 14:15:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
6358 * sim-base.h (STATE_LOADED_P): New predicate. Set once everything
6361 * sim-trace.c (trace_install): Check magic. Include sim-assert.h.
6362 * sim-events.c (sim_events_install): Ditto.
6363 * sim-core.c (sim_core_install): Ditto.
6364 * sim-model.c (model_install): Ditto.
6365 * sim-options.c (standard_install): Ditto.
6366 * sim-profile.c (profile_install): Ditto.
6367 * sim-reason.c (sim_stop_reason): Ditto.
6368 * sim-run.c (sim_engine_run): Ditto.
6369 * sim-utils.c (sim_analyze_program): Ditto.
6371 * sim-module.c (modules): Make profile_install and trace_install
6374 * sim-base.h (STATE_MEM_BASE): Define for flat memory systems.
6376 * sim-options.c (standard_option_handler): Set the byte order.
6378 * sim-events.c (sim_events_process): Allow multi tick processing.
6379 (sim_events_tickn): New function - multi cycle tick.
6381 * sim-events.h (sim_events_tickn, sim_events_timewarp): Add
6382 prototypes. Under development.
6383 (sim_events): Replace processing with nr_ticks_to_process.
6385 Tue May 20 09:39:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6387 * nrun.c (main): Pass callbacks to sim_open instead of using
6390 * run.c (main): Ditto.
6392 Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6394 * sim-events.c (sim_events_zalloc): Signal save memory allocator -
6395 stop tk interrupting malloc calls.
6396 (sim_events_zalloc): Converse.
6398 * Make-common.in (sim_main_headers): Add sim-events.h.
6400 * sim-events.c (sim_events_schedule_after_signal): Change return
6401 type to void - signal events are strictly internal.
6402 (sim_events_init): Allocate a finite buffer for signal events.
6403 (sim_events_schedule_after_signal): Enter signal events into the
6406 * sim-engine.c (sim_engine_halt): Check SIM_DESC magic.
6407 (sim_engine_restart): Ditto.
6408 (sim_engine_abort): Ditto.
6409 * sim-stop.c (sim_stop): Ditto.
6410 (control_c_simulation): Ditto.
6411 * sim-resume.c (sim_resume): Ditto.
6412 (has_stepped): Ditto.
6413 * sim-abort.c (sim_engine_abort): Ditto.
6415 * sim-basics.h (transfer_type): New type.
6417 * sim-core.c (sim_core_signal): New function. Print core signal
6419 (sim_core_find_mapping): Add transfer argument.
6421 * sim-n-core.h (sim_core_{write,write}_unaligned_N): Call
6422 SIM_CORE_SIGNAL if a recoverable abort.
6423 * sim-core.c (sim_core_find_mapping): Ditto.
6425 Fri May 16 15:13:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
6427 * sim-core.c (sim_core_find_mapping): Replace calls to
6428 sim_io_error to more resiliant sim_engine_abort.
6430 * sim-n-core.h (sim_core_read_unaligned_N): Ditto.
6431 (sim_core_write_unaligned_N): Ditto.
6433 Tue May 13 13:50:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
6435 * sim-module.c: Add sim_events_install to list.
6437 * sim-events.c (sim_events_install, sim_events_uninstall): Clonse
6439 (sim_events_init): Now returns SIG_RC.
6441 * sim-run.c: New file. Generic sim_engine_run.
6442 * sim-reason.c: New file. Generic sim_stop_reason.
6443 * sim-stop.c: New file. Generic sim_stop.
6444 * sim-resume.c: New file. Generic sim_resume.
6446 * Make-common.in (sim-engine.o): Add rule.
6447 (sim-run.o, sim-reason.o, sim-stop.o, sim-resume.o): Ditto.
6449 * sim-engine.h, sim-engine.c: New file. Provide generic
6450 implementation of sim_engine_halt, sim_engine_error. et.al.
6452 * sim-base.h (sim_state_base): Add member halt.
6453 (sim-engine.h): Include.
6455 * sim-events.h (sim_event_handler): Always pass SIM_DESC to event
6457 * sim-events.c (sim_events_poll): Update event handler.
6459 Tue May 13 09:57:49 1997 Andrew Cagney <cagney@b2.cygnus.com>
6461 * sim-events.h, sim-events.c (sim_events_watch_clock): New
6463 (sim_events_watch_sim): New function.
6464 (sim_events_watch_core): New function.
6465 (sim_watch_valid): New function.
6466 (sim_events_preprocess): New function.
6467 (sim_events_process): Process the watchpoints as well as the timer
6469 (sim_events_tick): Check WORK_PENDING instead of the hold queue.
6470 (sim_events_deschedule): Check all the queues when removing an
6472 (sim_events_init): Ditto for cleaning.
6474 Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6476 * sim-fpu.c (is_ufpu_number): Comment out - currently unused.
6478 Mon May 19 11:23:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
6480 * callback.c (os_open): Type of arg flags is int.
6482 Fri May 16 22:26:43 1997 Michael Meissner <meissner@cygnus.com>
6484 * sim-fpu.c (sim_fpu_is_{eq,ne,lt,le,gt,ge}): Compare Infinities
6485 just like normal numbers as per IEEE rules.
6487 Wed May 14 21:20:38 1997 Bob Manson <manson@charmed.cygnus.com>
6489 * callback.c (os_close): Mark the descriptor as being
6490 available if the close succeeded.
6491 (os_open): Pass 0644 as the mode of the file being created.
6493 Thu May 15 10:58:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
6495 * sim-fpu.c (pack_fpu, unpack_fpu): New functions - decode a
6498 * sim-inline.c (SIM_INLINE_C): Rename from _SIM_INLINE_C_.
6499 * sim-lnline.h: Update.
6501 * sim-fpu.h, sim-fpu.c (sim_fpu_[iu]{32,64}to): New int2fp
6502 conversion functions.
6503 (sim_fpu_to{32,64}[iu]): New fp2int functions.
6505 * sim-fpu.h, sim-fpu.c (sim_fpu_is_{lt,le,eq,ne,ge,gt}): New fp
6506 compare functions. Replacing.
6507 (sim_fpu_cmp): This. Delete.
6509 Mon May 12 14:49:05 1997 Andrew Cagney <cagney@b1.cygnus.com>
6511 * sim-core.c (sim_core_find_mapping): Call engine_error not
6512 sim_io_error when possible.
6514 Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b2.cygnus.com>
6516 * sim-endian.h (V1_H2): Add macro's to insert a word into a
6517 high/low double word.
6519 * sim-trace.h: Remove definition of attribute - defined in
6522 Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
6524 * sim-options.h (struct OPTION): Add doc_opt as the documenting
6525 name of the option - or family of options.
6527 * sim-options.c (sim_args_command): Match command `a-b c' with
6528 option `--a-b-c' from option table.
6530 Thu May 8 12:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
6532 * sim-options.c (sim_print_help): For optional arguments, wrap
6535 * sim-trace.c (set_trace_options): New function, handle optional
6536 argument and multiple assignment.
6537 (trace_option_handler): Update.
6539 * sim-trace.c (trace_option_handler): Trace branch and not fpu
6540 when branch tracing selected.
6542 Wed May 7 15:19:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
6544 * sim-trace.c (trace_one_insn): Make a va-args function.
6546 * sim-trace.c (trace_vprintf): New function, va-arg version of
6549 Tue May 6 16:38:16 1997 Doug Evans <dje@canuck.cygnus.com>
6551 * sim-trace.c (trace_uninstall): Don't close a file twice.
6552 * sim-profile.c (profile_uninstall): Likewise.
6554 Tue May 6 06:14:01 1997 Mike Meissner <meissner@cygnus.com>
6556 * sim-trace.c (toplevel): Include bfd.h.
6557 (trace_options): Note that --trace-linenum also turns on
6558 --trace-insn. Add --trace-{branch,semantics}.
6559 (trace_option_handler): If --trace-linenum, also turn on
6560 --trace-insn. Add --trace-branch support. If --trace-semantics,
6561 turn on ALU, FPU, branch, and memory tracing.
6562 (trace_one_insn): New function to trace an instruction. Support
6564 (OPTION_TRACE_*): Use an enum, rather than lots of defines.
6566 * sim-trace.h (TRACE_{SEMANTICS,BRANCH}_IDX): Add new macros.
6567 (MAX_TRACE_VALUES): Use 32, not 12 by default.
6568 (TRACE_branch): Add new mask.
6569 (TRACE_*_P): Define all possible trace_p macros.
6570 (trace_one_insn): Declare function.
6572 Mon May 5 14:08:34 1997 Mike Meissner <meissner@cygnus.com>
6574 * sim-trace.h (__attribute__): Define as nothing if not GNU C or
6575 GNU C doesn't support __attributes__.
6576 ({trace,debug}_printf): Add attribute's so -Wformat can check the
6579 Mon May 5 11:16:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
6581 * sim-config.h (FORCED_ALIGNMENT): New alignment option -
6582 addresses are masked forcing them to be correctly aligned.
6583 (WITH_ALIGNMENT): Make NONSTRICT_ALIGNMENT the default.
6584 * sim-config.c (config_alignment_to_a): Update.
6586 * sim-core.h (sim_cpu_core): New data type contains cpu specific
6588 * sim-base.h (CPU_CORE): Add cpu specific core data to cpu base
6590 * sim-core.c (sim_core_attach): Add CPU argument. Ready for
6591 processor specific core maps.
6592 (sim_core_map_attach): Copy the core map data to each of the
6593 processor specific core data structures.
6594 * sim-core.c (sim_core_find_mapping): Update.
6596 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Rename.
6597 (sim_core_write_aligned_N, sim_core_write_aligned_N): New names.
6598 (sim_core_write_unaligned_N, sim_core_write_unaligned_N): New
6599 alternatives that handle unaligned addresses.
6600 (sim_core_{read,write}_{,un}aligned_N): Drop SIM_DESC arg, replace
6602 * cgen-utils.c (sim_disassemble_insn): Update.
6604 Mon May 5 13:19:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
6606 * sim-trace.h (TRACE_FPU_IDX): Add Floating-point specific
6609 * sim-fpu.h, sim-fpu.c: New files - prototype for generic target
6612 * sim-inline.h, sim-inline.c: Add support for SIM_FPU.
6614 Fri May 2 17:59:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
6616 * sim-core.c (sim_core_map_to_str): New function ascii equivalent
6619 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Use in trace
6622 Fri May 2 17:28:02 1997 Andrew Cagney <cagney@b2.cygnus.com>
6624 * cgen-trace.c: Prepend additional trace_printf argument.
6626 * cgen-utils.c (sim_disassemble_insn): Add additional core
6629 Fri May 2 11:40:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
6631 * nrun.c (main): Catch/report errorenous simulator states.
6633 * sim-module.c: #include "libiberty.h" so that xmalloc is defined.
6634 * sim-trace.c: #include string.h/strings.h so that memset is
6636 * sim-utils.c: Ditto.
6637 * sim-profile.c: Ditto. And stdlib.h.
6638 (print_bar): Only define when used by instruction or memory profiler.
6640 * sim-options.c (standard_option_handler): Make ul more local.
6642 * sim-load.c (sim_load_file): Make the name constant.
6643 (sim_load_file): Passify gcc.
6645 * sim-utils.h: New file, pre-declare utilites in corresponding .c
6647 * sim-utils.c, sim-load.c: Include sim-utils.h.
6649 * sim-base.h (sim_cpu): Pre define here so available to all.
6651 * sim-core.h (DECLARE_SIM_CORE_WRITE_N, DECLARE_SIM_CORE_READ_N):
6652 Restore the sim_cpu and instruction_address arguments so that full
6653 information is available to the abort function.
6654 * sim-core.c (sim_core_find_mapping, sim_core_write_buffer): Ditto.
6655 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
6657 * sim-trace.h, sim-trace.c (trace_option_handler): Add interim
6658 tracing support for sim-events and sim-core.
6659 (trace_option_handler): Convert #if to if where possible so always
6660 compiled/checked by C compiler.
6661 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
6663 * sim-base.h: Adjust comment documenting how to define the cpu
6665 (sim_state_base): Add sim_core and sim_events to simulator base
6668 * sim-trace.h, sim-trace.c (trace_printf): Add SIM_DESC argument.
6669 * sim-core.c (sim_core_init, sim_core_attach,
6670 sim_core_find_mapping): Update.
6671 * sim-events.c (ETRACE, sim_events_init, sim_events_time,
6672 update_time_from_event, insert_sim_event,
6673 sim_events_schedule_after_signal, sim_events_deschedule,
6674 sim_events_tick): Ditto.
6676 * sim-basics.h (sim-module.h, sim-trace.h, sim-profile.h,
6677 sim-model.h): Move #includes from here.
6678 * sim-base.h: To here.
6679 (sim-core.h, sim-events.h, sim-io.h): Include also
6681 Wed Apr 30 15:37:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
6683 * callback.c (default_callback): Missing initialisers.
6685 Thu May 1 10:40:47 1997 Doug Evans <dje@canuck.cygnus.com>
6687 * sim-utils.c (sim_add_commas): New function.
6688 * sim-basics.h (sim_add_commas): Add prototype.
6689 * cgen-scache.c (scache_print_profile): Print commas in numbers.
6690 * sim-profile.c (COMMAS): New macro.
6691 (print_*): Use it to print commas in numbers.
6693 * configure: Regenerated.
6695 * cgen-sim.h (sim_signal_type): Add SIM_SIGINT.
6696 (cgen_state): New member run_fast_p.
6697 (cgen_init): Add prototype.
6698 (sim_disassemble_insn): New arg `cpu'.
6699 * cgen-trace.c (trace_insn): Update call to sim_disassemble_insn.
6700 * cgen-utils.c (cgen_init): New function.
6701 (sim_disassemble_insn): New arg `cpu'. Rewrite fetching of insn.
6702 * genmloop.sh: Call engine_halt if loop exits.
6704 * Makefile.in (sim-options_h): Define.
6705 (sim-{module,options,trace,profile,utils}.o): Clean up dependencies.
6706 (sim-model.o): Add new rule.
6707 (cgen-{scache,trace,utils}.o): Add new rules.
6708 * aclocal.m4 (SIM_AC_OPTION_{SCACHE,DEFAULT_MODEL}): Add.
6709 * cgen-scache.c (scache_print_profile): Change `sd' arg to `cpu'.
6710 Indent output by 2 spaces.
6711 * cgen-scache.h (scache_print_profile): Update.
6712 * cgen-trace.c (trace_insn_fini): Indent output by 2 spaces.
6713 Use trace_printf, not fprintf.
6714 (trace_extract): Use trace_printf, not cgen_trace_printf.
6715 * genmloop.sh (!FAST case): Increment `insn_count'.
6716 * sim-base.h (sim_state_base): Only include scache_size if WITH_SCACHE.
6717 (sim_cpu_base): Rename member `sd' to `state' to be consistent with
6718 access macro's name.
6719 * sim-core.c (sim_core_init): Use EXTERN_SIM_CORE to define it.
6720 Change return type to SIM_RC.
6721 (sim_core_{install,uninstall}): New functions.
6722 * sim-core.h (sim_core_{install,uninstall}): Declare.
6723 (sim_core_init): Use EXTERN_SIM_CORE to define it.
6724 Change return type to SIM_RC.
6725 * sim-model.h (models,machs,model_install): Declare.
6726 * sim-module.c (modules): Add scache_install, model_install.
6727 (sim_post_argv_init): Set cpu->state backlinks.
6728 * sim-options.c (standard_options): Delete --simcache-size,--max-insns.
6729 (standard_option_handler): Likewise.
6730 * sim-profile.c (PROFILE_{HISTOGRAM,LABEL}_WIDTH): Move to
6733 (profile_options): Delete --profile-simcache.
6734 (profile_option_handler): Likewise.
6735 (profile_print_insn): Change `sd' arg to `cpu'. Indent output 2
6737 (profile_print_{memory,model}): Likewise.
6738 (profile_print_simcache): Delete.
6739 (profile_print_speed): New function.
6740 (profile_print): Rewrite.
6741 * sim-profile.h (PROFILE_scache): Renamed from PROFILE_simcache.
6742 (WITH_PROFILE_SCACHE_P): Renamed from WITH_PROFILE_SIMCACHE_P.
6743 (PROFILE_DATA): Delete members simcache_{hits,misses}.
6744 (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): Delete.
6745 (PROFILE_{CALLBACK,CPU_CALLBACK}): New types.
6746 (profile_print): Update prototype.
6748 Wed Apr 30 11:34:14 1997 Doug Evans <dje@canuck.cygnus.com>
6750 * cgen-scache.[ch], cgen-sim.h: New files.
6751 * cgen-trace.[ch], cgen-types.h, cgen-utils.c, genmloop.sh: New files.
6752 * sim-model.c: New file.
6754 * Make-common.in (clean targets): Undo patch of Apr. 22.
6756 Fri Apr 25 15:28:32 1997 Mike Meissner <meissner@cygnus.com>
6758 * sim-n-bits.h (signed): If we have a standard compiler, undef
6759 signed, so that signedN is defined correctly.
6761 Thu Apr 24 00:00:07 1997 Doug Evans <dje@canuck.cygnus.com>
6763 * sim-module.h, sim-model.h, sim-profile.h: New files.
6764 * sim-module.c, sim-profile.c: New files.
6765 * Make-common.in (SIM_PROFILE): Define
6766 (CONFIG_CFLAGS): Add $(SIM_PROFILE).
6767 (sim_main_headers): Add sim-module.h, sim-model.h, sim-profile.h.
6768 (sim_module.o,sim-profile.o): Add rules for.
6769 * aclocal.m4 (--enable-sim-trace): Allow symbolic arguments.
6770 (--enable-sim-profile): Add.
6771 * configure: Regenerated.
6772 * sim-base.h (sim_state_base): New members init_list, uninstall_list,
6773 model. Move trace and profile support to sim-{trace,profile}.h.
6774 New members trace_data, profile_data.
6775 * sim-basics.h: #include sim-module.h, sim-model.h, sim-profile.h.
6776 * sim-config.h: Provide default definition of WITH_PROFILE.
6777 (WITH_TRACE): Change default to -1.
6778 (MAX_NR_PROCESSORS): Always define.
6779 * sim-options.c: Move trace and profile support to
6780 sim-{trace,profile}.h.
6781 (sim_pre_argv_init): Moved to sim-model.c.
6782 (standard_install): New function.
6783 * sim-options.h (sim_pre_argv_init): Move decl to sim-model.c.
6784 (standard_install): Declare.
6785 * sim-trace.c: Tracing option handling moved here from sim-options.c.
6786 (trace_install, trace_uninstall): New functions.
6787 (trace_printf): Update reference to TRACE_FILE.
6788 * sim-trace.h (TRACE_FOO_IDX): Moved here from sim-base.h.
6789 (TRACE_foo): Bit masks for symbolic arguments to --enable-sim-trace.
6790 (WITH_TRACE_FOO_P): Define.
6791 (trace_install): Declare.
6792 (TRACE_DATA): New struct.
6794 Wed Apr 23 17:23:15 1997 Doug Evans <dje@canuck.cygnus.com>
6796 * run.c: Undo last exec_bfd patch.
6797 (main): Only pass -E ifdef SIM_HAVE_BIENDIAN.
6799 Wed Apr 23 17:54:27 1997 Mike Meissner <meissner@cygnus.com>
6801 * run.c (exec_bfd): Add back in.
6802 (main): Set exec_bfd.
6804 Tue Apr 22 14:43:46 1997 Doug Evans <dje@canuck.cygnus.com>
6806 * sim-load.c (sim_load_file): #include <stdio.h> for NULL.
6808 Wed Apr 23 02:55:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
6810 * sim-events.c (insert_sim_event): Call sim_io_error instead of
6811 less well defined engine_error.
6812 * sim-core.c: Ditto.
6814 Tue Apr 22 08:48:16 1997 Stu Grossman (grossman@critters.cygnus.com)
6816 * Make-common.in: Change clean targets to use :: so that other
6817 Makefiles can have their own clean targets.
6818 * sim-load.c (xprintf eprintf): Use ANSI_PROTOTYPES instead of
6819 __STDC__ to control use of stdarg vs. varargs syntax. Some
6820 systems can't use __STDC__, but require stdarg.
6822 Fri Apr 18 11:14:43 1997 Doug Evans <dje@canuck.cygnus.com>
6824 * sim-options.c (standard_options): Add --endian.
6825 (standard_option_handler): Likewise.
6827 * nrun.c: #include <signal.h>.
6828 (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
6829 handler that calls sim_stop ().
6831 Fri Apr 18 13:11:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
6833 * run.c (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
6834 handler that calls sim_stop (). Simulators may still be
6835 establishing their own handler.
6837 * sim-events.c (sim_events_poll): Rename from
6838 sim_events_at_large_int. Poll IO.
6840 * sim-io.c (sim_io_poll_quit): New function - pass on a polling
6843 * callback.c (os_poll_quit): New function poll for quit signal
6845 (default_callback): Include magic number.
6847 Thu Apr 17 02:25:11 1997 Doug Evans <dje@canuck.cygnus.com>
6849 * aclocal.m4: Check for headers time.h, sys/time.h, sys/resource.h.
6850 Check for functions getrusage, time.
6851 * sim-basics.h (SIM_ELAPSED_TIME): New typedef.
6852 (sim_elapsed_time_get, sim_elapsed_time_since): Add prototypes.
6853 * sim-utils.c: #include time.h, sys/time.h, sys/resource.h if able.
6854 (sim_elapsed_time_get, sim_elapsed_time_since): New functions.
6856 * sim-utils.c (sim_copy_argv, sim_analyze_program): New functions.
6858 * sim-options.c, sim-options.h: New files.
6859 * sim-config.h (WITH_DEBUG): Provide default value of zero.
6860 * Make-common.in (nrun.o): Add rules for.
6863 * run.c (main): Check return value of sim_open.
6865 * Make-common.in (sim-options.o, sim-load.o, sim-trace.o): Add rules.
6866 (sim_main_headers): Add sim-trace.h.
6867 * run.c (exec_bfd, target_byte_order): Delete.
6868 (main): Pass -E <endian> to sim_open. Delete code to load sections,
6869 call sim_load instead. Check return code of sim_create_inferior.
6870 * sim-base.h (CURRENT_STATE): Define.
6871 (sim_state_base): Make typedef. New members options, prog_argv,
6872 prog_bfd, text_{section,start,end}, start_addr, simcache_size,
6873 mem_size, memory [+ corresponding access macros].
6874 (sim_cpu_base): New typedef.
6875 * sim-trace.h: New file.
6876 * sim-trace.c: New file.
6877 * sim-basics.h: #include it.
6878 * sim-load.c: New file.
6880 Tue Apr 15 15:10:13 1997 Ian Lance Taylor <ian@cygnus.com>
6882 * Make-common.in (INSTALL): Set to @INSTALL@.
6883 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
6884 (install-common): Depend upon installdirs. Use
6885 $(program_transform_name) directly, rather than using
6887 (installdirs): New target.
6888 * Makefile.in (INSTALL): Set to @INSTALL@.
6889 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
6890 (install-man): Depend upon installdirs. Use
6891 $(program_transform_name) directly, rather than using
6893 (installdirs): New target.
6895 Tue Apr 15 15:08:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
6897 * sim-assert.h (SIM_ASSERT, ASSERT): Allow these macros to
6900 Wed Apr 9 16:06:44 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6902 * sim-basics.h: Only bring in config.h and tconfig.h if
6905 Mon Apr 7 11:39:45 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6907 * sim-config.h (WITH_TARGET_WORD_MSB): New Macro. Define the bit
6908 numbering convention of the target.
6909 * sim-config.c (print_sim_config): Print WITH_TARGET_WORD_BITSIZE
6910 and WITH_TARGET_WORD_MSB.
6911 (sim_config): When possible, check for consistency with bitsize
6914 * sim-bits.h: Allow MSB to be other than zero.
6915 * sim-bits.c: Ditto.
6916 * sim-n-bits.h: Ditto.
6918 * sim-bits.h (MSMASK*): New macros - converce to LSMASK*.
6919 * sim-n-bits.h (MSMASKEDn): Ditto.
6921 Mon Apr 14 16:29:21 1997 Ian Lance Taylor <ian@cygnus.com>
6923 * Makefile.in (INSTALL): Change install.sh to install-sh.
6925 Mon Apr 7 10:46:38 1997 Doug Evans <dje@canuck.cygnus.com>
6927 * sim-base.h (sim_state_base): Move `magic' to end of struct.
6929 Mon Apr 7 15:53:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6931 * run.c (main): Check that a program to run was specified.
6933 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6935 * aclocal.m4 (AC_TYPE_SIGNAL): Add check.
6937 * configure: Regenerated to track ../common/aclocal.m4 changes.
6940 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
6942 * sim-endian.h: Move host {LITTLE,BIG}_ENDIAN support from here,
6943 * sim-config.h: To here.
6945 * Make-common.in (SIM_EXTRA_DEPS): New config var.
6946 (sim_main_headers): Define.
6947 (sim-*.o): Depend on $(SIM_EXTRA_DEPS).
6948 (BUILT_SRC_FROM_COMMON): Move here from ../d30v/Makefile.in.
6950 (sim-utils.o): Add rule for.
6951 * sim-utils.o: New file.
6952 * sim-basics.h: #include sim-base.h.
6953 (zalloc): Make argument unsigned long.
6954 * sim-base.h: New file.
6955 * sim-inline.h (SIM_IO support): Delete.
6956 * sim-io.h: Delete inline support.
6957 * sim-io.c: Likewise. sim-state.h renamed to sim-main.h.
6958 * sim-config.c: sim-state.h renamed to sim-main.h.
6959 * sim-core.c: Likewise.
6960 * sim-events.c: Likewise.
6962 * run.c (main): Pass SIM_OPEN_STANDALONE to sim_open.
6964 * aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h.
6965 (sim-debug): Allow arguments. Define WITH_DEBUG in addition to
6967 * configure: Regenerated to track ../common/aclocal.m4 changes.
6969 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6971 * configure: Regenerated to track ../common/aclocal.m4 changes.
6973 Wed Apr 2 11:08:11 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6975 * sim-config.h (WITH_ALIGNMENT, WITH_FLOATING_POINT,
6976 WITH_XOR_ENDIAN, WITH_SMP, WITH_RESERVED_BITS): Assume that these
6977 are defined by the configure.
6979 * aclocal.m4 (sim-stdio): Add option stdio from ../ppc configure.
6981 * aclocal.m4 (floating-point, xor-endian, alignment, smp,
6982 reserved-bits): Always define.
6984 * sim-config.h, sim-config.c (sim_config): New function - and new
6985 file - co-ordinate the setting/checking of the common simulator
6986 configuration options.
6988 * Make-common.in (sim-config.o): Add rule.
6990 Fri Mar 28 15:32:00 1997 Mike Meissner <meissner@cygnus.com>
6992 * callback.c (os_{,e}vprintf_filtered): Change stdarg type to
6993 va_list from void *, since va_list might not be a pointer type.
6995 Mon Mar 24 15:27:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6997 * sim-n-endian.h (offset_N): Correct assertion - word and sub word
6999 (offset_N): Correct computation of LE offset.
7001 * sim-io.c (sim_io_error): Include a new line when reporting
7004 * sim-assert.h (SIM_FILTER_PATH): Out by one when locating last
7007 Thu Mar 20 22:31:06 1997 Jeffrey A Law (law@cygnus.com)
7009 * run.c: Include alloca-conf.h.
7011 * callback.c (os_evprintf_filtered): Fix typo.
7013 Fri Mar 21 13:36:20 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7015 * run.c (string.h, strings.h, stdlib.h): Include.
7017 * sim-events.c (sim_events_tick): Recent cleanup failed to return
7018 0 when nothing pending.
7020 * run.c (sim_size, sim_trace): Plicate GCC - these two functions
7021 will soon be going away.
7022 (getopt): Plicate GCC.
7024 * sim-endian.c (sim-io.h): Plicate GCC.
7025 * sim-bits.c (sim-io.h): Ditto.
7026 * sim-n-bits.h (ROTn): Ditto.
7028 * sim-io.c (sim_io_error): Correct check for NULL.
7030 * sim-assert.h (SIM_FILTER_PATH): Separate out the code filtering
7032 * sim-events.c: Use SIM_FILTER_PATH to filter out the filename
7035 Wed Mar 19 01:12:06 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7037 * aclocal.m4 (SIM_AC_OPTION_*: Move so that they are outside of
7038 SIM_AC_COMMON - SIM_AC_COMMON was gobling arguments.
7040 Tue Mar 18 20:48:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7042 * sim-alu.h: Include sim-xcat.h.
7044 Tue Mar 18 13:58:18 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7046 * Make-common.in (sim-bits.c, sim-core.c, sim-endian.c,
7047 sim-events.c, sim-inline.c, sim-io.c): Define rules for building
7050 * sim-events.c (sim_events_at_large_int): New function. Just
7051 schedules an event every large-int ticks.
7052 (sim_events_init): Call.
7053 (sim_events_tick, sim_events_process): Move async handing to
7054 sim_events_process. Move timer decrement so that it occures after
7055 events have been processed.
7057 * sim-basics.h (struct _engine): Remove declaration.
7059 * sim-events.h, sim-events.c: Rename type to sim_events. Prefix
7060 everything with same. Rename global struct to SIM_DESC.
7061 * sim-core.h, sim-core.c, sim-n-core.c: Ditto for sim_core.
7062 * sim-io.h, sim-io.c: Ditto.
7064 * sim-assert.h: New file. Optional assertion checking macros.
7065 * sim-io.c (sim_io_error): Make just this function tolerant to
7068 * sim-xcat.h: New file. Define concatenate macros.
7069 * sim-basics.h (XCONCAT*): Move to sim-xcat.h.
7070 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Explicitly include
7074 Tue Mar 18 12:44:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7076 * sim-bits.h (LSMASK): New macro. Create mask of LS bits.
7078 Mon Mar 17 18:10:05 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7080 * sim-inline.h: Add definitions for sim-types.
7081 (ALL_BY_MODULE): New macro, encapsulate full inlining by the
7084 Mon Mar 17 15:38:27 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7086 * sim-events.h: Remove defunct reference to callback struct.
7088 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7090 * configure: Re-generate.
7092 Mon Mar 17 15:04:47 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7094 * Make-common.in (CSEARCH): Do not include the gdb directory in
7097 Mon Mar 17 13:16:26 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7099 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
7100 SIM_WARNING): Drop, requiring the simulator specific Makefile.in
7101 to explicitly incorporate these.
7103 * aclocal.m4 (--enable-sim-alignment); New option. Strongly
7104 specify the alignment restrictions of the target architecture -
7105 without this option all alignment restrictions are accomodated.
7106 (--enable-sim-assert): New option. Conditionally compile in
7107 assertion statements.
7108 (--enable-sim-float): New option. Strongly specify the target's
7109 floating point support.
7110 (--enable-sim-hardware): New option. Specify the hardware devices
7111 included in the simulation.
7112 (--enable-sim-packages): New option. Specify the hardware
7113 packages included in the simulation.
7114 (--enable-sim-regparm): New option. Specify that parameters be
7115 passed in registers instead of on the stack.
7116 (--enable-sim-reserved-bits): New option. Specify that reserved
7117 bits within an instruction are are correctly set.
7118 (--enable-sim-smp): New option. Specify the level of SMP support
7119 to be included in the simulator.
7120 (--enable-sim-stdcall): New option. Specify an alternative
7121 function call convention.
7122 (--enable-sim-xor-endian): New option. Configure xor-endian
7123 support used by some targets to implement bi-endian support.
7125 Fri Mar 14 19:51:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7127 * aclocal.m4 (--enable-sim-hostendian): New option. Allow the
7128 host endianness to be overridden.
7129 (--enable-sim-endian): Allow the target platform's byte order
7131 (--enable-sim-inline): Control the inlining of common components.
7132 (--enable-sim-bswap): For compatibility, also define WITH_BSWAP.
7133 (--enable-sim-warnings): Enable additional GCC compiler checks.
7134 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
7137 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Rename from
7138 sim-*-n.h so that the names are uniq on dos machines
7139 * sim-core.c, sim-bits.c, sim-endian.c: Update.
7141 Thu Mar 13 12:32:42 1997 Doug Evans <dje@canuck.cygnus.com>
7143 * run.c: #include "libiberty.h".
7144 (main): New locals sd,no_args,sim_argv.
7145 Run buildargv on -a option. Pass argv to sim_open, argv[0]
7146 is program name. Update call to sim_set_callbacks.
7147 Record result of sim_open, pass to other sim_foo routines.
7149 Thu Mar 13 10:24:05 1997 Michael Meissner <meissner@cygnus.com>
7151 * callback.c (os_printf_filtered): Do not call exit(1) or print a
7154 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7156 * callback.c: Add os_flush_stdout and vprintf_filtered callbacks.
7157 Route stdout through buffered IO.
7159 * callback.c: Add os_flush_stderr, os_write_stderr,
7160 os_evprintf_filtered functions to route error output through
7163 * sim-io.h, sim-io.c (sim_io_flush_stderr, sim_io_flush_stdout):
7164 Correct return type - should be void.
7166 Fri Mar 7 20:14:37 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7168 * sim-basics.h: Clean up. Many macro's moved to sim-inline.h.
7170 * sim-config.h: Ditto. For some options - eg WITH_DEVICES - do
7171 not provide a default value as undefined indicates disable code.
7173 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7175 * sim-core.h, sim-core-n.h, sim-core.c: Borrow code from ppc
7177 * sim-events.h, sim-events.c: Ditto.
7178 * sim-io.h, sim-io.c: Ditto.
7180 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7182 * sim-alu.h (ALU_SUB_CA, ALU*_SUB_CA): New alu operation.
7184 * sim-bits.h, sim-bits-n.h, sim-bits.c (LSMASKED*): New macro's
7185 extract the tail or least signifiant bits from an integer of the
7188 * sim-bits.h, sim-bits.c: Clean up conditionally compiled #if
7189 WITH_TARGET_BITSIZE so that the compilation will fail when an
7190 unsupported bitsize value is defined.
7192 (INSERTED*): Convert to functions.
7193 (EXTRACTED*): Ditto.
7195 (SIGN_EXTEND, SEXT): Change to more terse name.
7197 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7199 * sim-inline.h: Allow explicit control over which .c files will be
7200 included by their header.
7202 * sim-inline.h: Allow explicit control over which .c files use the
7203 alternative - REGPARM - parameter passing mechanism.
7205 * sim-inline.h, sim-inline.c: Don't attempt to include any of
7206 icache.c, idecode.c, semantics.c or support.c. Those names are
7207 not generally applicable.
7209 Thu Feb 27 10:17:23 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7211 * sim-bits.c, sim-bits-n.h (new): Split sim-bits.c into two parts
7212 in a fashion similar to sim-endian-n.
7214 * sim-endian.h: (H_word, L_word, AL_*, VL_*): Extend to include
7215 both value and address macro's.
7217 Tue Feb 25 18:51:57 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7219 * sim-alu.h (ALU16_BEGIN, ALU16_SET, ...): Fill in.
7221 * sim-endian.h (L_word, H_word): Replace MS2W_4, LS2W_4 with more
7222 generic L_word, H_word macro's.
7224 Thu Feb 20 18:36:55 1997 Andrew Cagney <cagney@critters.cygnus.com>
7226 * sim-basics.h: Borrow code from ppc directory.
7227 * sim-bits.c: Ditto.
7228 * sim-bits.h: Ditto.
7229 * sim-config.h: Ditto.
7230 * sim-endian-n.h: Ditto.
7231 * sim-endian.c: Ditto.
7232 * sim-endian.h: Ditto.
7233 * sim-inline.c: Ditto.
7234 * sim-inline.h: Ditto.
7235 * sim-types.h: Ditto.
7237 Wed Feb 19 12:40:50 1997 Andrew Cagney <cagney@critters.cygnus.com>
7239 * sim-alu.h (ALU_SET16, ALU_SET32, ALU_SET64, etc): Make available
7240 all the ALU size alternatives and then auto-configure a default.
7242 * sim-alu.h: Copy ppc/idecode_expression.h.
7244 Mon Feb 17 10:44:18 1997 Andrew Cagney <cagney@critters.cygnus.com>
7246 * bits.h, bits.c (SIGN_EXTEND32, SIGN_EXTEND64): New functions,
7247 sign extend a bit within a value.
7249 * sim-endian.h, sim-endian-n.h (offset_N): New functions - return
7250 a pointer into the middle of a host word.
7251 * sim-endian.h (MS2W_4, LS2W_4): Use this function.
7253 Tue Feb 11 13:46:49 1997 Michael Meissner <meissner@tiktok.cygnus.com>
7255 * callback.c: If HAVE_CONFIG_H is defined, include config.h from
7256 autoconf. If HAVE_UNISTD_H is defined, include unistd.h to get
7257 appropriate definitions of read, write, etc. Add prototype for
7260 Tue Feb 4 13:24:44 1997 Doug Evans <dje@canuck.cygnus.com>
7262 * Makefile.in (libcommon.a): Delete.
7263 (callback.o,targ-map.o): Delete, moved to Make-common.in.
7264 (gentmap,targ-vals.h,targ-map.c): Likewise.
7265 (run-autoconf): Delete.
7266 * aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile.
7267 (common makefile fragment): Moved back into ...
7268 * Make-common.in: Resurrect.
7269 * configure.in (AC_LINK_FILES): Delete, unnecessary now.
7270 * configure: Regenerated.
7272 Fri Jan 31 07:16:49 1997 Doug Evans <dje@canuck.cygnus.com>
7274 * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
7275 (SIM_AC_OUTPUT): To here.
7277 Fri Jan 24 10:37:17 1997 Stu Grossman (grossman@critters.cygnus.com)
7279 * aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s in
7280 comments and single quotes. Fixes a problem found on hpux.
7282 Thu Jan 23 13:35:03 1997 Stu Grossman (grossman@critters.cygnus.com)
7284 * aclocal.m4: Remove Make-common.in from dependencies.
7285 * (distclean): Remove targ-vals.def.
7287 * aclocal.m4 (SIM_AC_COMMON): Move contents of Make-common.in
7288 into here. Makes insertion into makefiles easier. Also, change
7289 the way that callback.o, gentmap, targ-vals.h, targ-map.c,
7290 targ-map.o, and run are built. They are now built in the
7291 individual simulator directories, taking sources from ../common as
7292 necessary. This replaces the merging of libcommon.a into
7293 linsim.a, which was problematic for the WinGDB build process.
7294 * run.c: Include config.h from . instead of ../common.
7295 * Make-common.in: Remove. It's no longer necessary.
7297 Mon Dec 16 15:02:33 1996 Ian Lance Taylor <ian@cygnus.com>
7299 * Make-common.in (ALL_CLAGS): Put CFLAGS at the end.
7300 (.c.o): Put $(ALL_CFLAGS) before the file being compiled.
7302 Wed Dec 11 11:30:58 1996 Jim Wilson <wilson@cygnus.com>
7304 * run.c (main): Set target_byte_order before call to sim_open.
7306 Sun Dec 8 18:22:06 1996 Doug Evans <dje@canuck.cygnus.com>
7308 * callback.c: #include <stdlib.h>
7309 (os_error): New function.
7310 (default_callback): Add os_error.
7312 Mon Nov 25 19:44:35 1996 Doug Evans <dje@canuck.cygnus.com>
7314 * Make-common.in (Makefile): Set CONFIG_HEADERS="".
7315 * aclocal.m4: Mark the fact that --enable-sim-bswap isn't host
7317 (SIM_AC_OUTPUT): Don't build Makefile if CONFIG_FILES="".
7319 Wed Nov 20 01:11:04 1996 Doug Evans <dje@canuck.cygnus.com>
7321 * run.c: #include ../common/config.h, tconfig.h.
7322 (myname): New static global.
7323 (main): Recognize new options -a, -c. Also recognize -h if h8/300.
7324 Only process -c ifdef SIM_HAVE_SIMCACHE.
7325 Only process -p/-s ifdef SIM_HAVE_PROFILE.
7326 Parse program name from argv[0] and use in error messages.
7327 Pass sim_args to sim_open. Pass prog_args to sim_create_inferior.
7328 Add support for incomplete h8/300 termination indicators.
7329 (usage): Make more verbose.
7330 * aclocal.m4,config.in,tconfig.in,configure.in,configure: New files.
7331 * Makefile.in,Make-common.in,callback.c: New files.
7332 * nltvals.def,gentmap.c,gentvals.sh: New files.
7334 Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
7336 * run.c: Include stdarg.h if __STDC__.
7338 Tue Oct 15 11:16:31 1996 Jeffrey A Law (law@cygnus.com)
7340 * run.c (main): Don't print out anything if the signal
7341 number is zero (ie no signal).
7343 Tue Oct 15 11:20:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7345 * run.c (main): Print out if the program raised a signal.
7347 Wed Sep 18 09:52:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7349 * run.c (exec_bfd): Rename from sim_bfd, to use the gdb name.
7352 Tue Sep 17 11:04:50 1996 James G. Smith <jsmith@cygnus.co.uk>
7354 * run.c (main): Explicitly cast malloc() parameter.
7356 Thu Sep 12 11:27:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7358 * run.c (sim_bfd): New global to hold the bfd pointer for the
7360 (main): Initialize sim_bfd.
7362 Fri Dec 15 16:27:49 1995 Ian Lance Taylor <ian@cygnus.com>
7364 * run.c (main): Use new bfd_big_endian macro.
7366 Wed Nov 8 15:49:49 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
7368 * run.c (main): Removed SH specific comments, so source is
7369 generic. Also updated to only load relevant sections. Moved
7370 sim_open() to after callback attach (to match GDB).
7372 * run.1: Removed SH specific comments.
7374 Sat Oct 21 12:31:01 1995 Jim Wilson <wilson@chestnut.cygnus.com>
7376 * run.c (main): Always return sigrc at end.
7378 Tue Oct 10 12:03:13 1995 J.T. Conklin <jtc@rtl.cygnus.com>
7380 * run.c (main): Print error diagnostic and exit if bfd_openr() or
7381 bfd_check_format() fails.
7383 Thu Sep 28 15:40:36 1995 steve chamberlain <sac@slash.cygnus.com>
7385 * run.c, run.1: From sh directory.