From patchwork Fri Jun 15 19:46:48 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: 10467597 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 7DA9160384 for ; Fri, 15 Jun 2018 20:27:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5F9352836F for ; Fri, 15 Jun 2018 20:27:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 53C2A28E16; Fri, 15 Jun 2018 20:27:32 +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 7CB342836F for ; Fri, 15 Jun 2018 20:27:31 +0000 (UTC) Received: from localhost ([::1]:49208 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTvJi-00009M-BD for patchwork-qemu-devel@patchwork.kernel.org; Fri, 15 Jun 2018 16:27:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54003) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTuoa-0000a3-Gt for qemu-devel@nongnu.org; Fri, 15 Jun 2018 15:55:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTuoZ-0006d5-D5 for qemu-devel@nongnu.org; Fri, 15 Jun 2018 15:55:20 -0400 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:43318) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fTuoZ-0006bm-2s for qemu-devel@nongnu.org; Fri, 15 Jun 2018 15:55:19 -0400 Received: by mail-wr0-x241.google.com with SMTP id d2-v6so10958303wrm.10 for ; Fri, 15 Jun 2018 12:55: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=2opqxxSEDefmONH/JLv3d1gHA3iz8ivJxgwmV2O5zWg=; b=IjmFmR/JAwQJexfjCVMosYGntbYk/YHJIpzMG85YVL/8mPkkE38J6HRSSLqqE6SDT4 1XR/b/huOja3KJdbwaA2tgLyJM+xPKOIn9iQcysYF09Sq3+OUKvkwlG17Bg32rS0oc1I qqvROWoAQljWURhFfWlIIGxvVDhmOTFFxbeic= 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=2opqxxSEDefmONH/JLv3d1gHA3iz8ivJxgwmV2O5zWg=; b=Bx2+KrRjAg4oHwFDKep6QgqJ5I4CEyNxrpQStbMUyOmWY6UMPZeNcplRw+YWqlOC+V DjgLvxm9uW15araPcxnHfpmfpwbATHZVJ4IydFE5/CoS+ABqjIlEBSE13GBhIh83zWNJ jmJjprCGJGAXIcejhkwmL5/UN8Z7T6d8ZbjoweQzHkt9B/bQJY+B93+kADBCqcpc7yBk QsgQjOmt39ULy2OyT4kSbtbdwTYZLyqtRgdzEmBtsqS2ZcN/D7F+DF69+KcEm8WlD1TH TBoQstv1/qLszKq+TwRlPCPwd6+as9tf1KWFgmrUKe536fwanWTqYhy2DhIVYMlpWThM rmDw== X-Gm-Message-State: APt69E1tkzfz/VIFcZSbcWky4uMUQGczIlk/BHbuoAS7o+9LUiZqvEN2 QLDvlXtFPpsFKssgofzPZb5Tgw== X-Google-Smtp-Source: ADUXVKKvUoLb4XoBMpRIuoBzuwiMN8n0Vs8lc1iKrgrTtB4hCb1ujJxc7fnHLFwWWILSlmM00JbBvg== X-Received: by 2002:adf:b94e:: with SMTP id b14-v6mr2911298wrg.265.1529092517955; Fri, 15 Jun 2018 12:55:17 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id u108-v6sm17227963wrc.40.2018.06.15.12.55.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Jun 2018 12:55:14 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id A980B3E0E74; Fri, 15 Jun 2018 20:47:08 +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:48 +0100 Message-Id: <20180615194705.28019-38-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 37/54] tests/tcg: enable building for sh4 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=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP As before, using Debian SID compilers. While the compiler can be coerced into generating big-endian code it seems the linker can't deal with it so we only enable the building for little endian SH4. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- v5 - add Makefile.target with EXTRA_RUNS for mmap tests --- tests/docker/Makefile.include | 1 + tests/docker/dockerfiles/debian-sh4-cross.docker | 12 ++++++++++++ tests/tcg/sh4/Makefile.include | 4 ++++ tests/tcg/sh4/Makefile.target | 7 +++++++ 4 files changed, 24 insertions(+) create mode 100644 tests/docker/dockerfiles/debian-sh4-cross.docker create mode 100644 tests/tcg/sh4/Makefile.include create mode 100644 tests/tcg/sh4/Makefile.target diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 59dd8e314d..a2dd307a8e 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -73,6 +73,7 @@ docker-image-debian-sid: NOCACHE=1 docker-image-debian-alpha-cross: docker-image-debian-sid docker-image-debian-hppa-cross: docker-image-debian-sid docker-image-debian-m68k-cross: docker-image-debian-sid +docker-image-debian-sh4-cross: docker-image-debian-sid docker-image-travis: NOUSER=1 # Specialist build images, sometimes very limited tools diff --git a/tests/docker/dockerfiles/debian-sh4-cross.docker b/tests/docker/dockerfiles/debian-sh4-cross.docker new file mode 100644 index 0000000000..88a2423094 --- /dev/null +++ b/tests/docker/dockerfiles/debian-sh4-cross.docker @@ -0,0 +1,12 @@ +# +# Docker cross-compiler target +# +# This docker target builds on the debian sid base image which +# contains cross compilers for Debian "ports" targets. +# +FROM qemu:debian-sid + +RUN DEBIAN_FRONTEND=noninteractive eatmydata \ + apt-get install -y --no-install-recommends \ + gcc-sh4-linux-gnu \ + libc6-dev-sh4-cross diff --git a/tests/tcg/sh4/Makefile.include b/tests/tcg/sh4/Makefile.include new file mode 100644 index 0000000000..ad21594d9d --- /dev/null +++ b/tests/tcg/sh4/Makefile.include @@ -0,0 +1,4 @@ +ifneq ($(TARGET_NAME), sh4eb) +DOCKER_IMAGE=debian-sh4-cross +DOCKER_CROSS_COMPILER=sh4-linux-gnu-gcc +endif diff --git a/tests/tcg/sh4/Makefile.target b/tests/tcg/sh4/Makefile.target new file mode 100644 index 0000000000..9d18d44612 --- /dev/null +++ b/tests/tcg/sh4/Makefile.target @@ -0,0 +1,7 @@ +# -*- Mode: makefile -*- +# +# SuperH specific tweaks +# + +# On sh Linux supports 4k, 8k, 16k and 64k pages (but only 4k currently works) +EXTRA_RUNS+=run-test-mmap-4096 # run-test-mmap-8192 run-test-mmap-16384 run-test-mmap-65536