aboutsummaryrefslogtreecommitdiff
path: root/hw/net/npcm7xx_emc.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/net/npcm7xx_emc.c')
-rw-r--r--hw/net/npcm7xx_emc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/net/npcm7xx_emc.c b/hw/net/npcm7xx_emc.c
index 714a742ba7..7c892f820f 100644
--- a/hw/net/npcm7xx_emc.c
+++ b/hw/net/npcm7xx_emc.c
@@ -702,7 +702,9 @@ static void npcm7xx_emc_write(void *opaque, hwaddr offset,
!(value & REG_MCMDR_RXON)) {
emc->regs[REG_MGSTA] |= REG_MGSTA_RXHA;
}
- if (!(value & REG_MCMDR_RXON)) {
+ if (value & REG_MCMDR_RXON) {
+ emc->rx_active = true;
+ } else {
emc_halt_rx(emc, 0);
}
break;