mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
rtl8139: Fix behaviour for old kernels.
Old linux kernel rtl8139 drivers (ex. debian 2.1) uses outb to set the rx mode for RxConfig. Unfortunatelly qemu does not support outb for RxConfig. Signed-off-by: Hans <sungdgdhtryrt@gmail.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
parent
31669121a0
commit
9e3b9f2765
1 changed files with 5 additions and 1 deletions
|
@ -2738,7 +2738,11 @@ static void rtl8139_io_writeb(void *opaque, uint8_t addr, uint32_t val)
|
|||
}
|
||||
|
||||
break;
|
||||
|
||||
case RxConfig:
|
||||
DPRINTF("RxConfig write(b) val=0x%02x\n", val);
|
||||
rtl8139_RxConfig_write(s,
|
||||
(rtl8139_RxConfig_read(s) & 0xFFFFFF00) | val);
|
||||
break;
|
||||
default:
|
||||
DPRINTF("not implemented write(b) addr=0x%x val=0x%02x\n", addr,
|
||||
val);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue