mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
45fa67fb68
commit
84ede32908
3 changed files with 30 additions and 3 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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue