Revision 8414f45c hw/apb_pci.c

b/hw/apb_pci.c
187 187
                                 uint32_t val, int size)
188 188
{
189 189
    APB_DPRINTF("%s: addr " TARGET_FMT_lx " val %x\n", __func__, addr, val);
190
    pci_data_write(s->host_state.bus, (addr & 0x00ffffff) | (1u << 31), val,
191
                   size);
190
    pci_data_write(s->host_state.bus, addr, val, size);
192 191
}
193 192

  
194 193
static uint32_t apb_pci_config_read(APBState *s, target_phys_addr_t addr,
......
196 195
{
197 196
    uint32_t ret;
198 197

  
199
    ret = pci_data_read(s->host_state.bus, (addr & 0x00ffffff) | (1u << 31),
200
                        size);
198
    ret = pci_data_read(s->host_state.bus, addr, size);
201 199
    APB_DPRINTF("%s: addr " TARGET_FMT_lx " -> %x\n", __func__, addr, ret);
202 200
    return ret;
203 201
}

Also available in: Unified diff