From patchwork Sun May 11 09:52:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cody P Schafer X-Patchwork-Id: 347775 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 2A65A1400B2 for ; Sun, 11 May 2014 19:52:46 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:content-type:mime-version :content-transfer-encoding:subject:message-id:date:from:to; q= dns; s=default; b=KyXjAzR4aVNEjAoJShbwzBDNqltvDvFUaYntoqYg6WOJCZ ExDQAsIZKrWKFh0uQF2BTYK0IOkQL7EtLEDJrkn+yJ/f/JhYf+4iujNZyR7MR2DV pvakNsMj44kkL752pUEgGR9V7ZlL3sMafuLaaC25/nfPiO0RJkApnmXHP9mos= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:content-type:mime-version :content-transfer-encoding:subject:message-id:date:from:to; s= default; bh=p+wXBnIJnRn6zF5GK6+1sdl869c=; b=VjmSpTmlw9VG9N45pczN hJtpfjs4OBhvoRDx5YWNgIY7i2s9sHY4+qownc83OxPAz9Hvp7uRVvwh/dHpgW4p +H91GXx41N+A/+7KDaD+1egkEOnEpzWVv74GVMFZpa3ppR07JDNhatFtMvbNiH+9 waJIULXydo8a/SPuziNIBdA= Received: (qmail 19010 invoked by alias); 11 May 2014 09:52:35 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Delivered-To: mailing list crossgcc@sourceware.org Received: (qmail 18914 invoked by uid 89); 11 May 2014 09:52:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ee0-f49.google.com Received: from mail-ee0-f49.google.com (HELO mail-ee0-f49.google.com) (74.125.83.49) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 11 May 2014 09:52:33 +0000 Received: by mail-ee0-f49.google.com with SMTP id e53so3758948eek.36 for ; Sun, 11 May 2014 02:52:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version :content-transfer-encoding:subject:message-id:user-agent:date:from :to; bh=kmta3iWuLjk5Rqn3gw23AJC865xViMAES7EhO5KqtLc=; b=QElmAC/KrWahHNiuqzm3/HSgdsSH4nsJG5G9kWgIc6b0R9t47Rj5TtkGCL6pkCAIGf WBQrNQzen/xS9PKzKNyDXmVY/QWqsPhM3mnV090Tr9EpfNsxJlSqrhIgkIlqCxoClIuK gjJ/nnL13WPUTvhXjtlrkZ8lJHodWm6HCqaewFpSQOVCH35aKlwj/pcj3kobMgmTR7qc OEeAtBvPKPOUpQU6rt738NY9R49onPyjbew/NhrIlXT5ql0FOTYNLiESNJr8GeB9Zk6v +iZ+fZ69MZ8vBHcGcYSfORcAkh8LpLAPbEhEsLhFHbxEU2LBv6dfo7bHfEUQA+YuiGsM MnNQ== X-Gm-Message-State: ALoCoQkjcHAkPV2eashmCvCFtOEcJBh6Q7tbP9hMUoOGxX38+/R8C0AtHhmO2AbUXni9qeK7mxJq X-Received: by 10.14.53.66 with SMTP id f42mr9384795eec.70.1399801949903; Sun, 11 May 2014 02:52:29 -0700 (PDT) Received: from localhost ([2601:7:1680:338::a66]) by mx.google.com with ESMTPSA id l4sm14915165eey.13.2014.05.11.02.52.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 May 2014 02:52:29 -0700 (PDT) MIME-Version: 1.0 Subject: [PATCH] powerpc: add powerpc64le support X-Mercurial-Node: 64bfbbced9dd8f62e0d64936c54b46653a87dd12 Message-Id: <64bfbbced9dd8f62e0d6.1399801945@gun> User-Agent: Mercurial-patchbomb/3.0 Date: Sun, 11 May 2014 02:52:25 -0700 From: Cody P Schafer To: crossgcc@sourceware.org # HG changeset patch # User Cody P Schafer # Date 1399801832 25200 # Sun May 11 02:50:32 2014 -0700 # Node ID 64bfbbced9dd8f62e0d64936c54b46653a87dd12 # Parent 53aa6fe55269fd11e7cee8ad6d13cb5ee0a7c3de powerpc: add powerpc64le support Technically, I don't forbid powerpcle support either, but I'm not sure that there is any library/compiler support for that at the moment (though the hw technically makes it possible). powerpc64le needs glibc 2.19 and gcc 4.9. I haven't looked into the support tools, but at least gdb 7.5 is too old (7.7.1 definitely has support). Also make powerpc64 non-experimental. It's practically old at this point. Signed-of-by: Cody P Schafer --- For unsubscribe information see http://sourceware.org/lists.html#faq diff --git a/config/arch/powerpc.in b/config/arch/powerpc.in --- a/config/arch/powerpc.in +++ b/config/arch/powerpc.in @@ -1,8 +1,10 @@ # powerpc specific configuration file ## select ARCH_SUPPORTS_32 -## select ARCH_SUPPORTS_64 if EXPERIMENTAL +## select ARCH_SUPPORTS_64 ## select ARCH_DEFAULT_32 +## select ARCH_SUPPORTS_BOTH_ENDIAN +## select ARCH_DEFAULT_BE ## select ARCH_USE_MMU ## select ARCH_SUPPORTS_WITH_ABI ## select ARCH_SUPPORTS_WITH_CPU diff --git a/scripts/build/arch/powerpc.sh b/scripts/build/arch/powerpc.sh --- a/scripts/build/arch/powerpc.sh +++ b/scripts/build/arch/powerpc.sh @@ -3,9 +3,19 @@ CT_DoArchTupleValues () { # The architecture part of the tuple, override only for 64-bit if [ "${CT_ARCH_64}" = "y" ]; then - CT_TARGET_ARCH="powerpc64${CT_ARCH_SUFFIX}" + _64="64" + else + _64="" fi + if [ "${CT_ARCH_ENDIAN}" = big ] ; then + _le="" + else + _le="le" + fi + + CT_TARGET_ARCH="powerpc${_64}${_le}${CT_ARCH_SUFFIX}" + # Only override values when ABI is not the default case "${CT_ARCH_powerpc_ABI}" in eabi)