diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-06-13 22:40:09 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-06-30 12:28:28 -0400 |
commit | 05d54a045c77ae24cf46327d3680a7c38b469351 (patch) | |
tree | 6c902241ac55d090278d4181b6e483806707bb2b /sim/common/sim-engine.c | |
parent | 9a39f7389d8971dc754e45a73128616a5346008c (diff) | |
download | gdb-05d54a045c77ae24cf46327d3680a7c38b469351.zip gdb-05d54a045c77ae24cf46327d3680a7c38b469351.tar.gz gdb-05d54a045c77ae24cf46327d3680a7c38b469351.tar.bz2 |
sim: move engine init to dynamic modules.c
Use the new modules.c framework to find & initialize this module.
Diffstat (limited to 'sim/common/sim-engine.c')
-rw-r--r-- | sim/common/sim-engine.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sim/common/sim-engine.c b/sim/common/sim-engine.c index 83f41f0..2a0fb72 100644 --- a/sim/common/sim-engine.c +++ b/sim/common/sim-engine.c @@ -208,9 +208,11 @@ sim_engine_init (SIM_DESC sd) return SIM_RC_OK; } +/* Provide a prototype to silence -Wmissing-prototypes. */ +SIM_RC sim_install_engine (SIM_DESC sd); SIM_RC -sim_engine_install (SIM_DESC sd) +sim_install_engine (SIM_DESC sd) { SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER); sim_module_add_init_fn (sd, sim_engine_init); |