mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
qdev: move qdev->info to class
Right now, DeviceInfo acts as the class for qdev. In order to switch to a proper ObjectClass derivative, we need to ween all of the callers off of interacting directly with the info pointer. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
32fea4025b
commit
30fbb9fc7c
33 changed files with 119 additions and 93 deletions
|
@ -760,7 +760,7 @@ static int pci_ne2000_init(PCIDevice *pci_dev)
|
|||
ne2000_reset(s);
|
||||
|
||||
s->nic = qemu_new_nic(&net_ne2000_info, &s->c,
|
||||
pci_dev->qdev.info->name, pci_dev->qdev.id, s);
|
||||
qdev_get_info(&pci_dev->qdev)->name, pci_dev->qdev.id, s);
|
||||
qemu_format_nic_info_str(&s->nic->nc, s->c.macaddr.a);
|
||||
|
||||
if (!pci_dev->qdev.hotplugged) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue