From patchwork Wed Feb 15 13:57:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aneesh V X-Patchwork-Id: 141321 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3D7DFB6FFD for ; Thu, 16 Feb 2012 00:58:45 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3694C280CF; Wed, 15 Feb 2012 14:58:37 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WNbBew1EPmeX; Wed, 15 Feb 2012 14:58:36 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E64D4280D2; Wed, 15 Feb 2012 14:58:25 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E7785280B8 for ; Wed, 15 Feb 2012 14:58:22 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id K6RVt8Dax-dn for ; Wed, 15 Feb 2012 14:58:22 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from na3sys009aog109.obsmtp.com (na3sys009aog109.obsmtp.com [74.125.149.201]) by theia.denx.de (Postfix) with ESMTPS id 1A783280C5 for ; Wed, 15 Feb 2012 14:58:08 +0100 (CET) Received: from mail-tul01m020-f170.google.com ([209.85.214.170]) (using TLSv1) by na3sys009aob109.postini.com ([74.125.148.12]) with SMTP ID DSNKTzu57ORrp5jKjDPsRLdJKtX25kpwQwBc@postini.com; Wed, 15 Feb 2012 05:58:10 PST Received: by mail-tul01m020-f170.google.com with SMTP id up3so1548424obb.15 for ; Wed, 15 Feb 2012 05:58:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.16.103 with SMTP id f7mr17857062obd.51.1329314284160; Wed, 15 Feb 2012 05:58:04 -0800 (PST) Received: from localhost (dragon.ti.com. [192.94.94.33]) by mx.google.com with ESMTPS id q5sm11364586obl.2.2012.02.15.05.58.01 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 15 Feb 2012 05:58:03 -0800 (PST) From: Aneesh V To: u-boot@lists.denx.de Date: Wed, 15 Feb 2012 19:27:32 +0530 Message-Id: <1329314253-4596-4-git-send-email-aneesh@ti.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1328528248-20872-1-git-send-email-aneesh@ti.com> References: <1328528248-20872-1-git-send-email-aneesh@ti.com> X-Gm-Message-State: ALoCoQmnsK8dFm9dEVQXc5sPOBUpGKjK7AVhDMUsy5/5ewX68G4Rju9enu+SuNSqer0OiLLAYK5q Subject: [U-Boot] [PATCH 3/4] armv7: Use -march=armv7-a and thereby enable Thumb-2 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Enable -march=armv7-a for armv7 platforms if the tool-chain supports it. This in turn results in Thumb-2 code generated for these platforms if CONFIG_SYS_THUMB_BUILD is enabled. Signed-off-by: Aneesh V --- I believe armv7-a is fine for all the SoCs except Tegra2 and I see that Tegra2 is already making the necessary exception in .../armv7/tegra2/config.mk Let me know if any other SoC has a problem with armv7-a Changes from RFC to V1: - Enabled armv7-a from armv7/config.mk instead of from omap config.mk files --- arch/arm/cpu/armv7/config.mk | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu/armv7/config.mk b/arch/arm/cpu/armv7/config.mk index 83ddf10..b66fb6f 100644 --- a/arch/arm/cpu/armv7/config.mk +++ b/arch/arm/cpu/armv7/config.mk @@ -22,8 +22,9 @@ # PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float -# Make ARMv5 to allow more compilers to work, even though its v7a. -PLATFORM_CPPFLAGS += -march=armv5 +# If armv7-a is not supported by GCC fall-back to armv5, which is +# supported by more tool-chains +PLATFORM_CPPFLAGS += $(call cc-option, -march=armv7-a, -march=armv5) # ========================================================================= # # Supply options according to compiler version