From 3a446823ac7a81038464775d1f6f3fb7e76eeb03 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Fri, 14 Feb 2014 19:56:18 -0800 Subject: Generate save_context and load_context functions at runtime --- m68k_to_x86.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'm68k_to_x86.h') diff --git a/m68k_to_x86.h b/m68k_to_x86.h index 68009c8..6466d28 100644 --- a/m68k_to_x86.h +++ b/m68k_to_x86.h @@ -1,6 +1,6 @@ /* Copyright 2013 Michael Pavone - This file is part of BlastEm. + This file is part of BlastEm. BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text. */ #ifndef M68K_TO_X86_H_ @@ -22,6 +22,7 @@ typedef struct { uint32_t flags; int8_t dregs[8]; int8_t aregs[8]; + int8_t flag_regs[5]; native_map_slot *native_code_map; deferred_addr *deferred; uint8_t *cur_code; @@ -37,6 +38,8 @@ typedef struct { uint8_t *write_32_highfirst; uint8_t *handle_cycle_limit_int; uint8_t *trap; + uint8_t *save_context; + uint8_t *load_context; } x86_68k_options; typedef struct { @@ -53,7 +56,7 @@ typedef struct { uint16_t *mem_pointers[NUM_MEM_AREAS]; void *video_context; uint16_t reserved; - + native_map_slot *native_code_map; void *options; uint8_t ram_code_flags[32/8]; -- cgit v1.2.3