This implements the emitter for INSN_MOV_MEMDISP_REG. Signed-off-by: Eduard - Gabriel Munteanu <eduard.munte...@linux360.ro> --- arch/x86/emit-code.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/arch/x86/emit-code.c b/arch/x86/emit-code.c index c9bdae4..239d91a 100644 --- a/arch/x86/emit-code.c +++ b/arch/x86/emit-code.c @@ -2076,6 +2076,15 @@ static void emit_mov_reg_memdisp(struct buffer *buf, __emit_reg_memdisp(buf, rex_w, 0x89, mach_reg(&src->reg), dest->imm); } +static void emit_mov_memdisp_reg(struct buffer *buf, + struct operand *src, + struct operand *dest) +{ + int rex_w = is_64bit_reg(dest); + + __emit_memdisp_reg(buf, rex_w, 0x8b, src->imm, mach_reg(&dest->reg)); +} + static void emit_mov_thread_local_memdisp_reg(struct buffer *buf, struct operand *src, struct operand *dest) @@ -2219,6 +2228,7 @@ struct emitter emitters[] = { DECL_EMITTER(INSN_CMP_REG_REG, emit_cmp_reg_reg, TWO_OPERANDS), DECL_EMITTER(INSN_MOV_IMM_REG, emit_mov_imm_reg, TWO_OPERANDS), DECL_EMITTER(INSN_MOV_MEMBASE_REG, emit_mov_membase_reg, TWO_OPERANDS), + DECL_EMITTER(INSN_MOV_MEMDISP_REG, emit_mov_memdisp_reg, TWO_OPERANDS), DECL_EMITTER(INSN_MOV_MEMLOCAL_REG, emit_mov_memlocal_reg, TWO_OPERANDS), DECL_EMITTER(INSN_MOV_REG_MEMDISP, emit_mov_reg_memdisp, TWO_OPERANDS), DECL_EMITTER(INSN_MOV_REG_MEMLOCAL, emit_mov_reg_memlocal, TWO_OPERANDS), -- 1.6.0.6 ------------------------------------------------------------------------------ _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel