From 269362117d399d9d86b7e565e7cb827500fac31c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 24 Dec 2015 21:36:09 -0500 Subject: 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. --- sim/common/ChangeLog | 6 ++++++ sim/common/sim-options.c | 10 +--------- 2 files changed, 7 insertions(+), 9 deletions(-) (limited to 'sim/common') 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 + * 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 + * sim-module.c (MODULE_LIST): Delete. 2015-12-24 Mike Frysinger 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; } -- cgit v1.1