diff options
author | Doug Evans <dje@google.com> | 1998-02-27 18:39:22 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 1998-02-27 18:39:22 +0000 |
commit | 966df5804d7586c1a30853ffb4aa0663c942c337 (patch) | |
tree | 3451ce3db2f4deec7d55670a701f507c024b6d72 /sim/common/sim-profile.c | |
parent | 2e7236783eccbd1d0bed7f49aac81e447be5e314 (diff) | |
download | gdb-966df5804d7586c1a30853ffb4aa0663c942c337.zip gdb-966df5804d7586c1a30853ffb4aa0663c942c337.tar.gz gdb-966df5804d7586c1a30853ffb4aa0663c942c337.tar.bz2 |
* sim-base.h (sim_cpu_base): New members name, options.
(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.
Diffstat (limited to 'sim/common/sim-profile.c')
-rw-r--r-- | sim/common/sim-profile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/common/sim-profile.c b/sim/common/sim-profile.c index f9807da..796b945 100644 --- a/sim/common/sim-profile.c +++ b/sim/common/sim-profile.c @@ -103,6 +103,7 @@ static const OPTION profile_options[] = { static SIM_RC profile_option_handler (SIM_DESC sd, + sim_cpu *cpu, int opt, char *arg, int is_command) @@ -938,7 +939,7 @@ profile_install (SIM_DESC sd) int i; SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER); - sim_add_option_table (sd, profile_options); + sim_add_option_table (sd, NULL, profile_options); for (i = 0; i < MAX_NR_PROCESSORS; ++i) memset (CPU_PROFILE_DATA (STATE_CPU (sd, i)), 0, sizeof (* CPU_PROFILE_DATA (STATE_CPU (sd, i)))); |