hw/net/eepro100: Implement read-only bits in MDI registers 39/29439/1
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 9 Jun 2014 15:03:08 +0000 (16:03 +0100)
committerGiWoong Kim <giwoong.kim@samsung.com>
Tue, 28 Oct 2014 03:49:11 +0000 (12:49 +0900)
commita89b4c2d12129e0563c14be8185efbe979a83e01
tree4c841119fc3e86ef8e29464ec75e51d8c6ed3c24
parentbb23d6175078d7ad18514195772fb3c51a9a9a94
hw/net/eepro100: Implement read-only bits in MDI registers

Although we defined an eepro100_mdi_mask[] array indicating which bits
in the registers are read-only, we weren't actually doing anything with
it. Make the MDI register-write code use it rather than manually making
register 1 read-only and leaving the rest as reads-as-written. (The
special-case handling of register 0 remains as before since its mask is
all-zeros and the special casing happens before we apply the masking.)

Change-Id: I28b6ee4691f5e8c325430eb429bee1b06c9a818e
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1402159924-13853-1-git-send-email-peter.maydell@linaro.org
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/net/eepro100.c