From 49f354d5449432d449dd22f8455776a8ca8f4842 Mon Sep 17 00:00:00 2001 From: AJR Date: Mon, 21 May 2018 01:10:24 -0400 Subject: Kludge some absolute tag lookups in the core that can't really be helped (nw) --- src/emu/debug/debugcpu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/emu/debug/debugcpu.cpp') diff --git a/src/emu/debug/debugcpu.cpp b/src/emu/debug/debugcpu.cpp index 047317cd14f..bbf1170b762 100644 --- a/src/emu/debug/debugcpu.cpp +++ b/src/emu/debug/debugcpu.cpp @@ -296,7 +296,7 @@ bool debugger_cpu::comment_load(bool is_inline) for (util::xml::data_node const *cpunode = systemnode->get_child("cpu"); cpunode; cpunode = cpunode->get_next_sibling("cpu")) { const char *cputag_name = cpunode->get_attribute_string("tag", ""); - device_t *device = m_machine.device(cputag_name); + device_t *device = m_machine.root_device().subdevice(cputag_name); if (device != nullptr) { if(is_inline == false) @@ -692,7 +692,7 @@ device_t* debugger_cpu::expression_get_device(const char *tag) // convert to lowercase then lookup the name (tags are enforced to be all lower case) std::string fullname(tag); strmakelower(fullname); - return m_machine.device(fullname.c_str()); + return m_machine.root_device().subdevice(fullname.c_str()); } -- cgit v1.2.3