From patchwork Fri May 25 13:38:20 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: 136897 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp3620294lji; Fri, 25 May 2018 06:53:59 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLyRQajq1Xh8DNW3rhfM6HO++5u56qx25fJP6GqaTOYfFfGHcajMPW6MBiLCBQebImeG7S4 X-Received: by 2002:a37:997:: with SMTP id 145-v6mr2193113qkj.366.1527256439475; Fri, 25 May 2018 06:53:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527256439; cv=none; d=google.com; s=arc-20160816; b=ZxydEbPiaGzLGA5uMnh2ar6uRz+D/D9Ip/LGe08wtuiF2kY9wAyzDvW4FiofyzQAjC Ac46V5jnQbt+TG8DwFCMlpXmd++EKJp+V84vMIT2jXnxFyZb5TlPf9YPKJr2LnNcRNnU m8jTfTx8/FvK2Oa14MeQpZ0veUSpRjxCA/9h/rIKJoHYVSKUHpDHzCg9Zz/hCHPxAJIs va1jLeuVFrFZh8AjnRfeXp23e7ev63xOj5VYxc0RmwsXQnYvgNXr1t8qsIOGcKwFWFbc r5+waNEPr4ojTCvYXM6sEFnheegb+59+hwsUmi8bbZJaPoHJ/qhqlYShJC5qAcvXfIGh tzvg== 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=/1AVeywUdtEil7KFeSJJbhqkRy4XMunp+vO52SVeErI=; b=KIhUq9GVhMWuU8mC4LlkVfyS/SMsnk8eks3j8EWRiHtl2jTDx5XpiIWKaS44dQY0Rp pNG4Ar2cG8QRGyHyeMxuoHOqknkuWDhRNkgLHq++Ee7uD4Z+aH3DHle7nWZP5jQr9rkJ nUOIqPd82PEICvtCIlEELE3gUDNeeBCsBsLa3v0ipVpYqSV2pZNp9t0B47+t6kN4FHl8 IsdGxl9pfzNc5qv7U2agcRRtAB4VTPjLG8LS3I5ywZVmbLW1AqgSuftPlkubZd0piL8N q2VLiK+6pPEQuC6FtQ7SGblexyCyYD9zjVlSy/PxPYdd4TM8gQC19ehoyrvJndQs/4CL /h5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=XHax3nA+; 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 g90-v6si266051qkh.133.2018.05.25.06.53.59 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 25 May 2018 06:53:59 -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=XHax3nA+; 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]:44121 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMDAM-0000et-SW for patch@linaro.org; Fri, 25 May 2018 09:53:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMD1b-00024F-E2 for qemu-devel@nongnu.org; Fri, 25 May 2018 09:44:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fMD1a-0008Sl-Fm for qemu-devel@nongnu.org; Fri, 25 May 2018 09:44:55 -0400 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]:37285) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fMD1a-0008SN-9T for qemu-devel@nongnu.org; Fri, 25 May 2018 09:44:54 -0400 Received: by mail-wr0-x243.google.com with SMTP id i12-v6so9367731wrc.4 for ; Fri, 25 May 2018 06:44:54 -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=/1AVeywUdtEil7KFeSJJbhqkRy4XMunp+vO52SVeErI=; b=XHax3nA+z37zi7qjqn7vDZrSdgc+G6OqCEO4RHywnd/LsNVEPh8Dp6EsWOEIgsELIm uThhC6ImKFEKpQ6NrIPQ5tr8psNyanWa2E26A1WLxdpkptaK44GQwWNwFThTJDU5LOEP pdNp7xhlxhi0tudvaJ7KkTq+Wi25mz0p20I+s= 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=/1AVeywUdtEil7KFeSJJbhqkRy4XMunp+vO52SVeErI=; b=W4hbMCXt7NYkFxeuhnbm1aQV6srHNx05lFRL547DZxnH2X719Yo3Ysg668lX2GHeha g8kXKSON/lTlJNn2/MD/hgMfjvJ/9VhW2bXDS//i0bSOWtMVxgpjBPPdcBJXcMr5MBYg lSKFEtZiNLgmrr6qNhU6K/C3bnXRSXwfZX+B+PddjvwFoPs4hhHHemN7svwzTfPv1aup ng2b2j7q+EdHt4j7NpKpkBg5h1SC8tlsyxdGyUHlS1OmRjdZudtE+0FKQCnrPJxZxQb4 EZBdbiz88fDMt8zvjbb3+xPmqIVagHPUfNHFj+xhsjtLwCXzDLi6E3g2QeFli0PSODhy r9+Q== X-Gm-Message-State: ALKqPweDD/bKvhXlnZTLA1oTjw2VwklzRsiPic3kcCdmLwgHP7kYdL0r NBgMA/4wqD4tlGlIrkq7z/NTTQ== X-Received: by 2002:adf:8644:: with SMTP id 4-v6mr2519374wrw.73.1527255893131; Fri, 25 May 2018 06:44:53 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id b14-v6sm1744804wrn.57.2018.05.25.06.44.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 May 2018 06:44:49 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id B3A273E09E4; Fri, 25 May 2018 14:38:52 +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 Date: Fri, 25 May 2018 14:38:20 +0100 Message-Id: <20180525133851.27161-19-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180525133851.27161-1-alex.bennee@linaro.org> References: <20180525133851.27161-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:c0c::243 Subject: [Qemu-devel] [PATCH v5 18/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: Paolo Bonzini , =?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.0 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