diff options
author | Stefan Weil <weil@mail.berlios.de> | 2010-04-06 13:44:09 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2010-04-07 10:58:00 +0300 |
commit | a7a0f544d1a749b8fc6085a6c86b55c5c2829f04 (patch) | |
tree | b3612632f42be19b27b468eccb73e21333b63845 /hw/eepro100.c | |
parent | 5dc8baf97ec1882731e041733b67af2738d5be0d (diff) | |
download | qemu-a7a0f544d1a749b8fc6085a6c86b55c5c2829f04.tar.gz qemu-a7a0f544d1a749b8fc6085a6c86b55c5c2829f04.tar.bz2 qemu-a7a0f544d1a749b8fc6085a6c86b55c5c2829f04.zip |
eepro100: fix PCI interrupt pin configuration regression
Commit 15e89f5916c9e82347cbd1fd416db3e348bab426
removed this setting, but it is still needed.
Without this patch, e100 device drivers using
interrupts don't work with qemu.
See other nic emulations which also set the
PCI interrupt pin.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/eepro100.c')
-rw-r--r-- | hw/eepro100.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/eepro100.c b/hw/eepro100.c index 949ca4ed2a..785a7daac8 100644 --- a/hw/eepro100.c +++ b/hw/eepro100.c @@ -474,6 +474,9 @@ static void e100_pci_reset(EEPRO100State * s, E100PCIDeviceInfo *e100_device) /* PCI Latency Timer */ pci_set_byte(pci_conf + PCI_LATENCY_TIMER, 0x20); /* latency timer = 32 clocks */ /* Capability Pointer is set by PCI framework. */ + /* Interrupt Line */ + /* Interrupt Pin */ + pci_set_byte(pci_conf + PCI_INTERRUPT_PIN, 1); /* interrupt pin A */ /* Minimum Grant */ pci_set_byte(pci_conf + PCI_MIN_GNT, 0x08); /* Maximum Latency */ |