Patchwork [01/35] tcg-s390: Adjust compilation flags.

login
register
mail settings
Submitter Richard Henderson
Date June 4, 2010, 7:14 p.m.
Message ID <1275678883-7082-2-git-send-email-rth@twiddle.net>
Download mbox | patch
Permalink /patch/54668/
State New
Headers show

Comments

Richard Henderson - June 4, 2010, 7:14 p.m.
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>
---
 configure |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
Aurelien Jarno - June 9, 2010, 10:53 p.m.
On Fri, Jun 04, 2010 at 12:14:09PM -0700, Richard Henderson wrote:
> 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>
> ---
>  configure |    7 ++++++-
>  1 files changed, 6 insertions(+), 1 deletions(-)

Thanks, applied.

> diff --git a/configure b/configure
> index 653c8d2..65f87a2 100755
> --- a/configure
> +++ b/configure
> @@ -697,7 +697,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"
> -- 
> 1.7.0.1
> 
> 
>

Patch

diff --git a/configure b/configure
index 653c8d2..65f87a2 100755
--- a/configure
+++ b/configure
@@ -697,7 +697,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"