Use the new modules.c framework to find & initialize this module.
+2021-06-30 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-module.c (early_modules): Delete profile_install.
+ * sim-profile.c (profile_install): Rename to ...
+ (sim_install_profile): ... this. New prototype.
+ * sim-profile.h (profile_install): Delete.
+
2021-06-30 Mike Frysinger <vapier@gentoo.org>
* sim-module.c (early_modules): Delete trace_install.
standard_install,
sim_events_install,
sim_model_install,
-#if WITH_PROFILE
- profile_install,
-#endif
sim_core_install,
sim_memopt_install,
sim_watchpoint_install,
}
\f
-/* Install profiling support in the simulator. */
+/* Provide a prototype to silence -Wmissing-prototypes. */
+SIM_RC sim_install_profile (SIM_DESC sd);
+/* Install profiling support in the simulator. */
SIM_RC
-profile_install (SIM_DESC sd)
+sim_install_profile (SIM_DESC sd)
{
int i;
#define WITH_PROFILE_MEMORY_P 0
#endif
-/* Profiling install handler. */
-MODULE_INSTALL_FN profile_install;
-
/* Output format macros. */
#ifndef PROFILE_HISTOGRAM_WIDTH
#define PROFILE_HISTOGRAM_WIDTH 40