summaryrefslogtreecommitdiff
path: root/hw/cuda.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-01-23 23:04:03 +0000
committerAlexander Graf <agraf@suse.de>2013-01-25 22:02:55 +0100
commit84ede329083b649c54f078276e7e06d48e910b9d (patch)
tree50995b149b5ab378f16170f8bc0f6567cc18d30a /hw/cuda.c
parent45fa67fb68e73b395cd93ec97e45785944d4ee6a (diff)
downloadqemu-84ede329083b649c54f078276e7e06d48e910b9d.tar.gz
qemu-84ede329083b649c54f078276e7e06d48e910b9d.tar.bz2
qemu-84ede329083b649c54f078276e7e06d48e910b9d.zip
adb: QOM'ify Apple Desktop Bus
It was not a qbus before, turn it into a first-class bus and initialize it properly from CUDA. Leave it a global variable as long as devices are not QOM'ified yet. Signed-off-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/cuda.c')
-rw-r--r--hw/cuda.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/cuda.c b/hw/cuda.c
index f863c38a89..b3a875c3bc 100644
--- a/hw/cuda.c
+++ b/hw/cuda.c
@@ -712,6 +712,9 @@ static void cuda_initfn(Object *obj)
for (i = 0; i < ARRAY_SIZE(s->timers); i++) {
s->timers[i].index = i;
}
+
+ qbus_create_inplace((BusState *)&adb_bus, TYPE_ADB_BUS, DEVICE(obj),
+ "adb.0");
}
static void cuda_class_init(ObjectClass *oc, void *data)