X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=sim%2Fcommon%2FChangeLog;h=6610c7ba9b2536cba2a35c717ae42c920a5a54c8;hb=78aa740b768e1e62f8bf9d216901245c452a31d9;hp=05cdda8086f542da5d5d1222cfc7235dfe13fbef;hpb=dea10706e9159ba6e94eab4c25010f3006d033a0;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 05cdda8086..6610c7ba9b 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,448 @@ +2019-12-19 Tom Tromey + + PR build/24572: + * Makefile.in (install-strip): New target. + +2019-12-01 Pavel I. Kryukov + + * sim-utils.c: Prevent buffer overflow. + +2019-09-23 Dimitar Dimitrov + + * gennltvals.sh: Add PRU libgloss target. + * nltvals.def: Regenerate from the latest libgloss sources. + +2019-06-13 Stafford Horne + + * cgen-accfp.c (unorderedsf, unordereddf): New functions. + (cgen_init_accurate_fpu): Wire up unorderedsf and unordereddf. + * cgen-fpu.h (cgen_fp_ops): Define fields unorderedsf and unordereddf. + +2019-06-13 Stafford Horne + + * cgen-accfp.c (floatdidf, fixdfdi): New functions. + (cgen_init_accurate_fpu): Add floatdidf and fixdfdi. + +2019-04-13 Andrew Burgess + + * cgen-ops.h (SUBWORDXFSI): Compare HOST_BYTE_ORDER not + CURRENT_TARGET_BYTE_ORDER. + (SUBWORDTFSI): Likewise. + (JOINSIDF): Likewise. + (JOINSIXF): Likewise. + (JOINSITF): Likewise. + +2019-03-28 Andrew Burgess + + * sim-base.h: Add 'sim-assert.h' include. + * sim-basics.h: Add 'libiberty.h' include. + +2019-03-28 Stafford Horne + + * sim-options.c: Include "config.h". + Include . + * sim-watch.c: Include "config.h". + Include . + * hw-device.c: Include . + * hw-events.c: Include . + * hw-handles.c: Include . + * sim-fpu.c: Include . + +2019-03-28 Stafford Horne + + * Make-common.in (sim-arange_h): Remove sim-arange.c + * sim-arange.c: Remove SIM_ARANGE_C. + Add ifdef for _SIM_ARANGE_C_. + Include "sim-arange.h". + Remove include for unused "sim-assert.h". + Remove DEFINE_INLINE_P. Remove DEFINE_NON_INLINE_P. + (sim_addr_range_add): Declare as INLINE_SIM_ARANGE. + (sim_addr_range_delete): Declare as INLINE_SIM_ARANGE. + (sim_addr_range_hit_p): Change from SIM_ARANGE_INLINE to + INLINE_SIM_ARANGE. + * sim-arange.h (sim_addr_range_add): Declare as + INLINE_SIM_ARANGE. + (sim_addr_range_delete): Declare as INLINE_SIM_ARANGE. + (sim_addr_range_hit_p) Declare as INLINE_SIM_ARANGE. + Remove definition of SIM_ARANGE_INLINE. + Remove [HAVE_INLINE]. + Wrap include "sim-arange.c" in H_REVEALS_MODULE_P. + * sim-base.h: Include "sim-arange.h" + * sim-basics.h: Remove include of "sim-arange.h" + * sim-inline.c: Include "sim-arange.c" + * sim-inline.h: Define INLINE_SIM_ARANGE. + Define SIM_ARANGE_INLINE. Define EXTERN_SIM_ARANGE_P. + Define STATIC_INLINE_SIM_ARANGE. Define STATIC_SIM_ARANGE. + +2019-01-26 Tom Tromey + + * Make-common.in (version.c): Use sim's create-version.sh. + * create-version.sh: New file. + +2019-01-16 Pavel I. Kryukov + + * sim-arange.c (DEFINE_INLINE_P, DEFINE_NON_INLINE_P): Remove. + +2019-01-15 Simon Marchi + + * sim-arange.h (SIM_ARANGE_INLINE): Change EXTERN to extern. + +2018-12-18 Andrew Burgess + + * sim-syscall.c (sim_syscall_multi): Don't update sc->errcode at + this point, it should have already been set in cb_syscall. + +2018-10-05 Stafford Horne + + * cgen-ops.h (ADDCFDI): New function, add carry flag DI variant. + (ADDOFDI): New function, add overflow flag DI variant. + (SUBCFDI): New function, subtract carry flag DI variant. + (SUBOFDI): New function, subtract overflow flag DI variant. + +2018-09-28 Компан, Вячеслав Олегович + + * sim-core.h (sim_cpu_core): Rename cpu_core.xor to + cpu_core.byte_xor. + * sim-core.c (sim_core_set_xor): Likewise. + (sim_core_xor_read_buffer): Likewise. + (sim_core_xor_write_buffer): Likewise. + +2017-12-12 Peter Gavin + Stafford Horne + + * cgen-ops.h (MUL2OFSI): New function, 2's complement overflow + flag. + (MUL1OFSI): New function, 1's complement overflow flag. + +2017-12-12 Peter Gavin + Stafford Horne + + * cgen-accfp.c (remsf, remdf): New function. + (cgen_init_accurate_fpu): Add remsf and remdf. + * cgen-fpu.h (cgen_fp_ops): Add remsf, remdf, remxf and remtf. + * sim-fpu.c (sim_fpu_rem): New function. + * sim-fpu.h (sim_fpu_status_invalid_irx): New enum. + (sim_fpu_rem): New function. + (sim_fpu_print_status): Add case for sim_fpu_status_invalid_irx. + +2017-09-06 John Baldwin + + * acinclude.m4 (SIM_AC_COMMON): Honor existing CC_FOR_BUILD in + environment. + +2017-05-24 Yao Qi + + * sim-trace.c (trace_disasm): Caller update. + +2016-08-15 Mike Frysinger + + * sim-base.h (sim_state_base): Add prog_syms_count. + (STATE_PROG_SYMS_COUNT): Define. + * sim-trace.c (trace_uninstall): Free STATE_PROG_SYMS memory. + (trace_load_symbols): New function. + (trace_sym_value): Likewise. + (trace_prefix): Change STATE_CPU(cpu) to sd. Replace symbol + loading logic with a call to trace_load_symbols. + * sim-trace.h (trace_load_symbols, trace_sym_value): New + prototypes. + +2016-08-13 Mike Frysinger + + * cgen-types.h (mode_names): Mark const. + * cgen-utils.c (mode_names): Likewise. + +2016-08-13 Mike Frysinger + + * cgen-defs.h (struct cgen_state): Delete argv and envp. + (STATE_ARGV, STATE_ENVP): Delete. + +2016-02-04 Nick Clifton + + * cgen-scache.c (scache_option_handler): Prevent possible + undefined behaviour computing the size of the scache by using + unsigned integers instead of signed integers. + +2016-01-17 Joel Brobecker + + * sim-fpu.c: Minor comment fixes throughout. + +2016-01-17 Joel Brobecker + + * sim-fpu.c (print_bits): Minor reformatting (no code change). + (sim_fpu_map): Likewise. + +2016-01-11 Mike Frysinger + + * sim-config.c (print_sim_config): Drop extra whitespace before = + in output for byte order, stdio, and msb settings. + +2016-01-10 Mike Frysinger + + * acinclude.m4 (SIM_AC_COMMON): Call AC_MSG_CHECKING, + AC_DEFINE_UNQUOTED, and AC_MSG_RESULT for sim-debug. Likewise for + sim-stdio, sim-trace, and sim-profile. + (SIM_AC_OPTION_ENVIRONMENT): Likewise. + (SIM_AC_OPTION_ASSERT): Likewise. + (SIM_AC_OPTION_SMP): Likewise. + (SIM_AC_OPTION_XOR_ENDIAN): Likewise. + * configure: Regenerate. + * Make-common.in (SIM_DEBUG, SIM_TRACE, SIM_PROFILE, SIM_ASSERT, + SIM_ENVIRONMENT, SIM_SMP, SIM_XOR_ENDIAN): Delete. + (CONFIG_CFLAGS): Delete $(SIM_DEBUG), $(SIM_TRACE), $(SIM_PROFILE), + $(SIM_ASSERT), $(SIM_ENVIRONMENT), $(SIM_SMP), and $(SIM_XOR_ENDIAN). + * sim-config.c (sim_config): Change DEFAULT_ENVIRONMENT to + WITH_ENVIRONMENT & USER_ENVIRONMENT. + * sim-config.h (SIM_HAVE_ENVIRONMENT, WITH_ENVIRONMENT, + DEFAULT_ENVIRONMENT, WITH_DEBUG, WITH_TRACE, WITH_PROFILE, + WITH_ASSERT, WITH_STDIO): Delete. + * sim-options.c (standard_options): Delete SIM_HAVE_ENVIRONMENT + check. + +2016-01-10 Mike Frysinger + + * acinclude.m4 (SIM_AC_OPTION_PACKAGES): Delete. + * configure: Regenerate. + * Make-common.in (SIM_PACKAGES): Delete. + (CONFIG_CFLAGS): Delete $(SIM_PACKAGES). + +2016-01-10 Mike Frysinger + + * acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_ENVIRONMENT. + +2016-01-10 Mike Frysinger + + * acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_ASSERT. + +2016-01-10 Mike Frysinger + + * acinclude.m4 (SIM_AC_COMMON): Delete sim_link_files and + sim_link_links. + (SIM_AC_OUTPUT): Delete AC_LINK_FILES call. + * gentmap.c: Change targ-vals.def include to nltvals.def. + * Make-common.in (gentmap): Change targ-vals.def to + $(srccom)/nltvals.def. + (distclean): Delete rm -f targ-vals.def. + * Makefile.in: Update comment. + +2016-01-10 Mike Frysinger + + * acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_INLINE. + (SIM_AC_OPTION_INLINE): Rename default_sim_inline to sim_inline + and always set -DDEFAULT_INLINE. Delete AC_ARG_ENABLE 4th arg. + +2016-01-10 Mike Frysinger + + * acinclude.m4: Delete --enable-sim-regparm and sim_regparm, + and --enable-sim-stdcall and sim_stdcall. + * configure: Regenerate. + * Make-common.in (SIM_REGPARM, SIM_STDCALL): Delete. + (CONFIG_CFLAGS): Delete $(SIM_REGPARM) and $(SIM_STDCALL). + * sim-config.h (WITH_REGPARM, WITH_STDCALL): Delete. + * sim-inline.h (REGPARM_MODULE, REGPARM): Delete. + (REGPARM_*): Delete all regparm defines and their use. + +2016-01-10 Mike Frysinger + + * acinclude.m4: Delete --enable-sim-cflags and sim_cflags. + * Make-common.in (SIM_CFLAGS): Delete. + (CONFIG_CFLAGS): Delete $(SIM_CFLAGS). + * Makefile.in: Likewise. + +2016-01-09 Mike Frysinger + + * configure.ac: Change SIM_AC_COMMON to AC_PROG_CC. Drop 2nd arg + to AC_OUTPUT. Move AC_CHECK_HEADERS, AC_CHECK_FUNCS, + AC_CHECK_MEMBERS, and -AC_CHECK_TYPES ... + * acinclude.m4 (SIM_AC_COMMON): ... here. + * aclocal.m4, configure: Regenerate. + * config.in: Delete file. + * callback.c: Change cconfig.h include to config.h. + * dv-cfi.c, nrun.c, sim-basics.h, sim-load.c, sim-memopt.c, + syscall.c: Likewise. + * Make-common.in (sim-basics_h): Delete ../common/cconfig.h. + * Makefile.in (distclean): Delete rm -f cconfig.h config.h stamp-h. + +2016-01-06 Mike Frysinger + + * sim-config.c (print_sim_config): Delete sim_io_printf of version, + date, and time information. + +2016-01-06 Mike Frysinger + + * sim-options.c (sim_parse_args): Mark argv array const. + * sim-options.h (sim_parse_args): Likewise. + +2016-01-05 Mike Frysinger + + * sim-trace.c: Include dis-asm.h. + (OPTION_TRACE_DISASM): New enum. + (trace_options): Add trace-disasm flag. + (trace_option_handler): Handle OPTION_TRACE_DISASM. + (trace_idx_to_str): Handle TRACE_DISASM_IDX. + (dis_read, dis_printf, trace_disasm): New functions. + * sim-trace.h: Include dis-asm.h. + (TRACE_INSN_IDX): Clarify comment. + (TRACE_DISASM_IDX): New enum. + (TRACE_disasm): New define. + (WITH_TRACE_DISASM_P): New define. + (struct _trace_data): Add dis_bfd, disassembler, and dis_info. + (STRACE_DISASM_P): New define. + (TRACE_DISASM_P): Likewise. + (TRACE_DISASM_P): Likewise. + (TRACE_DISASM): Likewise. + (trace_disasm): New function. + +2016-01-04 Mike Frysinger + + * sim-utils.c (sim_state_free): Change to STATE_MAGIC. + +2016-01-04 Mike Frysinger + + * cgen-scache.c (MAX): Delete. + (scache_init): Change MAX to max. + * cgen-trace.c (min): Delete. + * cgen-utils.c (min): Delete. + * sim-basics.h [!min] (min): Define. + [!max] (max): Define. + +2016-01-04 Mike Frysinger + + * sim-options.c (sim_parse_args): Tweak getopt error message. + +2016-01-04 Mike Frysinger + + * acinclude.m4 (sim-bswap): Delete. + * configure: Regenerate. + * Make-common.in (SIM_BSWAP): Delete. + (CONFIG_CFLAGS): Delete $(SIM_BSWAP). + * sim-config.h (htonl, ntohl): Delete. + (WITH_BSWAP): Delete. + +2016-01-03 Mike Frysinger + + * sim-options.c (sim_parse_args): Declare local save_opterr. Save + opterr state to it before calling getopt_long and restore afterwards. + Set opterr to 0. When optc is '?', call sim_io_eprintf. + +2016-01-03 Mike Frysinger + + * hw-device.h (device): Delete commented typedef. + * sim-basics.h (device): Delete typedef. + +2016-01-03 Mike Frysinger + + * sim-options.c (sim_parse_args): Replace for loop with a call + to countargv. + +2016-01-03 Mike Frysinger + + * nrun.c (myname): Mark const. + (main): Mark name const. Replace myname parsing loop with a + call to lbasename. + +2016-01-03 Mike Frysinger + + (CONFIG_CFLAGS): Delte $(SIM_HOSTENDIAN). + * acinclude.m4 (SIM_AC_COMMON): Call AC_C_BIGENDIAN. + (SIM_AC_OPTION_HOSTENDIAN): Delete. + * config.in, configure: Regenerate. + * Make-common.in (SIM_HOSTENDIAN): Delete. + * sim-config.c (current_host_byte_order): Delete. + (sim_config): Delete current_host_byte_order assignments and + CURRENT_HOST_BYTE_ORDER checks. + (print_sim_config): Change WITH_HOST_BYTE_ORDER to HOST_BYTE_ORDER. + * sim-config.h (WITH_HOST_BYTE_ORDER): Change to ... + (HOST_BYTE_ORDER): ... this. Define based on WORDS_BIGENDIAN. + (current_host_byte_order): Delete. + (CURRENT_HOST_BYTE_ORDER): Likewise. + * sim-endian.c (WITH_HOST_BYTE_ORDER): Rename to ... + (HOST_BYTE_ORDER): ... this. + (sim_endian_split_16): Change WITH_HOST_BYTE_ORDER to + HOST_BYTE_ORDER. + (sim_endian_join_16): Likewise. + * sim-n-core.h (sim_core_read_misaligned_N): Change + CURRENT_HOST_BYTE_ORDER to HOST_BYTE_ORDER. + (sim_core_write_misaligned_N): Likewise. + * sim-n-endian.h (endian_t2h_N): Likewise. + (endian_h2t_N, endian_h2be_N, endian_be2h_N, endian_h2le_N, + endian_le2h_N): Likewise. + (offset_N): Change WITH_HOST_BYTE_ORDER to HOST_BYTE_ORDER. + +2016-01-02 Mike Frysinger + + * acinclude.m4 (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to + BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to + BFD_ENDIAN_UNKNOWN. + (SIM_AC_OPTION_HOSTENDIAN): Likewise. + * cgen-ops.h (SUBWORDXFSI): Change BIG_ENDIAN to BFD_ENDIAN_BIG. + (SUBWORDTFSI, JOINSIDF, JOINSIXF, JOINSITF): Likewise. + * nrun.c (main): Likewise. + * sim-config.c (current_host_byte_order): Change type to enum + bfd_endian. Initialize to BFD_ENDIAN_UNKNOWN. + (current_target_byte_order): Likewise. + (config_byte_order_to_a): Likewise. Change BIG_ENDIAN to + BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to + BFD_ENDIAN_UNKNOWN. + (sim_config): Change prefered_target_byte_order type to enum + bfd_endian. Change BIG_ENDIAN to BFD_ENDIAN_BIG, LITTLE_ENDIAN + to BFD_ENDIAN_LITTLE, and 0 to BFD_ENDIAN_UNKNOWN. + * sim-config.h: Change BIG_ENDIAN to BFD_ENDIAN_BIG, LITTLE_ENDIAN + to BFD_ENDIAN_LITTLE, and 0 to BFD_ENDIAN_UNKNOWN. + Delete all the various arch/OS endian includes & defines. + (current_host_byte_order): Change type to enum bfd_endian. + (current_target_byte_order): Likewise. + (CURRENT_HOST_BYTE_ORDER): Compare to BFD_ENDIAN_UNKNOWN, not 0. + (CURRENT_TARGET_BYTE_ORDER): Likewise. + * sim-endian.c: Change LITTLE_ENDIAN to BFD_ENDIAN_LITTLE. + * sim-events.c (sim_events_watch_sim): Change BIG_ENDIAN to + BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to + BFD_ENDIAN_UNKNOWN. + (sim_events_watch_core): Likewise. + * sim-events.h: Likewise. + * sim-n-core.h (sim_core_read_misaligned_N): Change BIG_ENDIAN to + BFD_ENDIAN_BIG. + (sim_core_write_misaligned_N): Likewise. + * sim-n-endian.h (endian_h2be_N): Likewise. + (endian_be2h_N): Likewise. + (endian_h2le_N): Change LITTLE_ENDIAN to BFD_ENDIAN_LITTLE. + (offset_N): Likewise. + * sim-options.c (standard_option_handler): Change LITTLE_ENDIAN to + BFD_ENDIAN_LITTLE and BIG_ENDIAN to BFD_ENDIAN_BIG. + +2016-01-02 Mike Frysinger + + * cgen-defs.h (current_state): Delete. + * sim-base.h (CURRENT_STATE_REG, CURRENT_STATE): Delete. + * sim-utils.c (current_state): Delete. + +2015-12-30 Mike Frysinger + + * sim-module.c (sim_pre_argv_init): Change STATE_MY_NAME assignment + to use lbasename. + +2015-12-27 Mike Frysinger + + * Makefile.in (SIM_NEW_COMMON_OBJS): Add sim-hload.o. + +2015-12-26 Mike Frysinger + + * acinclude.m4 (AH_BOTTOM): Delete tconfig.h appending. + * config.in, configure: Regenerate. + * Make-common.in (sim-basics_h): Delete tconfig.h. + (distclean): Likewise. + * sim-core.c (device_io_read_buffer, device_io_write_buffer): Delete. + (new_sim_core_mapping): Delete WITH_HW and device *device. + (sim_core_map_attach, sim_core_attach): Likewise. + (sim_core_read_buffer): Delete WITH_DEVICES logic. + (sim_core_write_buffer): Likewise. + * sim-core.h (struct _sim_core_mapping): Delete WITH_HW and device + *device. + (sim_core_attach): Likewise. + (device_io_read_buffer, device_io_write_buffer): Delete. + * sim-n-core.h (sim_core_read_aligned_N): Delete WITH_DEVICES logic. + (sim_core_write_aligned_N): Likewise. + * tconfig.h: Delete file. + 2015-12-26 Mike Frysinger * sim-core.c (sim_core_read_buffer): Move cia decl to top of func.