summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/h6280
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2018-05-11 01:12:28 +0900
committer Olivier Galibert <galibert@pobox.com>2018-05-11 18:23:04 +0900
commit4c24f25845f129f77829fc6d8e701a0e3762be80 (patch)
tree9bd0b9d5cf348f95ffa86911b71956fdd7f8b410 /src/devices/cpu/h6280
parentde781d1d84e064956df88bfec929b573d4800789 (diff)
emumem: Rename direct_read_handler to memory_access_cache. Parametrize the template on more information (data width, endianness) to make it possible to turn it into an handler cache eventually, and not just a memory block cache. Make it capable of large and unaligned accesses. [O. Galibert]
Diffstat (limited to 'src/devices/cpu/h6280')
-rw-r--r--src/devices/cpu/h6280/h6280.cpp6
-rw-r--r--src/devices/cpu/h6280/h6280.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/cpu/h6280/h6280.cpp b/src/devices/cpu/h6280/h6280.cpp
index 14705c93dd7..2a38aed615f 100644
--- a/src/devices/cpu/h6280/h6280.cpp
+++ b/src/devices/cpu/h6280/h6280.cpp
@@ -301,7 +301,7 @@ void h6280_device::device_reset()
m_io_buffer = 0;
m_program = &space(AS_PROGRAM);
- m_direct = m_program->direct<0>();
+ m_cache = m_program->cache<0, 0, ENDIANNESS_LITTLE>();
m_io = &space(AS_IO);
/* set I and B flags */
@@ -2375,7 +2375,7 @@ void h6280_device::pull(uint8_t &value)
***************************************************************/
uint8_t h6280_device::read_opcode()
{
- return m_direct->read_byte(translated(PCW));
+ return m_cache->read_byte(translated(PCW));
}
/***************************************************************
@@ -2383,7 +2383,7 @@ uint8_t h6280_device::read_opcode()
***************************************************************/
uint8_t h6280_device::read_opcode_arg()
{
- return m_direct->read_byte(translated(PCW));
+ return m_cache->read_byte(translated(PCW));
}
diff --git a/src/devices/cpu/h6280/h6280.h b/src/devices/cpu/h6280/h6280.h
index a1f64139b1a..22155e0edb6 100644
--- a/src/devices/cpu/h6280/h6280.h
+++ b/src/devices/cpu/h6280/h6280.h
@@ -357,7 +357,7 @@ protected:
// address spaces
address_space *m_program;
address_space *m_io;
- direct_read_data<0> *m_direct;
+ memory_access_cache<0, 0, ENDIANNESS_LITTLE> *m_cache;
typedef void (h6280_device::*ophandler)();