ide: Reset current_addr after stopping DMA
commitb76876e602ca09ff848d99595a506feb1fd54ff4
authorKevin Wolf <kwolf@redhat.com>
Fri, 26 Nov 2010 15:36:16 +0000 (26 16:36 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 29 Nov 2010 15:15:04 +0000 (29 16:15 +0100)
tree858d01d505b6c24042ca9f7d4637fb909cd3401f
parentc29947bbb0978d312074ec73be968bfab1b6c977
ide: Reset current_addr after stopping DMA

Whenever SSBM is reset in the command register all state information is lost.
Restarting DMA means that current_addr must be reset to the base address of the
PRD table. The OS is not required to change the base address register before
starting a DMA operation, it can reuse the value it wrote for an earlier
request.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
hw/ide/pci.c