aboutsummaryrefslogtreecommitdiff
path: root/sim/common
AgeCommit message (Collapse)AuthorFilesLines
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.
1998-02-24 * nltvals.def: Regenerate with MN10300 additions.Mark Alexander1-0/+4
1998-02-24Add tracing to r5900 p* instructions.Andrew Cagney3-2/+115
1998-02-23 * cgen-sim.h (SEM_NEXT_PC): New arg `len'.Doug Evans1-0/+2
1998-02-23 * sim-xcat.h: Delete.Doug Evans7-695/+825
* 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.
1998-02-23Handle short reads and EOFMichael Meissner2-1/+10
1998-02-23Add tracing of booleans and addresses.Andrew Cagney3-22/+189
1998-02-23 * sim-fpu.h (enum sim_fpu_class): Add sim_fpu_class_denorm.Andrew Cagney3-52/+351
(sim_fpu_fpto, sim_fpu_tofp): Define.
1998-02-20fix typoMichael Meissner1-30/+40
1998-02-20Implement sim_fpu_is() and sim_fpu_cmp(). Note problem with detectingAndrew Cagney2-428/+1936
denorms.
1998-02-20Backout of revision 1.35. Abort may be valid operation.Andrew Cagney1-3/+14
1998-02-18Extend sim-trace.[hc] to include a generic set of macro's for tracingAndrew Cagney3-76/+813
ALU/... inputs/outputs. Base implementation on original v850 code. Update igen to generate code interfacing with newer sim-trace.[hc].
1998-02-18 * Make-common.in (CGEN_MAIN_SCM): Update.Doug Evans1-0/+3
* aclocal.m4 (USE_MAINTAINER_MODE): New variable.
1998-02-18 * cgen-sim.h (SEMANTIC_CACHE_FN): Delete.Doug Evans1-0/+10
(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.
1998-02-11* sim-load.c (sim_load_file): Print LMA/VMA according to valueAndrew Cagney1-0/+11
used.
1998-02-10 (PAREXEC): Renamed from PARALLEL_EXEC. All uses updated.Doug Evans1-0/+2
(SEMANTIC{,_CACHE}_FN): Fix return type.
1998-02-10 * cgen-sim.h (DECODE): Always use switch for `read' for now.Doug Evans2-8/+5
* 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.
1998-02-09 * genmloop.sh (@cpu@_engine_run): Delete `current_state'.Doug Evans2-64/+355
(engine_resume): Likewise. Make `engine' volatile. Save copy of cpu pointer in volatile object.
1998-02-05 * cgen-sim.h (EX_FN_NAME): _exc_ -> _ex_.Doug Evans2-67/+235
(SEM_INSN): New macro.
1998-02-03IGEN - Replace IMEM (IMEM_IMMED) macro with IMEM<insn-size> macro,Andrew Cagney1-0/+6
update v850, tic80 and mips simulators. IGEN - Prepend prefix to more generated symbols and macros (idecode_issue, instruction_word). IGEN - Add -Wnowith option to supress warnings about word size inflicts in input files. MIPS - Clean up Makefile.in, m16.igen, m16.dc (new), m16run.c (new) so that a mips16 simulator built using IGEN can be compiled.
1998-02-02Add support for configuring the size of the floating point unit (fp_word).Andrew Cagney1-0/+12
For mips, move fp_registers into a separate array of type fp_word[].
1998-02-01mips: Add multi-processor support for r5900. Others might work.Andrew Cagney1-0/+5
common, igen: Fix MP related bugs.
1998-01-31Add config support for the size of the target address and OF cell.Andrew Cagney5-36/+108
1998-01-31igen: Fix SMP simulator generator support.Andrew Cagney1-0/+18
Use the bfd-processor name in the sim-engine switch. Add nr_cpus argument to sim_engine_run. tic80, v850, d30v, mips, common: Update mips: Fill in bfd-processor field of model records so that they match ../bfd/archures.
1998-01-29 * cgen.sh: Portably read parms past $9.Doug Evans1-0/+4
1998-01-23 * Make-common.in (stamp-tvals): New rule.Doug Evans1-0/+6
(targ-vals.h,targ-map.c): Depend on it. (clean): Remove stamp-tvals.
1998-01-21#if 0 unused variableMichael Meissner1-0/+5
1998-01-20* aclocal.m4: Recognize --enable-maintainer-mode.Doug Evans4-47/+176
*/configure: Regenerated.
1998-01-20* Make-common.in (cgen-run.o,cgen-scache.o): Delete cgen-scache.h dep.Doug Evans2-4/+3
1998-01-20sanitize keep-cygnus cgen generationDoug Evans3-1/+41
1998-01-19 * Make-common.in (cgen-{arch,cpu,decode}): New targets.Doug Evans4-3/+220
* cgen.sh: New file. * cgen-scache.h: Deleted. * 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.
1998-01-19 * sim-base.h (sim_state_base): Delete member `model'.Doug Evans1-45/+524
(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.
1998-01-19 * sim-utils.c (sim_state_alloc): Delete setting of cpu backlink here.Doug Evans1-0/+29
1998-01-19Fix comment.Doug Evans1-0/+78
1998-01-16replaced call to CGEN_INSN_SYNTAX()->mnemonic with CGEN_INSN_MNEMONIC()Nick Clifton2-9/+23
1997-12-05 * Make-common.in (sim-core.o): Depend on $(sim_main_headers).Doug Evans1-0/+6
* sim-config.h (WITH_TREE_PROPERTIES): Define as 0. * sim-config.c (sim_config): Replace WITH_DEVICES with WITH_TREE_PROPERTIES.
1997-12-04Regenerate configure files.Doug Evans1-0/+4
1997-12-04 * Make-common.in (SIM_ENVIRONMENT): New variable.Doug Evans5-110/+222
(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.
1997-11-30Delete sim_io_syscalls and sim_io_getstringMichael Meissner1-0/+5
1997-11-29Switch to using cb_syscall; Fix bug in cb_syscall writeMichael Meissner1-0/+3
1997-11-29Fix problems with d30v addc/subbMichael Meissner2-203/+398