diff m68k_core_x86.c @ 1111:2eb54e24914e

Mostly working changes to allow support for multiple emulated system types in main blastem program
author Michael Pavone <pavone@retrodev.com>
date Mon, 19 Dec 2016 13:28:18 -0800
parents faa3a4617f62
children 8f14767661fa
line wrap: on
line diff
--- a/m68k_core_x86.c	Wed Dec 14 23:27:42 2016 -0800
+++ b/m68k_core_x86.c	Mon Dec 19 13:28:18 2016 -0800
@@ -2289,7 +2289,7 @@
 	return context;
 }
 
-void insert_breakpoint(m68k_context * context, uint32_t address, code_ptr bp_handler)
+void insert_breakpoint(m68k_context * context, uint32_t address, m68k_debug_handler bp_handler)
 {
 	static code_ptr bp_stub = NULL;
 	m68k_options * opts = context->options;
@@ -2315,7 +2315,7 @@
 		//Save context and call breakpoint handler
 		call(code, opts->gen.save_context);
 		push_r(code, opts->gen.scratch1);
-		call_args_abi(code, bp_handler, 2, opts->gen.context_reg, opts->gen.scratch1);
+		call_args_abi(code, (code_ptr)bp_handler, 2, opts->gen.context_reg, opts->gen.scratch1);
 		mov_rr(code, RAX, opts->gen.context_reg, SZ_PTR);
 		//Restore context
 		call(code, opts->gen.load_context);