Mercurial > repos > blastem
comparison 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 |
comparison
equal
deleted
inserted
replaced
1303:208803173ebc | 1304:5b90d7669eee |
---|---|
22 m68k_context * sync_components(m68k_context * context, uint32_t address) | 22 m68k_context * sync_components(m68k_context * context, uint32_t address) |
23 { | 23 { |
24 if (context->current_cycle > 0x80000000) { | 24 if (context->current_cycle > 0x80000000) { |
25 context->current_cycle -= 0x80000000; | 25 context->current_cycle -= 0x80000000; |
26 } | 26 } |
27 if (context->status & 0x80) { | 27 if (context->status & M68K_STATUS_TRACE || context->trace_pending) { |
28 context->target_cycle = context->current_cycle; | 28 context->target_cycle = context->current_cycle; |
29 } | 29 } |
30 return context; | 30 return context; |
31 } | 31 } |
32 | 32 |