Fixed the RTL8029AS' I/O BASE BAR.

This commit is contained in:
OBattler
2017-08-29 22:58:21 +02:00
parent a5b7512882
commit a41d844587

View File

@@ -1506,7 +1506,7 @@ nic_pci_read(int func, int addr, void *priv)
#endif
case 0x10: /* PCI_BAR 7:5 */
ret = (dev->pci_bar[0].addr_regs[1] & 0xe0) | 0x01;
ret = (dev->pci_bar[0].addr_regs[0] & 0xe0) | 0x01;
break;
case 0x11: /* PCI_BAR 15:8 */
ret = dev->pci_bar[0].addr_regs[1];