pci: fix bridge control bit wmask
commitf6bdfcc9352e53fac5b9a144fc9ead991163484b
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 18 Nov 2010 08:42:50 +0000 (18 10:42 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 22 Nov 2010 08:00:06 +0000 (22 10:00 +0200)
tree70a03f3250fc548aec7525b887924c240b5951ca
parent09b926d44674cbcf198425a5b8255e3cacb398ae
pci: fix bridge control bit wmask

Bits 12 to 15 in bridge control register are reserver and must be
read-only zero, curent mask is 0xffff which makes them writeable. Fix
this up by using symbolic bit names for writeable bits instead of a
hardcoded constant.

Fix a comment w1mask -> w1cmask as well.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci.c