[pypy-commit] pypy arm64: swap lr and fp, maybe we can see now the stack in gdb
fijal
pypy.commits at gmail.com
Tue Jul 2 06:50:56 EDT 2019
Author: fijal
Branch: arm64
Changeset: r96917:b8ce2916a65f
Date: 2019-07-02 12:50 +0200
http://bitbucket.org/pypy/pypy/changeset/b8ce2916a65f/
Log: swap lr and fp, maybe we can see now the stack in gdb
diff --git a/rpython/jit/backend/aarch64/assembler.py b/rpython/jit/backend/aarch64/assembler.py
--- a/rpython/jit/backend/aarch64/assembler.py
+++ b/rpython/jit/backend/aarch64/assembler.py
@@ -1020,7 +1020,7 @@
def _call_header(self):
stack_size = (len(r.callee_saved_registers) + 4) * WORD
- self.mc.STP_rr_preindex(r.fp.value, r.lr.value, r.sp.value, -stack_size)
+ self.mc.STP_rr_preindex(r.lr.value, r.fp.value, r.sp.value, -stack_size)
for i in range(0, len(r.callee_saved_registers), 2):
self.mc.STP_rri(r.callee_saved_registers[i].value,
r.callee_saved_registers[i + 1].value,
@@ -1281,7 +1281,7 @@
r.callee_saved_registers[i + 1].value,
r.sp.value,
(i + 4) * WORD)
- mc.LDP_rr_postindex(r.fp.value, r.lr.value, r.sp.value, stack_size)
+ mc.LDP_rr_postindex(r.lr.value, r.fp.value, r.sp.value, stack_size)
mc.RET_r(r.lr.value)
More information about the pypy-commit
mailing list