Operand size should always be 8 bytes for stack operations, so always emit a REX_W prefix.
Signed-off-by: Eduard - Gabriel Munteanu <eduard.munte...@linux360.ro> --- arch/x86/emit-code.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/arch/x86/emit-code.c b/arch/x86/emit-code.c index ad60b4c..227efcb 100644 --- a/arch/x86/emit-code.c +++ b/arch/x86/emit-code.c @@ -2030,8 +2030,7 @@ static void emit_mov_memlocal_reg(struct buffer *buf, dest_reg = mach_reg(&dest->reg); disp = slot_offset(src->slot); - __emit_membase_reg(buf, is_64bit_reg(dest), - 0x8b, REG_RBP, disp, dest_reg); + __emit_membase_reg(buf, 1, 0x8b, REG_RBP, disp, dest_reg); } struct emitter emitters[] = { -- 1.6.0.6 ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel