fdc: Disentangle phases in fdctrl_read_data()
commitf6c2d1d8425fd0ca450d515b06821e2224d4b43c
authorKevin Wolf <kwolf@redhat.com>
Thu, 21 May 2015 13:19:36 +0000 (21 15:19 +0200)
committerJohn Snow <jsnow@redhat.com>
Tue, 2 Jun 2015 17:34:44 +0000 (2 13:34 -0400)
tree4010020da5c8baaf18a115108fc0fbf348fe0d36
parentd275b33d76c8ed9d5a3dca22ea0fdec8d5a5c8e6
fdc: Disentangle phases in fdctrl_read_data()

This commit makes similar improvements as have already been made to the
write function: Instead of relying on a flag in the MSR to distinguish
controller phases, use the explicit phase that we store now. Assertions
of the right MSR flags are added.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 1432214378-31891-7-git-send-email-kwolf@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
hw/block/fdc.c