From 48d1488e7ef94f03d8e1426bd318fc612d4b4c87 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Thu, 9 Mar 2017 22:17:46 -0800 Subject: Fix bug in handling of translating unmapped addresses --- m68k_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'm68k_core.c') diff --git a/m68k_core.c b/m68k_core.c index 686b0d8..19600bd 100644 --- a/m68k_core.c +++ b/m68k_core.c @@ -885,7 +885,7 @@ void translate_m68k_stream(uint32_t address, m68k_context * context) code_ptr start = code->cur; translate_out_of_bounds(opts, address); code_ptr after = code->cur; - map_native_address(context, address, code->cur, 2, after-start); + map_native_address(context, address, start, 2, after-start); break; } code_ptr existing = get_native_address(opts, address); -- cgit v1.2.3