]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/ppc-opcode: Fix PPC_RAW_TW()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 3 Aug 2022 11:47:33 +0000 (13:47 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 10 Aug 2022 05:39:37 +0000 (15:39 +1000)
commitd9858ce221054d7db2a50aec4ea62ace3d08efe0
tree32902a60a353f1a98dc1c1d278aad49e13e1960e
parent9e5522b8b9cdf8283c9432acd0212e70939e0d02
powerpc/ppc-opcode: Fix PPC_RAW_TW()

PPC_RAW_TW() is erroneously defined with base code 0x7f000008
instead of 0x7c000008.

That's invisible because its only user is PPC_RAW_TRAP() which is
0x7fe00008, but fix it anyway to avoid any risk of future bug.

Fixes: 40aa0064d897 ("powerpc/ppc-opcode: Define and use PPC_RAW_TRAP() and PPC_RAW_TW()")
Reported-by: Naveen N. Rao <naveen.n.rao@linux.ibm.com>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/eca9251f1e1f82c4c46ec6380ddb28356ab3fdfe.1659527244.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/ppc-opcode.h