From 72ba280d7dd9614ed01ac0cbf7dff2f1c8b51e78 Mon Sep 17 00:00:00 2001 From: AJR Date: Thu, 14 Dec 2017 22:09:38 -0500 Subject: Eliminate remaining uses of address_space::machine() outside of emumem (nw) --- src/emu/debug/debugbuf.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/emu/debug/debugbuf.cpp') diff --git a/src/emu/debug/debugbuf.cpp b/src/emu/debug/debugbuf.cpp index bd24f475340..7153c92b773 100644 --- a/src/emu/debug/debugbuf.cpp +++ b/src/emu/debug/debugbuf.cpp @@ -204,7 +204,7 @@ void debug_disasm_buffer::debug_data_buffer::setup_methods() switch(shift) { case -1: m_do_fill = [this](offs_t lstart, offs_t lend) { - auto dis = m_space->machine().disable_side_effect(); + auto dis = m_space->device().machine().disable_side_effect(); u16 *dest = get_ptr(lstart); for(offs_t lpc = lstart; lpc != lend; lpc = (lpc + 1) & m_pc_mask) { offs_t tpc = m_intf->pc_linear_to_real(lpc); @@ -217,7 +217,7 @@ void debug_disasm_buffer::debug_data_buffer::setup_methods() break; case 0: m_do_fill = [this](offs_t lstart, offs_t lend) { - auto dis = m_space->machine().disable_side_effect(); + auto dis = m_space->device().machine().disable_side_effect(); u8 *dest = get_ptr(lstart); u32 steps = 0; for(offs_t lpc = lstart; lpc != lend; lpc = (lpc + 1) & m_pc_mask) { @@ -236,7 +236,7 @@ void debug_disasm_buffer::debug_data_buffer::setup_methods() switch(shift) { case -3: // bus granularity 64 m_do_fill = [this](offs_t lstart, offs_t lend) { - auto dis = m_space->machine().disable_side_effect(); + auto dis = m_space->device().machine().disable_side_effect(); u64 *dest = get_ptr(lstart); for(offs_t lpc = lstart; lpc != lend; lpc = (lpc + 1) & m_pc_mask) { offs_t tpc = lpc; @@ -250,7 +250,7 @@ void debug_disasm_buffer::debug_data_buffer::setup_methods() case -2: // bus granularity 32 m_do_fill = [this](offs_t lstart, offs_t lend) { - auto dis = m_space->machine().disable_side_effect(); + auto dis = m_space->device().machine().disable_side_effect(); u32 *dest = get_ptr(lstart); for(offs_t lpc = lstart; lpc != lend; lpc = (lpc + 1) & m_pc_mask) { offs_t tpc = lpc; @@ -264,7 +264,7 @@ void debug_disasm_buffer::debug_data_buffer::setup_methods() case -1: // bus granularity 16 m_do_fill = [this](offs_t lstart, offs_t lend) { - auto dis = m_space->machine().disable_side_effect(); + auto dis = m_space->device().machine().disable_side_effect(); u16 *dest = get_ptr(lstart); for(offs_t lpc = lstart; lpc != lend; lpc = (lpc + 1) & m_pc_mask) { offs_t tpc = lpc; @@ -278,7 +278,7 @@ void debug_disasm_buffer::debug_data_buffer::setup_methods() case 0: // bus granularity 8 m_do_fill = [this](offs_t lstart, offs_t lend) { - auto dis = m_space->machine().disable_side_effect(); + auto dis = m_space->device().machine().disable_side_effect(); u8 *dest = get_ptr(lstart); for(offs_t lpc = lstart; lpc != lend; lpc = (lpc + 1) & m_pc_mask) { offs_t tpc = lpc; @@ -292,7 +292,7 @@ void debug_disasm_buffer::debug_data_buffer::setup_methods() case 3: // bus granularity 1, stored as u16 m_do_fill = [this](offs_t lstart, offs_t lend) { - auto dis = m_space->machine().disable_side_effect(); + auto dis = m_space->device().machine().disable_side_effect(); u16 *dest = reinterpret_cast(&m_buffer[0]) + ((lstart - m_lstart) >> 4); for(offs_t lpc = lstart; lpc != lend; lpc = (lpc + 0x10) & m_pc_mask) { offs_t tpc = lpc; -- cgit v1.2.3