comparison 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
comparison
equal deleted inserted replaced
539:c2716b502a81 540:4ca826862174
15 #define NATIVE_MAP_CHUNKS (64*1024) 15 #define NATIVE_MAP_CHUNKS (64*1024)
16 #define NATIVE_CHUNK_SIZE ((16 * 1024 * 1024 / NATIVE_MAP_CHUNKS)/2) 16 #define NATIVE_CHUNK_SIZE ((16 * 1024 * 1024 / NATIVE_MAP_CHUNKS)/2)
17 #define MAX_NATIVE_SIZE 255 17 #define MAX_NATIVE_SIZE 255
18 18
19 #define OPT_NATIVE_CALL_STACK 0x1 19 #define OPT_NATIVE_CALL_STACK 0x1
20
21 typedef void (*start_fun)(uint8_t * addr, void * context);
20 22
21 typedef struct { 23 typedef struct {
22 uint32_t flags; 24 uint32_t flags;
23 int8_t dregs[8]; 25 int8_t dregs[8];
24 int8_t aregs[8]; 26 int8_t aregs[8];
38 uint8_t *write_32_highfirst; 40 uint8_t *write_32_highfirst;
39 uint8_t *handle_cycle_limit_int; 41 uint8_t *handle_cycle_limit_int;
40 uint8_t *trap; 42 uint8_t *trap;
41 uint8_t *save_context; 43 uint8_t *save_context;
42 uint8_t *load_context; 44 uint8_t *load_context;
45 start_fun start_context;
43 } x86_68k_options; 46 } x86_68k_options;
44 47
45 typedef struct { 48 typedef struct {
46 uint8_t flags[5]; 49 uint8_t flags[5];
47 uint8_t status; 50 uint8_t status;