From patchwork Fri Jun 15 19:46:26 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: 10467545 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 A605860348 for ; Fri, 15 Jun 2018 20:05:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9769728714 for ; Fri, 15 Jun 2018 20:05:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8BE5728DA5; Fri, 15 Jun 2018 20:05:02 +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 0CA7F28714 for ; Fri, 15 Jun 2018 20:05:02 +0000 (UTC) Received: from localhost ([::1]:49065 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTuxx-0007la-7l for patchwork-qemu-devel@patchwork.kernel.org; Fri, 15 Jun 2018 16:05:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTugt-0002cb-W7 for qemu-devel@nongnu.org; Fri, 15 Jun 2018 15:47:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTugq-0005Zd-A8 for qemu-devel@nongnu.org; Fri, 15 Jun 2018 15:47:23 -0400 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:44698) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fTugq-0005X2-3J for qemu-devel@nongnu.org; Fri, 15 Jun 2018 15:47:20 -0400 Received: by mail-wr0-x241.google.com with SMTP id x4-v6so10958372wro.11 for ; Fri, 15 Jun 2018 12:47:19 -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=PCc992X6RHp3fjMhG48X+sPJ6zBJPHZpcAI+zPr1IvszIOaxJq2neWxttumFjmRDgq oi5zkPMf2PzxQv7qM2JU4SfgGkyyJZblUjcwP5JT9/am0yzLbOO26V1O/N0UrcbBuWyZ bIai6jcQWpA51DjFeG91tCanAtXjvshBtMO8o= 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=O6bcw7mYtI6zNJCF0/5cOBLB3G3KXJ21VuiPHvfxr5XAkf4L9jnlhT//Y51YBJrgH1 smwtSIJ7S6eqaAxU/RzveIqNQ1daTK3raZbyB7IgS/Zsf4ENOYdSSWYZ07S2jOptWJOC b3TQLYVA2JEHoVp9mCtCiFQfuOOYA/C8hyA9L5W2rthnAAGvwBr++k2NSA3Fd4yef19/ RCHgY0fo16qHqNtujsW32scyi/w2ZT1PNUe9SRL9ZvaB/Ohzu97KW/mxkYAgdEdOszEH aE+E+DCGzKDHM+FIhqkH54o/HbDEb7zluxgWw8BqWDnbh5HL8JFOtwfYLz4LZTEU/y7j 9pHg== X-Gm-Message-State: APt69E3ZOjVqmwCnZO/KQblK3uFdAZ7j4s+vxFQ8keDWkNoQbpndPdtZ HN6k1bUwbSowntMyky4FDFNPEw== X-Google-Smtp-Source: ADUXVKJjEj59WCKNeTLyOIDVHO3V65+3BLvEvpwKfSJ2qGG0A9gw/+/f5drnRCJDkhlCequVpF1uag== X-Received: by 2002:adf:ed52:: with SMTP id u18-v6mr2662731wro.262.1529092038941; Fri, 15 Jun 2018 12:47:18 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id n23-v6sm2065046wmh.6.2018.06.15.12.47.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Jun 2018 12:47:14 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id ABE923E03DD; Fri, 15 Jun 2018 20:47:06 +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, peter.maydell@linaro.org Date: Fri, 15 Jun 2018 20:46:26 +0100 Message-Id: <20180615194705.28019-16-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180615194705.28019-1-alex.bennee@linaro.org> References: <20180615194705.28019-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::241 Subject: [Qemu-devel] [PATCH v7 15/54] 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