Revision 8da3ff18 hw/slavio_misc.c
b/hw/slavio_misc.c | ||
---|---|---|
431 | 431 |
io = cpu_register_io_memory(0, slavio_misc_mem_read, |
432 | 432 |
slavio_misc_mem_write, s); |
433 | 433 |
// Slavio control |
434 |
cpu_register_physical_memory(base + MISC_CFG, MISC_SIZE, io); |
|
434 |
cpu_register_physical_memory_offset(base + MISC_CFG, MISC_SIZE, io, |
|
435 |
MISC_CFG); |
|
435 | 436 |
// Diagnostics |
436 |
cpu_register_physical_memory(base + MISC_DIAG, MISC_SIZE, io); |
|
437 |
cpu_register_physical_memory_offset(base + MISC_DIAG, MISC_SIZE, io, |
|
438 |
MISC_DIAG); |
|
437 | 439 |
// Modem control |
438 |
cpu_register_physical_memory(base + MISC_MDM, MISC_SIZE, io); |
|
440 |
cpu_register_physical_memory_offset(base + MISC_MDM, MISC_SIZE, io, |
|
441 |
MISC_MDM); |
|
439 | 442 |
|
440 | 443 |
/* 16 bit registers */ |
441 | 444 |
io = cpu_register_io_memory(0, slavio_led_mem_read, |
Also available in: Unified diff