# HG changeset patch # User Michael Pavone # Date 1514992179 28800 # Node ID 5eb954b76e65cc7b9d12c4e8d5675ce64d162dd1 # Parent f5d693bd694a4170da117fa13494e853e550e7a4 Fix silly bug in STOP implementation that caused excessive CPU usage diff -r f5d693bd694a -r 5eb954b76e65 m68k_core_x86.c --- 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);