pci: sorting out type confusion in pci_register_bar().

This patch sorts out invalid use of pcibus_t.

In pci_register_bar(), pcibus_t wmask is used.  It should,
however, be uint64_t because it is used to set
pci configuration space value(PCIDevice::wmask)
by pci_set_quad() or pci_set_long().

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
Isaku Yamahata 2010-09-09 11:48:55 +09:00 committed by Michael S. Tsirkin
parent cf4c01fde2
commit 5a9ff3819a
1 changed files with 1 additions and 1 deletions

View File

@ -763,7 +763,7 @@ void pci_register_bar(PCIDevice *pci_dev, int region_num,
{
PCIIORegion *r;
uint32_t addr;
pcibus_t wmask;
uint64_t wmask;
if ((unsigned int)region_num >= PCI_NUM_REGIONS)
return;