summaryrefslogtreecommitdiffstats
path: root/tests/rtl8139-test.c
diff options
context:
space:
mode:
authorEmanuele Giuseppe Esposito2018-07-19 13:50:27 +0200
committerPaolo Bonzini2019-03-07 16:50:04 +0100
commit143e6db6fa4ecd2a85de740cc3754aeb86d1e802 (patch)
tree1c69142d63ac3924ea79347a586361c4cb95be53 /tests/rtl8139-test.c
parenttests/libqos: introduce virtio_start_device (diff)
downloadqemu-143e6db6fa4ecd2a85de740cc3754aeb86d1e802.tar.gz
qemu-143e6db6fa4ecd2a85de740cc3754aeb86d1e802.tar.xz
qemu-143e6db6fa4ecd2a85de740cc3754aeb86d1e802.zip
tests/libqos: rename qpci_init_pc and qpci_init_spapr functions
Rename qpci_init_pc in qpci_pc_new and qpci_init_spapr in qpci_spapr_new, since these function actually allocate a new pci struct and initialize it (compare to object_new and object_initialize). Changed QOSOps field name from qpci_init to qpci_new. Signed-off-by: Emanuele Giuseppe Esposito <e.emanuelegiuseppe@gmail.com> Reviewed-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/rtl8139-test.c')
-rw-r--r--tests/rtl8139-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/rtl8139-test.c b/tests/rtl8139-test.c
index 68bfc42178..a85c91f197 100644
--- a/tests/rtl8139-test.c
+++ b/tests/rtl8139-test.c
@@ -35,7 +35,7 @@ static QPCIDevice *get_device(void)
{
QPCIDevice *dev;
- pcibus = qpci_init_pc(global_qtest, NULL);
+ pcibus = qpci_new_pc(global_qtest, NULL);
qpci_device_foreach(pcibus, 0x10ec, 0x8139, save_fn, &dev);
g_assert(dev != NULL);