summaryrefslogtreecommitdiffstats
path: root/hw/e1000.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2009-12-18 13:58:56 -0600
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-19 08:26:03 -0600
commitc7493749782bd61a8cbdd72397ccf7fea9c0d7f6 (patch)
treec6ba5c99062b73ae827e68603df7576406e0af06 /hw/e1000.c
parent3b0bd6ec5bde2a1a26c4c87f3912cd25256eb58d (diff)
downloadhqemu-c7493749782bd61a8cbdd72397ccf7fea9c0d7f6.zip
hqemu-c7493749782bd61a8cbdd72397ccf7fea9c0d7f6.tar.gz
e1000: Don't muck with PCI commmand register
Otherwise, the driver does not work in Linux after the INT_DISABLE changes in PCI. Michael Tsirkin had a patch to do this, I'm not sure what happened to it. 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 33c4bc6..a0faf5e 100644
--- a/hw/e1000.c
+++ b/hw/e1000.c
@@ -1089,7 +1089,6 @@ static int pci_e1000_init(PCIDevice *pci_dev)
pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL);
pci_config_set_device_id(pci_conf, E1000_DEVID);
- *(uint16_t *)(pci_conf+0x04) = cpu_to_le16(0x0407);
*(uint16_t *)(pci_conf+0x06) = cpu_to_le16(0x0010);
pci_conf[0x08] = 0x03;
pci_config_set_class(pci_conf, PCI_CLASS_NETWORK_ETHERNET);
OpenPOWER on IntegriCloud