OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bdc370
)
sunhme: fix incorrect constant in sunhme_can_receive()
author
Mark Cave-Ayland
<mark.cave-ayland@ilande.co.uk>
Sun, 30 Jun 2019 17:21:50 +0000
(18:21 +0100)
committer
Mark Cave-Ayland
<mark.cave-ayland@ilande.co.uk>
Tue, 2 Jul 2019 21:49:08 +0000
(22:49 +0100)
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>
hw/net/sunhme.c
patch
|
blob
|
history
diff --git
a/hw/net/sunhme.c
b/hw/net/sunhme.c
index
6d660a8
..
e3a488e
100644
(file)
--- 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_MAC
I_RXCFG
>> 2] & HME_MAC_RXCFG_ENABLE;
}
static void sunhme_link_status_changed(NetClientState *nc)