mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
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:
parent
cf4c01fde2
commit
5a9ff3819a
1 changed files with 1 additions and 1 deletions
2
hw/pci.c
2
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue