From 7b8127d36a9c6a824da4f1709bdee12c40c631a5 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Mon, 19 Dec 2016 13:28:18 -0800 Subject: Mostly working changes to allow support for multiple emulated system types in main blastem program --- m68k_core_x86.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'm68k_core_x86.c') diff --git a/m68k_core_x86.c b/m68k_core_x86.c index 1546585..c1ba19d 100644 --- a/m68k_core_x86.c +++ b/m68k_core_x86.c @@ -2289,7 +2289,7 @@ m68k_context * m68k_handle_code_write(uint32_t address, m68k_context * context) 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 @@ void insert_breakpoint(m68k_context * context, uint32_t address, code_ptr bp_han //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); -- cgit v1.2.3