* Add hardware_init hook.
[deliverable/binutils-gdb.git] / sim / mips / interp.c
index 9045004d72862635e7149540e82897b8fea7f355..da161828a0825fbe923d4051a87bf65e231d0fdb 100644 (file)
@@ -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.  */
This page took 0.023028 seconds and 4 git commands to generate.