Revision 2507c12a exec.c
b/exec.c | ||
---|---|---|
3331 | 3331 |
mmio = qemu_mallocz(sizeof(subpage_t)); |
3332 | 3332 |
|
3333 | 3333 |
mmio->base = base; |
3334 |
subpage_memory = cpu_register_io_memory(subpage_read, subpage_write, mmio); |
|
3334 |
subpage_memory = cpu_register_io_memory(subpage_read, subpage_write, mmio, |
|
3335 |
DEVICE_NATIVE_ENDIAN); |
|
3335 | 3336 |
#if defined(DEBUG_SUBPAGE) |
3336 | 3337 |
printf("%s: %p base " TARGET_FMT_plx " len %08x %d\n", __func__, |
3337 | 3338 |
mmio, base, TARGET_PAGE_SIZE, subpage_memory); |
... | ... | |
3468 | 3469 |
void *opaque, enum device_endian endian) |
3469 | 3470 |
{ |
3470 | 3471 |
int i; |
3471 |
int endian = DEVICE_NATIVE_ENDIAN; |
|
3472 | 3472 |
|
3473 | 3473 |
if (io_index <= 0) { |
3474 | 3474 |
io_index = get_free_io_mem_idx(); |
... | ... | |
3513 | 3513 |
CPUWriteMemoryFunc * const *mem_write, |
3514 | 3514 |
void *opaque, enum device_endian endian) |
3515 | 3515 |
{ |
3516 |
return cpu_register_io_memory_fixed(0, mem_read, mem_write, opaque); |
|
3516 |
return cpu_register_io_memory_fixed(0, mem_read, mem_write, opaque, endian);
|
|
3517 | 3517 |
} |
3518 | 3518 |
|
3519 | 3519 |
void cpu_unregister_io_memory(int io_table_address) |
... | ... | |
3535 | 3535 |
{ |
3536 | 3536 |
int i; |
3537 | 3537 |
|
3538 |
cpu_register_io_memory_fixed(IO_MEM_ROM, error_mem_read, unassigned_mem_write, NULL); |
|
3539 |
cpu_register_io_memory_fixed(IO_MEM_UNASSIGNED, unassigned_mem_read, unassigned_mem_write, NULL); |
|
3540 |
cpu_register_io_memory_fixed(IO_MEM_NOTDIRTY, error_mem_read, notdirty_mem_write, NULL); |
|
3538 |
cpu_register_io_memory_fixed(IO_MEM_ROM, error_mem_read, |
|
3539 |
unassigned_mem_write, NULL, |
|
3540 |
DEVICE_NATIVE_ENDIAN); |
|
3541 |
cpu_register_io_memory_fixed(IO_MEM_UNASSIGNED, unassigned_mem_read, |
|
3542 |
unassigned_mem_write, NULL, |
|
3543 |
DEVICE_NATIVE_ENDIAN); |
|
3544 |
cpu_register_io_memory_fixed(IO_MEM_NOTDIRTY, error_mem_read, |
|
3545 |
notdirty_mem_write, NULL, |
|
3546 |
DEVICE_NATIVE_ENDIAN); |
|
3541 | 3547 |
for (i=0; i<5; i++) |
3542 | 3548 |
io_mem_used[i] = 1; |
3543 | 3549 |
|
3544 | 3550 |
io_mem_watch = cpu_register_io_memory(watch_mem_read, |
3545 |
watch_mem_write, NULL); |
|
3551 |
watch_mem_write, NULL, |
|
3552 |
DEVICE_NATIVE_ENDIAN); |
|
3546 | 3553 |
} |
3547 | 3554 |
|
3548 | 3555 |
#endif /* !defined(CONFIG_USER_ONLY) */ |
Also available in: Unified diff