bc9e714
commit 1a8364456c2f3946b4feb8fc78eaf00d974f4c03
bc9e714
Author: Jan Kiszka <jan.kiszka@siemens.com>
bc9e714
Date:   Wed Feb 23 09:28:53 2011 +0100
bc9e714
bc9e714
    qemu-kvm: Fix non-PCI target build
bc9e714
    
bc9e714
    Replace obsolete qemu-kvm.h with kvm.h in pci.c and build that module
bc9e714
    just like upstream does. This fixes non-x86 targets which have no PCI
bc9e714
    support.
bc9e714
    
bc9e714
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
bc9e714
    Signed-off-by: Avi Kivity <avi@redhat.com>
bc9e714
bc9e714
diff --git a/Makefile.objs b/Makefile.objs
bc9e714
index f5702eb..3ec7121 100644
bc9e714
--- a/Makefile.objs
bc9e714
+++ b/Makefile.objs
bc9e714
@@ -170,7 +170,7 @@ hw-obj-y =
bc9e714
 hw-obj-y += loader.o
bc9e714
 hw-obj-$(CONFIG_VIRTIO) += virtio.o virtio-console.o
bc9e714
 hw-obj-y += fw_cfg.o
bc9e714
-hw-obj-$(CONFIG_PCI) += pci_bridge.o
bc9e714
+hw-obj-$(CONFIG_PCI) += pci.o pci_bridge.o
bc9e714
 hw-obj-$(CONFIG_PCI) += msix.o msi.o
bc9e714
 hw-obj-$(CONFIG_PCI) += pci_host.o pcie_host.o
bc9e714
 hw-obj-$(CONFIG_PCI) += ioh3420.o xio3130_upstream.o xio3130_downstream.o
bc9e714
diff --git a/Makefile.target b/Makefile.target
bc9e714
index 6e9a024..23367eb 100644
bc9e714
--- a/Makefile.target
bc9e714
+++ b/Makefile.target
bc9e714
@@ -195,7 +195,7 @@ endif #CONFIG_BSD_USER
bc9e714
 # System emulator target
bc9e714
 ifdef CONFIG_SOFTMMU
bc9e714
bc9e714
-obj-y = arch_init.o cpus.o monitor.o pci.o machine.o gdbstub.o vl.o balloon.o
bc9e714
+obj-y = arch_init.o cpus.o monitor.o machine.o gdbstub.o vl.o balloon.o
bc9e714
 # virtio has to be here due to weird dependency between PCI and virtio-net.
bc9e714
 # need to fix this properly
bc9e714
 obj-$(CONFIG_NO_PCI) += pci-stub.o
bc9e714
diff --git a/hw/pci.c b/hw/pci.c
bc9e714
index 0c44939..1f6cebe 100644
bc9e714
--- a/hw/pci.c
bc9e714
+++ b/hw/pci.c
bc9e714
@@ -29,8 +29,8 @@
bc9e714
 #include "net.h"
bc9e714
 #include "sysemu.h"
bc9e714
 #include "loader.h"
bc9e714
-#include "qemu-kvm.h"
bc9e714
 #include "hw/pc.h"
bc9e714
+#include "kvm.h"
bc9e714
 #include "device-assignment.h"
bc9e714
 #include "qemu-objects.h"
bc9e714
 #include "range.h"