diff options
author | Ian Carmichael <iancarm@cygnus> | 1998-02-09 23:53:33 +0000 |
---|---|---|
committer | Ian Carmichael <iancarm@cygnus> | 1998-02-09 23:53:33 +0000 |
commit | 2c88fae9adc45e64367b6651f451ce4440f1c9ec (patch) | |
tree | 21a7e2811f38dd472e80ab44c45f9b2386afed44 /sim/mips/interp.c | |
parent | 79f15b12ba027156274a4eccf5e38ff274dc7aa7 (diff) | |
download | gdb-2c88fae9adc45e64367b6651f451ce4440f1c9ec.zip gdb-2c88fae9adc45e64367b6651f451ce4440f1c9ec.tar.gz gdb-2c88fae9adc45e64367b6651f451ce4440f1c9ec.tar.bz2 |
* Add hardware_init hook.
Diffstat (limited to 'sim/mips/interp.c')
-rw-r--r-- | sim/mips/interp.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sim/mips/interp.c b/sim/mips/interp.c index 9045004..da16182 100644 --- a/sim/mips/interp.c +++ b/sim/mips/interp.c @@ -252,6 +252,15 @@ interrupt_event (SIM_DESC sd, void *data) } +/*---------------------------------------------------------------------------*/ +/*-- Device registration hook -----------------------------------------------*/ +/*---------------------------------------------------------------------------*/ +static device_init(SIM_DESC sd) { +#ifdef DEVICE_INIT + extern void register_devices(SIM_DESC); + register_devices(sd); +#endif +} /*---------------------------------------------------------------------------*/ /*-- GDB simulator interface ------------------------------------------------*/ @@ -292,6 +301,8 @@ sim_open (kind, cb, abfd, argv) MEM_SIZE, /* actual size */ K0BASE); + device_init(sd); + /* getopt will print the error message so we just have to exit if this fails. FIXME: Hmmm... in the case of gdb we need getopt to call print_filtered. */ |