Mercurial > repos > blastem
diff trans.c @ 1304:5b90d7669eee
Fix exit trace mode edge case. Call do_sync if trace mode bit is changed in eori sr
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 28 Mar 2017 09:39:54 -0700 |
parents | 208803173ebc |
children | 2455662378ed 0c1491818f4b |
line wrap: on
line diff
--- a/trans.c Tue Mar 28 00:13:35 2017 -0700 +++ b/trans.c Tue Mar 28 09:39:54 2017 -0700 @@ -24,7 +24,7 @@ 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;