aboutsummaryrefslogtreecommitdiff
path: root/sim/bfin/machs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/bfin/machs.c')
-rw-r--r--sim/bfin/machs.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sim/bfin/machs.c b/sim/bfin/machs.c
index 8b7b106..a2060e8 100644
--- a/sim/bfin/machs.c
+++ b/sim/bfin/machs.c
@@ -1976,7 +1976,7 @@ enum {
OPTION_MACH_HW_BOARD_FILE,
};
-const OPTION bfin_mach_options[] =
+static const OPTION bfin_mach_options[] =
{
{ {"sirev", required_argument, NULL, OPTION_MACH_SIREV },
'\0', "NUMBER", "Set CPU silicon revision",
@@ -2019,3 +2019,13 @@ bfin_mach_option_handler (SIM_DESC sd, sim_cpu *current_cpu, int opt,
return SIM_RC_FAIL;
}
}
+
+/* Provide a prototype to silence -Wmissing-prototypes. */
+extern MODULE_INIT_FN sim_install_bfin_mach;
+
+SIM_RC
+sim_install_bfin_mach (SIM_DESC sd)
+{
+ SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER);
+ return sim_add_option_table (sd, NULL, bfin_mach_options);
+}