]> xenbits.xensource.com Git - people/sstabellini/qemu-dm.git/.git/commitdiff
tcg-s390: Adjust compilation flags.
authorRichard Henderson <rth@twiddle.net>
Fri, 4 Jun 2010 19:14:09 +0000 (12:14 -0700)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 11 Jun 2010 16:16:35 +0000 (18:16 +0200)
Force -m31/-m64 based on s390/s390x target.

Force -march=z990.  The TCG backend will always require the
long-displacement facility, so the compiler may as well make
use of that as well.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
configure

index 927e1047b11961d187dd2ae79afc5f5f2f0f16c7..ced4d2fa1067188ac8696cb3495f1e1a1ae0d4e5 100755 (executable)
--- a/configure
+++ b/configure
@@ -720,7 +720,12 @@ case "$cpu" in
            fi
            ;;
     s390)
-           QEMU_CFLAGS="-march=z900 $QEMU_CFLAGS"
+           QEMU_CFLAGS="-m31 -march=z990 $QEMU_CFLAGS"
+           LDFLAGS="-m31 $LDFLAGS"
+           ;;
+    s390x)
+           QEMU_CFLAGS="-m64 -march=z990 $QEMU_CFLAGS"
+           LDFLAGS="-m64 $LDFLAGS"
            ;;
     i386)
            QEMU_CFLAGS="-m32 $QEMU_CFLAGS"