ioemu, passthrough: fix corrupting register value in pt_pci_write_config().
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 1 Aug 2008 08:54:13 +0000 (09:54 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 1 Aug 2008 08:54:13 +0000 (09:54 +0100)
commit8c715178a115fd4eab786653eb5fcc093a4a18fd
treee8928dd9bfa125c22f553d97a99e31f6a08e73ac
parent37404be82b7448a4fb0d3136a65fc2421a33f8bc
ioemu, passthrough: fix corrupting register value in pt_pci_write_config().

I forgot to shift value read from real device. If the emulated
register offset is not aligned with 4 byte, the write emulation will
not be handled well because of corrupting register value read from
real device. The patch fixes this issue.

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