+
+ * sim-core.c (WITH_HW): Add device casts to device_error,
+ device_io_read_buffer, and device_io_write_buffer.
+
+
+ * dv-sockser.c (dv_sockser_write_buffer): New function.
+ (dv_sockser_write): Rewrite to use dv_sockser_write_buffer.
+ * dv-sockser.h (dv_sockser_write_buffer): New prototype.
+
+
+ * callback.c (os_lseek): Call wrap on lseek result.
+
+
+ * dv-sockser.c (dv_sockser_init): Check error return from socket()
+ call by its equality to -1 not by it being negative.
+ (connected_p): Likewise for accept() call.
+
+
+ * sim-fpu.c (sim_fpu_zero, sim_fpu_qnan): Add 0 initializers.
+
+
+ * profile.c (sim_profile_print_bar): Add cpu argument.
+
+
+ * sim-profile.h (sim_profile_print_bar): Use sim_cpu, not SIM_CPU.
+
+
+ * sim-profile.c (profile_vprintf, profile_printf): New functions.
+ (profile_print_pc): Convert sim_io_printf to profile_printf.
+ (profile_print_insn): Likewise.
+ (profile_print_memory): Likewise.
+ (profile_print_core): Likewise.
+ (profile_print_model): Likewise.
+ (sim_profile_print_bar): Likewise.
+ (profile_print_speed): Likewise.
+ (profile_print_addr_ranges): Likewise.
+ (profile_info): Likewise.
+ * sim-profile.h (sim_profile_print_bar): Add cpu argument.
+
+
+ * sim-model.c (OPTION_MODEL): Convert to enum.
+ (OPTION_MODEL_INFO): New enum.
+ (model_options): Add model-info/info-model entries.
+ (model_option_handler): Handle OPTION_MODEL_INFO.
+
+
+ * dv-sockser.h (DV_SOCKSER_DISCONNECTED): Define.
+ * dv-sockser.c (dv_sockser_status): Set DV_SOCKSER_DISCONNECTED
+ initially.
+
+
+ * sim-hrw.c (sim_write): Add const to buf arg.
+ * sim-utils.h (sim_write_fn): Likewise.
+
+
+ * sim-profile.h (PROFILE_BRANCH_TAKEN, PROFILE_BRANCH_UNTAKEN): New
+ defines.
+
+
+ * dv-core.c (dv_core_descriptor): Add NULL initializer.
+ * dv-glue.c (hw_glue_ports, dv_glue_descriptor): Likewise.
+ * dv-pal.c (hw_pal_ports, dv_pal_descriptor): Likewise.
+ * dv-sockser.c (sockser_options): Likewise.
+ * hw-ports.c (empty_hw_ports): Likewise.
+ * sim-hw.c (hw_options): Likewise.
+ * sim-model.c (model_options): Likewise.
+ * sim-options.c (standard_options): Likewise.
+ * sim-profile.c (profile_options): Likewise.
+ * sim-trace.c (trace_options): Likewise.
+ * sim-watch.c (watchpoint_options): Likewise.
+
+
+ * sim-options.c (dup_arg_p): Add "const" to the "arg" argument,
+ the local "arg_table" variable, and the xmalloc cast.
+
+
+ * sim-fpu.c (sim_fpu_print_status): Add const markings to local
+ "prefix" var.
+ (sim_fpu_print_func): Add const markings to format buffer.
+
+
+ * sim-fpu.c (sim_fpu_print_status): Remove duplicate break statements.
+
+
+ * sim-trace.c (save_data): Add const markings to "buf" argument.
+
+
+ * sim-options.c (standard_option_handler): Add const markings to
+ local "type" var.
+
+
+ * hw-ports.h: Fix spelling typos.
+
+
+ * configure.ac: Check for socklen_t.
+ * configure, config.in: Regenerated.
+ * dv-sockser.c (connected_p): Change addrlen type to socklen_t.
+
+
+ * sim-utils.c (sim_io_eprintf_cpu): Use %s with printf string.
+ * sim-hw.c (hw_option_handler): Likewise.
+
+
+ * sim-watch.c (watchpoint_type_to_str): Add const to return.
+ (interrupt_nr_to_str): Likewise.
+ (default_interrupt_names): Add const to pointer type.
+ (sim_watchpoint_install): Add const to prefix.
+ * sim-watch.h (struct _sim_watchpoints): Add const to interrupt_names.
+
+
+ * sim-core.c (sim_core_read_buffer): Change raddr to address_word.
+ (sim_core_write_buffer): Likewise.
+
+
+ * sim-trace.c (trace_option_handler): Move cpu_nr decl behind
+ the SIM_HAVE_ADDR_RANGE define.
+
+
+ * sim-core.h (device_error): Add const to message, and add printf
+ format attribute.
+
+
+ * sim-profile.c (profile_print_addr_ranges): Wrap with the
+ SIM_HAVE_ADDR_RANGE define.
+
+
+ * dv-glue.c (hw_glue_ports): Swap static and const.
+
+
+ * nrun.c (usage): Use void in definition.
+ * sim-options.c (dup_arg_p): Convert old-style function definition.
+ (sim_parse_args): Likewise.
+ (sim_print_help): Likewise.
+ * sim-trace.c (set_trace_option_mask): Likewise.
+ (set_trace_option): Likewise.
+ * sim-utils.c (sim_analyze_program): Likewise.
+ (sim_elapsed_time_get): Likewise.
+ (sim_elapsed_time_since): Likewise.
+
+
+ * sim/common/sim-options.c (enum): Remove SIM_HAVE_BIENDIAN ifdef.
+ (standard_options): Likewise.
+ (standard_option_handler): Likewise.
+
+
+ * hw-ports.c (TRACE): Delete.
+ * hw-properties.c (TRACE): Delete.
+ (hw_find_ihandle_runtime_property): Change TRACE to HW_TRACE.
+ (hw_find_integer_property): Likewise.
+ (hw_find_integer_array_property): Likewise.
+ (hw_add_duplicate_property): Likewise.
+
+
+ * hw-properties.h (hw_add_boolean_property): Rename "bool" to
+ "boolean".
+
+
+ * sim-model.c: Include sim-model.h
+
+
+ * sim-base.h: Declare sim_state.cpu as a pointer in the comment. Drop
+ & from the STATE_CPU() examples.
+
+
+ * cgen-accfp.c (fextsfdf): New arg how. All callers updated.
+ (ftruncdfsf, floatsisf, flostsidf, ufloatsisf, fixsfsi, fixdfsi,
+ ufixsfsi): Ditto.
+ * cgen-fpu.h (CGEN_FPCONV_KIND): New enum.
+ (struct cgen_fp_ops): Update signatures of floating point conversion
+ operations.
+
+ * Make-common.in (CGEN_SIM_DEPS): Define.
+ (CGEN_INCLUDE_DEPS): Use it.
+ (CGEN_MAIN_CPU_DEPS): Simplify.
+
+
+ * cgen-ops.h (SUBWORDXFSI): Fix word ordering.
+ (SUBWORDTFSI, JOINSIDI): Ditto.
+
+
+ * cgen-types.h (SETDI): Delete, unused.
+
+
+ * cgen-engine.h: Remove duplicated comment.
+
+
+ * cgen-engine.h (EXTRACT_MSB0_SINT): Renamed from EXTRACT_MSB0_INT.
+ (EXTRACT_LSB0_SINT): Renamed from EXTRACT_LSB0_INT.
+
+
+ * cgen-engine.h (EXTRACT_MSB0_LGSINT, EXTRACT_MSB0_LGUINT): Define.
+ (EXTRACT_LSB0_LGSINT, EXTRACT_LSB0_LGUINT): Define.
+ (EXTRACT_FN, SEMANTIC_FN): Use CGEN_INSN_WORD in prototype
+ instead of CGEN_INSN_INT.
+
+ * cgen-trace.h (trace_extract): Add cast to fix warning.
+
+
+ * cgen-mem.h (DECLARE_GETT): Don't inline.
+ (DECLARE_SETT): Ditto.
+
+
+ * sim-inline.h: Fix spelling error.
+
+
+ * Make-common.in: Add datarootdir.
+
+
+ * aclocal.m4 (SIM_CHECK_MEMBER, SIM_CHECK_MEMBERS)
+ (SIM_CHECK_MEMBERS_1): Remove.
+ * configure.ac: Replace SIM_CHECK_MEMBERS call with equivalent
+ AC_CHECK_MEMBERS one.
+ * configure: Regenerate.
+
+ * aclocal.m4 (SIM_CHECK_MEMBER): Use AU_ALIAS to define, not defn.
+ * configure: Regenerate.
+
+
+ * config.in: Regenerate.
+ * configure: Likewise.
+
+ * aclocal.m4 (SIM_CHECK_MEMBER): Replace definition with
+ definition of AC_CHECK_MEMBER.
+
+ * aclocal.m4: m4_include toplevel config/override.m4.
+ * configure: Regenerate.
+
+
+ * Makefile.in (datarootdir): New variable.
+
+
+ * Make-common.in (CPU_DIR): Define.
+
+
+ * Make-common.in (CGEN_CPU_EXTR,CGEN_CPU_READ): Pass canonical
+ identifiers for file types rather than encoding internal
+ implementation details of cgen.sh.
+ (CGEN_CPU_WRITE,CGEN_CPU_SEM,CGEN_CPU_SEMSW): Ditto.
+ * cgen.sh: Add support for parallel makes.
+ Rewrite cpu/decode handling to avoid generating "extrafiles" twice.
+
+
+ * gennltvals.sh: Add lm32 target.
+ * nltvals.def: Add lm32 syscall definitions.
+
+
+ Speed up simulator startup:
+ * sim-utils.c (zalloc): Use xcalloc.
+
+
+ * cgen-ops.h (ADDQI, SUBQI, MULQI, NEGQI, ABSQI, ADDHI, SUBHI)
+ (MULHI, NEGHI, ABSHI, ADDSI, SUBSI, MULSI, NEGSI, ABSSI, ADDDI)
+ (SUBDI, MULDI, NEGDI, ABSDI): Cast arguments to the unsigned type
+ variant; UQI, UHI, USI, UDI, and cast the result to the signed
+ type, QI, HI, SI, DI.
+
+ * callback.c (os_error): Mark as being a noreturn function.
+ * sim-io.h (sim_io_error): Similar for sim_io_error.
+
+
+ * aclocal.m4: Fix underquoting of function names.
+
+
+ * Make-common.in (run$(EXEEXT)): Add LDFLAGS.
+
+
+ * common.m4: Add test for libz and zlib.h.
+ * configure: Regenerate to track ../common/common.m4 changes.
+ * config.in: Ditto.
+
+
+ * aclocal.m4: Include ../../config/acx.m4.
+ * common.m4: Use ACX_PKGVERSION and ACX_BUGURL.
+ * configure, config.in: Regenerate.
+ * Make-common.in (LIB_OBJS): Add version.o.
+ (version.c, version.o): New rules.
+ * run.c: Include version.h.
+ (usage): Add help parameter. Print output either to stdout or
+ stderr depending on that parameter.
+ (print_version): New.
+ (main): Check for --help and --version.
+ * run-sim.h (sim_target_display_usage): Add help parameter.
+ * version.h: New.
+
+
+ * sim-signal.c: Define missing signals for _WIN32.
+
+
+ * gennltvals.sh: Add cr16.
+ * nltvals.def: Rebuild.
+
+
+ * callback.c (cb_is_stdin, cb_is_stdout, cb_is_stderr): Add functions.
+ * syscall.c (cb_syscall): Test for stdin/out/err, not just fd 0/1/2.
+
+
+ * sim-memopt.c (memory_options): Mention that the
+ --memory-size switch accepts suffixes.
+ (parse_size): Handle a suffix on the size value.
+ * sim-options.c (standard_options): Mention that the mem-size
+ switch accepts suffixes.
+ (standard_option_handler): Handle a suffix on the size value.
+
+
+ * acconfig.h: Remove.
+ * config.in: Regenerate.
+
+
+ * gentmap.c: Fix compile time warning.
+
+
+ * sim-base.h (text_start, text_end, start_addr): Use bfd_vma type
+ for bfd text addresses.
+
+
+ * sim-fpu.c (pack_fpu): Handle QUIET_NAN correctly for
+ SIM_QUIET_NAN_NEGATED.
+
+
+ * sim-profile.c (profile_pc_init): Initialise default profiling
+ frequency to a prime number.
+ (profile_print_pc): Convert gmon.out sample data into target
+ byte order.
+
+
+ * aclocal.m4: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR.
+ * common.m4: Likewise.
+ * configure: Regenerated.
+
+
+ * aclocal.m4: Use ZW_GNU_GETTEXT_SISTER_DIR.
+ * configure: Regenerated.
+
+
+ * Make-common.in: Replace INTLLIBS and INTLDEPS with LIBINTL
+ and LIBINTL_DEP everywhere.
+ (CSEARCH): Use INCINTL.
+ * aclocal.m4: Use ZW_GNU_GETTEXT_SISTER_DIR. Include new
+ gettext macros.
+ * configure: Regenerated.
+
+
+ * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Correct duplicate-
+ option-contents test.
+
+
+ * sim-signal.c (sim_signal_to_target): Fix typos.
+
+ * sim-reason.c (sim_stop_reason): Use
+ sim_signal_to_target, not sim_signal_to_host.
+ * sim-signal.c (sim_signal_to_host): Fix typo.
+ (sim_signal_to_target): New function.
+
+
+ * sim-load.c (xprintf, eprintf): Remove fallout from ANSI_PROTOTYPES
+ change.
+
+
+ * sim-fpu.c (sim_fpu_abs): Always clear the sign bit.
+
+ * sim-fpu.c (pack_fpu): If SIM_QUIET_NAN_NEGATED is defined, use a
+ different fraction for a quiet NaN.
+ (unpack_fpu): Likewise.
+
+
+ * callback.c: Remove ANSI_PROTOTYPES conditional code.
+ * sim-load.c: Likewise.
+ * syscall.c: Likewise.
+
+
+ * Make-common.in (LIBDEPS): Correctly use INTLDEPS for dependency
+ check.
+
+
+ * Make-common.in (install-common, installdirs): Honor $DESTDIR.
+
+
* sim-types.h: Changed unsigned32 and unsigned64 to signed32
and signed64 for __ALPHA__.