aboutsummaryrefslogtreecommitdiff
path: root/tcg
diff options
context:
space:
mode:
authormalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-26 11:20:57 +0000
committermalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-26 11:20:57 +0000
commite03ae7f9b3a7eae99b775d2f049725049bbc8f05 (patch)
tree92f55b5eb7b143a21b7359eacb180cd6d9e24da5 /tcg
parent5424fd1018789561dcbaf516a28db5fb02ec42b5 (diff)
downloadqemu-e03ae7f9b3a7eae99b775d2f049725049bbc8f05.zip
qemu-e03ae7f9b3a7eae99b775d2f049725049bbc8f05.tar.gz
qemu-e03ae7f9b3a7eae99b775d2f049725049bbc8f05.tar.bz2
Use proper offset for LR save slot
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4948 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tcg')
-rw-r--r--tcg/ppc64/tcg-target.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcg/ppc64/tcg-target.c b/tcg/ppc64/tcg-target.c
index 7d78f3b..d1d22d1 100644
--- a/tcg/ppc64/tcg-target.c
+++ b/tcg/ppc64/tcg-target.c
@@ -805,7 +805,7 @@ void tcg_target_qemu_prologue (TCGContext *s)
| (i * 8 + 48 + TCG_STATIC_CALL_ARGS_SIZE)
)
);
- tcg_out32 (s, STD | RS (0) | RA (1) | (frame_size + 20));
+ tcg_out32 (s, STD | RS (0) | RA (1) | (frame_size + 16));
tcg_out32 (s, MTSPR | RS (3) | CTR);
tcg_out32 (s, BCCTR | BO_ALWAYS);
@@ -820,7 +820,7 @@ void tcg_target_qemu_prologue (TCGContext *s)
| (i * 8 + 48 + TCG_STATIC_CALL_ARGS_SIZE)
)
);
- tcg_out32 (s, LD | RT (0) | RA (1) | (frame_size + 20));
+ tcg_out32 (s, LD | RT (0) | RA (1) | (frame_size + 16));
tcg_out32 (s, MTSPR | RS (0) | LR);
tcg_out32 (s, ADDI | RT (1) | RA (1) | frame_size);
tcg_out32 (s, BCLR | BO_ALWAYS);