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

mcrf broke when we changed analyse_instr() to not modify the register
state. The instruction writes to the CR, so we need to store the result
in op->ccval, not 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