From patchwork Tue Jun 19 15:44:16 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: 139156 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5368425lji; Tue, 19 Jun 2018 08:47:58 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK7oRYoLQg9QeRuekO+BgynzgqoZeylRFJLghF4M8zxbPaFDxkKZkl2PPQzB1dCPMiWPqY2 X-Received: by 2002:a0c:9308:: with SMTP id d8-v6mr14976628qvd.191.1529423278886; Tue, 19 Jun 2018 08:47:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529423278; cv=none; d=google.com; s=arc-20160816; b=T61/F2X7N+8LtB6cMzPJwSwMbxLRoukYIeLgC+PhBProaDOvIfvrlna6mfapORlAld IZxD4KuNDSXN8GX+WWsPou3cHEf29MMBL8RHq0KBwcSEuoeaaSqRnGGZRPXxPDIEp6Qr PKo1mtgO2meaSxWBeD4/HMCQMij4F1apCgXOtzsfPIiQNEO4j57yfhM8GtXswtVvDjxs HU+LH9ECUkzCLYhIGpJj7R3n8YSG+n72fGH5PEBX99S3qx3gmr+9BkBbI4h8TyzzkXGK W3uHhaTF8izK9c+jnTdFok9iq7sKhX0kwzp0p4OO+2yZNVpbpFEF7nnerO7zUU7eLF1k +XqA== 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=jGpuf8Ryr7eiXo1AMGgzxAcVsOXMNjUNc4dpv5YPwVI=; b=Dr5C1+EIcnV5rHE6En06bKMY/AgcYvsBvtcTB6HU2suGQtb+eH6vj25rxtOAm7Q8PL 7/S2dIosv5/21L9+uyGOVYHF4ALbOrYdC1QRB0ECeQsiysw+Au3N+BnSYgocUuBOhRzP st5Y39ZJa+efqK7IiBEPqpXntr1GJiII9HoewsxuvkNj1JyWxfB5F76i1QXpB0YnBB6o swUiOKOLuhXPBWgewe7RJBa6xK/n7BuMAaSep8kkSed1kU+JlOiwiQZG7PQNE9TX3liZ FAZET7stdOeBHWcMudhUSSnjHCLQYsc+PUvBIAQaP2oLq76DLxqPQSezmAJNw6snsBzZ 6hAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=GOMjYFXE; 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 j26-v6si24426qtf.110.2018.06.19.08.47.58 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 19 Jun 2018 08:47:58 -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=GOMjYFXE; 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]:43348 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVIrO-0000fe-9M for patch@linaro.org; Tue, 19 Jun 2018 11:47:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVIoO-0006gV-FG for qemu-devel@nongnu.org; Tue, 19 Jun 2018 11:44:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVIoN-0006TP-BR for qemu-devel@nongnu.org; Tue, 19 Jun 2018 11:44:52 -0400 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:55776) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fVIoN-0006SM-34 for qemu-devel@nongnu.org; Tue, 19 Jun 2018 11:44:51 -0400 Received: by mail-wm0-x22c.google.com with SMTP id v16-v6so1146979wmh.5 for ; Tue, 19 Jun 2018 08:44:50 -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=jGpuf8Ryr7eiXo1AMGgzxAcVsOXMNjUNc4dpv5YPwVI=; b=GOMjYFXEeiAMyb94KLQ3WC1TQE80qicUMqc1rf6sR5dx5VrG0fe5MoiiKQ9KqJg3kh sm9BjH1jtG9Va+c752kSFzbY0dGQTuNkuHW/rhC7RAKFKoZK8mg6ccnvfCGoOuqIpaUw GJvSOGFiBoI9iJi+NIlyVih6sbtTD58iqHpDM= 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=jGpuf8Ryr7eiXo1AMGgzxAcVsOXMNjUNc4dpv5YPwVI=; b=Ph7MNxFuXtVRJduLt26N28ZD85eXoSyEbCE3P0XzNJjcI0oq76Vpie+NeV8dRw9obG o36vpi4RvbG9CmMs6idLFmaC2ZCqd39OoKRcvLSNGeukwO79c3gvgGanbqYV1VwlVbqd NQFBSu+bmEhGqRyNOBm/hCPq6Zd3U+0EgBMNT+1uG5alPl860Zg1g5NKoAbM35LnEnen F/RYc/XLqMXPFKANQ3VZDrzaM+aQXt5nzUqu/h48IY9vGVefmNRwqHynt19+9Me5Nf0g CnE7ZFT4Oq1MVmA3SeHatmDhdo0NO75tnlVE03pUBdPwqv0PyN+8EpnDEmysGPedAgfc YU7A== X-Gm-Message-State: APt69E3GTkXQaJaWpCQ9hayK4gCQRG92tbJXE1ConALeOouGpuSzXswB j3a2/KPttmGYSwYVIMY8FdXe8Q== X-Received: by 2002:a1c:e80f:: with SMTP id f15-v6mr11862768wmh.137.1529423089927; Tue, 19 Jun 2018 08:44:49 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id a8-v6sm12842wrc.18.2018.06.19.08.44.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Jun 2018 08:44:48 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id C3ADF3E0E74; Tue, 19 Jun 2018 16:44:38 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 19 Jun 2018 16:44:16 +0100 Message-Id: <20180619154435.18898-38-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180619154435.18898-1-alex.bennee@linaro.org> References: <20180619154435.18898-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:c09::22c Subject: [Qemu-devel] [PULL 37/56] 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: agraf@suse.de, =?utf-8?q?Alex_Benn=C3=A9e?= , richard.henderson@linaro.org, qemu-devel@nongnu.org, f4bug@amsat.org, cota@braap.org, famz@redhat.com, aurelien@aurel32.net 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 -- 2.17.1 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