Use the new modules.c framework to find & initialize this module.
+2021-06-30 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-engine.c (sim_engine_install): Rename to ...
+ (sim_install_engine): ... this. New prototype.
+ * sim-engine.h (sim_engine_install): Delete.
+ * sim-module.c (early_modules): Delete sim_engine_install.
+
2021-06-30 Mike Frysinger <vapier@gentoo.org>
* sim-config.h (WITH_MODEL): Delete.
return SIM_RC_OK;
}
+/* Provide a prototype to silence -Wmissing-prototypes. */
+SIM_RC sim_install_engine (SIM_DESC sd);
SIM_RC
-sim_engine_install (SIM_DESC sd)
+sim_install_engine (SIM_DESC sd)
{
SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER);
sim_module_add_init_fn (sd, sim_engine_init);
extern int sim_engine_nr_cpus (SIM_DESC sd);
-/* Establish the simulator engine */
-MODULE_INSTALL_FN sim_engine_install;
-
-
#endif
standard_install,
sim_events_install,
sim_model_install,
- sim_engine_install,
#if WITH_TRACE_ANY_P
trace_install,
#endif