aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar@axis.com>2010-07-25 21:03:56 +0200
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>2010-07-25 21:03:56 +0200
commitcdcf9153e5e17dde340135fee5dcc7c299f2d4f5 (patch)
tree72e06bcc368367fb01d986936301b49938a3d9e5 /hw
parent728d803baad0304a91cc927d55d5c01aab5a06e3 (diff)
downloadqemu-cdcf9153e5e17dde340135fee5dcc7c299f2d4f5.zip
qemu-cdcf9153e5e17dde340135fee5dcc7c299f2d4f5.tar.gz
qemu-cdcf9153e5e17dde340135fee5dcc7c299f2d4f5.tar.bz2
etrax: Update ethernet mgm-ctrl reg on writes
Some SW drivers dont keep track of what they've written and depend on the HW latching write contents for later read+modify+write sequences. Signed-off-by: Edgar E. Iglesias <edgar@axis.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/etraxfs_eth.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/etraxfs_eth.c b/hw/etraxfs_eth.c
index 187ece1..b897c9c 100644
--- a/hw/etraxfs_eth.c
+++ b/hw/etraxfs_eth.c
@@ -437,6 +437,7 @@ eth_writel (void *opaque, target_phys_addr_t addr, uint32_t value)
eth_validate_duplex(eth);
}
eth->mdio_bus.mdc = !!(value & 4);
+ eth->regs[addr] = value;
break;
case RW_REC_CTRL: