Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> --- arch/x86/emit-code.c | 16 +--------------- 1 files changed, 1 insertions(+), 15 deletions(-)
diff --git a/arch/x86/emit-code.c b/arch/x86/emit-code.c index a99296c..e1eb5ba 100644 --- a/arch/x86/emit-code.c +++ b/arch/x86/emit-code.c @@ -861,21 +861,7 @@ emit_push_membase(struct buffer *buf, struct operand *src) static void emit_mov_reg_memlocal(struct buffer *buf, struct operand *src, struct operand *dest) { - unsigned long disp; - int mod; - - disp = slot_offset(dest->slot); - - if (is_imm_8(disp)) - mod = 0x01; - else - mod = 0x02; - - emit(buf, 0x89); - emit(buf, encode_modrm(mod, encode_reg(&src->reg), - __encode_reg(MACH_REG_EBP))); - - emit_imm(buf, disp); + __emit_mov_reg_membase(buf, mach_reg(&src->reg), MACH_REG_EBP, slot_offset(dest->slot)); } static void emit_mov_xmm_memlocal(struct buffer *buf, struct operand *src, -- 1.6.3.3 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel