diff options
author | 2018-05-11 01:12:28 +0900 | |
---|---|---|
committer | 2018-05-11 18:23:04 +0900 | |
commit | 4c24f25845f129f77829fc6d8e701a0e3762be80 (patch) | |
tree | 9bd0b9d5cf348f95ffa86911b71956fdd7f8b410 /src/devices/cpu/alph8201 | |
parent | de781d1d84e064956df88bfec929b573d4800789 (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/alph8201')
-rw-r--r-- | src/devices/cpu/alph8201/alph8201.cpp | 2 | ||||
-rw-r--r-- | src/devices/cpu/alph8201/alph8201.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/cpu/alph8201/alph8201.cpp b/src/devices/cpu/alph8201/alph8201.cpp index 81c1e6df4aa..c0b17ed7fd5 100644 --- a/src/devices/cpu/alph8201/alph8201.cpp +++ b/src/devices/cpu/alph8201/alph8201.cpp @@ -394,7 +394,7 @@ const alpha8201_cpu_device::s_opcode alpha8201_cpu_device::opcode_8301[256]= void alpha8201_cpu_device::device_start() { m_program = &space(AS_PROGRAM); - m_direct = m_program->direct<0>(); + m_cache = m_program->cache<0, 0, ENDIANNESS_LITTLE>(); state_add( ALPHA8201_PC, "PC", m_pc.w.l ).callimport().mask(0x3ff).formatstr("%03X"); state_add( ALPHA8201_SP, "SP", m_sp ).callimport().callexport().formatstr("%02X"); diff --git a/src/devices/cpu/alph8201/alph8201.h b/src/devices/cpu/alph8201/alph8201.h index 77f442161c6..46c00143f6b 100644 --- a/src/devices/cpu/alph8201/alph8201.h +++ b/src/devices/cpu/alph8201/alph8201.h @@ -87,8 +87,8 @@ protected: u8 M_RDMEM(u16 A) { return m_program->read_byte(A); } void M_WRMEM(u16 A, u8 V) { m_program->write_byte(A, V); } - u8 M_RDOP(u16 A) { return m_direct->read_byte(A); } - u8 M_RDOP_ARG(u16 A) { return m_direct->read_byte(A); } + u8 M_RDOP(u16 A) { return m_cache->read_byte(A); } + u8 M_RDOP_ARG(u16 A) { return m_cache->read_byte(A); } u8 RD_REG(u8 x) { return m_RAM[(m_regPtr<<3)+(x)]; } void WR_REG(u8 x, u8 d) { m_RAM[(m_regPtr<<3)+(x)]=(d); } @@ -388,7 +388,7 @@ protected: u8 m_halt; /* halt input line */ address_space *m_program; - direct_read_data<0> *m_direct; + memory_access_cache<0, 0, ENDIANNESS_LITTLE> *m_cache; int m_icount; int m_inst_cycles; |