Update the IRQ state and stop the poll timer on reset. Moreover,
register the reset function with qemu.
Patchworks-ID: 35462
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
s->bcr[BCR_PLAT ] = 0xff06;
pcnet_s_reset(s);
+ pcnet_update_irq(s);
+ pcnet_poll_timer(s);
}
static void pcnet_aprom_writeb(void *opaque, uint32_t addr, uint32_t val)
s->vc = qdev_get_vlan_client(dev,
pcnet_can_receive, pcnet_receive, NULL,
cleanup, s);
+ qemu_register_reset(pcnet_h_reset, s);
pcnet_h_reset(s);
return 0;
}