diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-12-24 16:41:55 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-12-24 19:52:13 -0500 |
commit | 3cabaf66d6ec7343bd3badc5c44c2ddd06221913 (patch) | |
tree | 10cde4cd72ab382a3f744b5b05da6d571cb55ac9 /sim/common/sim-options.c | |
parent | b1af947345ccba81244d3370756d0047d3bc8b6e (diff) | |
download | binutils-3cabaf66d6ec7343bd3badc5c44c2ddd06221913.zip binutils-3cabaf66d6ec7343bd3badc5c44c2ddd06221913.tar.gz binutils-3cabaf66d6ec7343bd3badc5c44c2ddd06221913.tar.bz2 |
sim: delete SIM_HAVE_FLATMEM support
No target has used this, and it's a cheap hack in place in using the
common memory module. We want everyone using that though, so drop
support for flatmem entirely.
Diffstat (limited to 'sim/common/sim-options.c')
-rw-r--r-- | sim/common/sim-options.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/sim/common/sim-options.c b/sim/common/sim-options.c index f823143..5e04573 100644 --- a/sim/common/sim-options.c +++ b/sim/common/sim-options.c @@ -102,9 +102,6 @@ typedef enum { OPTION_VERBOSE, OPTION_ENDIAN, OPTION_DEBUG, -#ifdef SIM_HAVE_FLATMEM - OPTION_MEM_SIZE, -#endif OPTION_HELP, OPTION_VERSION, #ifdef SIM_H8300 /* FIXME: Should be movable to h8300 dir. */ @@ -162,12 +159,6 @@ static const OPTION standard_options[] = standard_option_handler }, #endif -#ifdef SIM_HAVE_FLATMEM - { {"mem-size", required_argument, NULL, OPTION_MEM_SIZE}, - 'm', "<size>[in bytes, Kb (k suffix), Mb (m suffix) or Gb (g suffix)]", - "Specify memory size", standard_option_handler }, -#endif - { {"do-command", required_argument, NULL, OPTION_DO_COMMAND}, '\0', "COMMAND", ""/*undocumented*/, standard_option_handler }, @@ -376,35 +367,6 @@ standard_option_handler (SIM_DESC sd, sim_cpu *cpu, int opt, break; #endif -#ifdef SIM_HAVE_FLATMEM - case OPTION_MEM_SIZE: - { - char * endp; - unsigned long ul = strtol (arg, &endp, 0); - - switch (* endp) - { - case 'k': case 'K': size <<= 10; break; - case 'm': case 'M': size <<= 20; break; - case 'g': case 'G': size <<= 30; break; - case ' ': case '\0': case '\t': break; - default: - if (ul > 0) - sim_io_eprintf (sd, "Ignoring strange character at end of memory size: %c\n", * endp); - break; - } - - /* 16384: some minimal amount */ - if (! isdigit (arg[0]) || ul < 16384) - { - sim_io_eprintf (sd, "Invalid memory size `%s'", arg); - return SIM_RC_FAIL; - } - STATE_MEM_SIZE (sd) = ul; - } - break; -#endif - case OPTION_DO_COMMAND: sim_do_command (sd, arg); break; |