From patchwork Fri Jun 15 19:46:53 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: 930225 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="EM31VM0R"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 416sQR1bCGz9s01 for ; Sat, 16 Jun 2018 06:23:59 +1000 (AEST) Received: from localhost ([::1]:49179 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTvGG-00060D-P2 for incoming@patchwork.ozlabs.org; Fri, 15 Jun 2018 16:23:56 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTuoX-0000X4-8W for qemu-devel@nongnu.org; Fri, 15 Jun 2018 15:55:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTuoT-0006TH-TC for qemu-devel@nongnu.org; Fri, 15 Jun 2018 15:55:17 -0400 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:56019) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fTuoT-0006Rh-Lp for qemu-devel@nongnu.org; Fri, 15 Jun 2018 15:55:13 -0400 Received: by mail-wm0-x242.google.com with SMTP id v16-v6so5202034wmh.5 for ; Fri, 15 Jun 2018 12:55:13 -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=2M1MgeWeiAbrWAgUNdKwHc9QWya7U69msopEAd7zxLw=; b=EM31VM0RbWjYUT/46AeD0Y1W9GrZyc1CZ9zPOdRhOW4/xiKICjvv5f/gyatQlSxHr9 niOsuFZ5w/ankl+/YJYq3WHnKor6W0GfaheFR/Ydkod0I7hKkQke1cRoyRVRseNaIfWD CqH2JF9tDO+GqY1ZZm2izZKhVCCw54mz9XcAc= 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=2M1MgeWeiAbrWAgUNdKwHc9QWya7U69msopEAd7zxLw=; b=FVbmfM9aawBGlMkLiQFdphJT+BiKKxwp+KcNwGIMpZHRPvAJ+mp87YLB87oK8iHLPU m8A/VU/Gw01TC3ZOA9AvxlumrcOWpxVGV1919Z4waXQHp9CwX+Jr8hbI/jYJ9cR1h5a2 F5Ptj+zwKY8HpmDvSlwHwWQ5fAWqh+k8Kd9L3bwt/O4LkDWNJS3SEjM+52Ql4joTsEGT 9WLadZA2JcisHNK6brkt2Btegb+yqb6Qw5lRlqtZ6L2m23eyYPVC5G9GdO6Zmtd6qAlc yRyzFSMr0r4/uIKOYcbze0vbhjtP04/t9yZjFm4JADiJwGfNJlIXos7/JRLdOXCsyZ9b mP1w== X-Gm-Message-State: APt69E1wX5PUp0eQjhHUmJKyUj5kLdmWHHklyUNxsCovjgsTZBp21spH IbkN5IgNyr/VwP01RjPRucn1Dw== X-Google-Smtp-Source: ADUXVKL0Ddn6h4NzSizMUtEw4gV+vny65FbLXqvR/ibK6t7G4pJuvf5SwMI5wk1PCFgDy0U5V4d5LQ== X-Received: by 2002:a1c:da4e:: with SMTP id r75-v6mr2198192wmg.64.1529092512412; Fri, 15 Jun 2018 12:55:12 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id z5-v6sm7095573wrh.10.2018.06.15.12.55.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Jun 2018 12:55:10 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 225A23E0F65; Fri, 15 Jun 2018 20:47:09 +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, peter.maydell@linaro.org Date: Fri, 15 Jun 2018 20:46:53 +0100 Message-Id: <20180615194705.28019-43-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:c09::242 Subject: [Qemu-devel] [PATCH v7 42/54] 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: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.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 --- tests/tcg/ppc/Makefile.include | 7 +++++++ tests/tcg/ppc/Makefile.target | 12 ++++++++++++ tests/tcg/ppc64le/Makefile.include | 2 -- 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 tests/tcg/ppc/Makefile.include create mode 100644 tests/tcg/ppc/Makefile.target delete mode 100644 tests/tcg/ppc64le/Makefile.include 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