diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-05-01 23:37:35 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-05-04 21:52:38 -0400 |
commit | 2849d28d96718c6d2c0c9513745a45a02404bc91 (patch) | |
tree | 42de25aa35ccf16716a4e7562a9051c5a35b4b50 /sim/common/sim-hw.c | |
parent | 4d47dcfcf1cf8fa34df057b0d5accf7ab91b6b47 (diff) | |
download | gdb-2849d28d96718c6d2c0c9513745a45a02404bc91.zip gdb-2849d28d96718c6d2c0c9513745a45a02404bc91.tar.gz gdb-2849d28d96718c6d2c0c9513745a45a02404bc91.tar.bz2 |
sim: hw: localize init callback
Now that we don't need to hardcode the module init list in a single
place, move the hw init logic out to the sim-hw file.
Diffstat (limited to 'sim/common/sim-hw.c')
-rw-r--r-- | sim/common/sim-hw.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sim/common/sim-hw.c b/sim/common/sim-hw.c index 11d3abd..984817f 100644 --- a/sim/common/sim-hw.c +++ b/sim/common/sim-hw.c @@ -288,8 +288,12 @@ hw_option_handler (struct sim_state *sd, sim_cpu *cpu, int opt, static MODULE_INIT_FN sim_hw_init; static MODULE_UNINSTALL_FN sim_hw_uninstall; +/* Provide a prototype to silence -Wmissing-prototypes. */ +SIM_RC sim_install_hw (struct sim_state *sd); + +/* Establish this object. */ SIM_RC -sim_hw_install (struct sim_state *sd) +sim_install_hw (struct sim_state *sd) { SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER); sim_add_option_table (sd, NULL, hw_options); |