summaryrefslogtreecommitdiffstats
path: root/hw/net
diff options
context:
space:
mode:
authorFabien Chouteau2014-03-14 17:51:41 +0100
committerMichael Tokarev2014-03-15 10:54:18 +0100
commit9c749e4dbe65e61e159ad822a4110167c2c108fe (patch)
tree13a8f0d82959e88d3735a12655516013bd652ac7 /hw/net
parentscripts/make-release: Don't distribute .git directories (diff)
downloadqemu-9c749e4dbe65e61e159ad822a4110167c2c108fe.tar.gz
qemu-9c749e4dbe65e61e159ad822a4110167c2c108fe.tar.xz
qemu-9c749e4dbe65e61e159ad822a4110167c2c108fe.zip
FSL eTSEC: Fix typo in rx ring
Signed-off-by: Fabien Chouteau <chouteau@adacore.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/net')
-rw-r--r--hw/net/fsl_etsec/rings.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/net/fsl_etsec/rings.c b/hw/net/fsl_etsec/rings.c
index 26b71f6e81..e36cfbe76d 100644
--- a/hw/net/fsl_etsec/rings.c
+++ b/hw/net/fsl_etsec/rings.c
@@ -592,7 +592,7 @@ void etsec_walk_rx_ring(eTSEC *etsec, int ring_nbr)
/* TODO: Broadcast and Multicast */
- if (bd.flags | BD_INTERRUPT) {
+ if (bd.flags & BD_INTERRUPT) {
/* Set RXFx */
etsec->regs[RSTAT].value |= 1 << (7 - ring_nbr);
@@ -601,7 +601,7 @@ void etsec_walk_rx_ring(eTSEC *etsec, int ring_nbr)
}
} else {
- if (bd.flags | BD_INTERRUPT) {
+ if (bd.flags & BD_INTERRUPT) {
/* Set IEVENT */
ievent_set(etsec, IEVENT_RXB);
}