aboutsummaryrefslogtreecommitdiff
path: root/src/lj_asm_ppc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_asm_ppc.h')
-rw-r--r--src/lj_asm_ppc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_asm_ppc.h b/src/lj_asm_ppc.h
index 34bd721f..651fa318 100644
--- a/src/lj_asm_ppc.h
+++ b/src/lj_asm_ppc.h
@@ -340,7 +340,7 @@ static void asm_call(ASMState *as, IRIns *ir)
340 340
341static void asm_callx(ASMState *as, IRIns *ir) 341static void asm_callx(ASMState *as, IRIns *ir)
342{ 342{
343 IRRef args[CCI_NARGS_MAX]; 343 IRRef args[CCI_NARGS_MAX*2];
344 CCallInfo ci; 344 CCallInfo ci;
345 IRRef func; 345 IRRef func;
346 IRIns *irf; 346 IRIns *irf;
@@ -2092,7 +2092,7 @@ static void asm_ir(ASMState *as, IRIns *ir)
2092/* Ensure there are enough stack slots for call arguments. */ 2092/* Ensure there are enough stack slots for call arguments. */
2093static Reg asm_setup_call_slots(ASMState *as, IRIns *ir, const CCallInfo *ci) 2093static Reg asm_setup_call_slots(ASMState *as, IRIns *ir, const CCallInfo *ci)
2094{ 2094{
2095 IRRef args[CCI_NARGS_MAX]; 2095 IRRef args[CCI_NARGS_MAX*2];
2096 uint32_t i, nargs = (int)CCI_NARGS(ci); 2096 uint32_t i, nargs = (int)CCI_NARGS(ci);
2097 int nslots = 2, ngpr = REGARG_NUMGPR, nfpr = REGARG_NUMFPR; 2097 int nslots = 2, ngpr = REGARG_NUMGPR, nfpr = REGARG_NUMFPR;
2098 asm_collectargs(as, ir, ci, args); 2098 asm_collectargs(as, ir, ci, args);