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: 10427477 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C6023602D6 for ; Fri, 25 May 2018 13:55:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BAA7729706 for ; Fri, 25 May 2018 13:55:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF75029709; Fri, 25 May 2018 13:55:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1805529706 for ; Fri, 25 May 2018 13:55:35 +0000 (UTC) Received: from localhost ([::1]:44129 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMDBu-0001cK-Bp for patchwork-qemu-devel@patchwork.kernel.org; Fri, 25 May 2018 09:55:34 -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-Google-Smtp-Source: AB8JxZq+FQaVX4DzTs0OkIFbOgWge7tDLwOI9VHDw/CuTk8btlufstvmXqNo1LuVmpe6386s6s+rig== 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=20Benn=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=20Benn=C3=A9e?= , qemu-devel@nongnu.org, Eduardo Habkost , Richard Henderson Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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 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