From patchwork Tue May 17 07:38:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 67924 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp1929341qge; Tue, 17 May 2016 00:37:25 -0700 (PDT) X-Received: by 10.28.175.83 with SMTP id y80mr21268441wme.8.1463470645573; Tue, 17 May 2016 00:37:25 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id h62si2466854wma.124.2016.05.17.00.37.25; Tue, 17 May 2016 00:37:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A866FA7550; Tue, 17 May 2016 09:37:24 +0200 (CEST) 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 u4raPBqQ6Jfl; Tue, 17 May 2016 09:37:24 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 31422A7519; Tue, 17 May 2016 09:37:24 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0C163A7535 for ; Tue, 17 May 2016 09:37:19 +0200 (CEST) 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 oVKeW5EkS53w for ; Tue, 17 May 2016 09:37:18 +0200 (CEST) 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 conuserg-10.nifty.com (conuserg-10.nifty.com [210.131.2.77]) by theia.denx.de (Postfix) with ESMTPS id 48BFAA7519 for ; Tue, 17 May 2016 09:37:13 +0200 (CEST) Received: from beagle.diag.org (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id u4H7b1fn006885; Tue, 17 May 2016 16:37:03 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com u4H7b1fn006885 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1463470623; bh=Bhrd+HJfwzXC0itgF1hKoogdZPZCMxloX+1oVfB5nJo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tz7mBtEkmGg6axRl6ORuB/M71C19jRulbiA2hWk5weZSR1SMLQpQZrWLADKdnqOp5 J8Qh2eQFvE8dTCMuUHnC9/JPzMcdsXdnYpHWT1E36ZCAf5ho9+Md/236ARKSz8ABGL XY+YZXKiKrHuwwg1Z9o7nikzkRYHYdiADrf/2M8V1nEtRDJhsmS7AZ0H99ePbqofRN zfzaHa2f2UvgimFCgb5+c1D3xY0udjyLyjjeE2FGyNrEIH83eZtpxUTaysl0oh0Diw mjVTPQQzWJxLFB0IA0UGcrkYx2OwZuuEXy9tStmA514aP/m3o1Evr12iwAtTx/3NK+ rqBZ5RATG2Pyg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Tue, 17 May 2016 16:38:06 +0900 Message-Id: <1463470688-13772-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1463470688-13772-1-git-send-email-yamada.masahiro@socionext.com> References: <1463470688-13772-1-git-send-email-yamada.masahiro@socionext.com> Subject: [U-Boot] [PATCH 1/3] arm64: optimize __asm_{flush, invalidate}_dcache_all X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" __asm_dcache_all can directly return to the caller of __asm_{flush,invalidate}_dcache_all. We do not have to waste x16 register here. Signed-off-by: Masahiro Yamada --- arch/arm/cpu/armv8/cache.S | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) -- 1.9.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot diff --git a/arch/arm/cpu/armv8/cache.S b/arch/arm/cpu/armv8/cache.S index a9f4fec..1c71a2f 100644 --- a/arch/arm/cpu/armv8/cache.S +++ b/arch/arm/cpu/armv8/cache.S @@ -104,19 +104,13 @@ finished: ENDPROC(__asm_dcache_all) ENTRY(__asm_flush_dcache_all) - mov x16, lr mov x0, #0 - bl __asm_dcache_all - mov lr, x16 - ret + b __asm_dcache_all ENDPROC(__asm_flush_dcache_all) ENTRY(__asm_invalidate_dcache_all) - mov x16, lr mov x0, #0x1 - bl __asm_dcache_all - mov lr, x16 - ret + b __asm_dcache_all ENDPROC(__asm_invalidate_dcache_all) /*