diff options
author | Andreas Färber <afaerber@suse.de> | 2013-01-23 23:04:03 +0000 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2013-01-25 22:02:55 +0100 |
commit | 84ede329083b649c54f078276e7e06d48e910b9d (patch) | |
tree | 50995b149b5ab378f16170f8bc0f6567cc18d30a /hw/cuda.c | |
parent | 45fa67fb68e73b395cd93ec97e45785944d4ee6a (diff) | |
download | qemu-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |