comparison m68k_internal.h @ 587:55c5b0f913ce

Made m68k_retranslate_inst host-cpu generic and moved it to m68k_core.c
author Michael Pavone <pavone@retrodev.com>
date Fri, 07 Mar 2014 23:26:46 -0800
parents b6713c1b6f55
children 963d5901f583
comparison
equal deleted inserted replaced
586:aa35ccb90aa9 587:55c5b0f913ce
24 void add_areg_native(m68k_options *opts, uint8_t reg, uint8_t native_reg); 24 void add_areg_native(m68k_options *opts, uint8_t reg, uint8_t native_reg);
25 void add_dreg_native(m68k_options *opts, uint8_t reg, uint8_t native_reg); 25 void add_dreg_native(m68k_options *opts, uint8_t reg, uint8_t native_reg);
26 void calc_areg_displace(m68k_options *opts, m68k_op_info *op, uint8_t native_reg); 26 void calc_areg_displace(m68k_options *opts, m68k_op_info *op, uint8_t native_reg);
27 void calc_index_disp8(m68k_options *opts, m68k_op_info *op, uint8_t native_reg); 27 void calc_index_disp8(m68k_options *opts, m68k_op_info *op, uint8_t native_reg);
28 void calc_areg_index_disp8(m68k_options *opts, m68k_op_info *op, uint8_t native_reg); 28 void calc_areg_index_disp8(m68k_options *opts, m68k_op_info *op, uint8_t native_reg);
29 void nop_fill_or_jmp_next(code_info *code, code_ptr old_end, code_ptr next_inst);
29 30
30 //functions implemented in m68k_core.c 31 //functions implemented in m68k_core.c
31 int8_t native_reg(m68k_op_info * op, m68k_options * opts); 32 int8_t native_reg(m68k_op_info * op, m68k_options * opts);
32 size_t dreg_offset(uint8_t reg); 33 size_t dreg_offset(uint8_t reg);
33 size_t areg_offset(uint8_t reg); 34 size_t areg_offset(uint8_t reg);
43 void map_native_address(m68k_context * context, uint32_t address, code_ptr native_addr, uint8_t size, uint8_t native_size); 44 void map_native_address(m68k_context * context, uint32_t address, code_ptr native_addr, uint8_t size, uint8_t native_size);
44 uint8_t get_native_inst_size(m68k_options * opts, uint32_t address); 45 uint8_t get_native_inst_size(m68k_options * opts, uint32_t address);
45 uint8_t m68k_is_terminal(m68kinst * inst); 46 uint8_t m68k_is_terminal(m68kinst * inst);
46 void m68k_handle_deferred(m68k_context * context); 47 void m68k_handle_deferred(m68k_context * context);
47 code_ptr get_native_address_trans(m68k_context * context, uint32_t address); 48 code_ptr get_native_address_trans(m68k_context * context, uint32_t address);
49 void * m68k_retranslate_inst(uint32_t address, m68k_context * context);
48 50
49 //individual instructions 51 //individual instructions
50 void translate_m68k_lea_pea(m68k_options * opts, m68kinst * inst); 52 void translate_m68k_lea_pea(m68k_options * opts, m68kinst * inst);
51 void translate_m68k_bsr(m68k_options * opts, m68kinst * inst); 53 void translate_m68k_bsr(m68k_options * opts, m68kinst * inst);
52 void translate_m68k_jmp_jsr(m68k_options * opts, m68kinst * inst); 54 void translate_m68k_jmp_jsr(m68k_options * opts, m68kinst * inst);