aboutsummaryrefslogtreecommitdiff
path: root/hw/cadence_gem.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/cadence_gem.c')
-rw-r--r--hw/cadence_gem.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/hw/cadence_gem.c b/hw/cadence_gem.c
index a1ac069a20..61f1801273 100644
--- a/hw/cadence_gem.c
+++ b/hw/cadence_gem.c
@@ -1083,10 +1083,6 @@ static void gem_write(void *opaque, hwaddr offset, uint64_t val,
/* Reset to start of Q when transmit disabled. */
s->tx_desc_addr = s->regs[GEM_TXQBASE];
}
- if (!(val & GEM_NWCTRL_RXENA)) {
- /* Reset to start of Q when receive disabled. */
- s->rx_desc_addr = s->regs[GEM_RXQBASE];
- }
if (val & GEM_NWCTRL_RXENA) {
qemu_flush_queued_packets(qemu_get_queue(s->nic));
}