From ebb8d34197bf7908fe78e2692615a41c03d676f6 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sat, 15 Feb 2014 21:25:36 -0800 Subject: Generate m68k_start_context at runtime so it can use the generated load_context and save_context --- m68k_to_x86.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'm68k_to_x86.h') diff --git a/m68k_to_x86.h b/m68k_to_x86.h index 6466d28..751e9d1 100644 --- a/m68k_to_x86.h +++ b/m68k_to_x86.h @@ -18,6 +18,8 @@ struct m68kinst; #define OPT_NATIVE_CALL_STACK 0x1 +typedef void (*start_fun)(uint8_t * addr, void * context); + typedef struct { uint32_t flags; int8_t dregs[8]; @@ -40,6 +42,7 @@ typedef struct { uint8_t *trap; uint8_t *save_context; uint8_t *load_context; + start_fun start_context; } x86_68k_options; typedef struct { -- cgit v1.2.3