cmd646: fix abort due to changed opaque pointer for ioport read
commit50a480946b980c2000fc3b13bda174d57b45fbdd
authorIgor V. Kovalenko <igor.v.kovalenko@gmail.com>
Thu, 22 Apr 2010 21:54:50 +0000 (23 01:54 +0400)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 1 May 2010 19:44:54 +0000 (1 19:44 +0000)
treeb6bf812a505d553bd8eea9a5df521b9763f330b8
parent70ae65f5d91462e1905a53236179fde21cda3a2f
cmd646: fix abort due to changed opaque pointer for ioport read

We cannot install different opaque pointer for read and write
of the same i/o address.

- handle zero address in bmdma_writeb_common and install
  the same opaque pointer for both read and write access.

Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/ide/cmd646.c