Revision 6bef0436 hw/unin_pci.c

b/hw/unin_pci.c
154 154
    pci_mem_config = pci_host_conf_register_mmio(&s->host_state, 1);
155 155
    s->data_handler.read = unin_data_read;
156 156
    s->data_handler.write = unin_data_write;
157
    pci_mem_data = cpu_register_io_memory_simple(&s->data_handler);
157
    pci_mem_data = cpu_register_io_memory_simple(&s->data_handler,
158
                                                 DEVICE_NATIVE_ENDIAN);
158 159
    sysbus_init_mmio(dev, 0x1000, pci_mem_config);
159 160
    sysbus_init_mmio(dev, 0x1000, pci_mem_data);
160 161

  
......
175 176
    pci_mem_config = pci_host_conf_register_mmio(&s->host_state, 1);
176 177
    s->data_handler.read = unin_data_read;
177 178
    s->data_handler.write = unin_data_write;
178
    pci_mem_data = cpu_register_io_memory_simple(&s->data_handler);
179
    pci_mem_data = cpu_register_io_memory_simple(&s->data_handler,
180
                                                 DEVICE_NATIVE_ENDIAN);
179 181
    sysbus_init_mmio(dev, 0x1000, pci_mem_config);
180 182
    sysbus_init_mmio(dev, 0x1000, pci_mem_data);
181 183

  

Also available in: Unified diff