diff options
author | Stefan Weil <weil@mail.berlios.de> | 2011-04-30 22:40:12 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2011-05-05 16:05:43 +0300 |
commit | a39bd01713b9e4e12bffe835b95edbc0ea5f0b16 (patch) | |
tree | d94afe3d41620e720ca01218c558e41ffa9edd5f /hw | |
parent | 0113f48df6cb8209df9d85e4f92c79aa3be1b5c5 (diff) |
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>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/eepro100.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/eepro100.c b/hw/eepro100.c index c612fe139..726d40239 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; |