From aa3d342f4bff853c7148f751a2703ae017926d70 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Wed, 3 Jan 2018 07:09:39 -0800 Subject: Fix silly bug in STOP implementation that caused excessive CPU usage --- m68k_core_x86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'm68k_core_x86.c') diff --git a/m68k_core_x86.c b/m68k_core_x86.c index 1f9a511..6fa1dce 100644 --- a/m68k_core_x86.c +++ b/m68k_core_x86.c @@ -2365,7 +2365,7 @@ void translate_m68k_stop(m68k_options *opts, m68kinst *inst) } 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); -- cgit v1.2.3