From patchwork Fri Jun 8 12:32:32 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: 137975 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp835675lji; Fri, 8 Jun 2018 05:54:05 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL6HkWVKUHfRFHEXYybPpwhCkWn04wwbSjZx+M7UaC/JoREX+UPRknIMAAxnDijZGE4MGnJ X-Received: by 2002:a37:9f16:: with SMTP id i22-v6mr5174232qke.157.1528462445285; Fri, 08 Jun 2018 05:54:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528462445; cv=none; d=google.com; s=arc-20160816; b=JoMQrgtAyuCOR2qenZhyoWX0Hk43VYRZEiaJzue+qRYM3O+k2YLjg9cn5b/iLJUt5L BrAflwjfkWpmcvTchRo26NPQNOMnyOLjl1P5fxrSvrlEmF6SVDbuayOE+Xwz3PWKS2JS WwnWy/zL1PwdxXzdzwYOdHsuw+bYwTtnYIemYCLNAfPA1gKNkGkLQsPa3/SgO/EOE26Y CCUgiazuyy779UBNsRJ1yFmkLuUtn7594KqW83xGvCdQ4M7UNJQiubx46pgvdgEfKpN9 CMqCF7rI0oyo1t/aIl+m80Xph/a09+LP9j8iYD5Bpyi0PpkVeq4zKFTWiPeH9gKHiuXg EwlQ== 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=BCpUtw0k3BrOrRhU8zaEKZaPGLCazFLDL0T+ENdnXdM=; b=A2A2ysEokZ6IirgBazaqgvZN1sl25Vyd5vtrwTM+5pwtxS7UvVxBo/9WccI/j6CiKP f4fT92YHrbB/eQKHnHO7gXT5zFCWvQciPe1/EIeKXryFjx51JCBwtcX9q3geLjAJTlHT 6T3nD74xnnMYqDOw+Nbvj4MG5Xb4k4wf/bOCZ69dssQbNAPh/5eBXF6Z5cILo04oL5Kq T7+dOcbHRhoO35FGviEfndyn6zmElVvt7sD8qk+s0105i7l2+73ML+1ncjT01suAP/DW DBLpE/y+jz/hpC/eGXGtLHM/T0J84wbyTtaZh8/znqKAtlJ0O3hoSw7a7j1iiEgMnC0y X0HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=IBAyvup9; 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 a15-v6si1494899qta.85.2018.06.08.05.54.05 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 08 Jun 2018 05:54:05 -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=IBAyvup9; 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]:35469 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRGu4-0001ao-MV for patch@linaro.org; Fri, 08 Jun 2018 08:54:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRGa2-0001Ep-7a for qemu-devel@nongnu.org; Fri, 08 Jun 2018 08:33:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fRGZz-0006F6-4E for qemu-devel@nongnu.org; Fri, 08 Jun 2018 08:33:22 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:55792) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fRGZy-0006Ed-Tl for qemu-devel@nongnu.org; Fri, 08 Jun 2018 08:33:19 -0400 Received: by mail-wm0-x243.google.com with SMTP id v16-v6so3067230wmh.5 for ; Fri, 08 Jun 2018 05:33:18 -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=BCpUtw0k3BrOrRhU8zaEKZaPGLCazFLDL0T+ENdnXdM=; b=IBAyvup92KOpDxmHbEpn0ATANEvZzc/oQ4RwjZD9bBqJS+B8tafU0h0vM1f9VfEGEx hyWObqpoCukCYT7uzO/LDHY6cN1mNsk3WEXy8qz1z3fFgVHKmYq8/KsZcBvBI9bo6Dwo J9geED1LCZUMOHMIv7sLY4XNaC2qwfvYlIDwQ= 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=BCpUtw0k3BrOrRhU8zaEKZaPGLCazFLDL0T+ENdnXdM=; b=sJBbyGwKQVyy8679VJ0vYB15QhNbQuBAUU8crlvQSYcPUPZf+xXWZo1B7sBXWg9XJ4 BVTBcfRewsI+MTT9kXrZECZklCr6/J/PP/AvG7A3//pYIZ6dD5Dkqxm9+Eo/xhHgIebc xiwRWQdz2qAiVstwb3fOVsVf9FJMQlSVdAg1zRJWxTkKd5ow3SuFlt6vJ41W4IkySKSp JOs3OQ6O8hYXkImEKrysMSA9ZeEQxtrRaj9DI+ThmeJpMgaCsqCX3qP3JbdUUeDHR783 STwTiwlshLi5tvXEGtrJqFbECiU+AKa9xkpBOuLPtaYod6sEmowgjMGUDixyaEXZF57T ua2g== X-Gm-Message-State: APt69E0duLC9INBE4jDUnrVsNmZQlail012WjBiUDyv4IYLZmkveD8mJ kq8t4p/68yRT3h/+DNQrisLRCw== X-Received: by 2002:a1c:8692:: with SMTP id i140-v6mr1466513wmd.11.1528461197857; Fri, 08 Jun 2018 05:33:17 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id t14-v6sm4176474wrm.79.2018.06.08.05.33.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Jun 2018 05:33:13 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 407463E00D2; Fri, 8 Jun 2018 13:33:08 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de, pbonzini@redhat.com, stefanha@redhat.com, stefanb@linux.vnet.ibm.com, marcandre.lureau@redhat.com Date: Fri, 8 Jun 2018 13:32:32 +0100 Message-Id: <20180608123307.24773-15-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180608123307.24773-1-alex.bennee@linaro.org> References: <20180608123307.24773-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::243 Subject: [Qemu-devel] [PATCH v6 14/49] 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: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, Eduardo Habkost , 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é --- v3 - add runner for runcom v4 - runcom pi10.com directly from SRC_DIR v5 - define extra test-mmap runs --- tests/tcg/i386/Makefile.include | 9 +++++++++ tests/tcg/i386/Makefile.target | 7 +++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/tcg/i386/Makefile.include -- 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