]> Git Repo - qemu.git/blobdiff - hw/macio.c
x86: remove dead assignments, spotted by clang analyzer
[qemu.git] / hw / macio.c
index 28dbaa720f978a0083ef9c3b51060b107203edec..e92e82a7315bb4dcacd25c83be795843f09ee14c 100644 (file)
@@ -40,7 +40,7 @@ struct macio_state_t {
 };
 
 static void macio_map (PCIDevice *pci_dev, int region_num,
-                       uint32_t addr, uint32_t size, int type)
+                       pcibus_t addr, pcibus_t size, int type)
 {
     macio_state_t *macio_state;
     int i;
@@ -114,6 +114,6 @@ void macio_init (PCIBus *bus, int device_id, int is_oldworld, int pic_mem_index,
 
     d->config[0x3d] = 0x01; // interrupt on pin 1
 
-    pci_register_io_region(d, 0, 0x80000,
-                           PCI_ADDRESS_SPACE_MEM, macio_map);
+    pci_register_bar(d, 0, 0x80000,
+                           PCI_BASE_ADDRESS_SPACE_MEMORY, macio_map);
 }
This page took 0.024304 seconds and 4 git commands to generate.