aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorHervé Poussineau <hpoussin@reactos.org>2012-07-09 12:02:30 +0200
committerBlue Swirl <blauwirbel@gmail.com>2012-07-14 10:12:59 +0000
commit0883c5159f1df05d8761014f65451c3c3b77ebcf (patch)
treeaa63e03e8e6add5efc563b0ac7de58e2bb56e167 /hw
parent3af4e9aa5615a0511ddbe301b14d30a63ac8492b (diff)
downloadqemu-0883c5159f1df05d8761014f65451c3c3b77ebcf.zip
qemu-0883c5159f1df05d8761014f65451c3c3b77ebcf.tar.gz
qemu-0883c5159f1df05d8761014f65451c3c3b77ebcf.tar.bz2
pci: add some stubs
Cc: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/pci-stub.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/hw/pci-stub.c b/hw/pci-stub.c
index 134c448..e083191 100644
--- a/hw/pci-stub.c
+++ b/hw/pci-stub.c
@@ -34,6 +34,21 @@ static void pci_error_message(Monitor *mon)
monitor_printf(mon, "PCI devices not supported\n");
}
+void pci_register_bar(PCIDevice *pci_dev, int region_num,
+ uint8_t type, MemoryRegion *memory)
+{
+}
+
+const VMStateDescription vmstate_pci_device = {
+ .name = "PCIDeviceStub",
+ .version_id = 1,
+ .minimum_version_id = 1,
+ .minimum_version_id_old = 1,
+ .fields = (VMStateField[]) {
+ VMSTATE_END_OF_LIST()
+ }
+};
+
int do_pcie_aer_inject_error(Monitor *mon,
const QDict *qdict, QObject **ret_data)
{