pci: pci_default_cap_write_config ignores wmask
commit1164350eb791c33a7815e26f33dc45bccf99ef6e
authorAlex Williamson <alex.williamson@redhat.com>
Fri, 19 Nov 2010 23:19:11 +0000 (19 16:19 -0700)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 30 Nov 2010 16:17:31 +0000 (30 14:17 -0200)
tree1c57f7dff4f65ee1092acdcdd22e1562f685f347
parentb1e0e1b96ce3fd8cef0f74e8cff24d97c899f5ea
pci: pci_default_cap_write_config ignores wmask

Make use of wmask, just like the rest of config space.

This duplicates code in pci_default_write_config, but we plan to get
rid of this function anyway, so avoid the code churn.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
hw/pci.c