diff options
author | Paul Mackerras <paulus@samba.org> | 2014-09-02 04:35:07 (GMT) |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2014-09-25 13:14:51 (GMT) |
commit | be96f63375a14ee8e690856ac77e579c75bd0bae (patch) | |
tree | ef054973ec062a761afcf10aa688e67ad047d7ff /arch/powerpc/perf/power5+-pmu.c | |
parent | ad72a279a2b874828d1b5070ef01cf6ee6b1d62c (diff) | |
download | linux-be96f63375a14ee8e690856ac77e579c75bd0bae.tar.xz |
powerpc: Split out instruction analysis part of emulate_step()
This splits out the instruction analysis part of emulate_step() into
a separate analyse_instr() function, which decodes the instruction,
but doesn't execute any load or store instructions. It does execute
integer instructions and branches which can be executed purely by
updating register values in the pt_regs struct. For other instructions,
it returns the instruction type and other details in a new
instruction_op struct. emulate_step() then uses that information
to execute loads, stores, cache operations, mfmsr, mtmsr[d], and
(on 64-bit) sc instructions.
The reason for doing this is so that the KVM code can use it instead
of having its own separate instruction emulation code. Possibly the
alignment interrupt handler could also use this.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/perf/power5+-pmu.c')
0 files changed, 0 insertions, 0 deletions