summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/h6280
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2023-03-18 21:25:40 +0100
committer Olivier Galibert <galibert@pobox.com>2023-03-18 21:27:43 +0100
commite2d60b0acb410327ed487892657f374e07ac70fb (patch)
tree53aa7c1aa8a29b5ce78783693e40b6875bb0c76e /src/devices/cpu/h6280
parent02fe685a838446c1433002be520ebc67b65c0b58 (diff)
dimemory: Add the target address space to translate, wrap the constants
divtlb: Wrap the constants
Diffstat (limited to 'src/devices/cpu/h6280')
-rw-r--r--src/devices/cpu/h6280/h6280.cpp3
-rw-r--r--src/devices/cpu/h6280/h6280.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/devices/cpu/h6280/h6280.cpp b/src/devices/cpu/h6280/h6280.cpp
index 5bbda527e9b..a0b4115b19e 100644
--- a/src/devices/cpu/h6280/h6280.cpp
+++ b/src/devices/cpu/h6280/h6280.cpp
@@ -2606,8 +2606,9 @@ void h6280_device::psg_w(offs_t offset, uint8_t data)
m_psg->c6280_w(offset, data);
}
-bool h6280_device::memory_translate(int spacenum, int intention, offs_t &address)
+bool h6280_device::memory_translate(int spacenum, int intention, offs_t &address, address_space *&target_space)
{
+ target_space = &space(spacenum);
if (spacenum == AS_PROGRAM)
address = translated(address);
diff --git a/src/devices/cpu/h6280/h6280.h b/src/devices/cpu/h6280/h6280.h
index 22d3ac06ce6..fb46ec5e4c6 100644
--- a/src/devices/cpu/h6280/h6280.h
+++ b/src/devices/cpu/h6280/h6280.h
@@ -90,7 +90,7 @@ protected:
// device_memory_interface overrides
virtual space_config_vector memory_space_config() const override;
- virtual bool memory_translate(int spacenum, int intention, offs_t &address) override;
+ virtual bool memory_translate(int spacenum, int intention, offs_t &address, address_space *&target_space) override;
// device_disasm_interface overrides
virtual std::unique_ptr<util::disasm_interface> create_disassembler() override;