Now that we don't need to hardcode the module init list in a single
place, move the hw init logic out to the sim-hw file.
+2021-05-04 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-hw.c (sim_hw_install): Rename to ...
+ (sim_install_hw): ... this. New prototype.
+ * sim-hw.h (sim_hw_install): Delete.
+ * sim-module.c: Delete sim-hw.h include.
+ (early_modules): Delete sim_hw_install.
+
2021-05-04 Tom Tromey <tromey@adacore.com>
* Make-common.in (generated_files): Add config.h.
static MODULE_INIT_FN sim_hw_init;
static MODULE_UNINSTALL_FN sim_hw_uninstall;
+/* Provide a prototype to silence -Wmissing-prototypes. */
+SIM_RC sim_install_hw (struct sim_state *sd);
+
+/* Establish this object. */
SIM_RC
-sim_hw_install (struct sim_state *sd)
+sim_install_hw (struct sim_state *sd)
{
SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER);
sim_add_option_table (sd, NULL, hw_options);
#define SIM_HW_H
-/* Establish this object */
-
-SIM_RC sim_hw_install
-(struct sim_state *sd);
-
-
/* Parse a hardware definition */
struct hw *sim_hw_parse
#include "sim-options.h"
#include "sim-assert.h"
-#if WITH_HW
-#include "sim-hw.h"
-#endif
-
#include "libiberty.h"
#include <stdlib.h>
#if WITH_SCACHE
scache_install,
#endif
-#if WITH_HW
- sim_hw_install,
-#endif
};
static int early_modules_len = ARRAY_SIZE (early_modules);