From 5a9ff3819a1023b63b94ad4fb82da973f93f65d0 Mon Sep 17 00:00:00 2001 From: Isaku Yamahata Date: Thu, 9 Sep 2010 11:48:55 +0900 Subject: [PATCH] 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 Signed-off-by: Michael S. Tsirkin --- hw/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/pci.c b/hw/pci.c index f03b83e3cf..c28b8a1835 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -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; -- 2.11.0