Revision 2507c12a hw/vga-isa-mm.c

b/hw/vga-isa-mm.c
97 97
    int s_ioport_ctrl, vga_io_memory;
98 98

  
99 99
    s->it_shift = it_shift;
100
    s_ioport_ctrl = cpu_register_io_memory(vga_mm_read_ctrl, vga_mm_write_ctrl, s);
101
    vga_io_memory = cpu_register_io_memory(vga_mem_read, vga_mem_write, s);
100
    s_ioport_ctrl = cpu_register_io_memory(vga_mm_read_ctrl, vga_mm_write_ctrl, s,
101
                                           DEVICE_NATIVE_ENDIAN);
102
    vga_io_memory = cpu_register_io_memory(vga_mem_read, vga_mem_write, s,
103
                                           DEVICE_NATIVE_ENDIAN);
102 104

  
103 105
    vmstate_register(NULL, 0, &vmstate_vga_common, s);
104 106

  

Also available in: Unified diff