lan9118: log and ignore access to invalid registers, rather than aborting
authorAndrew Baumann <Andrew.Baumann@microsoft.com>
Fri, 4 Dec 2015 18:58:50 +0000 (10:58 -0800)
committerJason Wang <jasowang@redhat.com>
Mon, 7 Dec 2015 13:43:48 +0000 (21:43 +0800)
commit52b4bb7383b32e4e7512f98c57738c8fc9cb35ba
tree2919582a2ddea2c8d4b44d7bd05a9dbb6734d04c
parent12fdd928c8d8ea55108c076dbbfff35ecf8e7a97
lan9118: log and ignore access to invalid registers, rather than aborting

With this change, access to invalid/unimplemented device registers are
logged as a "guest error" rather than aborting qemu with
hw_error. This enables drivers for similar devices (e.g. SMSC 9221),
by simply ignoring the unimplemented writes. It's also closer to what
real hardware does.

Signed-off-by: Andrew Baumann <Andrew.Baumann@microsoft.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/lan9118.c