From patchwork Thu Jun 21 06:25:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 139495 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1704535lji; Thu, 21 Jun 2018 00:07:22 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJcjPMXbMt7uq5zhjvJGM8ED0pFYBYHyLn++6FC7WDhoAFZf6bgbl1iYVv7TYx/fAe1+aTY X-Received: by 2002:a0c:b3d5:: with SMTP id b21-v6mr21187915qvf.80.1529564842516; Thu, 21 Jun 2018 00:07:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529564842; cv=none; d=google.com; s=arc-20160816; b=TPCmAimPQuKx5KNsyjUjWxVbGBn/6r5aNL46EQLoUMzQw8g2baCgvTx+Tp6bzEMKxS iLkvhvVYua52x6Tzu7w/+LFhgjlmPegSeTzmEyDZ8xEcY3cZont5WAKsx8bTVwTBJ8qs H7JWNapYSAgjb989c+c/pp3cNNuIuS96aJARm4Jqu58U3IWtkfvzgTvxz754cG2SxBm8 acS/ieU35BJufmUFeU3Jsgo02AIUeA+IKEQRoL19kstaRxlWFZqAW41sT454h3BbrD0y gJfP6fzJ1iyPHBNZDVoBjzsmntDVrRHzURDhWmzWaC/NxdRGSWQdlWCuUU7CY6nNS0DG 9lYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=/T5ZfHDKQnYEPuwLEX5iE0BexUPk3XdQVES8igJRuXg=; b=ZLX2N55iS9KsN5VcpZY5cAV6zlnL52KomNaiiieZTdryvu5vTgPEBuWK7YdWajDA7L b/FA2CzYIxyWGZISGfk5EyLtanDhUI1nqRVtXkGxwLq6/kOLSj3geWFSJbrtuGxd8lH/ /UXtTXTdbzoyuqrpwTeraUZRCWT3Wfq7suVEmxbG0nTdSuaJVa4F5IBlWFzpeIw4QKpZ 5snaPUEj/0QJ75J9/LxUkHZ/rLmgVZw8WonsZmNCbewfOTn0lIVGr+C497G8oadPKJG6 0ooNkzh6EtMKJNCuY3s9UKgDYAcz7wjzeHrRG+V3Hxs9eooprBp0Yb0vSJ6twppEfr2d j0DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=McAO+i56; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id t5-v6si3890159qtp.141.2018.06.21.00.07.22 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 21 Jun 2018 00:07:22 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=McAO+i56; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:53464 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVtgg-0007Pu-0L for patch@linaro.org; Thu, 21 Jun 2018 03:07:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVtIH-00056F-6H for qemu-devel@nongnu.org; Thu, 21 Jun 2018 02:42:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVtIG-0003U2-Ai for qemu-devel@nongnu.org; Thu, 21 Jun 2018 02:42:09 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:55283) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fVtIG-0003Tb-4J for qemu-devel@nongnu.org; Thu, 21 Jun 2018 02:42:08 -0400 Received: by mail-wm0-x244.google.com with SMTP id o13-v6so3143380wmf.4 for ; Wed, 20 Jun 2018 23:42:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/T5ZfHDKQnYEPuwLEX5iE0BexUPk3XdQVES8igJRuXg=; b=McAO+i56I4KmFfTWPryw32JiGJhBsJKk/ph/sAsHq0Zu0oDX/Lsp2kSOWmrj/xR/2o fQMt2IgkrUSxtoU5Y2R+cgcJPkUZmSApP5HQUPGRx40Ekbdb92gJf1lTSVWZB+Xigha4 aokV79Av6MqUahwqr5iczFAFuYGCJEbIW9Otg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/T5ZfHDKQnYEPuwLEX5iE0BexUPk3XdQVES8igJRuXg=; b=uFYq6HuTiEhOfhSstw8NzyKaeal1Uf3EQnFaPa9Hii0oUtIRZCYxdfC7HPBN1qe8nk YEKOqgJrbNx1DudRLUhM9pnYtvobPqnzMnIzaKuz5lisSIbipcLtaHpDNKZoMb8SzAd2 Y3qfhbwWTziCRS/Oni6VYY0bv+aC36ZI71A8GlZ7zzKxnb+gWSD2kgtDhHoclYbtRMm4 FGQlo29h3JstSvKqPKI8GknzumuptLDV53D0+byBCrhdL5e2XS4fcxt4zu9F5G9g1RB9 cXuhLOBsCP6DE6rc+hNFzGEW6wK/a5ZibWzTqnSZSo9d6XN2lKyLyF7e0RlKMySrQU1g 9VEg== X-Gm-Message-State: APt69E2XHfIRQKDmIHgBcKDyLqSRr3LHZbJ4JpVr+8B0qq6AS2ncS4W4 YLTU270Oj0AEMQFuNxp1AhMEJvW8eRw= X-Received: by 2002:a1c:5b4e:: with SMTP id p75-v6mr4362933wmb.3.1529563327052; Wed, 20 Jun 2018 23:42:07 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id f133-v6sm4725205wme.42.2018.06.20.23.41.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Jun 2018 23:42:02 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 9AF7D3E0B62; Thu, 21 Jun 2018 07:26:06 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Thu, 21 Jun 2018 07:25:24 +0100 Message-Id: <20180621062605.941-17-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180621062605.941-1-alex.bennee@linaro.org> References: <20180621062605.941-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::244 Subject: [Qemu-devel] [PULL v2 16/57] tests/tcg: enable building for i386 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: agraf@suse.de, Eduardo Habkost , =?utf-8?q?Alex_B?= =?utf-8?b?ZW5uw6ll?= , richard.henderson@linaro.org, qemu-devel@nongnu.org, f4bug@amsat.org, cota@braap.org, Paolo Bonzini , famz@redhat.com, aurelien@aurel32.net, Richard Henderson Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" While you can construct a compile command that does work using the x86_64 host compiler that most people use this is flakey. Different distros handle this is different ways so we default to using a known good i386 compiler via docker. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé -- 2.17.1 diff --git a/tests/tcg/i386/Makefile.include b/tests/tcg/i386/Makefile.include new file mode 100644 index 0000000000..be1c3008dd --- /dev/null +++ b/tests/tcg/i386/Makefile.include @@ -0,0 +1,9 @@ +# +# Makefile.include for all i386 +# +# There is enough brokeness in x86_64 compilers that we don't default +# to using the x86_64 system compiler for i386 binaries. +# + +DOCKER_IMAGE=fedora-i386-cross +DOCKER_CROSS_COMPILER=gcc diff --git a/tests/tcg/i386/Makefile.target b/tests/tcg/i386/Makefile.target index 2f27b65e2d..8b46cc021e 100644 --- a/tests/tcg/i386/Makefile.target +++ b/tests/tcg/i386/Makefile.target @@ -28,3 +28,10 @@ hello-i386: LDFLAGS+=-nostdlib test-i386: test-i386.c test-i386-code16.S test-i386-vm86.S test-i386.h test-i386-shift.h test-i386-muldiv.h $(CC) $(CFLAGS) $(LDFLAGS) -o $@ \ $( runcom.out, "TEST", "$< on $(TARGET_NAME)") + +# On i386 and x86_64 Linux only supports 4k pages (large pages are a different hack) +EXTRA_RUNS+=run-test-mmap-4096