Searched hist:"1 c89cf7fbed36f078b20fd47d308b4fc6dbff5f6" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/arch/powerpc/lib/ |
H A D | test_emulate_step.c | diff 1c89cf7fbed36f078b20fd47d308b4fc6dbff5f6 Sun May 24 21:59:21 CDT 2020 Jordan Niethe <jniethe5@gmail.com> powerpc/sstep: Set NIP in instruction emulation tests
The tests for emulation of compute instructions execute and emulate an instruction and then compare the results to verify the emulation. In ISA v3.1 there are instructions that operate relative to the NIP. Therefore set the NIP in the regs used for the emulated instruction to the location of the executed instruction so they will give the same result.
This is a rework of a patch by Balamuruhan S.
Signed-off-by: Jordan Niethe <jniethe5@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200525025923.19843-3-jniethe5@gmail.com
|