]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf84588e247351b6961c28273c874bd9ae9319dfa
treeea0651f3525c6366de6c20f7a1f9712357a63e6f
parent059f6a5399a86ae108cc62934ca4e39c2fe2806b
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: 88376e6c3cbf ("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