diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-03-27 04:25:45 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-03-27 04:25:45 +0000 |
commit | 82ea14fd9d61893514375b6649e0a74a076d4443 (patch) | |
tree | 7dc15ebabf667a3da1da31e47f628b9de1906261 /sim/common/sim-module.c | |
parent | 227b6b55faa2b122d348563a49061730caa9b90c (diff) | |
download | gdb-82ea14fd9d61893514375b6649e0a74a076d4443.zip gdb-82ea14fd9d61893514375b6649e0a74a076d4443.tar.gz gdb-82ea14fd9d61893514375b6649e0a74a076d4443.tar.bz2 |
Define CPU_INDEX. Initialize.
For mips_options, iterate over MAX_NR_PROCESSORS when setting options.
Diffstat (limited to 'sim/common/sim-module.c')
-rw-r--r-- | sim/common/sim-module.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sim/common/sim-module.c b/sim/common/sim-module.c index 297b133..0fb5471 100644 --- a/sim/common/sim-module.c +++ b/sim/common/sim-module.c @@ -87,6 +87,8 @@ sim_pre_argv_init (SIM_DESC sd, const char *myname) } } + sim_config_default (sd); + /* Install all configured in modules. */ if (sim_module_install (sd) != SIM_RC_OK) return SIM_RC_FAIL; @@ -108,7 +110,10 @@ sim_post_argv_init (SIM_DESC sd) /* Set the cpu->state backlinks for each cpu. */ for (i = 0; i < MAX_NR_PROCESSORS; ++i) - CPU_STATE (STATE_CPU (sd, i)) = sd; + { + CPU_STATE (STATE_CPU (sd, i)) = sd; + CPU_INDEX (STATE_CPU (sd, i)) = i; + } return SIM_RC_OK; } |