Commit e03ae7f9b3a7eae99b775d2f049725049bbc8f05

Authored by malc
1 parent 5424fd10

Use proper offset for LR save slot

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4948 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 2 deletions
tcg/ppc64/tcg-target.c
@@ -805,7 +805,7 @@ void tcg_target_qemu_prologue (TCGContext *s) @@ -805,7 +805,7 @@ void tcg_target_qemu_prologue (TCGContext *s)
805 | (i * 8 + 48 + TCG_STATIC_CALL_ARGS_SIZE) 805 | (i * 8 + 48 + TCG_STATIC_CALL_ARGS_SIZE)
806 ) 806 )
807 ); 807 );
808 - tcg_out32 (s, STD | RS (0) | RA (1) | (frame_size + 20)); 808 + tcg_out32 (s, STD | RS (0) | RA (1) | (frame_size + 16));
809 809
810 tcg_out32 (s, MTSPR | RS (3) | CTR); 810 tcg_out32 (s, MTSPR | RS (3) | CTR);
811 tcg_out32 (s, BCCTR | BO_ALWAYS); 811 tcg_out32 (s, BCCTR | BO_ALWAYS);
@@ -820,7 +820,7 @@ void tcg_target_qemu_prologue (TCGContext *s) @@ -820,7 +820,7 @@ void tcg_target_qemu_prologue (TCGContext *s)
820 | (i * 8 + 48 + TCG_STATIC_CALL_ARGS_SIZE) 820 | (i * 8 + 48 + TCG_STATIC_CALL_ARGS_SIZE)
821 ) 821 )
822 ); 822 );
823 - tcg_out32 (s, LD | RT (0) | RA (1) | (frame_size + 20)); 823 + tcg_out32 (s, LD | RT (0) | RA (1) | (frame_size + 16));
824 tcg_out32 (s, MTSPR | RS (0) | LR); 824 tcg_out32 (s, MTSPR | RS (0) | LR);
825 tcg_out32 (s, ADDI | RT (1) | RA (1) | frame_size); 825 tcg_out32 (s, ADDI | RT (1) | RA (1) | frame_size);
826 tcg_out32 (s, BCLR | BO_ALWAYS); 826 tcg_out32 (s, BCLR | BO_ALWAYS);