summary refs log tree commit diff stats
path: root/hw/pci.c
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2010-09-09 11:48:55 +0900
committerMichael S. Tsirkin <mst@redhat.com>2010-09-13 21:03:51 +0200
commit5a9ff3819a1023b63b94ad4fb82da973f93f65d0 (patch)
treece35eb2c636b8b15452edf6bf71bfb4f4cd3a2d8 /hw/pci.c
parentcf4c01fde264416dc8b1a1904bc9068a4af78cb7 (diff)
downloadfocaccia-qemu-5a9ff3819a1023b63b94ad4fb82da973f93f65d0.tar.gz
focaccia-qemu-5a9ff3819a1023b63b94ad4fb82da973f93f65d0.zip
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>
Diffstat (limited to 'hw/pci.c')
-rw-r--r--hw/pci.c2
1 files changed, 1 insertions, 1 deletions
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;