From patchwork Fri May 25 14:19:10 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: 136936 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp3681135lji; Fri, 25 May 2018 07:44:19 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJgldhOZee2GDmRKKfHZ0UUhqJE72b6gNfUwfRc24FoPkN1knh4KlFjH+Y9ArHzKwTmu72u X-Received: by 2002:a37:2ac7:: with SMTP id q68-v6mr2224101qkq.77.1527259459508; Fri, 25 May 2018 07:44:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527259459; cv=none; d=google.com; s=arc-20160816; b=LTiMpy2OpaQneuPh4P6jj9kxj+W0Falu9Ixm2LZkCKn9ziM21ggi9ReKqv8BQ87hhG tlHI+WDpLK02hXdSHCFAC5VmtPTmEqT1DH2WSLLoszagHghboPukdrz1434382SSocLP WlMFghzckJj28IHPvc7C2rt8iuQesXNmxhA2a2nubJV6UeC6mFgyvaKKbINDbduRptkh /Co+rmCuukQGKa4YE/YsVulzeTUD0t8WZWq0nzpfLCIsdH7HCJFWIk517bJnp94Mobb4 +w7O6l9rSdNUM5efdBpxPx/+oK5q0SJxAjqAfGbBNsXjUUQn0iRanrCGYr3BHznpQBjh kZHQ== 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=H9DFl6Z5s4o5L5UQPC28eTo9hevhwb8rqzaSjdj1zp8=; b=FUGK20N+k2Aj2+3w2EGwy1eL1mh/d/BmeFNjK5ZNrMr3JOA0Nn/7l9Ya2szbiVjXS4 m7QWafZO6NYV7MVkLK+gU4buO+UuK+gct8P41W0AKKJGhuon9THlBY1Wycd16w87MeZj 8bm9fsT8t/BNyR2CPlIE6l7vcMG3hyINnACbLcjC3/D869QGFued9ZSmg2tMMfFXE+3u tkkYucFTAhdVM2jW8/+W6rgu+oJmz1QPu7yh3RdqcIegSTnpuZWXR8n9WOKajZLqF7qP 8xL7CkR9tvAs4xaSlIEYEVKc/I9srwEhvD2HnImnNqnnJhHrQf3ktN2TWQ3wtJbR70iw 6wGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=eZiUQqaq; 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 d7-v6si590645qtc.65.2018.05.25.07.44.19 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 25 May 2018 07:44:19 -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=eZiUQqaq; 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]:44438 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMDx5-0003v8-0o for patch@linaro.org; Fri, 25 May 2018 10:44:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45526) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMDeM-0005mq-ML for qemu-devel@nongnu.org; Fri, 25 May 2018 10:24:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fMDeL-0003wA-JW for qemu-devel@nongnu.org; Fri, 25 May 2018 10:24:58 -0400 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]:33878) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fMDeL-0003vh-DG for qemu-devel@nongnu.org; Fri, 25 May 2018 10:24:57 -0400 Received: by mail-wr0-x244.google.com with SMTP id j1-v6so9584860wrm.1 for ; Fri, 25 May 2018 07:24:57 -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=H9DFl6Z5s4o5L5UQPC28eTo9hevhwb8rqzaSjdj1zp8=; b=eZiUQqaq6lC4KW+QNC1SYvnkZqdfOoyHSEQoDBBUlRWHAHfi0PCAofvSRXjtXzqNSu dO20oYjXNwhw0lamYcEDLVZ2g7K2tkhApI6BKndqe8E+3b78NkMwloEw39lm7k83yE72 TlwpOXA8zornj9NqLAzlWL7mrHEPc6Mi4fraM= 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=H9DFl6Z5s4o5L5UQPC28eTo9hevhwb8rqzaSjdj1zp8=; b=ge1GzRUS6G5u7dl5urSasMN9EgmJcrUlc1gGi0Y5anxqBMCZoB8mglVau0H8RQ2vi6 CdKUCu/tIZLEo2OsgyBVFNHHus2InfG7asNkKerpJ4PaPbjP5Hu7da1ZcxADoCbeL9yL ZHTewsgs4dzTMoH8Iatx8V0sm1O5i60SJvVbpdjkqBvCKbwy9HTAXfRAm5DkPAMi77iT LOZ+SsZZUHmFySWB48cAXxJzHJ4A0N4zVD5Qeet6X0sWQZqGBeMQNMWV4v4qYWzdWf+n rkk7nTfBks/SOhqvjlDkTrVEPe33BDu2QJ/HLKay7IqGj+te8ZQzCSmR6qT1yv77cTb4 sjKg== X-Gm-Message-State: ALKqPwcd0dTuxt8sxGmjwhV0cTAkETMwGfYJY9aAPq5htUh/Snl/c+ch 1wyPK0kbyrGAxnJCSWJ+EauK1Q== X-Received: by 2002:a5d:4045:: with SMTP id w5-v6mr2541660wrp.96.1527258296389; Fri, 25 May 2018 07:24:56 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id t198-v6sm8847327wmt.23.2018.05.25.07.24.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 May 2018 07:24:54 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 9854D3E07C2; Fri, 25 May 2018 15:19:11 +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 15:19:10 +0100 Message-Id: <20180525141910.6384-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180525141910.6384-1-alex.bennee@linaro.org> References: <20180525133851.27161-1-alex.bennee@linaro.org> <20180525141910.6384-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::244 Subject: [Qemu-devel] [PATCH v5 39/49] 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_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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 -- 2.17.0 diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index c85f085d9d..1eb34c1dd2 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -65,6 +65,7 @@ docker-image-debian-win64-cross: docker-image-debian8-mxe 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 # Expand all the pre-requistes for each docker image and test combination 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