summaryrefslogtreecommitdiff
path: root/hw/e1000.c
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2009-05-04 18:02:04 +0530
committerAnthony Liguori <aliguori@us.ibm.com>2009-05-08 15:24:10 -0500
commitddb393282a9f59788c6d8bf8a87a4900a2ff6fbe (patch)
tree2eed5a09d0ec7c879a9a7e5afa84b9b042aba682 /hw/e1000.c
parent47ecbfa70fb8bc11d463ece6ff997b414bdb0818 (diff)
downloadqemu-ddb393282a9f59788c6d8bf8a87a4900a2ff6fbe.tar.gz
qemu-ddb393282a9f59788c6d8bf8a87a4900a2ff6fbe.tar.bz2
qemu-ddb393282a9f59788c6d8bf8a87a4900a2ff6fbe.zip
e1000: Do not reinit pci config space to 0
pci_register_device already mallocs the pci config space buffer filled with zeroes. Doing this again breaks some default config space writes like setting the subsystem vendor id and subsystem device id. Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/e1000.c')
-rw-r--r--hw/e1000.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/e1000.c b/hw/e1000.c
index b0fe917342..940e893ba3 100644
--- a/hw/e1000.c
+++ b/hw/e1000.c
@@ -1067,7 +1067,6 @@ pci_e1000_init(PCIBus *bus, NICInfo *nd, int devfn)
return NULL;
pci_conf = d->dev.config;
- memset(pci_conf, 0, 256);
pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL);
pci_config_set_device_id(pci_conf, E1000_DEVID);