diff options
author | Olivier Galibert <galibert@pobox.com> | 2017-07-01 12:11:28 +0200 |
---|---|---|
committer | Olivier Galibert <galibert@pobox.com> | 2017-07-03 08:03:57 +0200 |
commit | cbbbd07484c736eae2069b294ec666f231e64bff (patch) | |
tree | b94a690f0ab10635eb6d11837425744208c7e8a4 /src/devices/cpu/hmcs40 | |
parent | cb1930f6e6a6b460577f01207888eab402469e9f (diff) |
dimemory: Lift the cap on the number of address spaces per device [O. Galibert]
Diffstat (limited to 'src/devices/cpu/hmcs40')
-rw-r--r-- | src/devices/cpu/hmcs40/hmcs40.cpp | 7 | ||||
-rw-r--r-- | src/devices/cpu/hmcs40/hmcs40.h | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/devices/cpu/hmcs40/hmcs40.cpp b/src/devices/cpu/hmcs40/hmcs40.cpp index 092a6417c32..265ca25b97d 100644 --- a/src/devices/cpu/hmcs40/hmcs40.cpp +++ b/src/devices/cpu/hmcs40/hmcs40.cpp @@ -149,6 +149,13 @@ hd44828_device::hd44828_device(const machine_config &mconfig, const char *tag, d : hmcs45_cpu_device(mconfig, HD44828, tag, owner, clock, IS_CMOS) { } +std::vector<std::pair<int, const address_space_config *>> hmcs40_cpu_device::memory_space_config() const +{ + return std::vector<std::pair<int, const address_space_config *>> { + std::make_pair(AS_PROGRAM, &m_program_config), + std::make_pair(AS_DATA, &m_data_config) + }; +} // disasm void hmcs40_cpu_device::state_string_export(const device_state_entry &entry, std::string &str) const diff --git a/src/devices/cpu/hmcs40/hmcs40.h b/src/devices/cpu/hmcs40/hmcs40.h index af933a999a7..77004de1e24 100644 --- a/src/devices/cpu/hmcs40/hmcs40.h +++ b/src/devices/cpu/hmcs40/hmcs40.h @@ -155,7 +155,7 @@ protected: virtual void execute_run() override; // device_memory_interface overrides - virtual const address_space_config *memory_space_config(address_spacenum spacenum = AS_0) const override { return(spacenum == AS_PROGRAM) ? &m_program_config : ((spacenum == AS_DATA) ? &m_data_config : nullptr); } + virtual std::vector<std::pair<int, const address_space_config *>> memory_space_config() const override; // device_disasm_interface overrides virtual u32 disasm_min_opcode_bytes() const override { return 2; } |