aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-options.c
AgeCommit message (Collapse)AuthorFilesLines
2009-01-14 Update the copyright notice of some of the files I missedJoel Brobecker1-1/+2
in the previous copyright update.
2008-01-01 Updated copyright notices for most files.Daniel Jacobowitz1-1/+1
2007-08-24 Switch the license of all files explicitly copyright the FSFJoel Brobecker1-5/+4
to GPLv3.
2007-08-10* sim-memopt.c (memory_options): Mention that the memory-size switch accepts ↵Nick Clifton1-3/+17
suffixes. (parse_size): Handle a suffix on the size value. * sim-options.c (standard_options): Mention that the mem-size switch accepts suffixes. (standard_option_handler): Handle a suffix on the size value.
2007-01-09Copyright updates for 2007.Daniel Jacobowitz1-1/+1
2004-12-08 * run.1: Document --sysroot=filepath.Hans-Peter Nilsson1-1/+15
* sim-options.c (STANDARD_OPTIONS): New member OPTION_SYSROOT. (standard_options): Support --sysroot=<path>. (standard_option_handler): Handle OPTION_SYSROOT. * syscall.c (simulator_sysroot): Define, initialized empty. (get_path): Prepend simulator_sysroot to absolute file path. [HAVE_STRING_H]: Include string.h. [!HAVE_STRING_H && HAVE_STRINGS_H]: Include strings.h. * nrun.c [HAVE_UNISTD_H]: Include unistd.h. (main): If simulator_sysroot is not empty, chdir there. * sim-config.h (simulator_sysroot): Declare.
2004-07-10 * hw-tree.c (parse_integer_property): Typo fix in comments.Ben Elliston1-2/+2
* sim-options.c (sim_args_command): Likewise.
2003-11-22 * sim-options.c (standard_options): Fix the names of H8Kazu Hirata1-3/+3
variants.
2003-08-28Index: common/ChangeLogAndrew Cagney1-1/+4
2003-08-28 Andrew Cagney <cagney@redhat.com> * dv-glue.c (hw_glue_finish): Change %d to %ld to match sizeof. * sim-options.c (print_help): Cast the format with specifier to "int". Index: mn10300/ChangeLog 2003-08-28 Andrew Cagney <cagney@redhat.com> * dv-mn103ser.c (do_polling_event): Change type of "serial_reg" to "long". (read_status_reg): Cast "serial_reg" to "long". * dv-mn103tim.c (do_counter_event): Change type of "timer_nr" to "long". (do_counter6_event, write_mode_reg, write_tm6md): Ditto.
2003-06-052003-06-04 Michael Snyder <msnyder@redhat.com>Michael Snyder1-5/+12
* common/run.c (main): Remove SIM_H8300 ifdef. (usage): Ditto. * common/sim-options.c (STANDARD_OPTIONS): Add SIM_H8300SX. (standard_options): Add '-x' for h8/300sx. (standard_option_handler): Add case for SIM_H8300SX.
2002-05-17* h8300s now new target, not alias of h8300hAndrey Volkov1-2/+9
2000-11-25Fix memory leak in sim_parse_argsStephane Carrez1-4/+17
1999-12-14import gdb-1999-12-13 snapshotJason Molenda1-1/+1
1999-07-12import gdb-1999-07-12 snapshotJason Molenda1-0/+30
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+936
1999-04-16Initial creation of sourceware repositoryStan Shebs1-936/+0
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-28Pacify GCC: const char * passed to asprintf; int function returningAndrew Cagney1-3/+4
void; unused variable.
1998-02-27 * sim-base.h (sim_cpu_base): New members name, options.Doug Evans1-79/+216
(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.
1997-12-04 * Make-common.in (SIM_ENVIRONMENT): New variable.Doug Evans1-47/+107
(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-09-22Add support for --enable-sim-alignment to simulator common aclocal.m4Andrew Cagney1-1/+50
Add support for --alignment={strict,nonstrict,forced} to simulator common run-time options. For v850 use, make the default NONSTRICT_ALIGNMENT.
1997-09-10o Wordwrap usage messages from sim-optionsAndrew Cagney1-7/+22
o Clarify how to use alias options o use in sim-watch (better usage message) o Don't pass something on the stack into the watch-point interrupt hander.
1997-09-10Add option architecture-info to list supported architectures.Andrew Cagney1-0/+21
1997-08-30Passify GCC. Convert 0x0LL to something more portable in the FP code.Andrew Cagney1-1/+1
1997-08-28 * sim-options.c (standard_option_handler): Use xstrdup, not strdup.David Edelsohn1-1/+1
1997-08-28Add --target=BFDTARGET and --architecture=MACHINE options.Andrew Cagney1-0/+30
1997-08-27Save a copy of argv, not just a pointer.Andrew Cagney1-2/+11
1997-05-27Extend xor-endian and per-cpu support in core module.Andrew Cagney1-22/+27
Allow negated test when watching value within core.
1997-05-21Watchpoint interface.Andrew Cagney1-39/+93
1997-05-08Add function sim_args_command() which takes a `(gdb) sim <command>' andAndrew Cagney1-16/+101
parses it using rules found in the simulator command-line-options databse.
1997-05-01 * Makefile.in (sim-options_h): Define.David Edelsohn1-302/+2
(sim-{module,options,trace,profile,utils}.o): Clean up dependencies. (sim-model.o): Add new rule. (cgen-{scache,trace,utils}.o): Add new rules. * aclocal.m4 (SIM_AC_OPTION_{SCACHE,DEFAULT_MODEL}): Add. * cgen-scache.c (scache_print_profile): Change `sd' arg to `cpu'. Indent output by 2 spaces. * cgen-scache.h (scache_print_profile): Update. * cgen-trace.c (trace_insn_fini): Indent output by 2 spaces. Use trace_printf, not fprintf. (trace_extract): Use trace_printf, not cgen_trace_printf. * genmloop.sh (!FAST case): Increment `insn_count'. * sim-base.h (sim_state_base): Only include scache_size if WITH_SCACHE. (sim_cpu_base): Rename member `sd' to `state' to be consistent with access macro's name. * sim-core.c (sim_core_init): Use EXTERN_SIM_CORE to define it. Change return type to SIM_RC. (sim_core_{install,uninstall}): New functions. * sim-core.h (sim_core_{install,uninstall}): Declare. (sim_core_init): Use EXTERN_SIM_CORE to define it. Change return type to SIM_RC. * sim-model.h (models,machs,model_install): Declare. * sim-module.c (modules): Add scache_install, model_install. (sim_post_argv_init): Set cpu->state backlinks. * sim-options.c (standard_options): Delete --simcache-size,--max-insns. (standard_option_handler): Likewise. * sim-profile.c (PROFILE_{HISTOGRAM,LABEL}_WIDTH): Move to sim-profile.h. (*): Assume ANSI C. (profile_options): Delete --profile-simcache. (profile_option_handler): Likewise. (profile_print_insn): Change `sd' arg to `cpu'. Indent output 2 spaces. (profile_print_{memory,model}): Likewise. (profile_print_simcache): Delete. (profile_print_speed): New function. (profile_print): Rewrite. * sim-profile.h (PROFILE_scache): Renamed from PROFILE_simcache. (WITH_PROFILE_SCACHE_P): Renamed from WITH_PROFILE_SIMCACHE_P. (PROFILE_DATA): Delete members simcache_{hits,misses}. (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): Delete. (PROFILE_{CALLBACK,CPU_CALLBACK}): New types. (profile_print): Update prototype.
1997-04-18 * sim-options.c (standard_options): Add --endian.David Edelsohn1-2/+47
(standard_option_handler): Likewise.
1997-04-17(standard_option_handler): Tweak some error messages.David Edelsohn1-13/+13
(sim_parse_args): Record orig_val as unsigned char.
1997-04-17 * sim-options.c, sim-options.h: New files.David Edelsohn1-0/+724