Revision 6bef0436 hw/pci_host.c

b/hw/pci_host.c
187 187
{
188 188
    pci_host_init(s);
189 189
    if (swap) {
190
        return cpu_register_io_memory_simple(&s->conf_handler);
190
        return cpu_register_io_memory_simple(&s->conf_handler,
191
                                             DEVICE_NATIVE_ENDIAN);
191 192
    } else {
192
        return cpu_register_io_memory_simple(&s->conf_noswap_handler);
193
        return cpu_register_io_memory_simple(&s->conf_noswap_handler,
194
                                             DEVICE_NATIVE_ENDIAN);
193 195
    }
194 196
}
195 197

  
......
203 205
{
204 206
    pci_host_init(s);
205 207
    if (swap) {
206
        return cpu_register_io_memory_simple(&s->data_handler);
208
        return cpu_register_io_memory_simple(&s->data_handler,
209
                                             DEVICE_NATIVE_ENDIAN);
207 210
    } else {
208
        return cpu_register_io_memory_simple(&s->data_noswap_handler);
211
        return cpu_register_io_memory_simple(&s->data_noswap_handler,
212
                                             DEVICE_NATIVE_ENDIAN);
209 213
    }
210 214
}
211 215

  

Also available in: Unified diff