]> git.proxmox.com Git - qemu.git/commitdiff
s390x: set alignment for long to 8
authorAlexander Graf <agraf@suse.de>
Mon, 4 Apr 2011 14:32:11 +0000 (16:32 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 10 Apr 2011 19:23:33 +0000 (21:23 +0200)
The alignment for longs on s390x is 8. That's the only place where it differs
from the default alignments found in configure already. The example alignment
program from Laurent printed the following on a real s390x:

  alignof(short) 2
  alignof(int) 4
  alignof(long) 8
  alignof(long long) 8

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
configure

index 2bb3faa07e6a393872676aad9fdb3129300e84d8..a4759ae817f1d0e22034aafb13c9b36a44789571 100755 (executable)
--- a/configure
+++ b/configure
@@ -3184,6 +3184,7 @@ case "$target_arch2" in
   s390x)
     target_nptl="yes"
     target_phys_bits=64
+    target_long_alignment=8
   ;;
   *)
     echo "Unsupported target CPU"