powerpc/sstep: Fix issues with set_cr0()
authorAnton Blanchard <anton@samba.org>
Tue, 19 Sep 2017 10:45:52 +0000 (20:45 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 20 Sep 2017 03:30:09 +0000 (13:30 +1000)
commitad47ff3e33503e0969db2d4f9a40942aa6414598
tree72e71f6421b60dac07e2ed2a39f2fb36d628cd14
parentc1fa0768a8713b135848f78fd43ffc208d8ded70
powerpc/sstep: Fix issues with set_cr0()

set_cr0() broke when we changed analyse_instr() to not modify the
register state. Instead of looking at regs->gpr[x] which has not
been updated yet, we need to look at op->val.

Fixes: 3cdfcbfd32b9 ("powerpc: Change analyse_instr so it doesn't modify *regs")
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/lib/sstep.c