forked from Imagelibrary/binutils-gdb
sim: move scache init to dynamic modules.c
Use the new modules.c framework to find & initialize this module.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user