summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/arcompact/arcompact_execute.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/arcompact/arcompact_execute.cpp')
-rw-r--r--src/devices/cpu/arcompact/arcompact_execute.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/devices/cpu/arcompact/arcompact_execute.cpp b/src/devices/cpu/arcompact/arcompact_execute.cpp
index f6bc43a8b6b..875c12d6543 100644
--- a/src/devices/cpu/arcompact/arcompact_execute.cpp
+++ b/src/devices/cpu/arcompact/arcompact_execute.cpp
@@ -98,16 +98,18 @@ void arcompact_device::execute_run()
{
while (m_icount > 0)
{
- debugger_instruction_hook(m_pc);
-
if (!m_delayactive)
{
check_interrupts();
}
// make sure CPU isn't in 'SLEEP' mode
- if (!debugreg_check_ZZ())
+ if (debugreg_check_ZZ())
+ debugger_wait_hook();
+ else
{
+ debugger_instruction_hook(m_pc);
+
if (m_delayactive)
{
uint16_t op = READ16((m_pc + 0));