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 60653C6FD1D for ; Thu, 30 Mar 2023 12:37:43 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DF4548605E; Thu, 30 Mar 2023 14:36:34 +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 5F69885A36; Thu, 30 Mar 2023 06:20:46 +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 6976B85738 for ; Thu, 30 Mar 2023 06:20:38 +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: bizesmtp81t1680150029tlcjslz0 Received: from ubuntu.. ( [111.196.129.125]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 30 Mar 2023 12:20:28 +0800 (CST) X-QQ-SSF: 01200000000000D0E000000A0000000 X-QQ-FEAT: 7RU7PMus3l6e8735tggK9v1GAcB2Gdd8ixcVfBN9on8lKvdQaqtyuwEDSmgLu tfIichsEQVBV+gWo8fjBI74+sZYUBqUZ7Ivo2guSrRTWT67Z1SKZp2V83CShlaN0dbpZMRO CByQNbGfKSl8TnVPDkEw1afMpAjMzxGvOYInR/asD7lTLxq37CCng336OOew0XKZDs7KoTo 79NUSu2ihzLT2q8wcVA0cjz7ydJIqGeePI52Zt6QiLO33LgU3Xdmgez0WimeLipP03x9KkK YafqOKcUNtF3HsoPm67mkRLol6ZlxsonOppRKyLZcB8FVJqyDBdIxTKWY3G5fRv4jYmysH2 GW1t0e0r9lkMai221Dgcs/vG5gdrw== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 13614437465052150269 From: Bin Meng To: u-boot@lists.denx.de Cc: Leo , Nikita Shubin , Rick Chen Subject: [PATCH 2/8] riscv: Optimize loading relocation type Date: Thu, 30 Mar 2023 12:20:18 +0800 Message-Id: <20230330042024.721710-2-bmeng@tinylab.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230330042024.721710-1-bmeng@tinylab.org> References: <20230330042024.721710-1-bmeng@tinylab.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvr:qybglogicsvr3 X-Mailman-Approved-At: Thu, 30 Mar 2023 14:36:20 +0200 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 --- 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