The general control register is a byte register. Add support for byte reads.
Signed-off-by: Stefan Weil <w...@mail.berlios.de> --- hw/eepro100.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/eepro100.c b/hw/eepro100.c index ff8c9ba..3aee707 100644 --- a/hw/eepro100.c +++ b/hw/eepro100.c @@ -1381,6 +1381,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; -- 1.7.2.5