OSDN Git Service

ide: fix cmd_read_pio when nsectors > 1
authorJohn Snow <jsnow@redhat.com>
Fri, 20 Mar 2015 00:24:14 +0000 (20:24 -0400)
committerJohn Snow <jsnow@redhat.com>
Mon, 23 Mar 2015 16:24:16 +0000 (12:24 -0400)
commitdd0bf7baab2201bd8f834be9eb87766662f50b19
treea931fbed594aad608b6ce8f6b04f3c7b27bc1cbe
parent6aff22c013ab6f5f711665e7031fd555086d4464
ide: fix cmd_read_pio when nsectors > 1

Similar to the cmd_write_pio fix, update the nsector count and
ide sector before we invoke ide_transfer_start.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Tested-by: Andreas Färber <afaerber@suse.de>
Message-id: 1426811056-2202-3-git-send-email-jsnow@redhat.com
hw/ide/core.c