Revision 2507c12a hw/eccmemctl.c
b/hw/eccmemctl.c | ||
---|---|---|
297 | 297 |
|
298 | 298 |
sysbus_init_irq(dev, &s->irq); |
299 | 299 |
s->regs[0] = s->version; |
300 |
ecc_io_memory = cpu_register_io_memory(ecc_mem_read, ecc_mem_write, s); |
|
300 |
ecc_io_memory = cpu_register_io_memory(ecc_mem_read, ecc_mem_write, s, |
|
301 |
DEVICE_NATIVE_ENDIAN); |
|
301 | 302 |
sysbus_init_mmio(dev, ECC_SIZE, ecc_io_memory); |
302 | 303 |
|
303 | 304 |
if (s->version == ECC_MCC) { // SS-600MP only |
304 | 305 |
ecc_io_memory = cpu_register_io_memory(ecc_diag_mem_read, |
305 |
ecc_diag_mem_write, s); |
|
306 |
ecc_diag_mem_write, s, |
|
307 |
DEVICE_NATIVE_ENDIAN); |
|
306 | 308 |
sysbus_init_mmio(dev, ECC_DIAG_SIZE, ecc_io_memory); |
307 | 309 |
} |
308 | 310 |
|
Also available in: Unified diff