mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-11 16:46:14 +08:00
* Add hardware_init hook.
This commit is contained in:
@ -201,7 +201,9 @@ AC_SUBST(sim_gen)
|
|||||||
|
|
||||||
case "${target}" in
|
case "${target}" in
|
||||||
# start-sanitize-sky
|
# start-sanitize-sky
|
||||||
mips64r59*-sky-*) mips_extra_objs='$(SIM_SKY_OBJS)' ;;
|
mips64r59*-sky-*) mips_extra_objs='$(SIM_SKY_OBJS)' ;
|
||||||
|
SIM_SUBTARGET="-DWITH_DEVICES=1 -DDEVICE_INIT=1";;
|
||||||
|
|
||||||
# end-sanitize-sky
|
# end-sanitize-sky
|
||||||
*) mips_extra_objs="" ;;
|
*) mips_extra_objs="" ;;
|
||||||
esac
|
esac
|
||||||
|
@ -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 ------------------------------------------------*/
|
/*-- GDB simulator interface ------------------------------------------------*/
|
||||||
@ -292,6 +301,8 @@ sim_open (kind, cb, abfd, argv)
|
|||||||
MEM_SIZE, /* actual size */
|
MEM_SIZE, /* actual size */
|
||||||
K0BASE);
|
K0BASE);
|
||||||
|
|
||||||
|
device_init(sd);
|
||||||
|
|
||||||
/* getopt will print the error message so we just have to exit if this fails.
|
/* 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
|
FIXME: Hmmm... in the case of gdb we need getopt to call
|
||||||
print_filtered. */
|
print_filtered. */
|
||||||
|
Reference in New Issue
Block a user