diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2010-09-09 11:48:55 +0900 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2010-09-13 21:03:51 +0200 |
commit | 5a9ff3819a1023b63b94ad4fb82da973f93f65d0 (patch) | |
tree | ce35eb2c636b8b15452edf6bf71bfb4f4cd3a2d8 | |
parent | cf4c01fde264416dc8b1a1904bc9068a4af78cb7 (diff) | |
download | qemu-5a9ff3819a1023b63b94ad4fb82da973f93f65d0.zip qemu-5a9ff3819a1023b63b94ad4fb82da973f93f65d0.tar.gz qemu-5a9ff3819a1023b63b94ad4fb82da973f93f65d0.tar.bz2 |
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>
-rw-r--r-- | hw/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |