OSDN Git Service

powerpc: Use a function for getting the instruction op code
authorJordan Niethe <jniethe5@gmail.com>
Wed, 6 May 2020 03:40:28 +0000 (13:40 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 18 May 2020 14:10:37 +0000 (00:10 +1000)
commit8094892d1aff14269d3b7bfcd8b941217eecd81f
treefe2937db7a5e26b5bc496ca3f6d94794e644f23d
parent777e26f0edf8dab58b8dd474d35d83bde0ac6d76
powerpc: Use a function for getting the instruction op code

In preparation for using a data type for instructions that can not be
directly used with the '>>' operator use a function for getting the op
code of an instruction.

Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
Reviewed-by: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200506034050.24806-9-jniethe5@gmail.com
arch/powerpc/include/asm/inst.h
arch/powerpc/kernel/align.c
arch/powerpc/kernel/vecemu.c
arch/powerpc/lib/code-patching.c
arch/powerpc/lib/sstep.c
arch/powerpc/mm/fault.c