]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit059f6a5399a86ae108cc62934ca4e39c2fe2806b
tree72e71f6421b60dac07e2ed2a39f2fb36d628cd14
parent83a523651e5f3be6e1ee908cb296191b1950eaf7
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: 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