diff options
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -13,10 +13,12 @@ #include "nios2sim-ng.h" #include "device.h" +#include "timer.h" #include "uart.h" #include "jtag_uart.h" static struct device *devices[] = { + &timer_core, &uart_core, &jtag_uart_core, }; @@ -24,6 +26,7 @@ static struct device *devices[] = { bool device_generic_is_dev_addr(struct device *dev, uint32_t addr) { + /* XXX: Also check alignment? */ if (addr >= dev->base && addr < dev->base + dev->size) return true; |