diff options
author | Andreas Färber <afaerber@suse.de> | 2013-06-18 03:58:07 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2013-07-01 01:11:14 +0200 |
commit | e1766344fd1d3cb7421f734f89a9356fdec98398 (patch) | |
tree | f46bfe17dfd2368600340dfcb0e27c44300701d1 /hw/ppc/mac_newworld.c | |
parent | d85937e683f6ff4d68293cb24c780fb1f6820d2c (diff) | |
download | hqemu-e1766344fd1d3cb7421f734f89a9356fdec98398.zip hqemu-e1766344fd1d3cb7421f734f89a9356fdec98398.tar.gz |
intc/openpic: QOM'ify
Introduce type constant and cast macro.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/ppc/mac_newworld.c')
-rw-r--r-- | hw/ppc/mac_newworld.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc/mac_newworld.c b/hw/ppc/mac_newworld.c index ce44e95..61c25a4 100644 --- a/hw/ppc/mac_newworld.c +++ b/hw/ppc/mac_newworld.c @@ -329,7 +329,7 @@ static void ppc_core99_init(QEMUMachineInitArgs *args) pic = g_new(qemu_irq, 64); - dev = qdev_create(NULL, "openpic"); + dev = qdev_create(NULL, TYPE_OPENPIC); qdev_prop_set_uint32(dev, "model", OPENPIC_MODEL_RAVEN); qdev_init_nofail(dev); s = SYS_BUS_DEVICE(dev); |