From 953fac6481598d64087f45030f243374ba599099 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 13 Jun 2021 22:43:54 -0400 Subject: sim: move profile init to dynamic modules.c Use the new modules.c framework to find & initialize this module. --- sim/common/sim-profile.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sim/common/sim-profile.c') diff --git a/sim/common/sim-profile.c b/sim/common/sim-profile.c index f2d65e0..3a8ed1f 100644 --- a/sim/common/sim-profile.c +++ b/sim/common/sim-profile.c @@ -1216,10 +1216,12 @@ profile_info (SIM_DESC sd, int verbose) } -/* 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; -- cgit v1.1