Re: [PATCH 2/8] riscv: Optimize loading relocation type

2023-04-07 Thread Rick Chen
> From: Bin Meng 
> Sent: Thursday, March 30, 2023 12:20 PM
> To: u-boot@lists.denx.de
> Cc: Leo Yu-Chi Liang(梁育齊) ; Nikita Shubin 
> ; Rick Jian-Zhi Chen(陳建志) 
> Subject: [PATCH 2/8] riscv: Optimize loading relocation type
>
> '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(-)

Reviewed-by: Rick Chen 


[PATCH 2/8] riscv: Optimize loading relocation type

2023-03-30 Thread Bin Meng
'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:
-   LREGt5, -(REGBYTES*2)(t1)   /* t5 <-- relocation info:type */
srlit0, t5, SYM_INDEX   /* t0 <--- sym table index */
andit5, t5, 0xFF/* t5 <--- relocation type */
li  t3, RELOC_TYPE
-- 
2.34.1