mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
ide: Fix ide_drive_pio_state_needed()
When a failed PIO request caused the VM to stop, we still need to transfer the PIO state even though DRQ=0 at this point. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
def93791f2
commit
fdc650d76d
1 changed files with 2 additions and 1 deletions
|
@ -1837,7 +1837,8 @@ static bool ide_drive_pio_state_needed(void *opaque)
|
|||
{
|
||||
IDEState *s = opaque;
|
||||
|
||||
return (s->status & DRQ_STAT) != 0;
|
||||
return ((s->status & DRQ_STAT) != 0)
|
||||
|| (s->bus->error_status & BM_STATUS_PIO_RETRY);
|
||||
}
|
||||
|
||||
static bool ide_atapi_gesn_needed(void *opaque)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue