diff options
author | Blue Swirl | 2011-02-13 20:54:40 +0100 |
---|---|---|
committer | Blue Swirl | 2011-02-20 10:35:06 +0100 |
commit | 64d7e9a421fea0ac50b44541f5521de455e7cd5d (patch) | |
tree | e450cd7fd595ef79315ad131dd1d009b81935c69 /hw/mips_malta.c | |
parent | vga-isa: make optional (diff) | |
download | qemu-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.c | 4 |
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); |