From patchwork Tue Jun 19 15:44:21 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: 139208 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5406823lji; Tue, 19 Jun 2018 09:21:51 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKRhJ42SzfJM4urk0LZA+/5TRjGjzStPD2Z/kIBfHXpJOO2Z3nspGWRen1n1bnmn/puIBYD X-Received: by 2002:a0c:8842:: with SMTP id 2-v6mr15063797qvm.117.1529425311583; Tue, 19 Jun 2018 09:21:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529425311; cv=none; d=google.com; s=arc-20160816; b=s8svHugJ+nc6BV8QLrHnsKHPh3ecxWMMBg8ZBb9K8WLRMvEO4Wi2Rc0NwYobo8txYe NuxlV8IMRP52/wrwF1Q2MiHRTN79j2Up0AT0bVJHomWyeKoLGGmCFsymhKp8Jx/Otuf1 MwAx9v1ctt+KXUJIDUy42XlYin3Gsd4aEJm6QZF+fGftYZllk65SGxl/75Ad1xN2ugTR igVB4qoRGC3mS8ZghSM9UXCrhSRhRbInDMUcgn56NlIxSX63hGw8PS3u/q7uYNeypY7T LCtD/4XO4Qm2qaW05UPD3D+wc1IcPQ6rnv9cdWPiM7jXOzAhi7qkqEOqmMDxpP5VsqPD yISQ== 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=bxImL4aXv+Koa6NopzgWaXK2ZsGPJGUjW6MUXzR3fTU=; b=R5OXIIZVATrZG48yxSzlr6JDZdCLtdg4j5fLe9MCLPADF9xy9DWo89ACVlG8Rz00Hn WK0Ourwk7xN8OwrpM4qAc0Ot7DGS7beolxcG6hs/2UWLpoUP/3R6AU3TuqLceHoIiMQQ l+wu721ni7u9gFedmKfQ74MM47Bp9t/i6JWIicECYF3AUzsaSiy0ep2hwksR78I8+vZY dYYesomwF6A0ybbpRJJhth3bK4jn/CUym6yr68Q+74P2oDoDW0BAU+LSXX+XJS/HF4Cy 8ixm7bUQUdVNenNzlah8PvAOsWtO910gTyvy1d/FMdqxSDBdBGFWvo74u8FqMNny4DEh lqHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ComkUSDf; 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 l32-v6si75855qte.317.2018.06.19.09.21.51 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 19 Jun 2018 09:21:51 -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=ComkUSDf; 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]:43588 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVJOA-0003UN-U2 for patch@linaro.org; Tue, 19 Jun 2018 12:21:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVJ4t-0004Zi-SO for qemu-devel@nongnu.org; Tue, 19 Jun 2018 12:01:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVJ4q-0007az-4j for qemu-devel@nongnu.org; Tue, 19 Jun 2018 12:01:55 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:35063) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fVJ4p-0007af-UT for qemu-devel@nongnu.org; Tue, 19 Jun 2018 12:01:52 -0400 Received: by mail-wm0-x243.google.com with SMTP id j15-v6so1474829wme.0 for ; Tue, 19 Jun 2018 09:01:51 -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=bxImL4aXv+Koa6NopzgWaXK2ZsGPJGUjW6MUXzR3fTU=; b=ComkUSDfR+QUHLu8+hOP+alMQO8Zn4a5FHSDoYV0shtSMxBVd+gLSX4O1V0ELY36w/ 7Di5epuF6iSApHZ1On5AICT+FDMMKVsE9VJ/gjF5bMo5DsPl5i5wOPLm0qHRAH+KTRhu VzOtDXG0h+MXCLjLoVihkmweJprt+eE42OKCw= 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=bxImL4aXv+Koa6NopzgWaXK2ZsGPJGUjW6MUXzR3fTU=; b=ZRLymR6qfeJf4IIt/c3Od8B6d1ddAYZIKji89RvOds935sCFlvX6eva5iVqiTnRVxX GYqUdfozP3NBPMsP0N2+FvlSREneEwqfEoDVcNuSpoVoC8CINiuicnGabwKcBjO7v6Fw vwkfqzuHC3P2vAIm6yj4NjzZZQclgdnKHtQs3/yhZMPmFvaVviyBt8kNztdKZXYxSnyZ jUKGndpH3/De1L0xCCc8M+0JUK0Hgwyxhdnfr/gG+Y7lC347OjSy8JXH/3gl+zpYTppq DIuwqoT4Q3BS0cZ2FBszMvUGyFRF78AdLere46L0/PWQ4ov/OrfhmVnHPJr2c466aSpx cxTQ== X-Gm-Message-State: APt69E0odoQi1eFu65AQB8KVhPDfNacmR7fNuhws8ssiDmYEVJAQZjdE vGzLA2z4pSR1uAP/HpA/Y8AQ8pUYbMA= X-Received: by 2002:a1c:448:: with SMTP id 69-v6mr13242041wme.31.1529424110793; Tue, 19 Jun 2018 09:01:50 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id p6-v6sm65921wrq.19.2018.06.19.09.01.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Jun 2018 09:01:49 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 4043A3E0F3C; Tue, 19 Jun 2018 16:44:39 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 19 Jun 2018 16:44:21 +0100 Message-Id: <20180619154435.18898-43-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::243 Subject: [Qemu-devel] [PULL 42/56] tests/tcg: enable building for PowerPC 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" Now we have restored debian-image-powerpc-cross using Debian SID compilers we can build for 32 bit powerpc. Although PPC32 supports a range of pages sizes currently only 4k works so the others are commented out for now. We can also merge the ppc64 support under the base architecture directory to avoid too much proliferation of directories. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- v5 - new for v5 -- 2.17.1 diff --git a/tests/tcg/ppc/Makefile.include b/tests/tcg/ppc/Makefile.include new file mode 100644 index 0000000000..b062c30dd3 --- /dev/null +++ b/tests/tcg/ppc/Makefile.include @@ -0,0 +1,7 @@ +ifeq ($(TARGET_NAME),ppc) +DOCKER_IMAGE=debian-powerpc-cross +DOCKER_CROSS_COMPILER=powerpc-linux-gnu-gcc +else ifeq ($(TARGET_NAME),ppc64le) +DOCKER_IMAGE=debian-ppc64el-cross +DOCKER_CROSS_COMPILER=powerpc64le-linux-gnu-gcc +endif diff --git a/tests/tcg/ppc/Makefile.target b/tests/tcg/ppc/Makefile.target new file mode 100644 index 0000000000..f5e08c7376 --- /dev/null +++ b/tests/tcg/ppc/Makefile.target @@ -0,0 +1,12 @@ +# -*- Mode: makefile -*- +# +# PPC - included from tests/tcg/Makefile +# + +ifneq (,$(findstring 64,$(TARGET_NAME))) +# On PPC64 Linux can be configured with 4k (default) or 64k pages (currently broken) +EXTRA_RUNS+=run-test-mmap-4096 #run-test-mmap-65536 +else +# On PPC32 Linux supports 4K/16K/64K/256K (but currently only 4k works) +EXTRA_RUNS+=run-test-mmap-4096 #run-test-mmap-16384 run-test-mmap-65536 run-test-mmap-262144 +endif diff --git a/tests/tcg/ppc64le/Makefile.include b/tests/tcg/ppc64le/Makefile.include deleted file mode 100644 index d71cfc9aa7..0000000000 --- a/tests/tcg/ppc64le/Makefile.include +++ /dev/null @@ -1,2 +0,0 @@ -DOCKER_IMAGE=debian-ppc64el-cross -DOCKER_CROSS_COMPILER=powerpc64le-linux-gnu-gcc