Mercurial > repos > blastem
changeset 1510:5eb954b76e65
Fix silly bug in STOP implementation that caused excessive CPU usage
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 03 Jan 2018 07:09:39 -0800 |
parents | f5d693bd694a |
children | 8158c2757605 |
files | m68k_core_x86.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/m68k_core_x86.c Sun Dec 31 09:53:33 2017 -0800 +++ b/m68k_core_x86.c Wed Jan 03 07:09:39 2018 -0800 @@ -2365,7 +2365,7 @@ } code_ptr loop_top = code->cur; call(code, opts->do_sync); - cmp_rr(code, opts->gen.limit, opts->gen.cycles, SZ_D); + cmp_rr(code, opts->gen.cycles, opts->gen.limit, SZ_D); code_ptr normal_cycle_up = code->cur + 1; jcc(code, CC_A, code->cur + 2); cycles(&opts->gen, BUS);