powerpc: Use a macro for creating instructions from u32s
authorJordan Niethe <jniethe5@gmail.com>
Wed, 6 May 2020 03:40:26 +0000 (13:40 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 18 May 2020 14:10:36 +0000 (00:10 +1000)
commit753462512868674a788ecc77bb96752efb818785
tree02e2f30549082335849621bfdcce413e4166b252
parent7c95d8893fb55869882c9f68f4c94840dc43f18f
powerpc: Use a macro for creating instructions from u32s

In preparation for instructions having a more complex data type start
using a macro, ppc_inst(), for making an instruction out of a u32.  A
macro is used so that instructions can be used as initializer elements.
Currently this does nothing, but it will allow for creating a data type
that can represent prefixed instructions.

Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
[mpe: Change include guard to _ASM_POWERPC_INST_H]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Alistair Popple <alistair@popple.id.au>
Link: https://lore.kernel.org/r/20200506034050.24806-7-jniethe5@gmail.com
24 files changed:
arch/powerpc/include/asm/code-patching.h
arch/powerpc/include/asm/inst.h [new file with mode: 0644]
arch/powerpc/kernel/align.c
arch/powerpc/kernel/crash_dump.c
arch/powerpc/kernel/epapr_paravirt.c
arch/powerpc/kernel/hw_breakpoint.c
arch/powerpc/kernel/jump_label.c
arch/powerpc/kernel/kgdb.c
arch/powerpc/kernel/kprobes.c
arch/powerpc/kernel/module_64.c
arch/powerpc/kernel/optprobes.c
arch/powerpc/kernel/security.c
arch/powerpc/kernel/setup_32.c
arch/powerpc/kernel/trace/ftrace.c
arch/powerpc/kernel/uprobes.c
arch/powerpc/kvm/emulate_loadstore.c
arch/powerpc/lib/code-patching.c
arch/powerpc/lib/feature-fixups.c
arch/powerpc/lib/test_emulate_step.c
arch/powerpc/mm/nohash/8xx.c
arch/powerpc/perf/8xx-pmu.c
arch/powerpc/platforms/86xx/mpc86xx_smp.c
arch/powerpc/platforms/powermac/smp.c
arch/powerpc/xmon/xmon.c