# HG changeset patch # User Michael Pavone # Date 1724994873 25200 # Node ID 9df8dec435b73d67c6be221ef7815965d5125e1e # Parent e51b1fc0e37f357c91eaf84dd01e676ed97b6462 Fix dynarec 68K instruction size metadata edge case bug diff -r e51b1fc0e37f -r 9df8dec435b7 m68k_core.c --- a/m68k_core.c Tue Aug 27 22:10:04 2024 -0700 +++ b/m68k_core.c Thu Aug 29 22:14:33 2024 -0700 @@ -1278,6 +1278,8 @@ code_info tmp = *code; *code = orig_code; translate_m68k(context, &instbuf); + // 68K instruction may not be the same size as the one when we initial switched to a new native address + map_native_address(context, instbuf.address, orig_start, after_address - orig, MAX_NATIVE_SIZE); orig_code = *code; *code = tmp; if (!m68k_is_terminal(&instbuf)) {