Received: by 10.223.164.202 with SMTP id h10csp566655wrb; Tue, 14 Nov 2017 06:12:57 -0800 (PST) X-Google-Smtp-Source: AGs4zMab/oq6xiOaUagZfWPjwnyuiMNaM0BnBu+wWBZQgYq7NA4YUqC58wjfVaH2nnGSgPfncFzw X-Received: by 10.101.76.195 with SMTP id n3mr12724429pgt.120.1510668777088; Tue, 14 Nov 2017 06:12:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510668777; cv=none; d=google.com; s=arc-20160816; b=bXHE9qvzyLxdHg4LFbQCDzd7cJFTlsg+479Hpbrhr4Y0grZjQGbaV+YRrif3alo56R gD6pZAsXnVTUUHNZjVkDLTnVU4GwF9fGhU8gj2SSObe3R1PmcK0WXyVY5diZsa/JbcVx GJvv/MqhdeHba4ZhXg4kHNH7lg9eEp7UpVr7pIT2AKb1yY62c++EKAC7wzoniCkZq+7W v65EKo46q9H0exkurCAzpWYzw1A/ZxlLpaQWE2LBHJIryJ4KZM2oZkJD8MB/17OXSdlJ vwknCs9CIYW3QTsBbO73GpugRt/tA5ML7M7vFTOWnSK9d6op1yraujob/JHGd2ZIAZEA E69Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:authorized-sender:arc-authentication-results; bh=JJ9G/QMbi7lsfx1dpzW2ER9WEWgyORM0Yu7XoJwjB8Y=; b=DLUKhhcOK+oILjcSKVA9F7CSOjvt5LfDMzRQLzYz7g6REGjYGQXjYo0a1uKITtRbJk a8tt4fwaTpDfhukMmMdCmus4ac2BY+MM9DVjCIOXd9k5oWVz7TAJCFU3vmy0Prs+h2L0 6Vg/rrMqUMrwW0+MghGrkGY5D8nE43YMb7Vc12oD9ReIjZ1nehfXMRrmc3sD6GMe/n5d r+Se4IIqAVcza/4vNV+iS+S5Rqs1aSLhOv2rxN5qagb73xSZ3gN/8btlClJBnSsn/AUg ymvPUsyErD62arn2EvcrEpHTpitarsjFpJqPXr95ZmrNUBVeuRMRX+tBhsy860VRxIhH WBRQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p189si15698048pfp.296.2017.11.14.06.12.44; Tue, 14 Nov 2017 06:12:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755493AbdKNOK6 (ORCPT + 88 others); Tue, 14 Nov 2017 09:10:58 -0500 Received: from bin-mail-out-06.binero.net ([195.74.38.229]:45150 "EHLO bin-vsp-out-02.atm.binero.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755018AbdKNOKx (ORCPT ); Tue, 14 Nov 2017 09:10:53 -0500 X-Halon-ID: c2f13789-c944-11e7-96ab-005056917f90 Authorized-sender: andreas@gaisler.com Received: from localhost.localdomain (unknown [81.170.187.120]) by bin-vsp-out-02.atm.binero.net (Halon) with ESMTPA id c2f13789-c944-11e7-96ab-005056917f90; Tue, 14 Nov 2017 15:04:42 +0100 (CET) From: Andreas Larsson To: David Miller , sparclinux@vger.kernel.org Cc: linux-kernel@vger.kernel.org, software@gaisler.com Subject: [PATCH 1/2] sparc32,leon: Build with -mcpu=leon3 for SPARC_LEON Date: Tue, 14 Nov 2017 15:03:42 +0100 Message-Id: <1510668223-18484-2-git-send-email-andreas@gaisler.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1510668223-18484-1-git-send-email-andreas@gaisler.com> References: <1510668223-18484-1-git-send-email-andreas@gaisler.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Apart from using LEON3 instruction timing it allows for usage of the CASA instruction. Signed-off-by: Andreas Larsson --- arch/sparc/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/sparc/Makefile b/arch/sparc/Makefile index 8496a07..673ee73 100644 --- a/arch/sparc/Makefile +++ b/arch/sparc/Makefile @@ -24,14 +24,20 @@ LDFLAGS := -m elf32_sparc export BITS := 32 UTS_MACHINE := sparc +ifeq ($(CONFIG_SPARC_LEON),y) +SPARC_MCPU=leon3 +else +SPARC_MCPU=v8 +endif + # We are adding -Wa,-Av8 to KBUILD_CFLAGS to deal with a specs bug in some # versions of gcc. Some gcc versions won't pass -Av8 to binutils when you # give -mcpu=v8. This silently worked with older bintutils versions but # does not any more. -KBUILD_CFLAGS += -m32 -mcpu=v8 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7 +KBUILD_CFLAGS += -m32 -mcpu=$(SPARC_MCPU) -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7 KBUILD_CFLAGS += -Wa,-Av8 -KBUILD_AFLAGS += -m32 -Wa,-Av8 +KBUILD_AFLAGS += -m32 -mcpu=$(SPARC_MCPU) -Wa,-Av8 else ##### -- 2.8.0 From 1586208156402799319@xxx Fri Dec 08 09:39:39 +0000 2017 X-GM-THRID: 1586208156402799319 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread