changeset 2086:973a39d93d7b

Fix instruction retranslation for write protectable region of SCD Program RAM
author Michael Pavone <pavone@retrodev.com>
date Sat, 05 Feb 2022 16:41:01 -0800
parents 1ff67ce37085
children 3e0801280bef
files m68k_core_x86.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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