Fix for sim/common hw_delete()/hw_tree_delete()
[binutils-gdb.git] / sim / common / ChangeLog
index 9cdbd7bf2256e06a12cd8d1a51e3eec559a3ab93..473bb57e12e704c8663907c5ba1c2ba1e41ed7cd 100644 (file)
@@ -1,3 +1,301 @@
+2000-11-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
+
+       * hw-base.c (hw_delete): Don't free base_of_hw since it's freed.
+       (set_hw_delete): Moved the macro as a function.
+       * hw-base.h (set_hw_delete): Declare as external function.
+       * hw-alloc.c (delete_hw_alloc_data): Allow to free the memory
+       allocated using hw_malloc.
+       
+2000-11-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
+
+       * sim-options.c (sim_parse_args): Free the memory used for
+       long_options, short_options, handlers, opt_cpu, orig_val.
+
+2000-11-20  Ben Elliston  <bje@redhat.com>
+
+       * cgen-ops.h (SUBBI): New macro.
+       (SUBWORDSIQI, SUBWORDSIHI, SUBWORDSIUQI): New functions.
+       (SUBWORDDIHI, SUBWORDDIUQI, SUBWORDDIDF): Likewise.
+
+2000-11-16  Ben Elliston  <bje@redhat.com>
+
+       * cgen-types.h (VOID): New type.
+
+2000-11-09  Ben Elliston  <bje@redhat.com>
+
+       * sim-fpu.c (sim_fpu_one): Set exponent to 0.
+       (sim_fpu_two): Set exponent to 1.
+
+2000-10-26  Ben Elliston  <bje@redhat.com>
+
+        * cgen.sh: Handle an isa argument between cpu and mach. Default to
+        `all'. Pass `-i' options to cgen applications.
+        * Make-common.in (cgen-arch, cgen-cpu, cgen-decode, cgen-cpu-decode,
+        cgen-desc): Pass $(isa) to cgen.sh.
+
+2000-10-08  Ben Elliston  <bje@redhat.com>
+
+       * cgen-utils.c (cgen_rtx_error): New function.
+
+2000-10-07  Ben Elliston  <bje@redhat.com>
+
+       * cgen-trace.c (sim_cgen_disassemble_insn): Handle failure
+       conditions for sim_core_read_buffer().
+
+2000-09-26  Dave Brolley  <brolley@redhat.com>
+
+       * cgen-utils.c (RORQI): New function.
+       (ROLQI): New function.
+       (RORHI): New function.
+       (ROLHI): New function.
+
+2000-08-28  Dave Brolley  <brolley@redhat.com>
+
+       * cgen-trace.c (sim_cgen_disassemble_insn): Make sure entire insn is
+       in insn_value if it will fit.
+
+2000-08-21  Frank Ch. Eigler  <fche@redhat.com>
+
+       * Make-common.in, cgen.sh: Contribute CGEN-related build targets/rules.
+
+2000-08-15  Dave Brolley  <brolley@redhat.com>
+
+       * sim-profile.c (profile_print_speed): Print cpu frequency if not zero.
+
+2000-08-15  Dave Brolley  <brolley@redhat.com>
+
+       * sim-profile.h (PROFILE_DATA): Add cpu_freq.
+       (PROFILE_CPU_FREQ): New macro.
+       * sim-profile.c (OPTION_PROFILE_CPU_FREQUENCY): New enumerator.
+       (profile-options): Add profile-cpu-frequency.
+       (parse_frequency): New function.
+       (profile_option_handler): Handle OPTION_PROFILE_CPU_FREQUENCY.
+       (profile_print_speed): Print cpu frequency and simulated execution time.
+       Re-indent other items to match.
+
+2000-08-09  Andrew Cagney  <cagney@lulu.cygnus.com>
+
+       * dv-sockser.c (dv_sockser_init): Eliminate MIN macro.
+
+2000-07-27  Frank Ch. Eigler  <fche@redhat.com>
+
+       From Maciej W. Rozycki <macro@ds2.pg.gda.pl>
+       * Makefile.in (install): Install run.1 man page.
+
+Thu Jul 27 21:56:08 2000  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       From 2000-06-23 Doug Evans <dje@casey.transmeta.com>:
+       * Makefile.in (headers,nltvals.def): Merge.
+
+Thu Jul 27 20:37:47 2000  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
+       * nrun.c (main): Print the simulator statistics only in
+       verbose mode.
+       * hw-properties.h (hw_find_integer_array_property): Fix
+       prototype (use signed_cell).
+
+       From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
+       * sim-events.c (sim_events_remain_time): New function returning
+       the time that remains before the event is raised.
+       * hw-events.c (hw_event_remain_time): Likewise.
+       * sim-events.h (sim_events_remain_time): Declare.
+       * hw-events.h (hw_event_remain_time): Declare.
+
+       From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
+       * sim-hw.c: Use <errno.h> instead of <sys/errno.h>
+       (OPTION_HW_LIST): New option --hw-list to list the devices.
+       (hw_option_handler): List the device tree with 'sim_hw_print'.
+
+       From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
+       * sim-bits.h (_MSB_16, _LSB_16): Define for 16-bit targets.
+       (MASK, LSBIT, MSBIT): Likewise and use _MSB_16 and _LSB_16.
+       (EXTENDED): Define for 16-bit word size.
+       * sim-bits.c (LSEXTRACTED, MSEXTRACTED, LSINSERTED,
+       MSINSERTED, LSSEXT, MSSEXT): Implement for 16-bit word size.
+       * sim-types.h: Added support for 16-bit targets.
+
+2000-06-23  Frank Ch. Eigler  <fche@redhat.com>
+
+       * cgen-trace.h (TRACE_USEFUL_MASK): Remove TRACE_EVENTS_IDX.
+
+2000-06-24  Frank Ch. Eigler  <fche@redhat.com>
+
+       From Maciej W. Rozycki <macro@ds2.pg.gda.pl>:
+       * Makefile.in (distclean): Clean cconfig.h also.
+
+Tue May 23 21:39:23 2000  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+Tue May 23 21:35:53 2000  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * aclocal.m4 (sim-profile): Enable the profiler by default.
+
+Tue May 23 20:30:12 2000  Andrew Cagney  <cagney@amy.cygnus.com>
+
+       * run.c (main): Initialize sigrc.
+
+Wed Apr 26 16:18:44 2000  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * sim-events.c (update_time_from_event): Add more detailed event
+       tracing.
+
+2000-03-30  Dave Brolley  <brolley@redhat.com>
+
+       * aclocal.m4 (cgen): Use guile to run cgen.
+
+2000-03-23  Dave Brolley  <brolley@redhat.com>
+
+       * cgen-fpu.h: Rename extsfdf to fextsfdf. Rename truncdfsf to
+       ftruncdfsf.
+       * cgen-accfp.c (fextsfdf): New function.
+       (ftruncdfsf): New function.
+       (cgen_init_accurate_fpu): Initialize fextsfdf and ftruncdfsf.
+
+2000-03-13  Jeff Johnston <jjohnstn@cygnus.com>
+
+       * cgen-ops.h: Added TRUNCSISI.
+
+2000-03-08  Dave Brolley  <brolley@redhat.com>
+
+       * cgen-par.h (cgen_write_queue_kind): Add CGEN_FN_SF_WRITE.
+       (CGEN_WRITE_QUEUE_ELEMENT): Add fn_sf_write.
+       (sim_queue_fn_si_write): Last argument is has type USI.
+       (sim_queue_fn_sf_write): New function.
+       * cgen-par.c (sim_queue_fn_si_write): Declare 'value' as USI.
+       (sim_queue_fn_sf_write): New function.
+       (cgen_write_queue_element_execute): Handle CGEN_FN_SF_WRITE.
+
+Tue Feb 22 16:45:09 2000  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * run.c (main): When SIM_HAVE_ENVIRONMENT enable tracing with
+       sim_set_trace and run simulator using sim_resume.
+       (main): Add option ``-o'' - operating environment.  Only continue
+       after a signal when operating environment.
+       (main): Always set REASON and SIGRC using sim_stop_reason.
+       (sim_trace): Delete extern declaration.
+
+2000-02-08  Nick Clifton  <nickc@cygnus.com>
+
+       * callback.c: Fix compile time warning messages.
+       * run.c: Fix compile time warning messages.
+     
+1999-12-17  Dave Brolley  <brolley@cygnus.com>
+
+       * sim-profile.h: (set_profile_option_mask): Add prototype.
+       * sim-profile.c (set_profile_option_mask): No longer static.
+
+Wed Dec  8 21:47:13 1999  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * sim-arange.c: Include <string.h>
+
+1999-12-07  Dave Brolley  <brolley@cygnus.com>
+
+       * sim-options.c (print_help): '=' required before optional argument.
+       * cgen-par.h (CGEN_FN_MEM_QI_WRITE): New enumerator.
+       (CGEN_FN_MEM_HI_WRITE): New enumerator.
+       (CGEN_FN_MEM_SI_WRITE): New enumerator.
+       (CGEN_FN_MEM_DI_WRITE): New enumerator.
+       (CGEN_FN_MEM_DF_WRITE): New enumerator.
+       (CGEN_FN_MEM_XI_WRITE): New enumerator.
+       (fn_mem_qi_write): New union members.
+       (fn_mem_hi_write): New union members.
+       (fn_mem_si_write): New union members.
+       (fn_mem_di_write): New union members.
+       (fn_mem_df_write): New union members.
+       (fn_mem_xi_write): New union members.
+       (sim_queue_fn_mem_qi_write): New function.
+       (sim_queue_fn_mem_hi_write): New function.
+       (sim_queue_fn_mem_si_write): New function.
+       (sim_queue_fn_mem_di_write): New function.
+       (sim_queue_fn_mem_df_write): New function.
+       (sim_queue_fn_mem_xi_write): New function.
+       * cgen-par.c (sim_queue_fn_mem_qi_write): New function.
+       (sim_queue_fn_mem_hi_write): New function.
+       (sim_queue_fn_mem_si_write): New function.
+       (sim_queue_fn_mem_di_write): New function.
+       (sim_queue_fn_mem_df_write): New function.
+       (sim_queue_fn_mem_xi_write): New function.
+       (cgen_write_queue_element_execute): Handle CGEN_FN_MEM_QI_WRITE,
+       CGEN_FN_MEM_HI_WRITE, CGEN_FN_MEM_SI_WRITE, CGEN_FN_MEM_DI_WRITE,
+       CGEN_FN_MEM_DF_WRITE, CGEN_FN_MEM_XI_WRITE.
+
+1999-12-01  Dave Brolley  <brolley@cygnus.com>
+
+       * cgen-accfp.c (subsf): Check status code.
+       (mulsf): Ditto.
+       (negsf): Ditto.
+       (abssf): Ditto.
+       (sqrtsf): Ditto.
+       (invsf): Ditto.
+       (minsf): Ditto.
+       (maxsf): Ditto.
+       (subdf): Ditto.
+       (muldf): Ditto.
+       (divdf): Ditto.
+       (negdf): Ditto.
+       (absdf): Ditto.
+       (sqrtdf): Ditto.
+       (invdf): Ditto.
+       (mindf): Ditto.
+       (maxdf): Ditto.
+
+1999-11-26  Dave Brolley  <brolley@cygnus.com>
+
+       * cgen-par.h (fn_df_write): Mode of data is DF.
+       (sim_queue_fn_df_write): Mode of data is DF.
+       * cgen-par.c (sim_queue_fn_df_write): Mode of data is DF.
+
+1999-11-22  Dave Brolley  <brolley@cygnus.com>
+
+       * cgen-trace.c (SIZE_TRACE_BUF): Inxrease size of trace buffer.
+       * cgen-par.h (CGEN_WRITE_QUEUE_SIZE): Increase size of queue.
+
+1999-11-04  Dave Brolley  <brolley@cygnus.com>
+
+       * cgen-par.h (cgen_write_queue_kind): Add CGEN_FN_XI_WRITE and
+       CGEN_MEM_XI_WRITE members.
+       (CGEN_WRITE_QUEUE_ELEMENT): Add fn_xi_write and mem_xi_write members.
+       (sim_queue_fn_xi_write): New function.
+       (sim_queue_mem_xi_write): New function.
+
+       * cgen-par.c (sim_queue_fn_xi_write): New function.
+       (sim_queue_mem_xi_write): New function.
+       (cgen_write_queue_element_execute): Handle CGEN_FN_XI_WRITE and
+       CGEN_MEM_XI_WRITE.
+
+1999-10-22  Dave Brolley  <brolley@cygnus.com>
+
+       * cgen-par.h (insn_address): New field in CGEN_WRITE_QUEUE_ELEMENT.
+       (CGEN_WRITE_QUEUE_ELEMENT_IADDR): New macro.
+       * cgen-par.c: Set insn_address for each queued write. Get pc from
+       cpu when executing queued writes.
+
+1999-10-19  Dave Brolley  <brolley@cygnus.com>
+
+       * cgen-par.h (sim_queue_fn_pc_write): New function.
+       (CGEN_FN_PC_WRITE): New enumerator.
+       (fn_pc_write): New union member.
+       * cgen-par.c (sim_queue_fn_pc_write): New function.
+       (cgen_write_queue_element_execute): Handle CGEN_FN_PC_WRITE.
+
+1999-10-18  Dave Brolley  <brolley@cygnus.com>
+
+       * cgen-par.h (CGEN_MEM_DI_WRITE): New enumerator.
+       (CGEN_MEM_DF_WRITE): New enumerator.
+       (mem_di_write): New union member.
+       (mem_df_write): New union member.
+       * cgen-par.c (sim_queue_mem_di_write): New function.
+       (sim_queue_mem_df_write): New function.
+       (cgen_write_queue_element_execute): Handle CGEN_MEM_DI_WRITE and
+       CGEN_MEM_DF_WRITE.
+       * cgen-accfp.c (divsf): Check for division errors.
+
+1999-10-14  Doug Evans  <devans@casey.cygnus.com>
+
+       * cgen-engine.h (EXTRACT_INT,EXTRACT_UINT): Delete.
+
 1999-10-07  Dave Brolley  <brolley@cygnus.com>
 
        * cgen-par.h (CGEN_FN_HI_WRITE): New enumerator. 
@@ -31,6 +329,11 @@ Mon Sep 20 21:44:06 1999  Geoffrey Keating  <geoffk@cygnus.com>
         * sim-fpu.c (i2fpu): Keep the guard bits sticky when converting
         large values.
 
+Tue Feb  8 16:33:48 2000  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * run.c (main): Check the sim_stop_reason and only halt simulation
+       when a valid stop condition is identified.
+
 Wed Sep 15 14:12:37 1999  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * hw-tree.c, hw-properties.c, hw-instances.c: Include "sim-io.h".