linux/arch/powerpc/perf
Jordan Niethe 94afd069d9 powerpc: Use a datatype for instructions
Currently unsigned ints are used to represent instructions on powerpc.
This has worked well as instructions have always been 4 byte words.

However, ISA v3.1 introduces some changes to instructions that mean
this scheme will no longer work as well. This change is Prefixed
Instructions. A prefixed instruction is made up of a word prefix
followed by a word suffix to make an 8 byte double word instruction.
No matter the endianness of the system the prefix always comes first.
Prefixed instructions are only planned for powerpc64.

Introduce a ppc_inst type to represent both prefixed and word
instructions on powerpc64 while keeping it possible to exclusively
have word instructions on powerpc32.

Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
[mpe: Fix compile error in emulate_spe()]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200506034050.24806-12-jniethe5@gmail.com
2020-05-19 00:10:37 +10:00
..
req-gen
8xx-pmu.c powerpc: Use a macro for creating instructions from u32s 2020-05-19 00:10:36 +10:00
bhrb.S
callchain.c powerpc/perf: split callchain.c by bitness 2020-04-03 00:10:00 +11:00
callchain.h powerpc/perf: split callchain.c by bitness 2020-04-03 00:10:00 +11:00
callchain_32.c powerpc/perf: split callchain.c by bitness 2020-04-03 00:10:00 +11:00
callchain_64.c powerpc/perf/callchain: Use __get_user_pages_fast in read_user_stack_slow 2020-05-05 21:20:14 +10:00
core-book3s.c powerpc: Use a datatype for instructions 2020-05-19 00:10:37 +10:00
core-fsl-emb.c
e500-pmu.c
e6500-pmu.c
generic-compat-pmu.c
hv-24x7-catalog.h
hv-24x7-domains.h
hv-24x7.c powerpc updates for 5.3 2019-07-13 16:08:36 -07:00
hv-24x7.h
hv-common.c
hv-common.h
hv-gpci-requests.h
hv-gpci.c
hv-gpci.h
imc-pmu.c powerpc/perf: Implement a global lock to avoid races between trace, core and thread imc events. 2020-04-03 00:09:58 +11:00
internal.h
isa207-common.c
isa207-common.h
Makefile powerpc/perf: split callchain.c by bitness 2020-04-03 00:10:00 +11:00
mpc7450-pmu.c
perf_regs.c
power5+-pmu.c
power5-pmu.c
power6-pmu.c
power7-events-list.h
power7-pmu.c
power8-events-list.h
power8-pmu.c
power9-events-list.h
power9-pmu.c
ppc970-pmu.c