From patchwork Sat Jul 21 16:12:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Sandoe X-Patchwork-Id: 172446 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 CAEF42C0269 for ; Sun, 22 Jul 2012 02:12:33 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1343491954; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:From:Content-Type:Content-Transfer-Encoding:Subject: Date:Message-ID:CC:To:MIME-Version:Mailing-List:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=ZkQ8sNlZbPNkWZ0FUS4CYYUHhYk=; b=a+Fa8nKxKFGLaik TLf09OXBHvr4TPNn95CRK8vgNXoCrmLSseb+aNN0aBwEuaIb5pEZyay2POEjfZ53 NLX2GI0k+oHkuvad4H8vgVCHQkcrWa78lowG7lH4BmJMuOzKP+jBKnpmsBpGq5i2 dNHnK/37XjCgXtorMi5ikEFGt+lQ= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:From:Content-Type:Content-Transfer-Encoding:Subject:Date:Message-ID:CC:To:MIME-Version:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=OEGADWIKpXTk3NFq/7P5GJhGepaGZDDued+LDB/wsALR/skhtkH9i/iPE7uObq 0wkfZ5EOad9JTfNo9St8ixIO7KG+VucEXvueye9Xf7z6rbDvz5ihIQI19hnuQm4d qEmI5LfbpL2IgoGHlEyZTP0fe19E1i1n68IdBhTB8Uzsc=; Received: (qmail 4157 invoked by alias); 21 Jul 2012 16:12:27 -0000 Received: (qmail 4147 invoked by uid 22791); 21 Jul 2012 16:12:25 -0000 X-SWARE-Spam-Status: No, hits=-4.0 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_HOSTKARMA_W, RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 21 Jul 2012 16:12:11 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1SscHq-00064P-RZ from Iain_Sandoe@mentor.com ; Sat, 21 Jul 2012 09:12:10 -0700 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Sat, 21 Jul 2012 09:12:10 -0700 Received: from [127.0.0.1] (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.1.289.1; Sat, 21 Jul 2012 17:12:08 +0100 From: Iain Sandoe Subject: [Patch, PPC] extend TARGET_NO_LWSYNC to cover 440 and 603 processors. Date: Sat, 21 Jul 2012 17:12:05 +0100 Message-ID: <05CA9A8A-0229-465E-B098-A5C0FB876F43@codesourcery.com> CC: David Edelsohn To: GCC Patches MIME-Version: 1.0 (Apple Message framework v1084) 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 Hi, The following patch was been in use internally, for some time, to handle two further cases where the processor does not have lwsync. Verified on a cross from i686-linux-gnu to powerpc-linux-gnu. OK for trunk? thanks, Iain gcc/ * config/rs6000/rs6000.h (TARGET_NO_LWSYNC): Extended to cover PPC 440 and 603 processors. Index: gcc/config/rs6000/rs6000.h =================================================================== --- gcc/config/rs6000/rs6000.h (revision 189745) +++ gcc/config/rs6000/rs6000.h (working copy) @@ -501,9 +512,11 @@ extern int rs6000_vector_align[]; || TARGET_ALTIVEC \ || TARGET_VSX))) -/* E500 cores only support plain "sync", not lwsync. */ +/* E500, 440 and 603 cores only support plain "sync", not lwsync. */ #define TARGET_NO_LWSYNC (rs6000_cpu == PROCESSOR_PPC8540 \ - || rs6000_cpu == PROCESSOR_PPC8548) + || rs6000_cpu == PROCESSOR_PPC8548 \ + || rs6000_cpu == PROCESSOR_PPC440 \ + || rs6000_cpu == PROCESSOR_PPC603) /* Which machine supports the various reciprocal estimate instructions. */