# HG changeset patch # User Michael Pavone # Date 1644108061 28800 # Node ID 973a39d93d7b89093f0be5b02508f203bc2cea2b # Parent 1ff67ce37085fd564ef0a30610c2a8ddfda1cb99 Fix instruction retranslation for write protectable region of SCD Program RAM diff -r 1ff67ce37085 -r 973a39d93d7b m68k_core_x86.c --- a/m68k_core_x86.c Sat Feb 05 16:38:39 2022 -0800 +++ b/m68k_core_x86.c Sat Feb 05 16:41:01 2022 -0800 @@ -2507,6 +2507,7 @@ { m68k_options *opts = context->options; native_map_slot *native_code_map = opts->gen.native_code_map; + start -= M68K_MAX_INST_SIZE - 2; memmap_chunk const *mem_chunk = find_map_chunk(start, &opts->gen, 0, NULL); if (mem_chunk) { //calculate the lowest alias for this address