summaryrefslogtreecommitdiff
path: root/hw/escc.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-08-13 16:26:52 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-08-13 16:26:52 +0000
commitbc19fcaa1b6d2a89b96793c7e8890978fc477f51 (patch)
tree04abb7a583edfe033d4b5d2270958f8177555917 /hw/escc.c
parentaa0cba4a62550a4110231c6faa159dbfe3ce33d6 (diff)
downloadqemu-bc19fcaa1b6d2a89b96793c7e8890978fc477f51.tar.gz
qemu-bc19fcaa1b6d2a89b96793c7e8890978fc477f51.tar.bz2
qemu-bc19fcaa1b6d2a89b96793c7e8890978fc477f51.zip
Unbreak Sparc32 and PPC
Convert qdev ptr type to chr, allow a NULL pointer. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/escc.c')
-rw-r--r--hw/escc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/escc.c b/hw/escc.c
index 74a96cd6cb..031dae3ec8 100644
--- a/hw/escc.c
+++ b/hw/escc.c
@@ -737,8 +737,8 @@ int escc_init(target_phys_addr_t base, qemu_irq irqA, qemu_irq irqB,
qdev_prop_set_uint32(dev, "disabled", 0);
qdev_prop_set_uint32(dev, "frequency", clock);
qdev_prop_set_uint32(dev, "it_shift", it_shift);
- qdev_prop_set_ptr(dev, "chrB", chrB);
- qdev_prop_set_ptr(dev, "chrA", chrA);
+ qdev_prop_set_chr(dev, "chrB", chrB);
+ qdev_prop_set_chr(dev, "chrA", chrA);
qdev_prop_set_uint32(dev, "chnBtype", ser);
qdev_prop_set_uint32(dev, "chnAtype", ser);
qdev_init(dev);
@@ -900,8 +900,8 @@ void slavio_serial_ms_kbd_init(target_phys_addr_t base, qemu_irq irq,
qdev_prop_set_uint32(dev, "disabled", disabled);
qdev_prop_set_uint32(dev, "frequency", clock);
qdev_prop_set_uint32(dev, "it_shift", it_shift);
- qdev_prop_set_ptr(dev, "chrB", NULL);
- qdev_prop_set_ptr(dev, "chrA", NULL);
+ qdev_prop_set_chr(dev, "chrB", NULL);
+ qdev_prop_set_chr(dev, "chrA", NULL);
qdev_prop_set_uint32(dev, "chnBtype", mouse);
qdev_prop_set_uint32(dev, "chnAtype", kbd);
qdev_init(dev);