# HG changeset patch # User Michael Pavone # Date 1394243500 28800 # Node ID 819921b76b4b90204759d0ac424e938d3c8fc9a6 # Parent c05fcbfe1b1aaff0d4a96fea9167fcc06d0ec031 Use update_flags instead of individual set_flag calls in a few places diff -r c05fcbfe1b1a -r 819921b76b4b m68k_core_x86.c --- a/m68k_core_x86.c Fri Mar 07 17:42:29 2014 -0800 +++ b/m68k_core_x86.c Fri Mar 07 17:51:40 2014 -0800 @@ -1270,9 +1270,7 @@ if (!special && end_off) { *end_off = code->cur - (end_off + 1); } - set_flag_cond(opts, CC_C, FLAG_C); - set_flag_cond(opts, CC_Z, FLAG_Z); - set_flag_cond(opts, CC_S, FLAG_N); + update_flags(opts, C|Z|N); if (special && end_off) { *end_off = code->cur - (end_off + 1); } @@ -1766,9 +1764,7 @@ cmp_ir(code, 0, RAX, SZ_W); pop_r(code, RAX); pop_r(code, RDX); - set_flag(opts, 0, FLAG_V); - set_flag_cond(opts, CC_Z, FLAG_Z); - set_flag_cond(opts, CC_S, FLAG_N); + update_flags(opts, V0|Z|N); code_ptr end_off = code->cur + 1; jmp(code, code->cur + 2); *norm_off = code->cur - (norm_off + 1);