We need to jump to the address contained by REG_RAX, not REG_RDX. Signed-off-by: Eduard - Gabriel Munteanu <eduard.munte...@linux360.ro> --- arch/x86/emit-code.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/emit-code.c b/arch/x86/emit-code.c index 4099c04..ce09a45 100644 --- a/arch/x86/emit-code.c +++ b/arch/x86/emit-code.c @@ -2116,7 +2116,7 @@ void emit_trampoline(struct compilation_unit *cu, } __emit64_pop_reg(buf, REG_RBP); - emit_indirect_jump_reg(buf, REG_RDX); + emit_indirect_jump_reg(buf, REG_RAX); jit_text_reserve(buffer_offset(buf)); jit_text_unlock(); -- 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