From 16e7b59467ba17034f63834962e5d326a8facce4 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sun, 2 Mar 2014 14:45:36 -0800 Subject: Refactor gen_x86 to use an interface more like gen_arm and to remove the need for the caller to decide whether an 8-bit or 32-bit displacement is needed in the rdisp functions. Update m68k_to_x86 to use the new version of the gen_x86 functions and do some minor refactoring there in the process --- m68k_to_x86.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'm68k_to_x86.h') diff --git a/m68k_to_x86.h b/m68k_to_x86.h index 3b8c619..7613ab7 100644 --- a/m68k_to_x86.h +++ b/m68k_to_x86.h @@ -64,8 +64,8 @@ typedef struct { void *system; } m68k_context; -uint8_t * translate_m68k(uint8_t * dst, struct m68kinst * inst, x86_68k_options * opts); -uint8_t * translate_m68k_stream(uint32_t address, m68k_context * context); +void translate_m68k(x86_68k_options * opts, struct m68kinst * inst); +void translate_m68k_stream(uint32_t address, m68k_context * context); void start_68k_context(m68k_context * context, uint32_t address); void init_x86_68k_opts(x86_68k_options * opts, memmap_chunk * memmap, uint32_t num_chunks); void init_68k_context(m68k_context * context, native_map_slot * native_code_map, void * opts); -- cgit v1.2.3