aboutsummaryrefslogtreecommitdiff
path: root/sim/common
AgeCommit message (Collapse)AuthorFilesLines
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.
1998-03-22Replace *attach_address() arguments SPACEMASK:ADDR with SPACE:ADDR.Andrew Cagney5-0/+1481
Add notes to hw-device.h that discuss the interpretation of SPACE:ADDR on a BUS.
1998-03-18Prototype common device framework. Plenty more work to go.Andrew Cagney3-0/+142
1998-03-18* aclocal.m4 (SIM_AC_OPTION_HARDWARE): Set sim_hw_obj, sim_dv_obj,Andrew Cagney1-0/+8
sim_dv_src in Makefile. Take list of devices as parameter to m4 macro.. * configure: Regenerated to track ../common/aclocal.m4 changes.
1998-03-16Pass sim_cia cia into trace_prefix()Andrew Cagney1-1/+6
1998-03-15 * dv-sockser.c, dv-sockser.h: New files.Doug Evans6-7/+81
* 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 * sim-base.h (struct sim_state_base): Add prog_syms andFred Fish2-8/+84
define macro STATE_PROG_SYMS. * sim-trace.c (trace_one_insn): 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.
1998-03-13massive sanitization fixesAngela Marie Thomas1-0/+1
1998-03-11Allow more than just read, write and exec memory spaces in the coreAndrew Cagney1-4/+5
module.
1998-03-09 * sim-base.h (sim_state_base): New member environment.Doug Evans2-0/+17
(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.
1998-03-09Patch to fix irix6-x-mips64-elf simulator failures.Jim Wilson1-0/+4
* sim-fpu.c (NR_GUARDS64): Change NR_PAD32 to NR_PAD64.
1998-03-04 * sim-core.c (sim_core_attach): Use xmalloc instead of zalloc.Doug Evans2-10/+3
Use 0xa5 as initial value. (sim_core_map_detach): Use free instead of zfree. Back out this change.
1998-03-03 * sim-types.h (SIGNED32, SIGNED64): Pacify GCC.Andrew Cagney1-0/+6
* sim-alu.h (ALU64_BEGIN): Make alu64_r unsigned.
1998-03-03Fix typos.Doug Evans1-2/+2
1998-03-03 * Make-common.in (TAGS): Make smarter.Doug Evans1-0/+1
* Makefile.in (TAGS): Ditto.
1998-03-03 * Make-common.in (TAGS): Make smarter.Doug Evans1-0/+2
1998-03-03Good grief. Detailed function descriptions should accompany their definition.Doug Evans2-12/+4
1998-03-03(sim_core_attach): Add a comment describing its function.Doug Evans1-1/+13
Tweak switch() sanity check.
1998-03-03Improve comment.Doug Evans1-1/+1
1998-03-02 * sim-core.c (sim_core_attach): Revise last patch.Doug Evans2-1/+5
Use 0xa5 as initial value.
1998-03-02 * sim-core.c (sim_core_attach): Use xmalloc instead of zalloc.Doug Evans2-2/+8
(sim_core_map_detach): Use free instead of zfree.
1998-03-01(find_match): recheck argv[argi] in multi-word match. Fixes crash whenRon Unrau1-1/+2
subset words are alone on the command line.
1998-02-28 * sim-module.c (*): Fix typos in assertion tests.Doug Evans2-11/+15
1998-02-28Pacify GCC: const char * passed to asprintf; int function returningAndrew Cagney3-4/+14
void; unused variable.
1998-02-28Add generic sim-info.c:sim_info() function using module mechanism.Andrew Cagney7-33/+461
Clean up compile probs in mips/vr5400.
1998-02-27 * sim-base.h (sim_cpu_base): New members name, options.Doug Evans7-112/+316
(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.
1998-02-25 * Make-common.in (check): Run `make check' in testsuite dir.Doug Evans2-20/+22
1998-02-25Extend TRACE macros to include more cases.Andrew Cagney3-6/+239
Add MAX/MIN floating point functions. Add max32, min32 floating point contstants.
1998-02-25delete FIXMEDoug Evans1-4/+11
1998-02-25 * genmloop.sh (engine_resume): Update insn_count before exiting.Doug Evans3-121/+124
(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.
1998-02-25 (profile_print_core): Simplify by calling sim_core_map_to_str.Doug Evans1-0/+3
* sim-core.h (sim_core_map_to_str): Declare. * sim-core.c (sim_core_map_to_str): Make non-static.
1998-02-25 (profile_print_core): Simplify by calling sim_core_map_to_str.Doug Evans3-45/+52
* sim-core.h (sim_core_map_to_str): Declare. * sim-core.c (sim_core_map_to_str): Make non-static.
1998-02-25 * sim-profile.c (profile_print): Delete duplicate test ofDoug Evans2-3/+34
PROFILE_INSN_IDX. (profile_print_pc): Exit early if data collection not set up.