From: Mike Pall Date: Mon, 13 Sep 2010 23:20:01 +0000 (+0200) Subject: PPC: Fix KBASE restore in BC_CALLT. X-Git-Tag: v2.0.0-beta6~299 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bdf3fcd505f5f97ebfa32973b09f3c37d2d3cfa;p=thirdparty%2FLuaJIT.git PPC: Fix KBASE restore in BC_CALLT. --- diff --git a/src/buildvm_ppc.dasc b/src/buildvm_ppc.dasc index e5ad8c46..56372527 100644 --- a/src/buildvm_ppc.dasc +++ b/src/buildvm_ppc.dasc @@ -2068,7 +2068,7 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop) | lwz INS, -4(TMP1) | decode_RA8 RA, INS | sub TMP1, BASE, RA - | lwz LFUNC:TMP1, FRAME_FUNC(TMP1) + | lwz LFUNC:TMP1, FRAME_FUNC-8(TMP1) | lwz TMP1, LFUNC:TMP1->pc | lwz KBASE, PC2PROTO(k)(TMP1) // Need to prepare KBASE. | b <4