+Tue Apr 28 18:28:58 1998 Geoffrey Noer <noer@cygnus.com>
+
+ * common/aclocal.m4: call AM_EXEEXT in SIM_AC_COMMON, define
+ AM_CYGWIN32 and AM_EXEEXT.
+ * common/Make-common.in: set EXEEXT, add missing EXEEXTs
+ to run and install-common rules.
+ * common/configure: regenerate
+
+Sat Apr 25 17:45:01 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-types.h (cell_word): New type.
+ (natural_cell): Delete type.
+
+Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+ * config.in: Ditto.
+
+Sun Apr 26 15:25:07 1998 Tom Tromey <tromey@cygnus.com>
+
+ * acconfig.h (NEED_DECLARATION_PRINTF): Removed.
+
+Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+ * config.in: Ditto.
+
+Fri Apr 24 11:38:08 1998 Tom Tromey <tromey@cygnus.com>
+
+ * acconfig.h: New file.
+ * Make-common.in (top_builddir): New macro.
+ (INTL_LIB): Removed.
+ (INTLLIBS): New macro.
+ (INTLDEPS): Likewise.
+ (LIBDEPS): Use INTLDEPS.
+ (EXTRA_LIBS): Use INTLLIBS.
+ * aclocal.m4 (SIM_AC_COMMON): Call CY_GNU_GETTEXT.
+ (CY_WITH_NLS, CY_GNU_GETTEXT, AM_PATH_PROG_WITH_TEST,
+ AM_LC_MESSAGES): New macros from GNU gettext.
+
+Fri Apr 24 19:57:59 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-config.h: Discard leading _ from macros.
+ * sim-types.h: Ditto.
+
+Wed Apr 22 14:14:19 1998 Michael Meissner <meissner@cygnus.com>
+
+ * Make-common.in (CSEARCH): Add -I to intl directories.
+ (INTL_LIB): Point to libintl.a.
+ (LIBDEPS): Add $(INTL_LIB).
+ (EXTRA_LIBS): Ditto.
+
+Tue Apr 21 12:44:27 1998 Doug Evans <devans@canuck.cygnus.com>
+
+ * cgen-types.h (GETHIDI,MAKEDI): Tweak.
+
+ * cgen-ops.h (ADDCFSI): Fix.
+ (SUBCFSI): Tweak.
+
+Tue Apr 21 13:18:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-types.h (signed_address, unsigned_address): Define.
+
+Mon Apr 20 21:47:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-fpu.c (sim_fpu_2d): Don't return an SNaN, convert it into a
+ QNaN.
+
+Thu Apr 16 10:30:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-fpu.c, sim-fpu.h (sim_fpu_fractionto, sim_fpu_tofraction):
+ New functions, pack / unpack sim_fpu struct using raw values.
+ (sim_fpu_is): Differentiate between negative and positive
+ infinity.
+
+Tue Apr 14 18:49:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-bits.h (EXTEND4): Define.
+ (EXTEND4, EXTEND15, EXTEND11): Ditto.
+
+Tue Apr 14 16:31:35 1998 John Metzler <jmetzler@cygnus.com>
+
+ * sim-memopt.c (parse_addr): Sunos 4.5 does not hane strtol
+ declared so we need this cast to prevent long long addresses
+ from being misconfigures. Results in access to unmapped memory.
+
+Tue Apr 14 13:19:14 1998 Doug Evans <devans@canuck.cygnus.com>
+
+ * Make-common.in (RUNTESTFLAGS): Define.
+ (check): Pass RUNTESTFLAGS to recursive make.
+
+Tue Apr 14 15:09:19 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-info.c (sim_info): Be verbose when either VERBOSE or
+ STATE_VERBOSE_P.
+
+Sat Apr 4 23:24:17 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * aclocal.m4 (sim-inline): By default, disable sim-inline when
+ cross compiling.
+
+Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * aclocal.m4 (sim-cflags): Add -fomit-frame-pointer to defaults.
+ (sim-inline): Update to match sim-inline.[hc]
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+ * Make-common.in (sim_main_headers): Add sim-inline.h
+
+ * sim-bits.h (sim-bits.c): Include when H_REVEALS_MODULE_P.
+ selected.
+ * sim-endian.h (sim-endian.c): Ditto.
+
+ * sim-events.h (_SIM_EVENTS_H_): Replace with SIM_EVENTS_H.
+ (sim_events_set_trace): Delete unused prototype.
+
+ * sim-core.h (_SIM_CORE_H_): Replace with SIM_CORE_H.
+ * sim-core.c (_SIM_CORE_C_): Ditto for SIM_CORE_C.
+
+ * sim-fpu.h (sim-fpu.c): Include when H_REVEALS_MODULE_P.
+ (sim_fpu_to232i, sim_fpu_to232u, sim_fpu_i232to, sim_fpu_u232to):
+ Comment out, not yet implemented in sim-fpu.c.
+ (sim_fpu_zero, sim_fpu_one, sim_fpu_two, sim_fpu_qnan,
+ sim_fpu_max32, sim_fpu_max64): Mark as EXTERN_SIM_FPU.
+
+ * sim-inline.h: Rewrite description.
+ (H_REVEALS_MODULE_P, C_REVEALS_MODULE_P): Define.
+ (SIM_MAIN_INLINE): Add inline option.
+
+ * sim-inline.c (semantics.c, idecode.c, engine.c, ...): Do not
+ include generated files. Handled by generator directly.
+
+Sat Apr 4 01:07:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-trace.c (set_trace_option_mask): Keep TRACE_ANY_P
+ up-to-date.
+
+ * sim-trace.h (TRACE_ANY_P): Define.
+ (struct _trace_data): Add trace_any_p.
+
+start-sanitize-sky
+Tue Mar 31 16:44:15 1998 Jim Lemke <jlemke@cygnus.com>
+
+ * sim-base.h: Add fp_type_opt etc to sim_state_base for
+ the global option "float_type".
+
+end-sanitize-sky
+Mon Mar 30 17:11:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * run.c (main): Handle all alternatives of enum sim_stop.
+ (main): Delete unused `asection *s'.
+
+Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * hw-tree.h, hw-tree.c (hw_tree_vparse): New function
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+ * sim-hw.c: New file.
+ * sim-hw.h (sim_hw_parse): Declare function.
+ (hw-tree.h): Do not include.
+
+ * sim-base.h (STATE_HW): Define.
+ (struct sim_state_base): Add member struct *hw.
+
+ * sim-module.c (sim-hw.h): Include.
+ (modules): Add sim_hw_install.
+
+ * aclocal.m4 (sim_hw_obj): Add sim-hw.o
+
+end-sanitize-am30
+Fri Mar 27 14:55:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-base.h (CPU_INDEX): Define.
+
+ * sim-utils.c (sim_state_alloc): Initialize.
+ * sim-module.c (sim_post_argv_init): Ditto.
+
+start-sanitize-am30
+Thu Mar 26 10:07:57 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
+
+ * aclocal.m4 (sim_hw_obj): Fix sed expression to generate
+ properly formatted lists.
+
+end-sanitize-am30
+start-sanitize-am30
+Thu Mar 26 10:37:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * dv-pal.c (enum hw_pal_address_mask): From Stu Grossman, was
+ 0x2f needs to be 0x3f.
+
+end-sanitize-am30
+start-sanitize-am30
+Thu Mar 26 09:10:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * hw-tree.c (hw_tree_find_property): Return NULL when device is
+ not found.
+ (hw_tree_find_*_property): Clean up error message when property is
+ not found.
+
+ * dv-pal.c (hw_pal_io_read_buffer): Check the smp property is
+ present before looking for it.
+
+end-sanitize-am30
+Wed Mar 25 16:17:38 1998 Ian Carmichael <iancarm@cygnus.com>
+
+ * aclocal.m4 (AC_CHECK_HEADERS): Add check for fpu_control.h.
+ (AC_CHECK_FUNCS): Add check for __setfpucw.
+ * configure: Regenerated.
+
+start-sanitize-am30
+Wed Mar 25 09:18:34 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * dv-pal.c (hw_pal_countdown, hw_pal_countdown_value,
+ hw_pal_timer, hw_pal_timer_value): Define.
+ (hw_pal_io_read_buffer, hw_pal_io_write_buffer): Add timer support
+ (do_counter_event, do_counter_read, do_counter_value,
+ do_counter_write): new functions.
+
+end-sanitize-am30
+start-sanitize-am30
+Tue Mar 24 12:24:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * hw-tree.c (hw_printf): Send tree dump to stderr, same as other
+ trace output.
+
+ * hw-base.c (hw_create): Stop searching for a device when one is
+ found.
+
+end-sanitize-am30
+Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+start-sanitize-am30
+Mon Mar 23 10:25:08 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Add second argument,
+ appends extra devices.
+ (SIM_AC_OPTION_HARDWARE): Substute sim_hw, a non-duplicate list of
+ the device names.
+
+ * Make-common.in (hw-config.h): New target, create hw-config.h
+ file.
+ (SIM_HW): Definition from @sim_hw@.
+ (hw-base.o): Depend on hw-config.h
+
+end-sanitize-am30
+Tue Mar 24 17:41:35 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
+
+ * Make-common.in: Get SHELL from configure.
+ * (stamp-tvals sim-inline.c): Use $(SHELL) when invoking
+ move-if-change. Fixes NT native build problem.
+ * Makefile.in (nltvals.def): Use $(SHELL) when invoking
+ move-if-change. Fixes NT native build problem.
+ * configure: Regenerate with autoconf 2.12.1 to fix shell issues for
+ NT native builds.
+
+start-sanitize-am30
+Sun Mar 22 16:54:40 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * hw-device.h, hw-device.c (hw_strdup): New function.
+
+ * hw-base.c (hw_create): Use hw_strdup when saving a copy of the
+ strings name, family and args.
+ (full_name_of_hw): Use hw_strdup when returning the full path.
+
+ * hw-properties.c: Clean up property not found / wrong type error
+ messages.
+
+ * hw-tree.c (hw_tree_parse): Finish a devices initialization
+ before attaching any ports.
+
+ * hw-base.c (hw-config.): Include. Replace hardwired table.
+
+ * dv-glue.c: Copy over ../ppc/hw_glue.c. Update to new framework.
+
+ * Make-common.in: Add rule for dv-glue.o.
+
+end-sanitize-am30
+start-sanitize-am30
+Sun Mar 22 16:45:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * hw-base.c (hw_finish): Move setting of trace level to here.
+ (hw_create): From here.
+
+ * hw-base.h, hw-base.c (do_hw_attach_regs): Copy function from
+ ../ppc/device_table.c.
+
+ * dv-pal.c (hw_pal_finish): Attach PAL device to parent bus.
+
+ * hw-tree.c (print_properties): Supress path when printing
+ properties of root node.
+
+end-sanitize-am30
+start-sanitize-am30
+Sun Mar 22 16:21:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * hw-device.h (HW_TRACE): Define.
+ (hw_trace): Declare.
+ * hw-device.c (hw_trace): Implement function.
+
+ * hw-base.c (hw_create): Set hw trace level from "trace?"
+ property.
+
+ * dv-core.c (dv_core_attach_address_callback): Add trace.
+
+ * dv-pal.c: Replace DTRACE with HW_TRACE.
+
+end-sanitize-am30
+start-sanitize-am30
+Sun Mar 22 15:23:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * hw-device.h (HW_ZALLOC, HW_MALLOC): New macros.
+ (hw_alloc_data): Delcare.
+ (struct hw): Add member alloc_of_hw.
+
+ * hw-device.c (hw_zalloc, hw_malloc, hw_free, hw_free_all): New
+ functions. Assocate memory with a device.
+ (stdlib.h): Include.
+
+ * hw-base.h (set_hw_delete): Define.
+ (hw_delete_callback): Declare.
+ (hw_delete): Declare.
+
+ * hw-base.c (hw_delete): Implement function.
+ (struct hw_base_data): Add member to_delete.
+ (ignore_hw_delete): New function, does nothing.
+ (hw_create): Set the hw_delete method.
+ (hw_create): Allocate the base type using HW_ZALLOC before setting
+ any methods.
+
+ * hw-tree.h, hw-tree.c (hw_tree_delete): New function.
+
+ * hw-properties.c: Replace zalloc/zfree with hw_zalloc/hw_free.
+
+ * hw-ports.c: Replace zalloc/zfree with hw_zalloc/hw_free.
+ (attach_hw_port_edge): Add struct hw argument
+
+ * dv-pal.c (hw_pal_finish): Replace zalloc/zfree with
+ hw_zalloc/hw_free.
+
+end-sanitize-am30
+start-sanitize-am30
+Sun Mar 22 15:09:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * hw-device.h (hw_attach_address_callback,
+ hw_detach_address_callback): Attach to a single space not a space
+ mask. Clarify interpretation of SPACE:ADDR parameters.
+
+ * hw-base.c (passthrough_hw_attach_address,
+ passthrough_hw_detach_address): Update.
+ * dv-core.c (dv_core_attach_address_callback): Ditto.
+ * dv-pal.c (hw_pal_attach_address): Ditto.
+
+end-sanitize-am30
+Thu Mar 19 00:41:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-options.h: Document additional CPU arg to OPTION_HANDLER.
+
+start-sanitize-am30
+Wed Mar 18 14:13:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * Make-common.in (SIM_HW_OBJS, SIM_HW_SRC, SIM_DV_OBJS): Define.
+ (hw-base_h, hw-device_h, hw-handles_h, hw-instances_h, hw_ports_h,
+ hw-properties_h, hw-tree_h): Define, point at corresponding
+ header.
+ (hw_base_headers): Define list of headers included by hw-base.h
+ (hw-base.o, hw-device.o, hw-instances.o, hw-handles.o, hw-ports.o,
+ hw-properties.o, hw-tree.o): Specify dependencies.
+ (dv-core.o, dv-pal.o): Ditto.
+
+ * sim-hw.h: New file.
+
+ * hw-device.h, hw-device.c, hw-properties.h, hw-properties.c,
+ hw-ports.h, hw-ports.c: New files. Copied from ../ppc/device.[ch].
+
+ * hw-tree.h, hw-tree.c: New files. Copied from ../ppc/tree.[hc].
+
+ * hw-base.h, hw-base.c: new files. Copied from
+ ../ppc/device_table.[hc].
+
+ * dv-core.c, dv-pal.c: New files. Copied from
+ ../ppc/hw_{core,pal}.c
+
+ * sim-basics.h (struct hw): Declare.
+ (enum port_direction, enum object_disposition): Declare.
+
+end-sanitize-am30
+start-sanitize-am30
+Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Set sim_hw_obj, sim_dv_obj,
+ sim_dv_src in Makefile. Take list of devices as parameter to m4
+ macro..
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+end-sanitize-am30
+Mon Mar 16 12:37:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-trace.h, sim-trace.c (trace_prefix): Pass in sim_cia so that
+ trace_prefix can abort cleanly.
+
+Sat Mar 14 18:36:12 1998 Doug Evans <devans@seba.cygnus.com>
+
+ * dv-sockser.c, dv-sockser.h: New files.
+ * Make-common.in (dv-sockser.o): Add rule for.
+ * aclocal.m4: Check for fcntl.h.
+ * config.h: Add HAVE_FCNTL_H.
+
+ * sim-break.c (remove_breakpoint): Fix thinko.
+
+ * sim-hload.c (sim_load): Provide default value of SIM_HANDLES_LMA.
+ Use SIM_HANDLES_LMA for lma_p arg to sim_load_file.
+
+1998-03-13 Fred Fish <fnf@cygnus.com>
+
+ * sim-base.h (struct sim_state_base): Add prog_syms and
+ define macro STATE_PROG_SYMS.
+ * sim-trace.c (trace_prefix): Add variables abfd, symsize,
+ symbol_count, and asymbols. Call bfd_get_symtab_upper_bound
+ and bfd_canonicalize_symtab, to get symbol table on first use
+ and preserve it via STATE_PROG_SYMS for future calls to
+ bfd_find_nearest_line.
+
+Wed Mar 11 14:02:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-core.h, sim-core.c (sim_core_map_to_str): Delete.
+
+ * sim-core.c (sim_core_attach): Handle a generic number of maps -
+ up to nr_maps, not just access_* maps.
+
+ * sim-profile.h (struct PROFILE_DATA): Track nr_maps different
+ maps.
+
+ * sim-profile.c (profile_print_core): Make map unsigned. Iterate
+ over nr_maps not sim_core_nr_maps.
+
+ * sim-events.h, sim-events.c (sim_events_watch_core): Change
+ core_map argument to unsigned.
+ (struct _sim_core): Ditto for struct member core_map.
+
+ * sim-core.h (nr_sim_core_maps, sim_core_*_map): Delete
+
+ * sim-basics.h (access_io, access_*_io): Define.
+ (map_read, map_write, map_exec, map_io): Define.
+
+ * sim-core.c, sim-core.h (sim_core_attach): Replace argument
+ attach with more generic mapmask.
+ (sim_core_{read,write}_*): Change map argument to unsigned.
+
+ * sim-core.c (sim_core_uninstall, sim_core_attach,
+ sim_core_detach): Iterate over nr_maps instead of
+ sim_core_nr_maps.
+
+ * sim-break.c (insert_breakpoint): Write breakpoints to exec_map
+ instead of the write_map.
+ (remove_breakpoint): Ditto.
+
+ * genmloop.sh (engine_resume_full): Replace sim_core_*_map
+ with read_map, write_map, exec_map resp.
+
+ * cgen-mem.h (DECLARE_GETMEM, DECLARE_SETMEM, DECLARE_GETIMEM):
+ Ditto.
+
+ * cgen-utils.c (sim_disassemble_insn): Ditto.
+
+ * sim-hrw.c (sim_write, sim_write): Ditto.
+
+ * sim-utils.h, sim-utils.c (access_to_str, map_to_str,
+ transfer_to_str): New functions.
+
+Mon Mar 9 12:50:59 1998 Doug Evans <devans@seba.cygnus.com>
+
+ * sim-base.h (sim_state_base): New member environment.
+ (STATE_ENVIRONMENT): New macro.
+ * sim-config.c (current_environment): Delete.
+ (sim_config_default): New function.
+ (sim_config): Set STATE_ENVIRONMENT, not current_environment.
+ * sim-config.h (current_environment,CURRENT_ENVIRONMENT): Delete.
+ (sim_config_default): Add prototype.
+ * sim-module.c (sim_pre_argv_init): Call sim_config_default.
+ * sim-options.c (standard_option_handler, case OPTION_ENVIRONMENT):
+ Set STATE_ENVIRONMENT, not current_environment.
+
+Mon Mar 9 11:59:03 1998 Jim Wilson <wilson@cygnus.com>
+
+ * sim-fpu.c (NR_GUARDS64): Change NR_PAD32 to NR_PAD64.
+
+Tue Mar 3 10:53:05 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-types.h (SIGNED32, SIGNED64): Pacify GCC.
+
+ * sim-alu.h (ALU64_BEGIN): Make alu64_r unsigned.
+
+Mon Mar 2 10:20:06 1998 Doug Evans <devans@seba.cygnus.com>
+
+ * Make-common.in (TAGS): Make smarter.
+ * Makefile.in (TAGS): Ditto.
+
+Fri Feb 27 19:09:57 1998 Doug Evans <devans@canuck.cygnus.com>
+
+ * sim-module.c (*): Fix typos in assertion tests.
+
+Sat Feb 28 13:54:10 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-module.c (sim_pre_argv_init): String passed to asprintf
+ can't be constant.
+
+ * sim-options.c (sim_parse_args): Ditto.
+ (sim_args_command): Return OK, instead of nothing, for an empty
+ command.
+
+Fri Feb 27 13:29:13 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-profile.c (profile_info): Rename from profile_print. Drop
+ misc and misc_cpu callback arguments. Use
+ PROFILE_INFO_CPU_CALLBACK and STATE_PROFILE_INFO_CALLBACK instead.
+ (profile_install): Install profile_info function.
+
+ * sim-profile.h (PROFILE_INFO_CPU_CALLBACK,
+ STATE_PROFILE_INFO_CALLBACK): Define.
+ (struct PROFILE_DATA): Add field info_cpu_callback.
+ (profile_print): Delete function.
+
+ * sim-base.h (STATE_MODULES): Define. Replace individual
+ STATE_*_LIST with single struct module_list.
+
+ * sim-module.h (MODULE_INFO_FN, MODULE_INFO_LIST): Declare.
+ (struct module_list): Declare.
+
+ * sim-module.h, sim-module.c (sim_module_add_info_fn,
+ sim_module_info): New functions.
+ (sim_module_install): Clean up module data structures.
+
+ * sim-info.c (sim_info): New file. New function. Call
+ sim_module_info.
+
+ * Make-common.in (sim-info.o): Define rule.
+ (SIM_NEW_COMMON_OBJS): Add sim-info.o.
+
+
+Fri Feb 27 18:26:16 1998 Doug Evans <devans@canuck.cygnus.com>
+
+ * sim-base.h (sim_cpu_base): New members name, options.
+ (sim_cpu_lookup): Add prototype.
+ * sim-module.c (sim_pre_argv_init): Provide default names for cpus.
+ * sim-options.h (DECLARE_OPTION_HANDLER): New argument `cpu'.
+ (sim_add_option_table): Update prototype.
+ * sim-options.c (sim_add_option_table): New argument `cpu'.
+ (standard_option_handler,standard_install): Update.
+ (sim_parse_args): Handle cpu specific options.
+ (print_help): New static function.
+ (sim_print_help): Call it. Print cpu specific options.
+ (find_match): New static function.
+ (sim_args_command): Call it. Handle cpu specific options.
+ * sim-utils.c (sim_cpu_lookup): New function.
+ * sim-memopt.c (memory_option_handler): Update.
+ (sim_memopt_install): Update.
+ * sim-model.c (model_option_handler): Update.
+ (model_install): Update.
+ * sim-profile.c (profile_option_handler): Update.
+ (profile_install): Update.
+ * sim-trace.c (trace_option_handler): Update.
+ (trace_install): Update.
+ * sim-watch.c (watchpoint_option_handler): Update.
+ (sim_watchpoint_install): Update.
+ * cgen-scache.c (scache_option_handler): Update.
+ (scache_install): Update.
+
+Wed Feb 25 11:00:26 1998 Doug Evans <devans@canuck.cygnus.com>
+
+ * Make-common.in (check): Run `make check' in testsuite dir.
+
+Wed Feb 25 14:40:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-trace.c (trace_result0): New function.
+
+ * sim-trace.h (TRACE_FP_*, TRACE_FPU_*): Rename TRACE_FPU_*
+ macro's to TRACE_FP_*. TRACE_FPU_* should be defined and used when
+ tracing sim_fpu variables.
+ (TRACE_ALU_RESULT0): Define.
+ (TRACE_FP_RESULT_WORD): Define.
+ (TRACE_FP_INPUT_WORD1): Define.
+
+ * sim-fpu.c, sim-fpu.h (sim_fpu_max32, sim_fpu_max64, sim_fpu_one,
+ sim_fpu_two): New constants.
+ (sim_fpu_op1, sim_fpu_op2): New types.
+ (struct _sim_fpu): Delete member result. Re-order other members.
+ (sim_fpu_sign, sim_fpu_exp): New functions.
+ (sim_fpu_max, sim_fpu_min): new functions.
+ (EXPMAX32, EXPMAX64, NR_PAD32, NR_PAD64, NR_GUARDS32, NR_GUARDS64,
+ NORMAL_EXPMAX32, NORMAL_EXPMAX64): Define.
+
+Tue Feb 24 22:45:39 1998 Doug Evans <devans@seba.cygnus.com>
+
+ * sim-profile.c (profile_print): Delete duplicate test of
+ PROFILE_INSN_IDX.
+ (profile_print_pc): Exit early if data collection not set up.
+ (profile_print_core): Simplify by calling sim_core_map_to_str.
+ * sim-core.h (sim_core_map_to_str): Declare.
+ * sim-core.c (sim_core_map_to_str): Make non-static.
+
+ * genmloop.sh (engine_resume): Update insn_count before exiting.
+ (engine_resume_full): Keep accurate core profile data.
+
+ * cgen-utils.c (sim_disassemble_insn): Don't use
+ sim_core_read_aligned_N, it messes up profiling results.
+
+Mon Feb 23 20:45:57 1998 Mark Alexander <marka@cygnus.com>
+
+ * nltvals.def: Regenerate with MN10300 additions.
+
+Tue Feb 24 13:18:42 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-trace.h (TRACE_ALU_RESULT2): Define.
+
+ * sim-trace.h, sim-trace.c (trace_result_word2,
+ trace_input_word4, trace_result_word4): New function.
+
+Mon Feb 23 13:08:35 1998 Doug Evans <devans@canuck.cygnus.com>
+
+ * cgen-sim.h (SEM_NEXT_PC): New arg `len'.
+
+ * sim-xcat.h: Delete.
+ * cgen-mem.h: Delete inclusion of sim-xcat.h.
+ * cgen-sim.h: Ditto.
+ * sim-alu.h: Replace sim-xcat.h with symcat.h.
+ * sim-n-bits.h: Ditto.
+ * sim-n-core.h: Ditto.
+ * sim-n-endian.h: Ditto.
+
+Mon Feb 23 13:19:58 1998 Michael Meissner <meissner@cygnus.com>
+
+ * syscall.c (cb_syscall): Handle short reads, and EOF.
+
+Tue Feb 24 00:29:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-trace.c (print_data): case trace_fmt_fp missing break. Use
+ sim_fpu to safely print fp_word values.
+ (print_data): Add trace_fmt_bool and trace_fmt_addr.
+ (trace_result_bool1, trace_result_addr1): New functions.
+ (trace_input_bool1, trace_input_addr1): New functions.
+
+ * sim-trace.h (TRACE_FPU_*): Define.
+
+Mon Feb 23 13:24:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-fpu.h (enum sim_fpu_class): Add sim_fpu_class_denorm.
+ (sim_fpu_fpto, sim_fpu_tofp): Define.
+
+Fri Feb 20 18:08:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-fpu.c (sim_fpu_cmp): New function.
+
+Wed Feb 18 16:29:21 1998 Doug Evans <devans@canuck.cygnus.com>
+
+ * cgen-utils.h (sim_disassemble_insn): Use CGEN_INSN_BITSIZE
+ instead of abuf->length.
+ * sim-trace.c (trace_options): Have -t only trace a few useful things.
+ (set_trace_option_mask): Renamed from set_trace_options.
+ (set_trace_option): New function.
+ (trace_option_handler): Update calls to set_trace_option{,_mask}.
+ * sim-trace.h (TRACE_USEFUL_MASK): New macro.
+
+Wed Feb 18 12:42:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-basics.h: Declare struct _sim_fpu.
+
+Tue Feb 17 16:27:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-trace.h (TRACE_ALU_INPUT*, TRACE_ALU_RESULT): Define.
+ (trace_prefix, trace_input*, trace_result*): Declare.
+ (trace_one_insn): Change declaration, assume trace_prefix called.
+ (trace_generic): Like trace_one_insn.
+ (TRACE_ALU_IDX, TRACE_*_IDX): Change #define's to enum.
+ (TRACE_alu, TRACE_[a-z]*): Update.
+
+ * sim-trace.c (trace_prefix, trace_input*, trace_result*,
+ trace_insn, save_data, trace_idx_to_str, print_data): New
+ functions.
+ (trace_one_insn): Rewrite.
+ (trace_generic): New function.
+
+Tue Feb 17 17:27:30 1998 Doug Evans <devans@seba.cygnus.com>
+
+ * Make-common.in (CGEN_MAIN_SCM): Update.
+ * aclocal.m4 (USE_MAINTAINER_MODE): New variable.
+
+ * cgen-sim.h (SEMANTIC_CACHE_FN): Delete.
+ (SEMANTIC_FN): Rewrite declaration.
+ (DECODE): Update type of semantic_fast member.
+ ({EX,SEM}_FN_NAME): Have only one version.
+ * cgen.sh: Support building cpu.c.
+ * sim-base.h (sim_state_base): Delete conditionals surrounding
+ member scache_size.
+
+Tue Feb 10 18:31:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-load.c (sim_load_file): Print LMA/VMA according to value
+ used.
+
+Tue Feb 10 14:56:23 1998 Ian Carmichael <iancarm@cygnus.com>
+
+ * sim-core.c: Add missing prototypes for WITH_DEVICES.
+ Add missing parameters to device_io calls.
+ * sim-core.h: Add missing parameters to device_io calls.
+
+Mon Feb 9 14:48:37 1998 Doug Evans <devans@canuck.cygnus.com>
+
+ * cgen-sim.h (DECODE): Always use switch for `read' for now.
+ (PAREXEC): Renamed from PARALLEL_EXEC. All uses updated.
+ (SEMANTIC{,_CACHE}_FN): Fix return type.
+ * cgen.sh (decode): Add s/@arch@/$arch/.
+ * genmloop.sh (@cpu@_engine_run): Delete `current_state'.
+ (engine_resume): Likewise. Make `engine' volatile. Save copy
+ of cpu pointer in volatile object. Initialize read switch if
+ -parallel.
+
+Thu Feb 5 13:27:04 1998 Doug Evans <devans@seba.cygnus.com>
+
+ * cgen-sim.h (EX_FN_NAME): _exc_ -> _ex_.
+ (SEM_INSN): New macro.
+
+Tue Feb 3 16:31:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-run.c (sim_engine_run): Assume IMEM is 32 bit.
+
+Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+Sun Feb 1 16:16:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-types.h (fp_word): New type, define according to
+ WITH_TARGET_FLOATING_POINT_BITSIZE.
+
+ * aclocal.m4 (default_sim_floating_point_bitsize): Add
+ configuration of size of floating point registers.
+
+Sun Feb 1 14:02:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-profile.c (profile_print): Only print CPU <N> if other
+ output is going to appear.
+
+Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+Sat Jan 31 18:03:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-types.h (address_word): Typedef according to
+ WITH_TARGET_ADDRESS_BITSIZE.
+ (signed_cell, unsigned_cell, natural_cell): Ditto using
+ WITH_TARGET_CELL_BITSIZE.
+
+ * sim-config.h (WITH_TARGET_ADDRESS_BITSIZE): Define.
+ (WITH_TARGET_CELL_BITSIZE): Define.
+ (WITH_HOST_WORD_BITSIZE): Delete.
+
+ * sim-config.c (print_sim_config): Update.
+
+ * aclocal.m4 (SIM_AC_OPTION_BITSIZE): Add support for
+ configuration of address and OpenFirmware cell sizes.
+
+Fri Jan 30 09:36:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-engine.h (sim_engine_run): Add argument nr_cpus.
+ * sim-run.c (sim_engine_run): Update.
+
+ * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use SET_CPU_CIA instead of
+ CPU_CIA.
+ * sim-run.c (sim_engine_run): Ditto.
+
+ * sim-resume.c (sim_resume): Obtain nr_cpus from sim_engine.
+ (sim_resume): Pass nr_cpus to sim_engine_run.
+
+ * sim-engine.h (struct _sim_engine): Add member nr_cpus.
+
+ * sim-engine.c (sim_engine_init): Hardwire nr_cpus to
+ MAX_NR_PROCESSORS.
+ (sim_engine_nr_cpus) sim-engine.c, sim-engine.h: New function
+
+Thu Jan 29 12:13:01 1998 Doug Evans <devans@canuck.cygnus.com>
+
+ * cgen.sh: Portably read parms past $9.
+
+Fri Jan 23 14:20:54 1998 Doug Evans <devans@seba.cygnus.com>
+
+ * Make-common.in (stamp-tvals): New rule.
+ (targ-vals.h,targ-map.c): Depend on it.
+ (clean): Remove stamp-tvals.
+
+Tue Jan 20 21:35:13 1998 Michael Meissner <meissner@cygnus.com>
+
+ * sim-utils.c (sim_state_alloc): #if 0 variable that is only used
+ in code also #if 0'ed.
+
+Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+ * aclocal.m4: Recognize --enable-maintainer-mode.
+
+Mon Jan 19 12:45:45 1998 Doug Evans <devans@seba.cygnus.com>
+
+start-sanitize-cygnus
+ * Make-common.in (cgen-{arch,cpu,decode}): New targets.
+ * cgen.sh: New file.
+end-sanitize-cygnus
+ * cgen-scache.h: Deleted.
+ * Make-common.in (cgen-run.o,cgen-scache.o): Delete cgen-scache.h dep.
+ (CGEN_CPU_SCM): Add sim-model.scm.
+ * cgen-scache.c: Only compile contents if WITH_SCACHE.
+ (scache_init): Use runtime computed size of SCACHE.
+ (scache_flush): Likewise.
+ * cgen-mem.h (GETIMEMU[QHSD]I): Declare.
+ ([GS]ETT{QI,UQI,HI,UHI,SI,USI,DI,UDI}): Declare.
+ * cgen-sim.h: Scache support moved here.
+ (PC): Redo definition.
+ (ARGBUF,SCACHE,PARALLEL_EXEC): Provide forward decls.
+ (DECODE): Add parallel execution support.
+ Only include semantic label members if using switch.
+ (SWITCH,CASE,BREAK,DEFAULT,ENDSWITCH): Portable computed goto support.
+ (CGEN_CPU): Delete members exec_state, halt_sigrc, halt_jmp_buf.
+ (IADDR,CIA,SEM_ARG,EX_FN_NAME,SEM_FN_NAME,RECORD_IADDR,SEM_ARGBUF,
+ SEM_NEXT_PC,SEM_BRANCH_VIA_{CACHE,ADDR},SEM_NEW_PC_ADDR): Moved here
+ from cgen-types.h.
+ (engine_{stop,run,resume,halt,signal}): Delete decls.
+ * cgen-types.h (CGEN_{XCAT3,CAT3}): Delete.
+ (argbuf,scache): Delete forward decls.
+ (STATE): Delete decl.
+ * cgen-utils.c: Don't include decode.h, mem-ops.h, sem-ops.h.
+ Include cgen-mem.h, cgen-ops.h.
+ (engine_halt,engine_signal): Delete.
+ ({ex,exc,sem,semc}_illegal): Delete.
+ (sim_disassemble_insn): Result of extract fn is in bits.
+ * genmloop.sh: Rewrite.
+
+ * cgen-trace.c (trace_insn): Set printed_result_p=0 if not tracing
+ line numbers.
+
+ * sim-base.h (sim_state_base): Delete member `model'.
+ (sim_cpu_base): Add member `model'.
+ * sim-model.h (IMP_PROPERTIES): New type.
+ (MACH): New members imp_props, models.
+ (models): Delete decl.
+ * sim-model.c (set_model): Update.
+ * sim-profile.c (profile_print_model): Update.
+
+ * sim-utils.c (sim_state_alloc): Delete setting of cpu backlink here.
+
+Fri Jan 16 12:33:09 1998 Nick Clifton <nickc@cygnus.com>
+
+ * cgen-trace.c (trace_insn): Call CGEN_INSN_MNEMONIC() rather than
+ CGEN_INSN_SYNTAX().
+
+Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+ * config.in: Ditto.
+
+Mon Dec 15 23:16:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * aclocal.m4 (AR): Check for sigaction.
+
+Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
+
+ * Make-common.in (sim-core.o): Depend on $(sim_main_headers).
+
+ * sim-config.h (WITH_TREE_PROPERTIES): Define as 0.
+ * sim-config.c (sim_config): Replace WITH_DEVICES with
+ WITH_TREE_PROPERTIES.
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+Wed Dec 3 17:56:02 1997 Doug Evans <devans@canuck.cygnus.com>
+
+ * Make-common.in (SIM_ENVIRONMENT): New variable.
+ (CONFIG_CFLAGS): Add it.
+ * aclocal.m4 (SIM_AC_OPTION_ENVIRONMENT): Handle
+ --enable-sim-environment option.
+ * configure: Regenerated.
+ * sim-config.h (environment support): Rewrite.
+ * sim-config.c (current_environment): Define as enum, unconditionally.
+ (current_alignment): Define unconditionally.
+ (config_environment_to_a): Update.
+ (config_alignment_to_a): Fix type of argument. Define unconditionally.
+ (sim_config): Handle environment and alignment determination
+ unconditionally. Delete sanity checks of current_environment,
+ unnecessary.
+ (print_sim_config): Update.
+ * sim-options.c (STANDARD_OPTIONS enum): Add OPTION_ENVIRONMENT.
+ (standard_options): Add --environment.
+ (standard_option_handler): Likewise.
+
+Fri Nov 28 12:21:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-alu.h: Add notes on carry vs borrow for subtraction.
+ (ALU{,8,16,32,64}ADD): Redefine ADD macro as add overflowing.
+ (ALU{,8,16,32,64}ADDC): Define - add carrying.
+ (ALU{,8,16,32,64}SUB): Redefine SUB macro as subtract overflowing.
+ (ALU{,8,16,32,64}SUBB): Define - subtract borrowing.
+ (ALU{,8,16,32,64}SUBC): Define - tract carrying.
+ (ALU{,8,16,32,64}ADD_CA, ALU{,8,16,32,64}ADDC_C): Replace single
+ argument ADD_CA macro with two argument ADDC_C - add carrying with
+ carry in.
+ (ALU{,8,16,32,64}SUB_CA, ALU{,8,16,32,64}SUBC_X): Replace single
+ argument SUB_CA macro with two argument SUBC_X - subtract
+ carrying, extended.
+ (ALU{,8,16,32,64}SUBB_B): Define - subtract borrowing with
+ borrow-in.
+ (ALU{,8,16,32,64}NEGC, ALU{,8,16,32,64}NEGB): Define.
+
+Sun Nov 30 17:40:57 1997 Michael Meissner <meissner@cygnus.com>
+
+ * sim-io.c (sim_io_{syscalls,getstring}): Delete. No longer used.
+ * sim-io.h (sim_io_syscalls): Delete.
+
+Fri Nov 28 20:10:09 1997 Michael Meissner <meissner@cygnus.com>
+
+ * syscall.c (cb_syscall): Add missing else, so write to stdout
+ isn't doubled.
+
+ * sim-alu.h (ALU{,8,16,32,64}_SET_CARRY): Provide macros to import
+ the carry bit from the CPU's psw.
+
+Fri Nov 28 11:15:05 1997 Doug Evans <devans@canuck.cygnus.com>
+
+ * gennltvals.sh: Redo syscall support.
+ * nltvals.def: Regenerated.
+
+Wed Nov 26 16:49:38 1997 Michael Meissner <meissner@cygnus.com>
+
+ * syscall.c (cb_syscall): If writing to stdout or stderr, flush
+ the stream immediately.
+
+Wed Nov 26 12:32:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-io.c (sim_io_getstring): Delete unused len2.
+ (sim_io_syscalls): Ditto for sys_errno.
+
+Wed Nov 26 11:18:40 1997 Doug Evans <devans@canuck.cygnus.com>
+
+ * syscall.c (cb_syscall): Test CB_SYSCALL struct magic number.
+
+ * Make-common.in (run.o): Depend on remote-sim.h.
+ (nrun.o,sim-hload.o,sim-hrw.o): Likewise.
+ (sim-io.o,sim-reason.o,sim-resume.o): Likewise.
+
+Tue Nov 25 20:12:46 1997 Michael Meissner <meissner@cygnus.com>
+
+ * sim-io.c (sim_io_syscalls): Disable lseek.
+
+Tue Nov 25 00:12:38 1997 Doug Evans <devans@seba.cygnus.com>
+
+start-sanitize-d30v
+ * gennltvals.sh: Generate syscall values for d30v.
+end-sanitize-d30v
+ * gennltvals.sh: Use libgloss/syscall.h for sparc.
+ * nltvals.def: Regenerate.
+
+ * callback.c (os_stat): Make 3rd arg a host struct stat ptr.
+ (os_fstat): Likewise. Validate fd argument.
+ (cb_host_to_target_stat): Delete big_p arg. If HS arg is NULL,
+ just compute target stat struct length.
+ * syscall.c: #include "libiberty.h", <sys/types.h>, <sys/stat.h>.
+ (ENOSYS,ENAMETOOLONG): Provide definitions if missing.
+ (get_string): Return host errno values so they can be properly
+ translated later.
+ (cb_syscall): Likewise.
+ (cb_syscall, cases open,unlink): Use get_path instead of get_string.
+ (cb_syscall, case read): Use read_stdin for file descriptor 0.
+ (cb_syscall, case write): Use write_stderr for file descriptor 2.
+ (cb_syscall): Add cases for lseek, unlink, stat, fstat, time.
+ (get_path): New function.
+
+Mon Nov 24 18:56:07 1997 Michael Meissner <meissner@cygnus.com>
+
+ * sim-io.c (sim_io_syscalls): New function to provide system call
+ emulation. Provide exit, open, close, read, write, lseek, and
+ unlink.
+ (sim_io_getstring): New function to return a string from a
+ simulated memory location.
+
+ * sim-io.h (sim_io_syscalls): Add declaration.
+
+Mon Nov 24 12:09:59 1997 Doug Evans <devans@seba.cygnus.com>
+
+ * sim-core.c (sim_core_signal): Fix spelling error in message.
+
+ * sim-hrw.c (sim_read): Use read map, not write map.
+
+ * Make-common.in (all): Add .gdbinit.
+ * gdbinit.in: Add dump command.
+
+ * sim-model.c (model_options): Use '\0' for `shortopt'.
+
+ * sim-trace.c (trace_option_handler): Set state trace file
+ for --trace-file in addition to cpu's values.
+ (trace_vprintf): If cpu == NULL, try state's trace file.
+ (trace_options): Reorganize table, reword some descriptions.
+
+Sun Nov 23 10:57:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-fpu.c (sim_fpu_abs, sim_fpu_neg, sim_fpu_inv), sim-fpu.h:
+ New functions.
+
+Sat Nov 22 19:16:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-reason.c (sim_stop_reason): For sim_signalled, return the
+ signal untranslated, document problem with this.
+
+ * nrun.c (main): Check for a prog name of `*step'. If present,
+ step the simulator instead of allowing it to run free.
+
+ * sim-signal.c (SIGQUIT): Define on _MSC_VER hosts.
+
+ * Make-common.in (sim_main_headers): Add sim-signal.h.
+
+Fri Nov 21 09:32:32 1997 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-signal.c (sim_signal_to_host): Return 0 for SIM_SIGNONE.
+
+Thu Nov 20 20:35:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-signal.h: Start simulator signals at 64 so that host signal
+ numbers can be detected and reported.
+
+ * sim-signal.h (SIM_SIGFPE), sim-signal.h: Add signal.
+
+Wed Nov 19 12:02:41 1997 Doug Evans <devans@seba.cygnus.com>
+
+ * callback.c (cb_host_to_target_stat): Fix return values.
+
+ * cgen-sim.h (enum_signal_type): Delete.
+ (engine_signal): Update prototype.
+ * cgen-utils.c: Don't include <signal.h>.
+ (sim_signal_to_host): Delete, lives in sim-signal.c now.
+ (engine_signal): Update.
+
+ * sim-utils.c (sim_state_alloc): Call SIM_STATE_ALLOC if defined.
+ (sim_state_free): Call SIM_STATE_FREE if defined.
+
+ * sim-module.c (sim_module_install): Don't leave any modules
+ installed if one fails to install.
+
+Wed Nov 19 13:25:48 1997 Michael Meissner <meissner@cygnus.com>
+
+ * sim-options.c: Don't include ../libiberty/alloca-conf.h any
+ more, since alloca is not used in this file.
+
+ * sim-alu.h (ALU{32,64}_*): Rewrite 32 and 64 bit ALU support to
+ correctly set the carry and overflow bits for those types.
+ (ALU{8,16,32,64}_{ADD,SUB}_CA): Take VAL argument to add along
+ with carry, so carry is correct after doing both adds.
+ (ALU*): Space out '\' to make it easier to read.
+
+Tue Nov 18 15:53:45 1997 Doug Evans <devans@canuck.cygnus.com>
+
+ * sim-core.c (sim_core_signal): Use sim_stopped instead of
+ sim_signalled.
+
+ * sim-signal.c, sim-signal.h: New files.
+ * Make-common.in (sim-signal.o): Add rule for.
+ (SIM_NEW_COMMON_OBJS): Add sim-signal.o.
+ * sim-abort.c: Don't include <signal.h>.
+ * sim-basics.h: #include "sim-signal.h".
+ * sim-break.c: Don't include <signal.h>.
+ (sim_handle_breakpoint): Replace SIGTRAP with SIM_SIGTRAP.
+ * sim-core.c: Don't include <signal.h>.
+ (SIGBUS): Delete definition.
+ (sim_core_signal): Replace SIGSEGV,SIGBUS with SIM_SIGSEGV,SIM_SIGBUS.
+ * sim-engine.c: Don't include <signal.h>.
+ (sim_engine_abort): Replace SIGABRT with SIM_SIGABRT.
+ * sim-reason.c (sim_stop_reason): Call sim_signal_to_host.
+ * sim-resume.c: Don't include <signal.h>.
+ (SIGTRAP): Delete definition.
+ (has_stepped): Replace SIGTRAP with SIM_SIGTRAP.
+ * sim-stop.c: Don't include <signal.h>.
+ (control_c_simulation): Replace SIGINT with SIM_SIGINT.
+ * sim-watch.c: Don't include <signal.h>.
+ (handle_watchpoint): Replace SIGINT with SIM_SIGINT.
+
+ * Make-common.in (SIM_NEW_COMMON_OBJS): New variable.
+
+ * sim-base.h (CIA_ADDR): Provide default definition.
+ * sim-core.c (sim_core_signal): Use CIA_ADDR to fetch value.
+ * sim-break.c (sim_handle_breakpoint): Likewise.
+
+Mon Nov 17 14:15:31 1997 Doug Evans <devans@seba.cygnus.com>
+
+ * Make-common.in (srccom): New variable.
+
+ * Make-common.in (DEP, COMMON_DEP_CFLAGS): Define.
+ (LIB_OBJS): Add syscall.o.
+ (gentmap): Pass $(NL_TARGET) to $(CC).
+ (syscall.o): Add rule for.
+ (sim_main_headers): Add $(SIM_EXTRA_DEPS).
+ (sim-bits.o): Depend on $(sim-n-bits_h).
+ (sim-load.o): Depend on callback.h.
+
+ * Make-common.in (cgen-*.o): Update dependencies, mem-ops.h renamed to
+ cgen-mem.h, sem-ops.h renamed to cgen-ops.h.
+ * cgen-mem.h, cgen-ops.h: New files.
+
+ * aclocal.m4 (--enable-sim-scache): Pass -DWITH_SCACHE=0 for "=no".
+
+ * Makefile.in (nltvals.def): Depend on gennltvals.sh.
+ Rewrite build rule.
+ * callback.c: #include string.h or strings.h.
+ #include sys/types.h and sys/stat.h.
+ (cb_init_syscall_map,cb_init_errno_map,cb_init_open_map): Declare.
+ (os_get_errno,os_open): Update.
+ (os_stat,os_fstat): New functions.
+ (os_init): Initialize syscall_map, errno_map, open_map.
+ (default_callback): Add entries for os_stat, os_fstat, syscall_map,
+ errno_map, open_map, signal_map, stat_map.
+ (cb_read_target_syscall_maps): New function.
+ (cb_target_to_host_syscall): New function.
+ (cb_host_to_target_errno): Renamed from host_to_target_errno.
+ (cb_target_to_host_open): Renamed from target_to_host_open.
+ (store): New function.
+ (cb_host_to_target_stat): New function.
+ * syscall.c: New file.
+ * gentmap.c (sys_tdefs): New global.
+ (gen_targ_vals_h): Output target syscall numbers.
+ (gen_targ_map_c): Update. Output target syscall translation map.
+ * gentvals.sh: New first argument `target'. Preface table with
+ #ifdef NL_TARGET_$target if non-null target passed.
+ * gennltvals.sh: New file.
+ * nltvals.def: Regenerated.
+
+Fri Nov 14 11:33:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-n-core.h (sim_core_read_unaligned_N): Return static
+ sim_core_dummy_M.
+ (sim_core_dummy_M): Declare.
+
+Wed Nov 12 18:16:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-core.c (sim_core_signal): Print the address of the
+ instruction.
+
+Thu Nov 13 11:49:41 1997 Doug Evans <devans@seba.cygnus.com>
+
+ * sim-base.h (sim_state_base): Move `magic' to end of struct.
+
+ * sim-base.h (sim_state_base): Add member trace_data.
+ (STATE_TRACE_DATA): New macro.
+ * sim-trace.h (TRACE_DEBUG_IDX,TRACE_debug): New macros.
+ ({WITH_,}TRACE_DEBUG_P): New macros.
+ (STATE_TRACE_FLAGS,STRACE_P,STRACE_DEBUG_P): New macros.
+ (_sim_cpu): Delete forward reference.
+ (debug_printf): Update.
+ * sim-trace.c (OPTION_TRACE_DEBUG): Define.
+ (trace_options): Add --trace-debug.
+ (set_trace_options): Handle it.
+ (trace_option_handler): Likewise.
+ (trace_install): Init state trace_data struct.
+ (trace_uninstall): Close state trace file.
+ * sim-events.c (ETRACE): Only print source file and line number if
+ --trace-debug.
+ * sim-n-core.h (sim_core_trace_M): Likewise.
+
+ * sim-core.c (sim_core_signal): Add missing "\n" in message.
+
+1997-11-13 Felix Lee <flee@cygnus.com>
+
+ * sim-n-core.h (sim_core_read_unaligned_N): illegal empty
+ initializer.
+ * sim-types.h (unsigned128,signed128): fix typo for MSVC.
+
+Wed Nov 12 12:18:08 1997 Doug Evans <devans@canuck.cygnus.com>
+
+ * aclocal.m4 (SIM_AC_OPTION_SCACHE): Fix typo.
+
+ * Make-common.in (BUILT_SRC_FROM_COMMON): Remove files no longer
+ built this way.
+ (sim-config.o): Remove non-existent $(sim-nconfig_h) dependency.
+ (clean): Don't delete $(BUILT_SRC_FROM_COMMON) if building in
+ source tree.
+
+Tue Nov 11 13:28:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-events.c (sim_events_process): Re-compute the time -
+ update_time_from_event - as each event is processed. Reverses
+ previous change.
+
+Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * callback.c (os_poll_quit): Replace _WIN32 with _MSC_VER.
+
+Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-events.c (sim_events_process): Delete redundant call to
+ update_time_from_event.
+ (sim_events_slip): Always decrement time_from_event.
+ (sim_events_tick, sim_events_deschedule, update_time_from_event):
+ Delete assertion that time_from_event >=0 when work in queue, no
+ longer applicable.
+
+Thu Nov 6 12:06:46 1997 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-options.c (STANDARD_OPTIONS): Change OPTION_* to an enum.
+ (standard_option_handler): Update.
+
+ * sim-options.h: Clarify documentation.
+ (OPTION_LONG_ONLY_P): Delete definition.
+ (OPTION_VALID_P): Define.
+
+ * sim-options.c (sim_print_help): Allow short only options.
+ (sim_parse_args): Ditto.
+ (sim_args_command): Skip short only options.
+ (sim_parse_args): Allocate space for NUM_OPTS not just 256. Make
+ separate entries for short and long options in the HANDLERS and
+ ORIG_VAL tables.
+ (sim_parse_args): Disable argument permutation.
+
+Wed Nov 5 13:40:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-core.h (DECLARE_SIM_CORE_WRITE_N. DECLARE_SIM_CORE_READ_N):
+ Add argument M, size of data type.
+ (sim_core_read_misaligned_3, sim_core_write_misaligned_3):
+ Declare, ditto for 5, 6 & 7 byte transfers.
+ (sim_core_write_unaligned_1, sim_core_write_unaligned_1): Define
+ as aligned variant.
+
+ * sim-n-core.h (sim_core_trace_M): Rename from
+ sim_core_trace_N. Add nr_bytes argument. Replace transfer argument
+ with transfer type. Print transfer direction. Handle 1 and 2 byte
+ transfers.
+ (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Trace
+ unaligned accesses.
+ (unsigned_M, T2H_M, H2T_M): Rename from unsigned_N, T2H_N, H2T_N.
+ Update all functions.
+
+ * sim-core.c: Generate functions starting with 16 not 1.
+ (sim_core_read_unaligned_3): Generate. Ditto for 3 byte write and
+ all 5, 6 & 7 byte transfers.
+
+ * sim-n-core.h (sim_core_read_misaligned_N,
+ sim_core_write_misaligned_N): Implement.
+
+Mon Nov 3 15:03:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-endian.h (U16_8): Implement
+
+ * sim-endian.c (sim_endian_split_16, sim_endian_join_16): New functions
+
+ * sim-endian.h (VL8_16, VH8_16): Implement.
+
+ * sim-memopt.c (memory_option_handler): Typecast 64bit value to
+ long in printf.
+ (memory_option_handler): Only zalloc modulo bytes when non-zero.
+ (memory_option_handler): Skip comma in alias address list
+
+Fri Oct 31 13:03:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-memopt.c (do_memopt_add, do_memopt_delete): Add level and
+ space params.
+ (parse_size, parse_addr): New functions
+ (memory_option_handler, memory_options): Parse address & size
+ using new functions. Pass level, space, modulo to do_memopt_add &
+ do_memopt_del.
+
+ * sim-memopt.h (struct _sim_memopt): Add level & space fields.
+
+ * sim-core.h (sim_core_arrach, sim_core_detach): Replace
+ `attach_type attach' argument with `unsigned level' argument.
+ Document.
+
+ * sim-core.c (new_sim_core_mapping, sim_core_map_attach,
+ sim_core_attach): Replace argument attach with level. Update
+ verification of arguments.
+ (sim_core_map_detach, sim_core_detach): Replace argument attach
+ with level.
+
+ * sim-basics.h (enum _attach_type): Delete.
+
+Thu Oct 30 13:45:00 1997 Doug Evans <devans@seba.cygnus.com>
+
+ * sim-core.h (sim_core_write_8): Define.
+
+Tue Oct 28 12:29:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * sim-bits.h: Document ROTn macro.
+
+ * sim-endian.h (H2T): Handle 16 byte variables.
+
+ * sim-n-core.h (sim_core_read_unaligned_N): Return a dummy when an
+ error.
+
+ * sim-core.c: Do not generate sim_core_*_word.
+
+ * sim-n-core.h (sim_core_trace_N): Add line_nr argument.
+ (sim_core_write_aligned_N, sim_core_read_aligned_N): Update.
+
+ * sim-core.h (sim_core_read_unaligned_word,
+ sim_core_read_aligned_word, sim_core_read_word,
+ sim_core_write_unaligned_word, sim_core_write_aligned_word,
+ sim_core_write_word): Change to macros that map onto sim_core_*_N.
+
Mon Oct 27 11:25:10 1997 Doug Evans <devans@canuck.cygnus.com>
* sim-n-endian.h: Add TAGS entrys for 16 byte versions.
* Make-common.in (SIM_EXTRA_DEPS): New config var.
(sim_main_headers): Define.
(sim-*.o): Depend on $(SIM_EXTRA_DEPS).
+start-sanitize-d30v
(BUILT_SRC_FROM_COMMON): Move here from ../d30v/Makefile.in.
+end-sanitize-d30v
(clean): Use it.
(sim-utils.o): Add rule for.
* sim-utils.o: New file.