]> git.baikalelectronics.ru Git - kernel.git/commitdiff
powerpc/inst: Remove PPC_INST_BL
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 9 May 2022 05:36:22 +0000 (07:36 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 22 May 2022 05:58:27 +0000 (15:58 +1000)
Convert last users of PPC_INST_BL to PPC_RAW_BL()

And remove PPC_INST_BL.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/d9eacb758e7ae7cf224211ebe3f6f7d409a333be.1652074503.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/ppc-opcode.h
arch/powerpc/net/bpf_jit.h

index 87e42289573a5ad5ee84a1dd951b21cac64ca9b4..6cc12c6aa352b04b3ac7f8b8f6bbb9ef0d585e9b 100644 (file)
 #define PPC_INST_ADDIS                 0x3c000000
 #define PPC_INST_ADD                   0x7c000214
 #define PPC_INST_DIVD                  0x7c0003d2
-#define PPC_INST_BL                    0x48000001
 #define PPC_INST_BRANCH_COND           0x40800000
 
 /* Prefixes */
index 80d973da90934f733595cb669c9a4a734479f691..a4f7880f959dd56b1be6f2e095b7131942e5c57b 100644 (file)
@@ -35,7 +35,7 @@
        } while (0)
 
 /* bl (unconditional 'branch' with link) */
-#define PPC_BL(dest)   EMIT(PPC_INST_BL | (((dest) - (unsigned long)(image + ctx->idx)) & 0x03fffffc))
+#define PPC_BL(dest)   EMIT(PPC_RAW_BL((dest) - (unsigned long)(image + ctx->idx)))
 
 /* "cond" here covers BO:BI fields. */
 #define PPC_BCC_SHORT(cond, dest)                                            \