]> Git Repo - qemu.git/commitdiff
hw/pci/pci-stub: Add msi_enabled() and msi_notify() to the pci stubs
authorThomas Huth <[email protected]>
Tue, 19 Feb 2019 16:00:10 +0000 (17:00 +0100)
committerThomas Huth <[email protected]>
Mon, 13 May 2019 07:36:31 +0000 (09:36 +0200)
Some machines have an AHCI adapter, but no PCI. To be able to
compile hw/ide/ahci.c without CONFIG_PCI, we still need the two
functions msi_enabled() and msi_notify() for linking.
This is required for the new Kconfig-like build system, if a user
wants to compile a QEMU binary with just one machine that has AHCI,
but no PCI, like the ARM "cubieboard" for example.

Reviewed-by: Michael S. Tsirkin <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Tested-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Thomas Huth <[email protected]>
hw/pci/pci-stub.c

index b941a0e842e5bcfe89b98427e7e00bd8b0be9e36..c04a5df6511bac9a9060a7812569660875be8f7f 100644 (file)
@@ -53,3 +53,14 @@ uint16_t pci_requester_id(PCIDevice *dev)
     g_assert(false);
     return 0;
 }
+
+/* Required by ahci.c */
+bool msi_enabled(const PCIDevice *dev)
+{
+    return false;
+}
+
+void msi_notify(PCIDevice *dev, unsigned int vector)
+{
+    g_assert_not_reached();
+}
This page took 0.024826 seconds and 4 git commands to generate.