[pypy-commit] pypy ppc-jit-backend: fix wrong computation of stack offset

hager noreply at buildbot.pypy.org
Mon Dec 12 12:05:47 CET 2011


Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend
Changeset: r50422:f4618a1f60ba
Date: 2011-12-12 12:04 +0100
http://bitbucket.org/pypy/pypy/changeset/f4618a1f60ba/

Log:	fix wrong computation of stack offset in gen_direct_bootstrap_code

diff --git a/pypy/jit/backend/ppc/ppcgen/ppc_assembler.py b/pypy/jit/backend/ppc/ppcgen/ppc_assembler.py
--- a/pypy/jit/backend/ppc/ppcgen/ppc_assembler.py
+++ b/pypy/jit/backend/ppc/ppcgen/ppc_assembler.py
@@ -436,7 +436,7 @@
 
         # load values passed on the stack to the corresponding locations
         stack_position = self.OFFSET_SPP_TO_OLD_BACKCHAIN\
-                         + BACKCHAIN_SIZE
+                         + BACKCHAIN_SIZE * WORD
 
         count = 0
         for i in range(reg_args, len(inputargs)):


More information about the pypy-commit mailing list