]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
MIPS: Fix excess stack growth in interpreter.
authorMike Pall <mike>
Sat, 27 Dec 2014 05:06:07 +0000 (06:06 +0100)
committerMike Pall <mike>
Sat, 27 Dec 2014 05:06:07 +0000 (06:06 +0100)
src/vm_mips.dasc

index 0ec13e608ee5783a0331eb6dd3be375a48722222..96f20659283630e652c6f158e89b53cc653edac6 100644 (file)
@@ -398,7 +398,7 @@ static void build_subroutines(BuildCtx *ctx)
   |  // - A return back from a lua_call() with (high) nresults adjustment.
   |  load_got lj_state_growstack
   |   move MULTRES, RD
-  |  move CARG2, TMP2
+  |  srl CARG2, TMP2, 3
   |  call_intern lj_state_growstack    // (lua_State *L, int n)
   |.  move CARG1, L
   |    lw TMP2, SAVE_NRES