ioemu, passthrough: fix writing handlers for base address registers.
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 1 Aug 2008 08:52:22 +0000 (09:52 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 1 Aug 2008 08:52:22 +0000 (09:52 +0100)
commit02c55540b888f82b2f14497c107eefa2a116942e
treeda4c79ad8136292f2966597a6d7a554473129c60
parent546454e2c31855824ad525ef94616640b0a7775c
ioemu, passthrough: fix writing handlers for base address registers.

This patch fixes writing handlers for base address registers (include
expansion rom base address register) as follows.
It can be applied to both ioemu-remote and ioemu.

- Current implementation can not work fine when base address registers
  are accessed via 1 byte write access and 2 byte write access. This
  patch enables them.

- Currently guest software can set address which is not aligned
  with resource size and page size. The patch does not allow guest
  software to set unaligned address.

Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
tools/ioemu/hw/pass-through.c