summaryrefslogtreecommitdiff
path: root/m68k_to_x86.h
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-01-26 01:33:32 -0800
committerMike Pavone <pavone@retrodev.com>2013-01-26 01:33:32 -0800
commitf441792c084b79a77f677243342ed0cb6336e92d (patch)
tree121516a0064a8ae0537a9628bfa49dc9790b71a6 /m68k_to_x86.h
parent85164f4483132a3db4890defa59f6851a0f765fe (diff)
Tweaks to make blastem compatible with m68k-tester
Diffstat (limited to 'm68k_to_x86.h')
-rw-r--r--m68k_to_x86.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/m68k_to_x86.h b/m68k_to_x86.h
index ab0c979..c2711db 100644
--- a/m68k_to_x86.h
+++ b/m68k_to_x86.h
@@ -2,7 +2,8 @@
#define M68K_TO_X86_H_
#include <stdint.h>
#include <stdio.h>
-#include "68kinst.h"
+//#include "68kinst.h"
+struct m68kinst;
#define NUM_MEM_AREAS 4
#define NATIVE_MAP_CHUNKS (64*1024)
@@ -56,7 +57,7 @@ typedef struct {
uint8_t ram_code_flags[32/8];
} m68k_context;
-uint8_t * translate_m68k(uint8_t * dst, m68kinst * inst, x86_68k_options * opts);
+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 start_68k_context(m68k_context * context, uint32_t address);
void init_x86_68k_opts(x86_68k_options * opts);
@@ -64,6 +65,7 @@ void init_68k_context(m68k_context * context, native_map_slot * native_code_map,
void m68k_reset(m68k_context * context);
void insert_breakpoint(m68k_context * context, uint32_t address, uint8_t * bp_handler);
void remove_breakpoint(m68k_context * context, uint32_t address);
+m68k_context * m68k_handle_code_write(uint32_t address, m68k_context * context);
#endif //M68K_TO_X86_H_