summaryrefslogtreecommitdiffstats
path: root/hw/mips_malta.c
diff options
context:
space:
mode:
authorBlue Swirl2011-02-13 20:54:40 +0100
committerBlue Swirl2011-02-20 10:35:06 +0100
commit64d7e9a421fea0ac50b44541f5521de455e7cd5d (patch)
treee450cd7fd595ef79315ad131dd1d009b81935c69 /hw/mips_malta.c
parentvga-isa: make optional (diff)
downloadqemu-64d7e9a421fea0ac50b44541f5521de455e7cd5d.tar.gz
qemu-64d7e9a421fea0ac50b44541f5521de455e7cd5d.tar.xz
qemu-64d7e9a421fea0ac50b44541f5521de455e7cd5d.zip
i8254: convert to qdev
Convert to qdev. Don't expose PITState. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/mips_malta.c')
-rw-r--r--hw/mips_malta.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/mips_malta.c b/hw/mips_malta.c
index 930c51c74d..ca6c6d7063 100644
--- a/hw/mips_malta.c
+++ b/hw/mips_malta.c
@@ -68,7 +68,7 @@ typedef struct {
SerialState *uart;
} MaltaFPGAState;
-static PITState *pit;
+static ISADevice *pit;
static struct _loaderparams {
int ram_size;
@@ -930,7 +930,7 @@ void mips_malta_init (ram_addr_t ram_size,
qdev_prop_set_ptr(eeprom, "data", eeprom_buf + (i * 256));
qdev_init_nofail(eeprom);
}
- pit = pit_init(0x40, isa_reserve_irq(0));
+ pit = pit_init(0x40, 0);
cpu_exit_irq = qemu_allocate_irqs(cpu_request_exit, NULL, 1);
DMA_init(0, cpu_exit_irq);