changeset 681:e26640daf1ae

Prevent an infinite loop when handling out of bounds addresses in translate_m68k_stream
author Michael Pavone <pavone@retrodev.com>
date Sun, 04 Jan 2015 23:21:56 -0800
parents 4996369f1463
children 7ed1dbb48f61
files m68k_core.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/m68k_core.c	Sun Jan 04 23:05:37 2015 -0800
+++ b/m68k_core.c	Sun Jan 04 23:21:56 2015 -0800
@@ -766,6 +766,7 @@
 		do {
 			encoded = get_native_pointer(address, (void **)context->mem_pointers, &opts->gen);
 			if (!encoded) {
+				map_native_address(context, address, code->cur, 2, 1);
 				translate_out_of_bounds(code);
 				break;
 			}