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)
commit2e48aa611f803813e363b7016fe006e6462a9741
treecddf0dbb0654c2cb2dcfd36ca1de5db826993486
parent61f5b89c4a10e70cdd719b8ce7c97f4af132b4b7
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