]> git.proxmox.com Git - qemu.git/commit
pci: bridge control fixup
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 26 Jan 2011 13:55:07 +0000 (15:55 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 27 Jan 2011 04:54:45 +0000 (06:54 +0200)
commitbb34007e86aa2a7902ee60e0f6fa2f0e4cccbffe
treef928d9e6d79f4dbe3d7164d9955b64842f4ad4e3
parentbe7052c2a8f667f1dc42b06afcebb964ee0b03ff
pci: bridge control fixup

PCI_BRIDGE_CTL_DISCARD_STATUS (bit 10 in bridge control register)
is W1C so we should not make it writeable, otherwise the assert(!(wmask
& w1cmask)) in pci_default_write_config() is hit

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reported-by: Isaku Yamahata <yamahata@valinux.co.jp>
Tested-by: Isaku Yamahata <yamahata@valinux.co.jp>
hw/pci.c