From 04cc553d2b6fb0901b4db7ee4a4d368f9a8b354e Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Sat, 29 Dec 2012 12:52:19 -0800 Subject: Fix logic for switching between USP and SSP --- m68k_to_x86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'm68k_to_x86.c') diff --git a/m68k_to_x86.c b/m68k_to_x86.c index 30da75b..e943e28 100644 --- a/m68k_to_x86.c +++ b/m68k_to_x86.c @@ -2356,7 +2356,7 @@ uint8_t * translate_m68k(uint8_t * dst, m68kinst * inst, x86_68k_options * opts) dst = pop_r(dst, SCRATCH1); dst = bt_irdisp8(dst, 5, CONTEXT, offsetof(m68k_context, status), SZ_B); end_off = dst+1; - dst = jcc(dst, CC_NC, dst+2); + dst = jcc(dst, CC_C, dst+2); dst = mov_rr(dst, opts->aregs[7], SCRATCH2, SZ_D); dst = mov_rdisp8r(dst, CONTEXT, offsetof(m68k_context, aregs) + sizeof(uint32_t) * 8, opts->aregs[7], SZ_D); dst = mov_rrdisp8(dst, SCRATCH2, CONTEXT, offsetof(m68k_context, aregs) + sizeof(uint32_t) * 8, SZ_D); -- cgit v1.2.3