[pypy-commit] pypy ppc-jit-backend: Removed bug from gen_exit_code.

hager noreply at buildbot.pypy.org
Tue Sep 27 11:33:27 CEST 2011


Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend
Changeset: r47620:4a2ca991d1aa
Date: 2011-09-27 11:32 +0200
http://bitbucket.org/pypy/pypy/changeset/4a2ca991d1aa/

Log:	Removed bug from gen_exit_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
@@ -210,7 +210,7 @@
         else:
             mc.ld(r.r4.value, r.r5.value, GPR_SAVE_AREA + 2 * WORD)
         mc.mtlr(r.r4.value)     # restore LR
-        mc.addi(r.SP.value, r.r4.value, GPR_SAVE_AREA + WORD) # restore old SP
+        mc.addi(r.SP.value, r.r5.value, GPR_SAVE_AREA + WORD) # restore old SP
         mc.blr()
         mc.prepare_insts_blocks()
         return mc.materialize(self.cpu.asmmemmgr, [],


More information about the pypy-commit mailing list