Use the new modules.c framework to find & initialize this module.
+2021-06-30 Mike Frysinger <vapier@gentoo.org>
+
+ * cgen-scache.c (scache_install): Rename to ...
+ (sim_install_scache): ... this. New prototype.
+ * cgen-scache.h (scache_install): Delete.
+ * sim-module.c (early_modules): Delete scache_install.
+
2021-06-30 Mike Frysinger <vapier@gentoo.org>
* sim-module.c (early_modules): Delete profile_install.
return SIM_RC_OK;
}
+/* Provide a prototype to silence -Wmissing-prototypes. */
+SIM_RC sim_install_scache (SIM_DESC sd);
+
+/* Install the simulator cache into the simulator. */
SIM_RC
-scache_install (SIM_DESC sd)
+sim_install_scache (SIM_DESC sd)
{
sim_add_option_table (sd, NULL, scache_options);
sim_module_add_init_fn (sd, scache_init);
/* Non-zero if cache is in use. */
#define USING_SCACHE_P(sd) (STATE_SCACHE_SIZE (sd) > 0)
-/* Install the simulator cache into the simulator. */
-MODULE_INSTALL_FN scache_install;
-
/* Lookup a PC value in the scache [compilation only]. */
extern SCACHE * scache_lookup (SIM_CPU *, IADDR);
/* Return a pointer to at least N buffers. */
sim_core_install,
sim_memopt_install,
sim_watchpoint_install,
-#if WITH_SCACHE
- scache_install,
-#endif
};
static int early_modules_len = ARRAY_SIZE (early_modules);