summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/nec/v25.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/nec/v25.cpp')
-rw-r--r--src/devices/cpu/nec/v25.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/cpu/nec/v25.cpp b/src/devices/cpu/nec/v25.cpp
index 9d57b0f2733..f4785ba9af0 100644
--- a/src/devices/cpu/nec/v25.cpp
+++ b/src/devices/cpu/nec/v25.cpp
@@ -621,11 +621,11 @@ void v25_common_device::device_start()
m_program = &space(AS_PROGRAM);
if(m_program->data_width() == 8) {
- auto cache = m_program->cache<0, 0, ENDIANNESS_LITTLE>();
- m_dr8 = [cache](offs_t address) -> u8 { return cache->read_byte(address); };
+ m_program->cache(m_cache8);
+ m_dr8 = [this](offs_t address) -> u8 { return m_cache8.read_byte(address); };
} else {
- auto cache = m_program->cache<1, 0, ENDIANNESS_LITTLE>();
- m_dr8 = [cache](offs_t address) -> u8 { return cache->read_byte(address); };
+ m_program->cache(m_cache16);
+ m_dr8 = [this](offs_t address) -> u8 { return m_cache16.read_byte(address); };
}
m_data = &space(AS_DATA);
m_io = &space(AS_IO);