From a39bd01713b9e4e12bffe835b95edbc0ea5f0b16 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sat, 30 Apr 2011 22:40:12 +0200 Subject: [PATCH] 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 Signed-off-by: Michael S. Tsirkin --- hw/eepro100.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/eepro100.c b/hw/eepro100.c index c612fe1390..726d402396 100644 --- a/hw/eepro100.c +++ b/hw/eepro100.c @@ -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;