diff m68k_core.c @ 673:7f1b5570b2a1

Fix 68K remove_breakpoint
author Michael Pavone <pavone@retrodev.com>
date Sat, 03 Jan 2015 20:46:25 -0800
parents 98927f1b005b
children e26640daf1ae
line wrap: on
line diff
--- a/m68k_core.c	Sat Jan 03 20:20:15 2015 -0800
+++ b/m68k_core.c	Sat Jan 03 20:46:25 2015 -0800
@@ -889,7 +889,11 @@
 void remove_breakpoint(m68k_context * context, uint32_t address)
 {
 	code_ptr native = get_native_address(context->native_code_map, address);
+	code_info tmp = context->options->gen.code;
+	context->options->gen.code.cur = native;
+	context->options->gen.code.last = native + 16;
 	check_cycles_int(&context->options->gen, address);
+	context->options->gen.code = tmp;
 }
 
 void start_68k_context(m68k_context * context, uint32_t address)