]> Git Repo - qemu.git/commitdiff
eepro100: Support byte read access to general control register
authorStefan Weil <[email protected]>
Sat, 30 Apr 2011 20:40:12 +0000 (22:40 +0200)
committerMichael S. Tsirkin <[email protected]>
Thu, 5 May 2011 13:05:43 +0000 (16:05 +0300)
The general control register is a byte register.
Add support for byte reads.

Signed-off-by: Stefan Weil <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
hw/eepro100.c

index c612fe13902b864fd050d22362f60c980e3461fa..726d402396e632c8a4f28a4094753d112f877662 100644 (file)
@@ -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;
This page took 0.039233 seconds and 4 git commands to generate.