From ccdaef1b470239367bde2df1eaec286c47d827cd Mon Sep 17 00:00:00 2001 From: twisti Date: Wed, 7 Mar 2007 13:12:01 +0000 Subject: [PATCH] * src/vm/jit/x86_64/emit.c (emit_call_reg): Call emit_rex with size 0. --- src/vm/jit/x86_64/emit.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/vm/jit/x86_64/emit.c b/src/vm/jit/x86_64/emit.c index 385197b8f..b99ac47b4 100644 --- a/src/vm/jit/x86_64/emit.c +++ b/src/vm/jit/x86_64/emit.c @@ -22,7 +22,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - $Id: emit.c 7449 2007-03-04 18:07:55Z twisti $ + $Id: emit.c 7476 2007-03-07 13:12:01Z twisti $ */ @@ -1812,14 +1812,16 @@ void emit_nop(codegendata *cd) { /* * call instructions */ -void emit_call_reg(codegendata *cd, s8 reg) { - emit_rex(1,0,0,(reg)); +void emit_call_reg(codegendata *cd, s8 reg) +{ + emit_rex(0,0,0,(reg)); *(cd->mcodeptr++) = 0xff; emit_reg(2,(reg)); } -void emit_call_imm(codegendata *cd, s8 imm) { +void emit_call_imm(codegendata *cd, s8 imm) +{ *(cd->mcodeptr++) = 0xe8; emit_imm32((imm)); } -- 2.25.1