fdc: Fix floppy port I/O
authorKevin Wolf <kwolf@redhat.com>
Tue, 18 Oct 2011 14:41:45 +0000 (16:41 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 21 Oct 2011 15:34:13 +0000 (17:34 +0200)
commita18e67f5f9dc1e5e9a293a946666e2e74daa1c91
treecddf0dbb0654c2cb2dcfd36ca1de5db826993486
parent4265d620c5a91b58c757ce76fa2b0fff86fa1df1
fdc: Fix floppy port I/O

The floppy device was broken by commit 212ec7ba (fdc: Convert to
isa_register_portio_list). While the old interface provided the port number
relative to the floppy drive's io_base, the new one provides the real port
number, so we need to apply a bitmask now to get the register number.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/fdc.c