summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/apexc
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2016-11-19 22:14:09 +0000
committer smf- <smf-@users.noreply.github.com>2016-11-19 22:18:58 +0000
commit5f05fbf61348c65204fde1e2aeed72de4cb56593 (patch)
treee98dcf5c22a2f62424673d90fd9cee2ecfc6ec0d /src/devices/cpu/apexc
parent53df201f3241d619ed62ff6fdb88a8939fb2be85 (diff)
moved debugger_access() from address space to machine & removed the anti-patterns that updated cascading address spaces. [smf]
Diffstat (limited to 'src/devices/cpu/apexc')
-rw-r--r--src/devices/cpu/apexc/apexc.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/devices/cpu/apexc/apexc.cpp b/src/devices/cpu/apexc/apexc.cpp
index cbd824d5978..4e8f0cca659 100644
--- a/src/devices/cpu/apexc/apexc.cpp
+++ b/src/devices/cpu/apexc/apexc.cpp
@@ -326,8 +326,9 @@ field: X address D Function Y address D (part 2)
*/
#include "emu.h"
-#include "debugger.h"
#include "apexc.h"
+#include "debugger.h"
+#include "debug/debugcpu.h"
const device_type APEXC = &device_creator<apexc_cpu_device>;
@@ -802,7 +803,7 @@ void apexc_cpu_device::state_import(const device_state_entry &entry)
}
/* fetch current instruction into control register */
- m_cr = m_program->read_dword(m_pc);
+ m_cr = machine().debugger().cpu().read_dword(*m_program, m_pc, true);
break;
case APEXC_ML: