From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4D236C77B6C for ; Thu, 13 Apr 2023 06:20:54 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 43C4985D37; Thu, 13 Apr 2023 08:20:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=tinylab.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 96EE285C2B; Thu, 13 Apr 2023 08:20:28 +0200 (CEST) Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.221.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id F0DB685838 for ; Thu, 13 Apr 2023 08:20:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=tinylab.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bmeng@tinylab.org X-QQ-mid: bizesmtp73t1681366813tkdhibyv Received: from ubuntu.. ( [111.196.129.125]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 13 Apr 2023 14:20:12 +0800 (CST) X-QQ-SSF: 01200000000000D0F000000A0000000 X-QQ-FEAT: sUvt9uOiCzUzAW+NqA7dP5lNmyVZP7B6KiLqy2EuMbIZcFbCY78glWVIaXeAc PksiJoc40S9JuJMEF4S4pBF81y4V/7Bmv5isKqNkU2bVnml2JcEuFwuX7+k8KD1i8mqBGu7 fPARgy8M5erQLxSVkKcHS8dQnQRw5FlOPD3tA9gfBIVVaLRKpalN6Ctag0YOLmDV7rqfVGX AYsF3mq7NZ8bSxXqJ7/S29RLIDY1Vfktx/ekelQnvAQBDGfGqtz5IqzsxgS21Fxs1R4xXfD oRz/gm8efyWE2x5Gl10LtxNFG/neMl0ZsNE6Pw1EAoIHbNDOJIDkENEMherN8MMSG9dLIr2 fky9IzYDiVBV/A0fuEgARtyf1PISw== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 1993138147931458912 From: Bin Meng To: u-boot@lists.denx.de Cc: Rick Chen , Leo , Nikita Shubin Subject: [PATCH v2 2/9] riscv: Optimize loading relocation type Date: Thu, 13 Apr 2023 14:20:01 +0800 Message-Id: <20230413062008.981238-2-bmeng@tinylab.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230413062008.981238-1-bmeng@tinylab.org> References: <20230413062008.981238-1-bmeng@tinylab.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz7a-0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean 't5' already contains relocation type so don't bother reloading it. Signed-off-by: Bin Meng Reviewed-by: Rick Chen --- (no changes since v1) arch/riscv/cpu/start.S | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/riscv/cpu/start.S b/arch/riscv/cpu/start.S index 3c8344c345..879bdc1803 100644 --- a/arch/riscv/cpu/start.S +++ b/arch/riscv/cpu/start.S @@ -323,7 +323,6 @@ fix_rela_dyn: add t4, t4, t6 9: - LREG t5, -(REGBYTES*2)(t1) /* t5 <-- relocation info:type */ srli t0, t5, SYM_INDEX /* t0 <--- sym table index */ andi t5, t5, 0xFF /* t5 <--- relocation type */ li t3, RELOC_TYPE -- 2.34.1