sim: move scache init to dynamic modules.c

Use the new modules.c framework to find & initialize this module.
This commit is contained in:
Mike Frysinger
2021-06-13 22:45:02 -04:00
parent 953fac6481
commit 6cf75d895a
4 changed files with 12 additions and 7 deletions

View File

@@ -175,8 +175,12 @@ scache_option_handler (SIM_DESC sd, sim_cpu *cpu, int opt,
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);