summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/m68000/m68000.h
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2017-07-31 23:47:16 -0400
committer AJR <ajrhacker@users.noreply.github.com>2017-08-01 00:21:19 -0400
commitbb0964f9a284b15851773f5428bd602ca01cc28b (patch)
treee2c7c0dc17e42a88046cf6de8b357daee868b9d9 /src/devices/cpu/m68000/m68000.h
parentd050ba956ed79015389bc2cba7399db9cbd62684 (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/m68000/m68000.h')
-rw-r--r--src/devices/cpu/m68000/m68000.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/m68000/m68000.h b/src/devices/cpu/m68000/m68000.h
index 776f097967c..3a45bea87f3 100644
--- a/src/devices/cpu/m68000/m68000.h
+++ b/src/devices/cpu/m68000/m68000.h
@@ -395,7 +395,7 @@ public:
virtual void state_string_export(const device_state_entry &entry, std::string &str) const override;
// device_memory_interface overrides
- virtual bool memory_translate(int space, int intention, offs_t &address) override;
+ virtual int memory_translate(int space, int intention, offs_t &address) const override;
};
@@ -596,7 +596,7 @@ public:
virtual uint32_t execute_default_irq_vector() const override { return -1; };
- virtual bool memory_translate(int space, int intention, offs_t &address) override;
+ virtual int memory_translate(int space, int intention, offs_t &address) const override;
// device-level overrides
virtual void device_start() override;