Commit 2946898b48bd210b4874c80e720ffc59572532d0

Authored by malc
1 parent 8421d9e5

Rename misnamed BACK_CHAIN_OFFSET to LR_OFFSET

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5711 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 4 additions and 4 deletions
tcg/ppc/tcg-target.c
@@ -26,10 +26,10 @@ static uint8_t *tb_ret_addr; @@ -26,10 +26,10 @@ static uint8_t *tb_ret_addr;
26 26
27 #ifdef __APPLE__ 27 #ifdef __APPLE__
28 #define LINKAGE_AREA_SIZE 24 28 #define LINKAGE_AREA_SIZE 24
29 -#define BACK_CHAIN_OFFSET 8 29 +#define LR_OFFSET 8
30 #else 30 #else
31 #define LINKAGE_AREA_SIZE 8 31 #define LINKAGE_AREA_SIZE 8
32 -#define BACK_CHAIN_OFFSET 4 32 +#define LR_OFFSET 4
33 #endif 33 #endif
34 34
35 #define FAST_PATH 35 #define FAST_PATH
@@ -845,7 +845,7 @@ void tcg_target_qemu_prologue (TCGContext *s) @@ -845,7 +845,7 @@ void tcg_target_qemu_prologue (TCGContext *s)
845 | (i * 4 + LINKAGE_AREA_SIZE + TCG_STATIC_CALL_ARGS_SIZE) 845 | (i * 4 + LINKAGE_AREA_SIZE + TCG_STATIC_CALL_ARGS_SIZE)
846 ) 846 )
847 ); 847 );
848 - tcg_out32 (s, STW | RS (0) | RA (1) | (frame_size + BACK_CHAIN_OFFSET)); 848 + tcg_out32 (s, STW | RS (0) | RA (1) | (frame_size + LR_OFFSET));
849 849
850 tcg_out32 (s, MTSPR | RS (3) | CTR); 850 tcg_out32 (s, MTSPR | RS (3) | CTR);
851 tcg_out32 (s, BCCTR | BO_ALWAYS); 851 tcg_out32 (s, BCCTR | BO_ALWAYS);
@@ -858,7 +858,7 @@ void tcg_target_qemu_prologue (TCGContext *s) @@ -858,7 +858,7 @@ void tcg_target_qemu_prologue (TCGContext *s)
858 | (i * 4 + LINKAGE_AREA_SIZE + TCG_STATIC_CALL_ARGS_SIZE) 858 | (i * 4 + LINKAGE_AREA_SIZE + TCG_STATIC_CALL_ARGS_SIZE)
859 ) 859 )
860 ); 860 );
861 - tcg_out32 (s, LWZ | RT (0) | RA (1) | (frame_size + BACK_CHAIN_OFFSET)); 861 + tcg_out32 (s, LWZ | RT (0) | RA (1) | (frame_size + LR_OFFSET));
862 tcg_out32 (s, MTSPR | RS (0) | LR); 862 tcg_out32 (s, MTSPR | RS (0) | LR);
863 tcg_out32 (s, ADDI | RT (1) | RA (1) | frame_size); 863 tcg_out32 (s, ADDI | RT (1) | RA (1) | frame_size);
864 tcg_out32 (s, BCLR | BO_ALWAYS); 864 tcg_out32 (s, BCLR | BO_ALWAYS);