diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2009-10-30 21:21:02 +0900 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-11-09 08:43:05 -0600 |
commit | 67a51b48c8b7dba1fd79d66aa0a779de59b556f5 (patch) | |
tree | fabcda9beac620378ea0dcb71e2bcbd82c97cf94 /hw | |
parent | 74c01823badbf4637c18ac4cad5967b4f9669514 (diff) |
pci: clean up pci_init_wmask()
use pci_set_word() for pci command register.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -352,8 +352,8 @@ static void pci_init_wmask(PCIDevice *dev) int i; dev->wmask[PCI_CACHE_LINE_SIZE] = 0xff; dev->wmask[PCI_INTERRUPT_LINE] = 0xff; - dev->wmask[PCI_COMMAND] = PCI_COMMAND_IO | PCI_COMMAND_MEMORY - | PCI_COMMAND_MASTER; + pci_set_word(dev->wmask + PCI_COMMAND, + PCI_COMMAND_IO | PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER); for (i = PCI_CONFIG_HEADER_SIZE; i < PCI_CONFIG_SPACE_SIZE; ++i) dev->wmask[i] = 0xff; } |