summaryrefslogtreecommitdiff
path: root/tcg/tcg.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2011-05-14 17:06:56 +0000
committerBlue Swirl <blauwirbel@gmail.com>2011-06-26 18:25:53 +0000
commitf44c99607a46484c52f03aed373e3a3a194af721 (patch)
treeeffde5cb939cdbf22bc1869a000fb38d719f08d9 /tcg/tcg.c
parentac0275dcfea6ec21705b30fe83c21686871e9d70 (diff)
downloadqemu-f44c99607a46484c52f03aed373e3a3a194af721.tar.gz
qemu-f44c99607a46484c52f03aed373e3a3a194af721.tar.bz2
qemu-f44c99607a46484c52f03aed373e3a3a194af721.zip
TCG/Sparc64: use stack for TCG temps
Use stack instead of temp_buf array in CPUState for TCG temps. On Sparc64, stack pointer is not aligned but there is a fixed bias of 2047, so don't try to enforce alignment. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'tcg/tcg.c')
-rw-r--r--tcg/tcg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tcg/tcg.c b/tcg/tcg.c
index 29cd7a2729..c05413baa4 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -1439,9 +1439,11 @@ static void temp_allocate_frame(TCGContext *s, int temp)
{
TCGTemp *ts;
ts = &s->temps[temp];
+#ifndef __sparc_v9__ /* Sparc64 stack is accessed with offset of 2047 */
s->current_frame_offset = (s->current_frame_offset +
(tcg_target_long)sizeof(tcg_target_long) - 1) &
~(sizeof(tcg_target_long) - 1);
+#endif
if (s->current_frame_offset + (tcg_target_long)sizeof(tcg_target_long) >
s->frame_end) {
tcg_abort();