diff options
author | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2009-05-16 02:08:16 +0200 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2009-05-16 02:14:03 +0200 |
commit | 3b1fd90ed13ce9674de80cc1d1e1d7241d0f0796 (patch) | |
tree | a90e87d059327ed813045241839951f08a369e4a /hw/etraxfs.c | |
parent | 84ceea5736998fbd24095b1f216e15ff031a7381 (diff) | |
download | qemu-3b1fd90ed13ce9674de80cc1d1e1d7241d0f0796.zip qemu-3b1fd90ed13ce9674de80cc1d1e1d7241d0f0796.tar.gz qemu-3b1fd90ed13ce9674de80cc1d1e1d7241d0f0796.tar.bz2 |
ETRAX-TIMER: qdevify.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'hw/etraxfs.c')
-rw-r--r-- | hw/etraxfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/etraxfs.c b/hw/etraxfs.c index 72b54cf..d675929 100644 --- a/hw/etraxfs.c +++ b/hw/etraxfs.c @@ -26,6 +26,7 @@ #include "boards.h" #include "sysemu.h" #include "net.h" +#include "flash.h" #include "etraxfs.h" #define FLASH_SIZE 0x2000000 @@ -106,8 +107,8 @@ void bareetraxfs_init (ram_addr_t ram_size, } /* 2 timers. */ - etraxfs_timer_init(env, irq + 0x1b, nmi + 1, 0x3001e000); - etraxfs_timer_init(env, irq + 0x1b, nmi + 1, 0x3005e000); + sysbus_create_varargs("etraxfs,timer", 0x3001e000, irq[0x1b], nmi[1], NULL); + sysbus_create_varargs("etraxfs,timer", 0x3005e000, irq[0x1b], nmi[1], NULL); for (i = 0; i < 4; i++) { sysbus_create_simple("etraxfs,serial", 0x30026000 + i * 0x2000, |