aboutsummaryrefslogtreecommitdiff
path: root/sim/common
AgeCommit message (Collapse)AuthorFilesLines
1998-05-20 * cgen-trace.c (first_insn_p): New static local.Doug Evans1-0/+16
(trace_insn_init): Set it. (trace_insn_fini): Use TRACE_PREFIX. (trace_insn): Rewrite to use trace_prefix. * sim-trace.c (trace_prefix): Don't print filename arg if NULL. Adjust width accordingly. * sim-profile.h (PROFILE_DATA): New member profile_any_p. (PROFILE_ANY_P,PROFILE_INSN_P,PROFILE_MEMORY): New macros. (PROFILE_SCACHE_P,PROFILE_PC_P,PROFILE_CORE_P): New macros. (PROFILE_COUNT_INSN,PROFILE_COUNT_READ,PROFILE_COUNT_WRITE): Simplify. (PROFILE_COUNT_CORE): Simplify. * sim-profile.c (profile_option_handler): Compute profile_any_p.
1998-05-20 * cgen-ops.h (ADDCFSI): Fix typo.Doug Evans1-0/+4
1998-05-17 * cgen-sim.h (CGEN_CPU): New members idesc_{read,sem}_init_p.Doug Evans1-0/+3
* genmloop.sh: Use them rather than static locals.
1998-05-16 * sim-engine.c (sim_engine_set_run_state): New function.Doug Evans2-28/+51
* sim-engine.h (sim_engine_set_run_state): Declare. * genmloop.sh (pending_reason,pending_sigrc): New static locals. (@cpu@_engine_stop): New args reason,sigrc. All callers updated. (engine_resume): Reorganize. Allow synchronous exit from main loop.
1998-05-15 * cgen-trace.c (trace_insn_init): New arg first_p.Doug Evans3-5/+15
All callers updated. (trace_insn_fini): New arg last_p. All callers updated. * cgen-trace.h (trace_insn_init,trace_insn_fini): Update. (TRACE_INSN_INIT,TRACE_INSN_FINI): Update. * genmloop.sh (engine_resume): Update.
1998-05-15Run ranlib on installed copy of libsim.a.Joyce Janczyn2-1/+7
1998-05-15Install libsim.a $(exec_prefix)/lib/lib[target]-sim.a as part of install-sim.Joyce Janczyn2-17/+70
1998-05-07 * Make-common (sim_main_headers): Sort.Doug Evans2-0/+82
(cgen-*.o): Add cgen-sim.h dependency. * sim-cpu.h: New file. sim_cpu_base moved here. Move sim_cpu_lookup decl here. * sim-base.h: #include "sim-cpu.h". * sim-cpu.c: New file. * Make-common (sim_main_headers): Add sim-cpu.h. (sim-cpu.o): Add rule for.
1998-05-06 * sim-io.c: #include <errno.h>.Doug Evans1-0/+4
1998-05-06Copy polling code in PSIM simulator into common directory. WillAndrew Cagney2-148/+84
need rewrite later. Use in mn10300 simulator.
1998-05-05Fix sanitization.Doug Evans1-7/+1
1998-05-01*) Delete CPU and CIA arguments from hw_io_*_buffer transfers.Andrew Cagney1-0/+56
Instead save them in the sim_hw structure. *) Route sim-core accesses to hw devices through the sim_hw module. *) Route hw device requests to abort/halt through the sim_hw module. *) Add print parameter to hw_tree_print() function. *) Add sim_engine_vabort () function.
1998-04-30Add 2-result FP trace macro.Andrew Cagney1-0/+8
Dump hex value of floating-point numbers
1998-04-29Tue Apr 28 18:28:58 1998 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer1-0/+8
* 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 And update all subdirectory ChangeLogs and configure files.
1998-04-27Clean up cell types.Andrew Cagney1-0/+5
1998-04-26 * configure: Regenerated to track ../common/aclocal.m4 changes.Tom Tromey2-3/+9
* config.in: Ditto. * acconfig.h (NEED_DECLARATION_PRINTF): Removed.
1998-04-24 * configure: Regenerated to track ../common/aclocal.m4 changes.Tom Tromey6-48/+2163
* config.in: Ditto. * 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.
1998-04-24Drop leading `_' from macros.Andrew Cagney2-5/+18
1998-04-22Delete sky sim-base.h entries (required sanitization).Doug Evans1-12/+0
1998-04-22Move target specific stuff from sim/common/sim-base.h to sim/mips/sim-main.hJames Lemke1-0/+7
1998-04-22Add intl supportMichael Meissner2-5/+16
1998-04-21sim-base.h: Add configure option --with-sim-funit.James Lemke2-0/+16
1998-04-21 * cgen-ops.h (ADDCFSI): Fix.Doug Evans1-0/+3
(SUBCFSI): Tweak. PR 15741.
1998-04-21 * cgen-types.h (GETHIDI,MAKEDI): Tweak.Doug Evans1-0/+4
1998-04-21Implement ERET instruction.Andrew Cagney2-4/+28
Add {signed,unsigned}_address type.
1998-04-16o CVT.S.W and CVT.W.S were reversedAndrew Cagney2-3/+47
o When unpacking an r5900 FP value, was not treating IEEE-NaN's as very large values. o When packing an r5900 FP result from an infinite precision intermediate value was saturating to IEEE-MAX instead of r5900-MAX o The least significant bit of the FP status register did not stick to one.
1998-04-15Add EXTEND11().Andrew Cagney1-2/+1
1998-04-15Define EXTEND15().Andrew Cagney2-1/+3
1998-04-15Define EXTEND4() and EXTEND5().Andrew Cagney2-0/+7
1998-04-14Tue Apr 14 16:31:35 1998 John Metzler <jmetzler@cygnus.com>John Metzler1-0/+6
* 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.
1998-04-14 * Make-common.in (RUNTESTFLAGS): Define.Doug Evans1-0/+5
(check): Pass RUNTESTFLAGS to recursive make.
1998-04-14* sim-info.c (sim_info): Be verbose when either VERBOSE or STATE_VERBOSE_P.Andrew Cagney1-0/+5
1998-04-05aclocal.m4: Don't enable inlining when cross-compiling.Andrew Cagney1-1/+5
mips/*: Tune mips simulator - allow all memory transfer code to be inlined.
1998-04-04Cleanup INLINE support for simulators using common framework.Andrew Cagney6-55/+171
Make IGEN responsible for co-ordinating inlining of generated files. By default, aclocal.m4 disabled all inlining.
1998-04-03Don't bother generating trace prefix string when not tracing.Andrew Cagney1-0/+15
1998-03-30* run.c (main): Handle all alternatives of enum sim_stop.Andrew Cagney1-0/+5
(main): Delete unused `asection *s'.
1998-03-27Do top level sim-hw module for device tree.Andrew Cagney4-2/+61
Add to aclocal.m4, update all configure files.
1998-03-27Define CPU_INDEX. Initialize.Andrew Cagney3-2/+22
For mips_options, iterate over MAX_NR_PROCESSORS when setting options.
1998-03-27Add sanitize-am30 markers. Keep details of AM30 implementation ofAndrew Cagney2-13/+66
mn10300 out of the public eye. Do something with top-level cgen directory.
1998-03-25* dv-pal.c (enum hw_pal_address_mask): From Stu Grossman, was 0x2fAndrew Cagney1-0/+5
needs to be 0x3f.
1998-03-25* hw-tree.c (hw_tree_find_property): Return NULL when device is not found.Andrew Cagney2-2/+20
(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.
1998-03-25* Added HAVE_FPU_CONTROL_H and HAVE___SETFPUCW to fix non-linux builds.Ian Carmichael2-2/+8
1998-03-25* dv-pal.c (hw_pal_countdown, hw_pal_countdown_value,Andrew Cagney3-64/+278
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. * 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.
1998-03-25Re-do --enable-sim-hardware so that each simulator can specify the devicesAndrew Cagney3-53/+83
it wants built. Generate hw-config.h.
1998-03-24 * Make-common.in: Get SHELL from configure.Stu Grossman3-39/+225
* (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.
1998-03-22New function hw_strdup() - use memory tied to hw device.Andrew Cagney1-0/+380
Tidy up hw-properties error messages. New device dv-glue.c (copied from ../ppc/hw_glue.) Only attach a port after a devices initialization has finished.
1998-03-22Fix typos: Setting trace in wrong function, ME vs HW.Andrew Cagney2-2/+5
1998-03-22Copy function ../ppc/device_table.c:generic_device_init_address() toAndrew Cagney4-4/+1390
hw-base.c:do_hw_attach_regs(). Use in dv-pal. Add hw_tree_delete to hw-tree.c.
1998-03-22Add function hw_trace() and macro HW_TRACE - provides trace supportAndrew Cagney6-13/+67
for HW devices.
1998-03-22Add hw_{malloc,zalloc,free} functions to hw_device. Any memoryAndrew Cagney7-8/+1335
allocated using these functions is reclaimed when the corresponding device is deleted.