diff options
author | Michael Pavone <pavone@retrodev.com> | 2018-01-03 07:09:39 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2018-01-03 07:09:39 -0800 |
commit | aa3d342f4bff853c7148f751a2703ae017926d70 (patch) | |
tree | 77dbfa4b495cb41f047b79ccc0519150965a6d72 /m68k_core_x86.c | |
parent | f34bb0f36e058fc744546a33ed41c08c4954feca (diff) |
Fix silly bug in STOP implementation that caused excessive CPU usage
Diffstat (limited to 'm68k_core_x86.c')
-rw-r--r-- | m68k_core_x86.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |