From patchwork Tue Feb 18 21:09:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Tomsich X-Patchwork-Id: 321669 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 0DDA12C00D3 for ; Wed, 19 Feb 2014 08:11:00 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references; q=dns; s= default; b=hWxju7kjHdNRxyTnWdOuQcV5hnGddGzUqHVbxFhwypnyfscMmnb76 78Wpzi0WVHgZ7o6C2UQ8qsNkyBVCy3IVNlNJLuIu55UXizTzuf24BQvreE9jJ1lI Ur1grh/ptrn+ClRGydzQMI2c6L2kIGcQFrdqXK4k+s9DeIoZrZWsV8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references; s= default; bh=NCExUW5DacAOEO+u2DzWZh4JOiY=; b=mvHhOjGRW4C1NGT2W87n gOsiDa68rDNAMk8C+c2TaAclC8i6tJDzMI3d+ElLbal3ubjhOeA9mCawljeCJLjg ebgjkmN8/A4twCblpsvx/Yd4oNE0Rd1jce8ul17Xzz4yR60WPLvv+Ll0qpHqV1+K h1dq33n3/Ich+SZqKGfa3og= Received: (qmail 317 invoked by alias); 18 Feb 2014 21:10:22 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 32637 invoked by uid 89); 18 Feb 2014 21:10:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mail.theobroma-systems.com Received: from vegas.theobroma-systems.com (HELO mail.theobroma-systems.com) (144.76.126.164) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 18 Feb 2014 21:10:19 +0000 Received: from [85.31.14.210] (port=52453 helo=android.com) by mail.theobroma-systems.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1WFrvj-0007JV-IG; Tue, 18 Feb 2014 22:10:15 +0100 From: Philipp Tomsich To: gcc-patches@gcc.gnu.org Cc: philipp.tomsich@theobroma-systems.com Subject: [AArch64 01/14] Use "generic" target, if no other default. Date: Tue, 18 Feb 2014 22:09:34 +0100 Message-Id: <1392757787-25629-2-git-send-email-philipp.tomsich@theobroma-systems.com> In-Reply-To: <1392757787-25629-1-git-send-email-philipp.tomsich@theobroma-systems.com> References: <1392757787-25629-1-git-send-email-philipp.tomsich@theobroma-systems.com> The default target should be "generic", as Cortex-A53 includes optional ISA features (CRC and CRYPTO) that are not required for architectural compliance. The key difference between generic (which already uses the cortexa53 pipeline model for scheduling) is the absence of any optional ISA features in the "generic" target. --- gcc/config/aarch64/aarch64.c | 2 +- gcc/config/aarch64/aarch64.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 784bfa3..70dda00 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -5244,7 +5244,7 @@ aarch64_override_options (void) /* If the user did not specify a processor, choose the default one for them. This will be the CPU set during configuration using - --with-cpu, otherwise it is "cortex-a53". */ + --with-cpu, otherwise it is "generic". */ if (!selected_cpu) { selected_cpu = &all_cores[TARGET_CPU_DEFAULT & 0x3f]; diff --git a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h index 13c424c..b66a6b4 100644 --- a/gcc/config/aarch64/aarch64.h +++ b/gcc/config/aarch64/aarch64.h @@ -472,10 +472,10 @@ enum target_cpus TARGET_CPU_generic }; -/* If there is no CPU defined at configure, use "cortex-a53" as default. */ +/* If there is no CPU defined at configure, use "generic" as default. */ #ifndef TARGET_CPU_DEFAULT #define TARGET_CPU_DEFAULT \ - (TARGET_CPU_cortexa53 | (AARCH64_CPU_DEFAULT_FLAGS << 6)) + (TARGET_CPU_generic | (AARCH64_CPU_DEFAULT_FLAGS << 6)) #endif /* The processor for which instructions should be scheduled. */