summaryrefslogtreecommitdiff
path: root/m68k_to_x86.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2014-02-15 21:25:36 -0800
committerMichael Pavone <pavone@retrodev.com>2014-02-15 21:25:36 -0800
commitebb8d34197bf7908fe78e2692615a41c03d676f6 (patch)
tree96909f547c8db68f1fc3942dc5c3d7e3b1a28c23 /m68k_to_x86.h
parent3a446823ac7a81038464775d1f6f3fb7e76eeb03 (diff)
Generate m68k_start_context at runtime so it can use the generated load_context and save_context
Diffstat (limited to 'm68k_to_x86.h')
-rw-r--r--m68k_to_x86.h3
1 files changed, 3 insertions, 0 deletions
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 {