diff m68k_to_x86.h @ 540:4ca826862174

Generate m68k_start_context at runtime so it can use the generated load_context and save_context
author Michael Pavone <pavone@retrodev.com>
date Sat, 15 Feb 2014 21:25:36 -0800
parents c2716b502a81
children a59ac6b4b5b5
line wrap: on
line diff
--- a/m68k_to_x86.h	Fri Feb 14 19:56:18 2014 -0800
+++ b/m68k_to_x86.h	Sat Feb 15 21:25:36 2014 -0800
@@ -18,6 +18,8 @@
 
 #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 @@
 	uint8_t         *trap;
 	uint8_t			*save_context;
 	uint8_t			*load_context;
+	start_fun       start_context;
 } x86_68k_options;
 
 typedef struct {