fdc: Introduce fdctrl->phase
commit85d291a08c91c07927bbbd29f72a27d3ad7478f3
authorKevin Wolf <kwolf@redhat.com>
Thu, 21 May 2015 13:19:33 +0000 (21 15:19 +0200)
committerJohn Snow <jsnow@redhat.com>
Tue, 2 Jun 2015 17:34:44 +0000 (2 13:34 -0400)
tree1acf8d66c2adc4f5444799724c24222f87b05d55
parent83a260135f13db8b5d7df72090864a5ebcef2845
fdc: Introduce fdctrl->phase

The floppy controller spec describes three different controller phases,
which are currently not explicitly modelled in our emulation. Instead,
each phase is represented by a combination of flags in registers.

This patch makes explicit in which phase the controller currently is.

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