s390/amode31: Use exrl instead of ex
authorSven Schnelle <svens@linux.ibm.com>
Wed, 8 Jan 2025 14:27:03 +0000 (15:27 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Mon, 13 Jan 2025 08:50:17 +0000 (09:50 +0100)
exrl is present in all machines currently supported, therefore prefer
it over ex. This saves one instruction and doesn't need an additional
register to hold the address of the target instruction.

Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/kernel/text_amode31.S

index c0a70efa2426d8a5bfc974253da744f8d744efeb..26f2981aa09e316b426c126489405c82f98da13f 100644 (file)
@@ -18,8 +18,7 @@
  * affects a few functions that are not performance-relevant.
  */
        .macro BR_EX_AMODE31_r14
-       larl    %r1,0f
-       ex      0,0(%r1)
+       exrl    0,0f
        j       .
 0:     br      %r14
        .endm