From ee4dc11142649262163a85aad31775a02031b818 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Tue, 28 Mar 2017 09:39:54 -0700 Subject: Fix exit trace mode edge case. Call do_sync if trace mode bit is changed in eori sr --- trans.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'trans.c') diff --git a/trans.c b/trans.c index 9399a96..32193ca 100644 --- a/trans.c +++ b/trans.c @@ -24,7 +24,7 @@ m68k_context * sync_components(m68k_context * context, uint32_t address) if (context->current_cycle > 0x80000000) { context->current_cycle -= 0x80000000; } - if (context->status & 0x80) { + if (context->status & M68K_STATUS_TRACE || context->trace_pending) { context->target_cycle = context->current_cycle; } return context; -- cgit v1.2.3