OSDN Git Service

powerpc/lib: Fix emulate_step() std test
authorNicholas Piggin <npiggin@gmail.com>
Wed, 26 Feb 2020 05:53:02 +0000 (15:53 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 17 Mar 2020 13:05:54 +0000 (00:05 +1100)
commit59ed2adf393109c56d383e568f2e57bb5ad6d901
tree76d5572ad94a8e1c01c3ed40535d74a6d0e987f6
parent993cfecc59e57de237ae27fadc84ed24efa87a4d
powerpc/lib: Fix emulate_step() std test

We should be checking that the instruction was stepped *and* that the
target register has the right value.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
[mpe: Write change log]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200226055302.1577954-1-npiggin@gmail.com
arch/powerpc/lib/test_emulate_step.c