summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorMark Cave-Ayland2019-06-30 19:21:50 +0200
committerMark Cave-Ayland2019-07-02 23:49:08 +0200
commit076489c043a22fe9be8f3458fbc9012b1fc0606f (patch)
tree7c3b23481baa9f6a830ae72460cf97b4199c5a19 /hw
parentsunhme: add trace event for logging PCI IRQ (diff)
downloadqemu-076489c043a22fe9be8f3458fbc9012b1fc0606f.tar.gz
qemu-076489c043a22fe9be8f3458fbc9012b1fc0606f.tar.xz
qemu-076489c043a22fe9be8f3458fbc9012b1fc0606f.zip
sunhme: fix incorrect constant in sunhme_can_receive()
Due to a copy/paste error the wrong register was being checked in order to determine if the NIC is able to receive data. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'hw')
-rw-r--r--hw/net/sunhme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/net/sunhme.c b/hw/net/sunhme.c
index 6d660a8238..e3a488ee1d 100644
--- a/hw/net/sunhme.c
+++ b/hw/net/sunhme.c
@@ -649,7 +649,7 @@ static int sunhme_can_receive(NetClientState *nc)
{
SunHMEState *s = qemu_get_nic_opaque(nc);
- return s->macregs[HME_MAC_RXCFG_ENABLE >> 2] & HME_MAC_RXCFG_ENABLE;
+ return s->macregs[HME_MACI_RXCFG >> 2] & HME_MAC_RXCFG_ENABLE;
}
static void sunhme_link_status_changed(NetClientState *nc)