mirror of
https://github.com/qemu/qemu.git
synced 2024-12-04 17:23:39 +08:00
eepro100: Support byte read access to general control register
The general control register is a byte register. Add support for byte reads. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
0113f48df6
commit
a39bd01713
@ -1382,6 +1382,9 @@ static uint8_t eepro100_read1(EEPRO100State * s, uint32_t addr)
|
||||
val = 0;
|
||||
TRACE(OTHER, logout("addr=%s val=0x%02x\n", regname(addr), val));
|
||||
break;
|
||||
case SCBgctrl: /* General Control Register */
|
||||
TRACE(OTHER, logout("addr=%s val=0x%02x\n", regname(addr), val));
|
||||
break;
|
||||
case SCBgstat: /* General Status Register */
|
||||
/* 100 Mbps full duplex, valid link */
|
||||
val = 0x07;
|
||||
|
Loading…
Reference in New Issue
Block a user