summaryrefslogtreecommitdiffstats
path: root/hw/pci.c
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2010-09-09 11:48:57 +0900
committerMichael S. Tsirkin <mst@redhat.com>2010-09-13 21:03:51 +0200
commit0bb750ef9e897ba5f4d9899ddc7e222e809bcbbd (patch)
tree6a6d62faa9a4b65ed22297b44e5db4a3b24c4199 /hw/pci.c
parent2bbb9c2f7f36d0457cda5f27d7e4422219b3acd8 (diff)
downloadhqemu-0bb750ef9e897ba5f4d9899ddc7e222e809bcbbd.zip
hqemu-0bb750ef9e897ba5f4d9899ddc7e222e809bcbbd.tar.gz
pci: improve signature of pci_register_bar().
Make type uint8_t from int because PCIIORegion::type is uint8_t. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
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 8f48d9b..97a7b23 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -758,7 +758,7 @@ static int pci_unregister_device(DeviceState *dev)
}
void pci_register_bar(PCIDevice *pci_dev, int region_num,
- pcibus_t size, int type,
+ pcibus_t size, uint8_t type,
PCIMapIORegionFunc *map_func)
{
PCIIORegion *r;
OpenPOWER on IntegriCloud