From patchwork Thu Sep 20 04:04:30 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Holsgrove X-Patchwork-Id: 185305 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]) by ozlabs.org (Postfix) with SMTP id C42AB2C0098 for ; Thu, 20 Sep 2012 14:04:55 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sourceware.org; s=default; x=1348718696; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Content-Type:MIME-Version:Content-Transfer-Encoding: Subject:Message-Id:User-Agent:Date:From:To:Cc:Mailing-List: Precedence:List-Id:List-Unsubscribe:List-Subscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=BZSuGescbW4NdhfE35I2 d/3dtTo=; b=kc9uOdPAUAN6Ko3uVgPBLODXlUEsisSik1FR8TsZ3zP/TN8lZZ7L CknJCoLo1rsTSv/zKiJcbk8vshuIZuxuKGTSnf2Cv+0tu+0Mm7TiBeue2PE3IGOz iFcSyfjfZt6JPL6Y98kU9u9pMPMukk4INkEnaCCq8I6JTgGQMRNtARs= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=sourceware.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:X-Google-DKIM-Signature:Received:Received:Content-Type:MIME-Version:Content-Transfer-Encoding:Subject:X-Mercurial-Node:Message-Id:User-Agent:Date:From:To:Cc:X-Gm-Message-State:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Subscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=taVM//Ww9OKdTYaZDWTQGXOpE7SYXh8gVIpd2lEd6PA5ZA/Gzsr0BGjj5jMzgn +Nk6j/ZuArVF2yKatQQqbs/5TzuOvEQhgKCfXIxiJT1MhAO2lWjJeapA8w/evBMu +HSU7hrAeqZxnF4fnMm4x5nwlB6scUz9L+pOXCVnAMUaI=; Received: (qmail 7472 invoked by alias); 20 Sep 2012 04:04:52 -0000 Received: (qmail 7455 invoked by uid 22791); 20 Sep 2012 04:04:49 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-pb0-f41.google.com (HELO mail-pb0-f41.google.com) (209.85.160.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 20 Sep 2012 04:04:36 +0000 Received: by pbbro12 with SMTP id ro12so4546434pbb.0 for ; Wed, 19 Sep 2012 21:04:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:content-type:mime-version:content-transfer-encoding:subject :x-mercurial-node:message-id:user-agent:date:from:to:cc :x-gm-message-state; bh=p6UhmEa8y+UnS7qz2C6lpSIGf0rEV0jZHLT4AbZMyDA=; b=ilng4e0dTNGizgirFZRQ4nVLHv9lKsqGOw2ZW8sASoQxo8w4eHgQ++2LL51HSwO6W/ 2Nivt0g43OJTsdYR6TLRBvHtrXwmMvoV5Md/ermFc37UnamYT/uQRq1XRZ2skZiXwF3/ jBvSkbxXtzE2sz74k/u3nr/dbI4CEeMDiQ1eGpuK5ItsE6tTFh0imUJeiIz6d865BLa9 xa467YWJMF7S3Kilj8KssHpeec+fuHpRkAjgk7HaLVTKS4NpflXZbagAo7D3b2RzzXbs RLKYYoxk2gC5algXzcft6OTD+CZYYpa64JMjdvdbSt6D0R3lTlVLH31Ahse+KESHT17s Z/oQ== Received: by 10.66.75.168 with SMTP id d8mr2085943paw.63.1348113875755; Wed, 19 Sep 2012 21:04:35 -0700 (PDT) Received: from localhost ([124.148.20.9]) by mx.google.com with ESMTPS id bs6sm1771016pab.30.2012.09.19.21.04.33 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 19 Sep 2012 21:04:34 -0700 (PDT) MIME-Version: 1.0 Subject: [PATCH] arch/microblaze: add new architecture X-Mercurial-Node: 9c93e18b3d68b19303f37bf604c0ad907451872a Message-Id: <9c93e18b3d68b19303f3.1348113870@localhost.localdomain> User-Agent: Mercurial-patchbomb/2.3.1 Date: Thu, 20 Sep 2012 14:04:30 +1000 From: David Holsgrove To: yann.morin.1998@free.fr Cc: crossgcc@sourceware.org X-Gm-Message-State: ALoCoQljmK5fP3S4PMw7kU7gm0cpow9tcw8R8vqYYlVKvv/vS5FmF34jbklTe4lvse4hJNYGCz8B X-IsSubscribed: yes 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 # HG changeset patch # User David Holsgrove # Date 1348113698 -36000 # Node ID 9c93e18b3d68b19303f37bf604c0ad907451872a # Parent 06b663f297adb76149f089136a78e7d5999c63bd arch/microblaze: add new architecture Add Microblaze architecture support. This depends on EXPERIMENTAL, as upstream projects do not yet include full support to build a modern microblaze compiler. This is in the process of being updated, but is not currently publicly accessible. Signed-off-by: "David Holsgrove" --- For unsubscribe information see http://sourceware.org/lists.html#faq diff -r 06b663f297ad -r 9c93e18b3d68 config/arch/microblaze.in --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/arch/microblaze.in Thu Sep 20 14:01:38 2012 +1000 @@ -0,0 +1,22 @@ +# MicroBlaze specific config options + +## depends on EXPERIMENTAL +## +## select ARCH_SUPPORT_ARCH +## select ARCH_FLOAT_SW +## select ARCH_SUPPORTS_BOTH_ENDIAN +## select ARCH_DEFAULT_BE +## select ARCH_SUPPORTS_BOTH_MMU +## select ARCH_DEFAULT_HAS_MMU +## +## help The MicroBlaze architecture, as defined by: +## help http://www.xilinx.com/ +## help +## help Upstream projects do not currently provide +## help full support for the microblaze architecture +## help and as such, this is marked as EXPERIMENTAL +## help for CT-NG. +## help +## help Support is being added for a modern gcc, +## help binutils and gdb along with nptl threading +## help in eglibc for microblaze. diff -r 06b663f297ad -r 9c93e18b3d68 scripts/build/arch/microblaze.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/build/arch/microblaze.sh Thu Sep 20 14:01:38 2012 +1000 @@ -0,0 +1,21 @@ +# Compute microblaze specific values + +CT_DoArchTupleValues () { + # The architecture part of the tuple: + CT_TARGET_ARCH="${CT_ARCH}${target_endian_el}" + + # gcc ./configure flags + CT_ARCH_WITH_ARCH= + CT_ARCH_WITH_ABI= + CT_ARCH_WITH_CPU= + CT_ARCH_WITH_TUNE= + CT_ARCH_WITH_FPU= + CT_ARCH_WITH_FLOAT= + + # CFLAGS + case "${CT_ARCH_FLOAT_HW},${CT_ARCH_FLOAT_SW}" in + y,) CT_ARCH_FLOAT_CFLAG="-mhard-float" ;; + ,y) CT_ARCH_FLOAT_CFLAG="-msoft-float" ;; + esac + +}