2016-01-02 Mike Frysinger <vapier@gentoo.org>
+ * sim-if.c (sim_open): Delete #if 0 sim_add_option_table call.
+
+2016-01-02 Mike Frysinger <vapier@gentoo.org>
+
* sim-if.c (current_state): Delete.
(sim_open): Delete current_state assignment.
return 0;
}
-#if 0 /* FIXME: 'twould be nice if we could do this */
- /* These options override any module options.
- Obviously ambiguity should be avoided, however the caller may wish to
- augment the meaning of an option. */
- if (extra_options != NULL)
- sim_add_option_table (sd, extra_options);
-#endif
-
/* getopt will print the error message so we just have to exit if this fails.
FIXME: Hmmm... in the case of gdb we need getopt to call
print_filtered. */
2016-01-02 Mike Frysinger <vapier@gentoo.org>
+ * sim-if.c (free_state, print_lm32_misc_cpu): Delete prototypes.
+ (lm32_option_handler, OPTION_ENDIAN, lm32_options): Delete.
+ (sim_open): Delete sim_add_option_table call.
+
+2016-01-02 Mike Frysinger <vapier@gentoo.org>
+
* sim-if.c (current_state): Delete.
(sim_open): Delete current_state assignment.
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
-
-static void free_state (SIM_DESC);
-static void print_lm32_misc_cpu (SIM_CPU * cpu, int verbose);
-static DECLARE_OPTION_HANDLER (lm32_option_handler);
-
-enum
-{
- OPTION_ENDIAN = OPTION_START,
-};
-
-/* GDB passes -E, even though it's fixed, so we have to handle it here. common code only handles it if SIM_HAVE_BIENDIAN is defined, which it isn't for lm32. */
-static const OPTION lm32_options[] = {
- {{"endian", required_argument, NULL, OPTION_ENDIAN},
- 'E', "big", "Set endianness",
- lm32_option_handler},
- {{NULL, no_argument, NULL, 0}, '\0', NULL, NULL, NULL}
-};
\f
/* Cover function of sim_state_free to free the cpu buffers as well. */
return 0;
}
-/* Handle lm32 specific options. */
-
-static SIM_RC
-lm32_option_handler (sd, cpu, opt, arg, is_command)
- SIM_DESC sd;
- sim_cpu *cpu;
- int opt;
- char *arg;
- int is_command;
-{
- return SIM_RC_OK;
-}
-
/* Create an instance of the simulator. */
SIM_DESC
free_state (sd);
return 0;
}
- sim_add_option_table (sd, NULL, lm32_options);
/* getopt will print the error message so we just have to exit if this fails.
FIXME: Hmmm... in the case of gdb we need getopt to call
2016-01-02 Mike Frysinger <vapier@gentoo.org>
+ * sim-if.c (sim_open): Delete #if 0 sim_add_option_table call.
+
+2016-01-02 Mike Frysinger <vapier@gentoo.org>
+
* sim-if.c (current_state): Delete.
(sim_open): Delete current_state assignment.
return 0;
}
-#if 0 /* FIXME: 'twould be nice if we could do this */
- /* These options override any module options.
- Obviously ambiguity should be avoided, however the caller may wish to
- augment the meaning of an option. */
- if (extra_options != NULL)
- sim_add_option_table (sd, extra_options);
-#endif
-
/* getopt will print the error message so we just have to exit if this fails.
FIXME: Hmmm... in the case of gdb we need getopt to call
print_filtered. */
2016-01-02 Mike Frysinger <vapier@gentoo.org>
+ * sim-if.c (sim_open): Delete #if 0 sim_add_option_table call.
+
+2016-01-02 Mike Frysinger <vapier@gentoo.org>
+
* sim-if.c (current_state): Delete.
(sim_open): Delete current_state assignment.
return 0;
}
-#if 0 /* FIXME: 'twould be nice if we could do this */
- /* These options override any module options.
- Obviously ambiguity should be avoided, however the caller may wish to
- augment the meaning of an option. */
- if (extra_options != NULL)
- sim_add_option_table (sd, extra_options);
-#endif
-
/* getopt will print the error message so we just have to exit if this fails.
FIXME: Hmmm... in the case of gdb we need getopt to call
print_filtered. */