]> xenbits.xensource.com Git - qemu-xen-3.3-testing.git/commit
passthrough: fix corrupting register value in pt_pci_write_config().
authorKeir Fraser <kfraser@endor.localdomain>
Fri, 1 Aug 2008 09:05:36 +0000 (10:05 +0100)
committerKeir Fraser <kfraser@endor.localdomain>
Fri, 1 Aug 2008 09:05:36 +0000 (10:05 +0100)
commit96c64e9274638b5cd969d658b8791e926c82cceb
tree803dc868bbf30bc21eee679f8dfe6a6f19aee12e
parent45634c43177f148c40edd125f9e2c45c0d86b4d2
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>
hw/pass-through.c