]> 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)
commita0c324e85d6168663268f5f3b8bb09365f34d251
tree72e71f6421b60dac07e2ed2a39f2fb36d628cd14
parent655b6ba6e10b08a1656903d92324e788306191a2
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: 161c9d1ebdd2 ("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