Skip to contentSkip to conversation

[4948] Use proper offset for LR save slot

Qemu-devel malc 1 participant 1 message Jul 26, 2008

lore
Share & tools
lore

malc

author
#0 lore raw

Revision: 4948

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4948
Author:   malc
Date:     2008-07-26 11:20:57 +0000 (Sat, 26 Jul 2008)

Log Message:
-----------
Use proper offset for LR save slot

Modified Paths:
--------------
trunk/tcg/ppc64/tcg-target.c

Modified: trunk/tcg/ppc64/tcg-target.c
===================================================================

tcg/ppc64/tcg-target.c +2 -2
@@ -805,7 +805,7 @@
                        | (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 @@
                        | (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);