]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
microblaze: Remove code around r20 in relocate_code()
authorMichal Simek <michal.simek@amd.com>
Fri, 24 Jun 2022 12:15:00 +0000 (14:15 +0200)
committerMichal Simek <michal.simek@amd.com>
Fri, 24 Jun 2022 12:15:00 +0000 (14:15 +0200)
r20 is not used that's why remove logic around it.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/1b32bab5c050d099b2f6d49bc4896322ed03d788.1655299267.git.michal.simek@amd.com
arch/microblaze/cpu/start.S

index f2d6d12deb73b43bdabfca1bde1f4fa7a1c187cb..c3d925c1d1511f12288066f110ce8df1d7fd2669 100644 (file)
@@ -310,11 +310,6 @@ relocate_code:
        bneid   r12, 3b
        addik   r21. r21, 4
 
-       /* Update pointer to GOT */
-       mfs     r20, rpc
-       addik   r20, r20, _GLOBAL_OFFSET_TABLE_ + 8
-       addk    r20, r20, r23
-
        /* Flush caches to ensure consistency */
        addik   r5, r0, 0
        addik   r6, r0, XILINX_DCACHE_BYTE_SIZE