# HG changeset patch # User Michael Pavone # Date 1392598210 28800 # Node ID 5d57fd8b44f87d421bedadb4e27e3f51d038014f # Parent a59ac6b4b5b595475796e48f54a396c46bbe1ef3 Removed old debug print function that is no longer needed diff -r a59ac6b4b5b5 -r 5d57fd8b44f8 m68k_to_x86.c --- a/m68k_to_x86.c Sat Feb 15 22:35:18 2014 -0800 +++ b/m68k_to_x86.c Sun Feb 16 16:50:10 2014 -0800 @@ -41,7 +41,6 @@ void do_sync(); void bcd_add(); void bcd_sub(); -void debug_print_sr(); uint8_t * cycles(uint8_t * dst, uint32_t num) { @@ -2853,7 +2852,6 @@ dst = mov_rdisp8r(dst, CONTEXT, offsetof(m68k_context, aregs) + sizeof(uint32_t) * 8, opts->aregs[7], SZ_B); dst = mov_rrdisp8(dst, SCRATCH1, CONTEXT, offsetof(m68k_context, aregs) + sizeof(uint32_t) * 8, SZ_B); } - //dst = call(dst, (uint8_t *)debug_print_sr); if (inst->src.params.immed & 0x700) { dst = call(dst, (uint8_t *)do_sync); } @@ -3170,7 +3168,6 @@ } if (inst->op == M68K_ORI_SR) { dst = xor_irdisp8(dst, inst->src.params.immed >> 8, CONTEXT, offsetof(m68k_context, status), SZ_B); - //dst = call(dst, (uint8_t *)debug_print_sr); if (inst->src.params.immed & 0x700) { dst = call(dst, (uint8_t *)do_sync); } @@ -3231,7 +3228,6 @@ dst = mov_rdisp8r(dst, CONTEXT, offsetof(m68k_context, aregs) + sizeof(uint32_t) * 8, opts->aregs[7], SZ_D); dst = mov_rrdisp8(dst, SCRATCH1, CONTEXT, offsetof(m68k_context, aregs) + sizeof(uint32_t) * 8, SZ_D); } - //dst = call(dst, (uint8_t *)debug_print_sr); dst = call(dst, (uint8_t *)do_sync); } dst = cycles(dst, 12); @@ -3420,7 +3416,6 @@ } if (inst->op == M68K_ORI_SR) { dst = or_irdisp8(dst, inst->src.params.immed >> 8, CONTEXT, offsetof(m68k_context, status), SZ_B); - //dst = call(dst, (uint8_t *)debug_print_sr); if (inst->src.params.immed & 0x700) { dst = call(dst, (uint8_t *)do_sync); } diff -r a59ac6b4b5b5 -r 5d57fd8b44f8 runtime.S --- a/runtime.S Sat Feb 15 22:35:18 2014 -0800 +++ b/runtime.S Sun Feb 16 16:50:10 2014 -0800 @@ -26,33 +26,6 @@ skip_sync: ret -sr_msg_int: - .asciz "SR set to $%X due to interrupt\n" -debug_print_sr_int: - call m68k_save_context - push %rsi - lea sr_msg_int(%rip), %rdi - movzxb 5(%rsi), %rsi - xor %rax, %rax - call printf - pop %rsi - call m68k_load_context - ret - -sr_msg: - .asciz "SR set to $%X\n" - .global debug_print_sr -debug_print_sr: - call m68k_save_context - push %rsi - lea sr_msg(%rip), %rdi - movzxb 5(%rsi), %rsi - xor %rax, %rax - call printf - pop %rsi - call m68k_load_context - ret - invalid_msg: .asciz "Invalid instruction at %X\n" @@ -156,7 +129,6 @@ mov %cl, (%rsi) shr $8, %cx mov %cl, 5(%rsi) - /* call debug_print_sr */ ret .global set_ccr