Commit 77fcd0934a2076beb5b174f54b81fc1d7e76f7ec
1 parent
3ce7a69f
Fix stack offsets and alignment
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4559 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
4 additions
and
7 deletions
tcg/sparc/tcg-target.h
... | ... | @@ -73,17 +73,14 @@ enum { |
73 | 73 | |
74 | 74 | /* used for function call generation */ |
75 | 75 | #define TCG_REG_CALL_STACK TCG_REG_O6 |
76 | -#define TCG_TARGET_STACK_ALIGN 16 | |
77 | 76 | #ifdef __arch64__ |
78 | -#define TCG_TARGET_CALL_STACK_OFFSET 2047 | |
79 | -#else | |
80 | -#define TCG_TARGET_CALL_STACK_OFFSET 0 | |
81 | -#endif | |
82 | - | |
83 | -#if defined(__sparc_v9__) && !defined(__sparc_v8plus__) | |
84 | 77 | #define TCG_TARGET_STACK_MINFRAME 176 |
78 | +#define TCG_TARGET_CALL_STACK_OFFSET (2047 + 176) | |
79 | +#define TCG_TARGET_STACK_ALIGN 16 | |
85 | 80 | #else |
86 | 81 | #define TCG_TARGET_STACK_MINFRAME 92 |
82 | +#define TCG_TARGET_CALL_STACK_OFFSET 92 | |
83 | +#define TCG_TARGET_STACK_ALIGN 8 | |
87 | 84 | #endif |
88 | 85 | |
89 | 86 | /* optional instructions */ | ... | ... |