]> git.proxmox.com Git - mirror_qemu.git/blobdiff - tcg/tcg.c
Merge branch 'tcg-sparc' of git://repo.or.cz/qemu/rth
[mirror_qemu.git] / tcg / tcg.c
index 6edf17000883b791fc27b4e47404eb9788886f9b..b3c265013d3d2c5f49009959ec17ad2d389c956a 100644 (file)
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -1449,7 +1449,8 @@ 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 */
+#if !(defined(__sparc__) && TCG_TARGET_REG_BITS == 64)
+    /* 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);