diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2018-01-04 23:00:26 -0500 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2018-01-04 23:00:26 -0500 |
commit | 2f9ea2b4e180460466fc7bbf400d0a41d981b035 (patch) | |
tree | 71f2e1bf18780e5cca0ea1180e16eb8b905788c9 /src/emu/debug/debugcpu.cpp | |
parent | fc4092b22b722cc7990f8999c3361cb72f93992f (diff) |
Eliminate machine().firstcpu (nw)
Diffstat (limited to 'src/emu/debug/debugcpu.cpp')
-rw-r--r-- | src/emu/debug/debugcpu.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/emu/debug/debugcpu.cpp b/src/emu/debug/debugcpu.cpp index 3c58a2168c5..fb762697dfd 100644 --- a/src/emu/debug/debugcpu.cpp +++ b/src/emu/debug/debugcpu.cpp @@ -87,7 +87,12 @@ debugger_cpu::debugger_cpu(running_machine &machine) } /* first CPU is visible by default */ - m_visiblecpu = m_machine.firstcpu; + for (device_t &device : device_iterator(m_machine.root_device())) + if (dynamic_cast<cpu_device *>(&device) != nullptr) + { + m_visiblecpu = downcast<cpu_device *>(&device); + break; + } /* add callback for breaking on VBLANK */ if (m_machine.first_screen() != nullptr) |