fdc: Use phase in fdctrl_write_data()
commit5b0a25e8d2f15f89255c745c71d297b5b24d138c
authorKevin Wolf <kwolf@redhat.com>
Thu, 21 May 2015 13:19:34 +0000 (21 15:19 +0200)
committerJohn Snow <jsnow@redhat.com>
Tue, 2 Jun 2015 17:34:44 +0000 (2 13:34 -0400)
tree181862aa09ab430f2b7c025ddcd638c392fd3094
parent85d291a08c91c07927bbbd29f72a27d3ad7478f3
fdc: Use phase in fdctrl_write_data()

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-5-git-send-email-kwolf@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
hw/block/fdc.c