summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/h8500
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/h8500')
-rw-r--r--src/devices/cpu/h8500/h8500.cpp4
-rw-r--r--src/devices/cpu/h8500/h8500.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/src/devices/cpu/h8500/h8500.cpp b/src/devices/cpu/h8500/h8500.cpp
index 9a0ebc225b0..c96fed16f7f 100644
--- a/src/devices/cpu/h8500/h8500.cpp
+++ b/src/devices/cpu/h8500/h8500.cpp
@@ -16,8 +16,6 @@ h8500_device::h8500_device(const machine_config &mconfig, device_type type, cons
: cpu_device(mconfig, type, tag, owner, clock)
, m_program_config("program", ENDIANNESS_BIG, buswidth, addrbits, 0, map)
, m_ram_config("internal RAM", ENDIANNESS_BIG, 16, ramsize, 0, address_map_constructor(FUNC(h8500_device::ram_map), this))
- , m_program(nullptr)
- , m_ram_cache(nullptr)
, m_pc(0)
, m_ppc(0)
, m_sr(0)
@@ -68,7 +66,7 @@ void h8500_device::device_start()
{
m_program = &space(AS_PROGRAM);
if (has_space(AS_DATA))
- m_ram_cache = space(AS_DATA).cache<1, 0, ENDIANNESS_BIG>();
+ space(AS_DATA).cache(m_ram_cache);
set_icountptr(m_icount);
diff --git a/src/devices/cpu/h8500/h8500.h b/src/devices/cpu/h8500/h8500.h
index e3cf3e2aeb1..ede393687a9 100644
--- a/src/devices/cpu/h8500/h8500.h
+++ b/src/devices/cpu/h8500/h8500.h
@@ -50,7 +50,7 @@ private:
address_space_config m_program_config;
address_space_config m_ram_config;
address_space *m_program;
- memory_access_cache<1, 0, ENDIANNESS_BIG> *m_ram_cache;
+ memory_access<11, 1, 0, ENDIANNESS_BIG>::cache m_ram_cache;
// internal registers
u16 m_pc;