diff options
author | 2017-07-31 23:47:16 -0400 | |
---|---|---|
committer | 2017-08-01 00:21:19 -0400 | |
commit | bb0964f9a284b15851773f5428bd602ca01cc28b (patch) | |
tree | e2c7c0dc17e42a88046cf6de8b357daee868b9d9 /src/devices/cpu/z180/z180.cpp | |
parent | d050ba956ed79015389bc2cba7399db9cbd62684 (diff) |
Changes to debugger memory address translation
- memory_translate now returns an address space number rather a boolean flag, permitting addresses in part of one space to map to an entirely different space. This is primarily intended to help MCUs which have blocks of internal memory that can be dynamically remapped, but may also allow for more accurate emulation of MMUs that drive multiple external address spaces, since the old limit of four address spaces per MAME device has been lifted.
- memory_translate has also been made a const method, in spite of a couple of badly behaved CPU cores that can't honestly treat it as one.
- The (read|write)_(byte|word|dword|qword|memory|opcode) accessors have been transferred from debugger_cpu to device_memory_interface, with somewhat modified arguments corresponding to the translate function it calls through to if requested.
Diffstat (limited to 'src/devices/cpu/z180/z180.cpp')
-rw-r--r-- | src/devices/cpu/z180/z180.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/z180/z180.cpp b/src/devices/cpu/z180/z180.cpp index a1dda238c60..602d094e0bf 100644 --- a/src/devices/cpu/z180/z180.cpp +++ b/src/devices/cpu/z180/z180.cpp @@ -2552,13 +2552,13 @@ void z180_device::execute_set_input(int irqline, int state) } /* logical to physical address translation */ -bool z180_device::memory_translate(int spacenum, int intention, offs_t &address) +int z180_device::memory_translate(int spacenum, int intention, offs_t &address) const { if (spacenum == AS_PROGRAM) { address = MMU_REMAP_ADDR(address); } - return true; + return spacenum; } |