sound/st0016.cpp: Don't try copying memory access caches.

This commit is contained in:
Vas Crabb 2022-02-14 03:22:21 +11:00
parent bd7f27c6f2
commit 886ff87b56
2 changed files with 4 additions and 5 deletions

View File

@ -33,6 +33,7 @@ st0016_device::st0016_device(const machine_config &mconfig, const char *tag, dev
, device_memory_interface(mconfig, *this)
, m_data_config("data", ENDIANNESS_LITTLE, 8, 21) // shares character RAM area?
, m_stream(nullptr)
, m_voice{ m_cache, m_cache, m_cache, m_cache, m_cache, m_cache, m_cache, m_cache }
{
}
@ -49,10 +50,6 @@ void st0016_device::device_start()
// allocate stream
m_stream = stream_alloc(0, 2, clock() / 128);
// set host device to each voices
for (auto & elem : m_voice)
elem.m_host = m_cache;
save_item(STRUCT_MEMBER(m_voice, m_regs));
save_item(STRUCT_MEMBER(m_voice, m_start));
save_item(STRUCT_MEMBER(m_voice, m_end));

View File

@ -35,12 +35,14 @@ protected:
private:
struct voice_t
{
voice_t(memory_access<21, 0, 0, ENDIANNESS_LITTLE>::cache &host) : m_host(host) { }
bool update();
u8 reg_r(offs_t offset);
void reg_w(offs_t offset, u8 data, int voice);
memory_access<21, 0, 0, ENDIANNESS_LITTLE>::cache m_host; // host device
memory_access<21, 0, 0, ENDIANNESS_LITTLE>::cache &m_host; // host device
u8 m_regs[0x20] = {0}; // 32 registers per voices
u32 m_start = 0; // Start position
u32 m_end = 0; // End position