diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-12-24 21:36:09 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-12-24 21:50:17 -0500 |
commit | 269362117d399d9d86b7e565e7cb827500fac31c (patch) | |
tree | faca7a3eacceb694bdf29fcf1acaf08de23cccad /sim/common | |
parent | 9db2b719087eb42cfb31018fe87657243f6185c9 (diff) | |
download | gdb-269362117d399d9d86b7e565e7cb827500fac31c.zip gdb-269362117d399d9d86b7e565e7cb827500fac31c.tar.gz gdb-269362117d399d9d86b7e565e7cb827500fac31c.tar.bz2 |
sim: make LMA loading the default for all targets
Most targets already default to loading code via their LMA, but for
a few, this means the default changes from loading VMA to LMA. It's
better to have the different targets be consistent, and allows some
code clean up.
Diffstat (limited to 'sim/common')
-rw-r--r-- | sim/common/ChangeLog | 6 | ||||
-rw-r--r-- | sim/common/sim-options.c | 10 |
2 files changed, 7 insertions, 9 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 8340928..857485c 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,5 +1,11 @@ 2015-12-24 Mike Frysinger <vapier@gentoo.org> + * sim-options.c (standard_options): Always enable load-lma and + load-vma options. + (standard_install): Always set STATE_LOAD_AT_LMA_P(sd) to 1. + +2015-12-24 Mike Frysinger <vapier@gentoo.org> + * sim-module.c (MODULE_LIST): Delete. 2015-12-24 Mike Frysinger <vapier@gentoo.org> diff --git a/sim/common/sim-options.c b/sim/common/sim-options.c index 69655b0..95ed2c8 100644 --- a/sim/common/sim-options.c +++ b/sim/common/sim-options.c @@ -167,18 +167,12 @@ static const OPTION standard_options[] = '\0', "BFDNAME", "Specify the object-code format for the object files", standard_option_handler }, -#ifdef SIM_HANDLES_LMA { {"load-lma", no_argument, NULL, OPTION_LOAD_LMA}, '\0', NULL, -#if SIM_HANDLES_LMA "Use VMA or LMA addresses when loading image (default LMA)", -#else - "Use VMA or LMA addresses when loading image (default VMA)", -#endif standard_option_handler, "load-{lma,vma}" }, { {"load-vma", no_argument, NULL, OPTION_LOAD_VMA}, '\0', NULL, "", standard_option_handler, "" }, -#endif { {"sysroot", required_argument, NULL, OPTION_SYSROOT}, '\0', "SYSROOT", @@ -423,9 +417,7 @@ standard_install (SIM_DESC sd) SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER); if (sim_add_option_table (sd, NULL, standard_options) != SIM_RC_OK) return SIM_RC_FAIL; -#ifdef SIM_HANDLES_LMA - STATE_LOAD_AT_LMA_P (sd) = SIM_HANDLES_LMA; -#endif + STATE_LOAD_AT_LMA_P (sd) = 1; return SIM_RC_OK; } |