On 27 September 2011 12:25, Michael S. Tsirkin<address@hidden> wrote:
e1000 spec says CTRL.RST write should have the same effect
as bus reset, except that is preserves PCI Config.
Reset device registers and interrupts.
Fix suggested by Andy Gospodarek<address@hidden>
Doesn't this have the same effect as this patch:
http://patchwork.ozlabs.org/patch/108673/
except that it's harder to read because it's moved a lot
of code around in the file?
(I think you have an extra qemu_set_irq() call in there,
actually. But it was hard to find. Also your code has the
bug that was in earlier revisions of Anthony's patch where
after doing the reset you fall through and allow other bits
in the ctrl register to be set.)